PictureItem.less 1006 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @import "~antd/lib/style/themes/default.less";
  2. .card {
  3. &:hover {
  4. .picActions {
  5. display: block;
  6. }
  7. .removeIcon {
  8. display: block;
  9. }
  10. }
  11. :global {
  12. .ant-card-body {
  13. padding: 0 !important;
  14. }
  15. }
  16. }
  17. .checkbox {
  18. position: absolute;
  19. top: 3px;
  20. left: 5px;
  21. }
  22. .removeIcon {
  23. position: absolute;
  24. display: none;
  25. top: 5px;
  26. right: 5px;
  27. font-size: 16px;
  28. font-weight: 600;
  29. color: @primary-9;
  30. &:hover {
  31. color: red;
  32. }
  33. }
  34. .picWrapper {
  35. position: relative;
  36. vertical-align: middle;
  37. text-align: center;
  38. height: 283px;
  39. line-height: 283px;
  40. img {
  41. max-height: 100%;
  42. max-width: 100%;
  43. vertical-align: middle;
  44. height: auto;
  45. }
  46. }
  47. .metaData {
  48. position: absolute;
  49. bottom: 0;
  50. overflow: hidden;
  51. padding: 0 4px;
  52. width: 100%;
  53. height: 50px;
  54. line-height: 50px;
  55. color: #454545;
  56. text-align: center;
  57. text-overflow: ellipsis;
  58. vertical-align: middle;
  59. background: #dadada;
  60. }
  61. .picActions {
  62. .metaData();
  63. display: none;
  64. }