item.less 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @import "~assets/less/variable";
  2. .unit {
  3. height: 134px;
  4. background-color: #fff;
  5. margin-right: 16px;
  6. margin-bottom: 16px;
  7. border-radius: 2px;
  8. box-shadow: @block-box-shadow;
  9. cursor: pointer;
  10. transform: translate3d(0, 0, 0);
  11. transition: transform 200ms linear,
  12. box-shadow 200ms linear,
  13. background-size 500ms linear;
  14. &:hover {
  15. box-shadow: @block-active-box-shadow;
  16. }
  17. .thumbnail {
  18. height: 100px;
  19. background-color: #fff;
  20. background-repeat: no-repeat;
  21. background-size: 100%;
  22. background-position: center center;
  23. transform: translate3d(0, 0, 0);
  24. transition: transform 200ms linear,
  25. box-shadow 200ms linear,
  26. background-size 500ms linear;
  27. position: relative;
  28. &:hover {
  29. background-size: 110%;
  30. transform: translate3d(0, -5px, 0);
  31. .createIcon {
  32. color: @blue;
  33. }
  34. .createText {
  35. color: @blue;
  36. }
  37. }
  38. header {
  39. background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 100%);
  40. border-radius: 2px 2px 0 0;
  41. }
  42. .tags {
  43. text-align: right;
  44. padding-top: 8px;
  45. .create {
  46. background-color: #108EE9;
  47. }
  48. .fork {
  49. background-color: #F24724;
  50. }
  51. .favorite {
  52. background-color: #F24724;
  53. }
  54. .join {
  55. background-color: #FA8C15;
  56. }
  57. }
  58. .title {
  59. margin-top: -18px;
  60. padding: 2px 58px 0 12px;
  61. color: @white;
  62. font-size: 1.15em;
  63. font-weight: normal;
  64. .ellipsis;
  65. }
  66. .descs {
  67. padding: 8px 12px 24px;
  68. color: @white;
  69. font-size: .85em;
  70. .ellipsis;
  71. }
  72. }
  73. .itemToolbar {
  74. height: 34px;
  75. background-color: @white;
  76. display: flex;
  77. padding: 0 6px 0 8px;
  78. justify-content: space-between;
  79. align-items: center;
  80. .stars {
  81. align-self: center;
  82. }
  83. .others {
  84. align-self: center;
  85. }
  86. i {
  87. margin-left: 8px;
  88. }
  89. }
  90. }