boardsList.styl 2.5 KB

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