Updated MODERN CSS as of November 22, 2019
/*=====================
GENERAL
======================*/
/* fix align classes not working on embedded entities */
.text-align-right {
text-align: right !important;
}
.text-align-left {
text-align: left !important;
}
#main .align-center,
.orbit__container .align-center {
text-align: center;
margin: 0 auto;
}
/* add white space before footer on inside pages*/
.not-front .footer {
margin-top: 3rem;
}
/* map */
.iframeWrapper {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
max-width: 100%;
}
.iframeWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/*======================
BUTTONS
======================*/
/* ADD ARROWS TO BLOCK TITLES and BUTTONS */
/* Optional - Remove if don't like the look */
h3.node__title a {
position: relative;
}
.team-member h3.node__title a::after,
.products-services h3.node__title a::after,
.blog h3.node__title a::after {
content: "›";
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
display: inline-block;
position: absolute;
bottom: -5px;
right: -20px;
transition: all 0.3s ease;
}
.team-member h3.node__title a:hover::after,
.products-services h3 a:hover::after,
.blog h3.node__title a:hover::after {
right: -30px;
}
/* ADD ARROWS TO BUTTONS */
/* Optional */
#edit-submit::after,
.button::after,
.node--read-mode::after,
.button-primary::after {
content: "›";
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
display: inline-block;
padding-left: 20px;
transition: all 0.3s ease;
position: relative;
top: -1px;
}
#edit-submit:hover::after,
.button:hover::after,
.node--read-mode:hover::after,
.button-primary:hover::after {
padding-left: 30px;
}
/*======================
HEADER
=======================*/
/* header within */
.aw-header .header_within {
max-width: 99%;
}
.aw-header .header_within > .grid-container {
max-width: 100%;
}
/*======================
NAVIGATION
=======================*/
.menu-icon::after {
background: white;
box-shadow: 0 7px 0 white,0 14px 0 white;
}
/*navigation*/
[data-block-internal-id="aw_core_visitormainmenu"] .dropdown.menu .is-active > a {
color: white;
}
/* submenu */
[data-block-internal-id="aw_core_visitormainmenu"] .is-dropdown-submenu {
background-color: rgba(0,0,0,0.5)!important;
border: none !important;
}
[data-block-internal-id="aw_core_visitormainmenu"] .menu-item.is-dropdown-submenu-item > a {
color: white;
}
/*======================
BANNERS
=======================*/
/*overlay tint for frontpage banner*/
.path-frontpage .orbit__container .orbit__image:after {
content: "";
display: block;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
background: rgba(0,0,0,0.4);
/* REMOVE ANIMATION IF USING MULTIPLE SLIDER IMAGES*/
animation: brighten 1s ease;
}
/* REMOVE ANIMATION IF USING MULTIPLE SLIDER IMAGES*/
@keyframes brighten {
from {background: rgba(0,0,0,1);}
to {background: rgba(0,0,0,0.4);}
}
@media print, screen and (min-width: 64em){
[data-block-internal-id="core_slider_fullscreen"] .fullscreen-image-slider .orbit__caption {
width: 80%;
}
}
.path-frontpage [data-block-internal-id="core_slider_fullscreen"] .orbit__caption > h1 {
margin-top: 0.5rem;
margin-bottom: 3.5rem;
}
/*fade in landing page captions*/
[data-block-internal-id="core_slider_fullscreen"] .fullscreen-image-slider .orbit__caption {
animation: fadeIn 1.5s ease;
}
/* animate landingpage caption and logo */
#block-core-slider-regular,
[data-block-internal-id="core_slider_fullscreen"] .fullscreen-image-slider article,
[data-block-internal-id="core_slider_fullscreen"] .fullscreen-image-slider h1 {
animation: slideDown 1.5s ease;
position: relative;
}
main,
.footer,
[data-block-internal-id="core_slider_fullscreen"] .fullscreen-image-slider .orbit__caption h4 {
position: relative;
animation: slideUp 1.5s ease;
}
/* banner buttons styles */
[data-block-internal-id="core_slider_fullscreen"] a.button:last-child {
background-color: rgba(255,255,255,0.8);
border: 2px solid rgba(255,255,255,0.8);
color: #2b2b2b;
}
[data-block-internal-id="core_slider_fullscreen"] a.button:last-child:hover {
background-color: white;
border: 2px solid white
}
.not-front .layout-container {
animation: fadeIn 2s ease;
}
@keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
}
@keyframes slideDown {
from {top: -30px;}
to {top: 0;}
}
@keyframes slideUp {
from {bottom: -30px;}
to {bottom: 0;}
}
/*overlay tint for internal banner*/
[data-block-internal-id="core_slider_regular"] .view-mode-slider:after {
content: "";
display: block;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
background: rgba(0,0,0,0.3);
}
@media print, screen and (min-width: 40em){
[data-block-internal-id="core_slider_regular"] .page-top__static-caption {
top: 60%;
}
}
/*======================
INTERNAL PAGES
=======================*/
/* PAGE - BLOG */
/* fix huge featured image*/
@media screen and (min-width: 700px){
.blog--full .field--name-field-featured-image .field--type-image {
max-width: 400px;
float: right;
display: block;
}
}
/* PAGE - CONTACT */
[data-block-internal-id="sitewidecontactform_5"] h2 {
text-align: left;
margin-bottom: 10px;
}
@media screen and (min-width: 40em){
[data-block-internal-id="sitewidecontactform_5"] {
margin-left: 50px;
}
}
@media screen and (max-width: 40em){
[data-block-internal-id="sitewidecontactform_5"] {
margin-top: 50px;
}
[data-block-internal-id="sitewidecontactform_5"] h2 {
font-size: 24px;
}
}
/* FORMS */
input:not([type]), input[type=text], input[type=password], input[type=date], input[type=datetime], input[type=datetime-local], input[type=month], input[type=week], input[type=email], input[type=number], input[type=search], input[type=tel], input[type=time], input[type=url], input[type=color], textarea, fieldset {
border-radius: 5px !important;
box-shadow: none !important;
padding: 1.5rem 1rem !important;
border: 1px solid #ccc;
}
input:not([type]):focus, input[type=text]:focus, input[type=password]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=month]:focus, input[type=week]:focus, input[type=email]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=color]:focus, textarea:focus {
border: 1px solid #2d2d2d;
}
/*=======================
FOOTER
========================*/
.footer .social-media-icon {
font-size: 2rem;
}
/* FOOTER CTA */
/* make sure the data-block-internal-id is correct. */
[data-block-internal-id="footercta"] .block--custom__row {
padding-bottom: 0;
}
/* FOOTER - make custom footer because dawn footer cell widths are not equal */
[data-block-internal-id="modernfooter"] .cell .field,
[data-block-internal-id="modernfooter"] .cell .field {
text-align: center;
display: block !important;
}
/* copyright bar */
.path-frontpage .bottom-bar {
position: fixed;
width: 100%;
bottom: 0;
left: 0;
background-color: rgba(0,0,0,0.75);
}
.bottom-bar {
background: #2a2a2a;
}
/*=======================
BUG FIXES
========================*/
/* fix blog category page layout when more than one blog exists */
.path-taxonomy #block-mainpagecontent .grid-x > .blog {
margin-bottom: 1rem;
}