You are here

hero.css in Open Social 8.9

.cover {
  position: relative;
  text-align: center;
  padding: 0 1rem;
  z-index: 2;
}

.cover-img {
  background-size: cover;
  background-position: 50% 0;
  background-repeat: no-repeat;
}

.node-unpublished .cover-img:before {
  display: block;
  position: absolute;
  content: '';
  background-color: rgba(85, 85, 85, 0.8);
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.cover-with-canvas {
  padding: 40px;
}

.hero__bgimage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(34, 34, 34, 0.7) 100%);
}

.cover-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-height: 300px;
  align-items: stretch;
}

/* IE11 */

.cover-with-canvas .cover-wrap {
  justify-content: space-between;
}

.node-unpublished .status:before {
  border-top: 1px solid white;
  margin: 5px auto;
  width: 40px;
  height: 0;
  content: '';
  display: block;
}

.cover .page-title {
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 1em;
  width: 80%;
}

.hero-footer {
  padding: 1rem 0;
  width: 100%;
}

.hero-footer__text {
  margin-top: 10px;
}

.hero-footer__cta {
  display: flex;
  justify-content: flex-end;
}

.hero-avatar {
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  margin: auto;
  width: 128px;
  height: 128px;
}

.block-social-profile header {
  padding-top: 2rem;
  padding-bottom: 1em;
}

.block-social-profile .page-title {
  padding-top: 1rem;
}

.block-social-profile .hero-footer {
  justify-content: center;
}

.block-social-profile .hero-footer__text {
  padding-right: 0;
}

.block-social-profile .hero-footer__cta {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  padding-left: 1rem;
}

.hero-footer-icon {
  fill: white;
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-top: -1px;
}

.hero-canvas {
  text-align: left;
  padding: 2rem;
}

.cover .btn-group {
  margin-top: 10px;
}

.hero-action-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
}

.hero-form {
  padding-bottom: 2rem;
}

.hero-form .form-group {
  position: relative;
  max-width: 400px;
  margin: auto;
}

.hero-form .form-control {
  padding: 6px 38px 6px 12px;
  max-width: none;
  border: 0;
}

.hero-form .form-submit,
.hero-form .search-icon {
  width: 38px;
  height: 38px;
  display: block;
  position: absolute;
  overflow: hidden;
  color: white;
  right: 0;
  top: 0;
  line-height: 38px;
  cursor: pointer;
  text-align: center;
}

.hero-form .search-icon {
  line-height: 38px;
  speak: none;
  pointer-events: none;
  transition: 0.3s;
}

.hero-form .search-icon svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

@media (min-width: 600px) {
  .cover-wrap {
    min-height: 410px;
  }
  .cover-wrap.small {
    height: 193px;
    min-height: auto;
  }
  .cover-wrap.small .page-title h1 {
    font-size: 2rem;
    max-height: 70px;
    overflow: hidden;
  }
  .cover-wrap.small > .hero-footer {
    position: static;
    margin-top: -2.5rem;
  }
  .cover-wrap > .hero-footer {
    position: absolute;
    bottom: 0;
  }
  .cover .page-title {
    max-width: 900px;
  }
  .hero-footer {
    display: flex;
    align-items: center;
  }
  .hero-footer__text {
    padding-right: 1rem;
    flex: 0 0 50%;
    max-width: 50%;
    margin-left: 25%;
  }
  .block-social-profile .hero-footer__text {
    flex: 0 0 auto;
    max-width: unset;
    margin-left: 0;
  }
}

@media (min-width: 900px) {
  .hero-footer__cta {
    padding-left: 1rem;
    flex: 0 0 25%;
    max-width: 25%;
  }
  .block-social-profile .hero-footer__cta {
    padding: 0;
    position: absolute;
    right: 0;
    flex: 0 0 auto;
    max-width: unset;
  }
  .hero-canvas {
    max-width: 66.66667%;
  }
}

@media all and (-ms-high-contrast: none) {
  *::-ms-backdrop, .cover-wrap {
    min-height: 410px;
  }
  *::-ms-backdrop, .cover-wrap.small {
    height: 193px;
    min-height: auto;
  }
  *::-ms-backdrop, .paragraph--hero .cover-wrap {
    min-height: 350px;
  }
  *::-ms-backdrop, .paragraph--hero-small .cover-wrap {
    min-height: 206px;
    height: auto;
  }
}

File

