hero.css in Open Social 8.8
.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
- .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;
- }
- }