boardsList.styl 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. @import 'nib'
  2. $spaceBetweenTiles = 16px
  3. .board-list
  4. margin: 0 ($spaceBetweenTiles/2)
  5. li
  6. float: left
  7. width: 25%
  8. box-sizing: border-box
  9. position: relative
  10. &.starred
  11. .fa-star,
  12. .fa-star-o
  13. opacity: 1
  14. .board-list-item
  15. overflow: hidden;
  16. background-color: #999
  17. color: #f6f6f6
  18. height: 90px
  19. font-size: 16px
  20. line-height: 22px
  21. border-radius: 3px
  22. display: block
  23. font-weight: 700
  24. min-height: 18px
  25. padding: 8px
  26. margin: ($spaceBetweenTiles/2)
  27. position: relative
  28. text-decoration: none
  29. &.tile
  30. background-size: auto
  31. background-repeat: repeat
  32. .board-list-item-sub-name
  33. color: rgba(255, 255, 255, .5)
  34. display: block
  35. font-size: 14px
  36. font-weight: 400
  37. line-height: 22px
  38. .board-list-item-desc
  39. color: rgba(255, 255, 255, .5)
  40. display: block
  41. font-size: 10px
  42. font-weight: 400
  43. line-height: 18px
  44. .js-add-board
  45. text-align:center
  46. .label
  47. font-weight: normal
  48. line-height:90px
  49. :hover
  50. background-color:#939393
  51. .fa-star,
  52. .fa-star-o
  53. bottom: 0
  54. font-size: 14px
  55. height: 18px
  56. line-height: 18px
  57. opacity: 0
  58. padding: 9px 9px
  59. position: absolute
  60. right: 0
  61. top: 0
  62. transition-duration: .15s
  63. transition-property: color, font-size, background
  64. .is-star-active
  65. color: white
  66. li:hover a
  67. &:hover
  68. .fa-star,
  69. .fa-star-o
  70. color: white
  71. .fa-star,
  72. .fa-star-o
  73. color: white
  74. opacity: .75
  75. &:hover
  76. font-size: 18px
  77. opacity: 1
  78. &.is-star-active
  79. opacity: 1
  80. .board-backgrounds-list
  81. .board-background-select
  82. box-sizing: border-box
  83. display: block
  84. float: left
  85. width: 50%
  86. padding-top: 12px
  87. position: relative
  88. z-index: 1
  89. &:nth-child(-n + 2)
  90. padding-top: 0
  91. &:nth-child(2n)
  92. padding-left: 6px
  93. &:nth-child(2n+1)
  94. padding-right: 6px
  95. .background-box
  96. border-radius: 3px
  97. background-size: cover
  98. display: block
  99. height: 74px
  100. position: relative
  101. width: 100%
  102. cursor: pointer
  103. display: flex
  104. align-items: center
  105. justify-content: center
  106. i.fa-check
  107. font-size: 25px
  108. color: white
  109. @media screen and (max-width: 800px)
  110. .board-list
  111. height: 100%
  112. overflow: scroll
  113. li
  114. width: 33.3%
  115. .board-list-item
  116. overflow: hidden
  117. .board-list-item-sub-name
  118. position: relative
  119. top: -100px
  120. left: -100px
  121. @media screen and (max-width: 360px)
  122. li
  123. width: 50%