themes/socialbase/assets/css/hero.css
View source
  1. .cover {
  2. position: relative;
  3. text-align: center;
  4. padding: 0 1rem;
  5. z-index: 2;
  6. }
  7. .cover-img {
  8. background-size: cover;
  9. background-position: 50% 0;
  10. background-repeat: no-repeat;
  11. }
  12. .node-unpublished .cover-img:before {
  13. display: block;
  14. position: absolute;
  15. content: '';
  16. background-color: rgba(85, 85, 85, 0.8);
  17. width: 100%;
  18. left: 0;
  19. right: 0;
  20. top: 0;
  21. bottom: 0;
  22. z-index: 1;
  23. }
  24. .cover-with-canvas {
  25. padding: 40px;
  26. }
  27. .hero__bgimage-overlay {
  28. position: absolute;
  29. top: 0;
  30. left: 0;
  31. bottom: 0;
  32. right: 0;
  33. background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(34, 34, 34, 0.7) 100%);
  34. }
  35. .cover-wrap {
  36. width: 100%;
  37. display: flex;
  38. flex-direction: column;
  39. justify-content: center;
  40. position: relative;
  41. z-index: 2;
  42. min-height: 300px;
  43. align-items: stretch;
  44. }
  45. /* IE11 */
  46. .cover-with-canvas .cover-wrap {
  47. justify-content: space-between;
  48. }
  49. .node-unpublished .status:before {
  50. border-top: 1px solid white;
  51. margin: 5px auto;
  52. width: 40px;
  53. height: 0;
  54. content: '';
  55. display: block;
  56. }
  57. .cover .page-title {
  58. font-weight: 700;
  59. text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  60. text-align: center;
  61. margin: 0 auto;
  62. padding-top: 2rem;
  63. padding-bottom: 1em;
  64. width: 80%;
  65. }
  66. .hero-footer {
  67. padding: 1rem 0;
  68. width: 100%;
  69. }
  70. .hero-footer__text {
  71. margin-top: 10px;
  72. }
  73. .hero-footer__cta {
  74. display: flex;
  75. justify-content: flex-end;
  76. }
  77. .hero-avatar {
  78. box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  79. margin: auto;
  80. width: 128px;
  81. height: 128px;
  82. }
  83. .block-social-profile header {
  84. padding-top: 2rem;
  85. padding-bottom: 1em;
  86. }
  87. .block-social-profile .page-title {
  88. padding-top: 1rem;
  89. }
  90. .block-social-profile .hero-footer {
  91. justify-content: center;
  92. }
  93. .block-social-profile .hero-footer__text {
  94. padding-right: 0;
  95. }
  96. .block-social-profile .hero-footer__cta {
  97. display: flex;
  98. justify-content: flex-end;
  99. padding-top: 1rem;
  100. padding-left: 1rem;
  101. }
  102. .hero-footer-icon {
  103. fill: white;
  104. width: 16px;
  105. height: 16px;
  106. display: inline-block;
  107. vertical-align: middle;
  108. margin-top: -1px;
  109. }
  110. .hero-canvas {
  111. text-align: left;
  112. padding: 2rem;
  113. }
  114. .cover .btn-group {
  115. margin-top: 10px;
  116. }
  117. .hero-action-button {
  118. position: absolute;
  119. top: 1rem;
  120. right: 1rem;
  121. z-index: 3;
  122. }
  123. .hero-form {
  124. padding-bottom: 2rem;
  125. }
  126. .hero-form .form-group {
  127. position: relative;
  128. max-width: 400px;
  129. margin: auto;
  130. }
  131. .hero-form .form-control {
  132. padding: 6px 38px 6px 12px;
  133. max-width: none;
  134. border: 0;
  135. }
  136. .hero-form .form-submit,
  137. .hero-form .search-icon {
  138. width: 38px;
  139. height: 38px;
  140. display: block;
  141. position: absolute;
  142. overflow: hidden;
  143. color: white;
  144. right: 0;
  145. top: 0;
  146. line-height: 38px;
  147. cursor: pointer;
  148. text-align: center;
  149. }
  150. .hero-form .search-icon {
  151. line-height: 38px;
  152. speak: none;
  153. pointer-events: none;
  154. transition: 0.3s;
  155. }
  156. .hero-form .search-icon svg {
  157. width: 24px;
  158. height: 24px;
  159. vertical-align: middle;
  160. }
  161. @media (min-width: 600px) {
  162. .cover-wrap {
  163. min-height: 410px;
  164. }
  165. .cover-wrap.small {
  166. height: 193px;
  167. min-height: auto;
  168. }
  169. .cover-wrap.small .page-title h1 {
  170. font-size: 2rem;
  171. max-height: 70px;
  172. overflow: hidden;
  173. }
  174. .cover-wrap.small > .hero-footer {
  175. position: static;
  176. margin-top: -2.5rem;
  177. }
  178. .cover-wrap > .hero-footer {
  179. position: absolute;
  180. bottom: 0;
  181. }
  182. .cover .page-title {
  183. max-width: 900px;
  184. }
  185. .hero-footer {
  186. display: flex;
  187. align-items: center;
  188. }
  189. .hero-footer__text {
  190. padding-right: 1rem;
  191. flex: 0 0 50%;
  192. max-width: 50%;
  193. margin-left: 25%;
  194. }
  195. .block-social-profile .hero-footer__text {
  196. flex: 0 0 auto;
  197. max-width: unset;
  198. margin-left: 0;
  199. }
  200. }
  201. @media (min-width: 900px) {
  202. .hero-footer__cta {
  203. padding-left: 1rem;
  204. flex: 0 0 25%;
  205. max-width: 25%;
  206. }
  207. .block-social-profile .hero-footer__cta {
  208. padding: 0;
  209. position: absolute;
  210. right: 0;
  211. flex: 0 0 auto;
  212. max-width: unset;
  213. }
  214. .hero-canvas {
  215. max-width: 66.66667%;
  216. }
  217. }
  218. @media all and (-ms-high-contrast: none) {
  219. *::-ms-backdrop, .cover-wrap {
  220. min-height: 410px;
  221. }
  222. *::-ms-backdrop, .cover-wrap.small {
  223. height: 193px;
  224. min-height: auto;
  225. }
  226. *::-ms-backdrop, .paragraph--hero .cover-wrap {
  227. min-height: 350px;
  228. }
  229. *::-ms-backdrop, .paragraph--hero-small .cover-wrap {
  230. min-height: 206px;
  231. height: auto;
  232. }
  233. }