_card.sass 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // *************************************
  2. //
  3. // Card
  4. // -> Individual style containers
  5. //
  6. // -------------------------------------
  7. // Template (Haml)
  8. // -------------------------------------
  9. //
  10. // .card
  11. // / ...
  12. //
  13. // *************************************
  14. $card-borderRadius: 3px !default
  15. $card-boxShadow: 0 2px 0 rgba(#000, 0.15) !default
  16. .card, %card
  17. background: $c-background-invert
  18. border-radius: $card-borderRadius
  19. box-shadow: $card-boxShadow
  20. padding: $b-space
  21. position: relative
  22. .card--f, %card--f
  23. padding: 0
  24. .card-users,
  25. .card-notes
  26. text-align: center
  27. .card
  28. margin-bottom: $b-space
  29. .card--a, %card--a
  30. min-height: 150px
  31. .card--b, %card--b
  32. background: lighten($c-background, 5%)
  33. .card--center, %card--center
  34. left: 50%
  35. position: absolute
  36. top: 50%
  37. transform: translate(-50%, -50%)
  38. width: 80%
  39. +respond-to($b-maxWidth-s)
  40. width: 50%
  41. +respond-to($b-maxWidth)
  42. width: 30%
  43. .card-hidden
  44. @extend %card
  45. @extend %card--f
  46. @extend %stretch
  47. @extend %fauxHide
  48. padding: $b-space
  49. .card-notes
  50. @extend %grid-box
  51. @extend %grid-box-1of1
  52. @extend %grid-box-m--1of2
  53. min-height: 150px
  54. .card
  55. height: 150px
  56. .card-notes:nth-of-type(2n+1)
  57. clear: left
  58. .card-users
  59. @extend %grid-box
  60. @extend %grid-box-1of1
  61. @extend %grid-box-s--1of2
  62. @extend %grid-box-m--1of3
  63. @extend %grid-box-l--1of4
  64. .card-type
  65. color: $c-text
  66. font-size: $b-fontSize-m
  67. margin-bottom: 0
  68. .card-link
  69. color: $c-highlight
  70. .card:hover
  71. .card-hidden
  72. @extend %fauxShow
  73. overflow: hidden