You are here

hero.css in Open Social 8.7

.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: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.1)), to(rgba(34, 34, 34, 0.7)));
  background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(34, 34, 34, 0.7) 100%);
}

.cover-wrap {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
  z-index: 2;
  min-height: 300px;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

/* IE11 */

.cover-with-canvas .cover-wrap {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

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

.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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.hero-avatar {
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
          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 {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

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

.block-social-profile .hero-footer__cta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          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;
  -webkit-transition: 0.3s;
  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;
  }
  .page-title {
    max-width: 900px;
  }
  .hero-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .hero-footer__text {
    padding-right: 1rem;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
            flex: 0 0 50%;
    max-width: 50%;
    margin-left: 25%;
  }
  .block-social-profile .hero-footer__text {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    max-width: unset;
    margin-left: 0;
  }
}

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