You are here

cards.css in Open Social 8.3

.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;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

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

.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;
}

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