You are here

cards.css in Open Social 8

.card {
  -webkit-box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
          box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-bottom: 0.75rem;
  background-clip: padding-box;
}

.card__title {
  position: relative;
  vertical-align: middle;
  margin: 0;
  padding: 15px 1.25rem 0;
  line-height: 1;
  font-size: 0.875rem;
}

.card__subtitle {
  font-size: 0.75rem;
  display: block;
}

.card__title--underline {
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 15px;
}

.card__block {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  padding: 1.25rem;
}

.card__block + .card__block {
  padding-top: 0;
}

.card__block--table {
  padding: 1.25rem 0;
}

.card__block--list:not(:first-child) {
  padding-top: 0;
}

.card__block--list:not(:last-child) {
  padding-bottom: 0;
}

.card__body {
  position: relative;
  padding: 1.25rem;
}

.card__body .twitter-tweet,
.card__body .fb_iframe_widget,
.card__body iframe {
  max-width: 100% !important;
  width: 100% !important;
}

.card__nested-section {
  margin-top: 0.625rem;
  margin-right: -1.25rem;
  margin-bottom: -1.25rem;
  margin-left: -1.25rem;
  padding: 1.25rem;
  background: #f7f7f7;
  border-top: 1px solid #e6e6e6;
}

.card__actionbar {
  margin-top: -1.25rem;
  padding: 1.25rem;
  position: relative;
  z-index: 2;
}

.card__actionbar:before, .card__actionbar:after {
  content: " ";
  display: table;
}

.card__actionbar:after {
  clear: both;
}

.card__link {
  font-size: 0.875rem;
  margin-left: 24px;
  float: right;
  -webkit-transition: color .3s ease;
  transition: color .3s ease;
  text-transform: uppercase;
}

.card__text {
  margin-top: 0;
}

.card__text:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .card__body {
    padding: 2.5rem;
  }
}

File

themes/socialbase/assets/css/cards.css
View source
  1. .card {
  2. -webkit-box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  3. box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  4. position: relative;
  5. display: -webkit-box;
  6. display: -ms-flexbox;
  7. display: flex;
  8. -webkit-box-orient: vertical;
  9. -webkit-box-direction: normal;
  10. -ms-flex-direction: column;
  11. flex-direction: column;
  12. margin-bottom: 0.75rem;
  13. background-clip: padding-box;
  14. }
  15. .card__title {
  16. position: relative;
  17. vertical-align: middle;
  18. margin: 0;
  19. padding: 15px 1.25rem 0;
  20. line-height: 1;
  21. font-size: 0.875rem;
  22. }
  23. .card__subtitle {
  24. font-size: 0.75rem;
  25. display: block;
  26. }
  27. .card__title--underline {
  28. border-bottom: 1px solid #e6e6e6;
  29. padding-bottom: 15px;
  30. }
  31. .card__block {
  32. position: relative;
  33. -webkit-box-flex: 1;
  34. -ms-flex: 1 1 auto;
  35. flex: 1 1 auto;
  36. padding: 1.25rem;
  37. }
  38. .card__block + .card__block {
  39. padding-top: 0;
  40. }
  41. .card__block--table {
  42. padding: 1.25rem 0;
  43. }
  44. .card__block--list:not(:first-child) {
  45. padding-top: 0;
  46. }
  47. .card__block--list:not(:last-child) {
  48. padding-bottom: 0;
  49. }
  50. .card__body {
  51. position: relative;
  52. padding: 1.25rem;
  53. }
  54. .card__body .twitter-tweet,
  55. .card__body .fb_iframe_widget,
  56. .card__body iframe {
  57. max-width: 100% !important;
  58. width: 100% !important;
  59. }
  60. .card__nested-section {
  61. margin-top: 0.625rem;
  62. margin-right: -1.25rem;
  63. margin-bottom: -1.25rem;
  64. margin-left: -1.25rem;
  65. padding: 1.25rem;
  66. background: #f7f7f7;
  67. border-top: 1px solid #e6e6e6;
  68. }
  69. .card__actionbar {
  70. margin-top: -1.25rem;
  71. padding: 1.25rem;
  72. position: relative;
  73. z-index: 2;
  74. }
  75. .card__actionbar:before, .card__actionbar:after {
  76. content: " ";
  77. display: table;
  78. }
  79. .card__actionbar:after {
  80. clear: both;
  81. }
  82. .card__link {
  83. font-size: 0.875rem;
  84. margin-left: 24px;
  85. float: right;
  86. -webkit-transition: color .3s ease;
  87. transition: color .3s ease;
  88. text-transform: uppercase;
  89. }
  90. .card__text {
  91. margin-top: 0;
  92. }
  93. .card__text:last-child {
  94. margin-bottom: 0;
  95. }
  96. @media (min-width: 900px) {
  97. .card__body {
  98. padding: 2.5rem;
  99. }
  100. }