You are here

hero.css in Open Social 8.2

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

.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 > .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 {
    height: 410px;
  }
  /* IE11 */
}

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