1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270 |
- /* !Block styles */
- .entry .entry-content > *,
- .entry .entry-summary > * {
- margin: $size__vertical-spacing-unit 0;
- max-width: 100%;
- @include postContentMaxWidth();
- @include media(tablet) {
- margin: $size__vertical-spacing-unit auto;
- }
- > *:first-child {
- margin-top: 0;
- }
- > *:last-child {
- margin-bottom: 0;
- }
- &.alignwide {
- margin-left: auto;
- margin-right: auto;
- clear: both;
- @include media(tablet) {
- width: 100%;
- max-width: 100%;
- }
- }
- &.alignfull {
- position: relative;
- left: -#{$size__spacing-unit };
- width: calc( 100% + (2 * #{$size__spacing-unit}));
- max-width: calc( 100% + (2 * #{$size__spacing-unit}));
- clear: both;
- @include media(tablet) {
- margin-top: $size__vertical-spacing-unit;
- margin-bottom: $size__vertical-spacing-unit;
- left: calc( -12.5% - 75px );
- width: calc( 125% + 150px );
- max-width: calc( 125% + 150px );
- }
- }
- &.alignleft {
- /*rtl:ignore*/
- float: left;
- max-width: calc(5 * (100vw / 12));
- margin-top: 0;
- margin-left: 0;
- /*rtl:ignore*/
- margin-right: $size__spacing-unit;
- @include media(tablet) {
- max-width: calc(4 * (100vw / 12));
- /*rtl:ignore*/
- margin-right: calc(2 * #{$size__spacing-unit});
- }
- }
- &.alignright {
- /*rtl:ignore*/
- float: right;
- max-width: calc(5 * (100vw / 12));
- margin-top: 0;
- margin-right: 0;
- /*rtl:ignore*/
- margin-left: $size__spacing-unit;
- @include media(tablet) {
- max-width: calc(4 * (100vw / 12));
- margin-right: 0;
- /*rtl:ignore*/
- margin-left: calc(2 * #{$size__spacing-unit});
- }
- }
- &.aligncenter {
- margin-left: auto;
- margin-right: auto;
- @include postContentMaxWidth();
- }
- }
- /*
- * Make sure the first block has margin-top: 0
- */
- .entry:not(.has-post-thumbnail) .entry-content > :first-child {
- margin-top: 0;
- }
- /*
- * Unset nested content selector styles
- * - Prevents layout styles from cascading too deeply
- * - helps with plugin compatibility
- */
- .entry .entry-content,
- .entry .entry-summary {
- .entry-content,
- .entry-summary,
- .entry {
- margin: inherit;
- max-width: inherit;
- padding: inherit;
- @include media(tablet) {
- margin: inherit;
- max-width: inherit;
- padding: inherit;
- }
- }
- }
- .entry .entry-content {
- & > h1,
- & > h2,
- & > h3,
- & > h4,
- & > h5,
- & > h6 {
- margin-top: $size__vertical-spacing-unit;
- margin-bottom: $size__vertical-spacing-unit;
- text-align: center;
- }
- //! Paragraphs
- p.has-background {
- padding: 20px 30px;
- }
- //! Audio
- .wp-block-audio {
- width: 100%;
- audio {
- width: 100%;
- }
- &.alignleft audio,
- &.alignright audio {
- max-width: (0.33 * $mobile_width);
- @include media(tablet) {
- max-width: (0.5 * $tablet_width);
- }
- @include media(wide) {
- max-width: (0.33 * $desktop_width);
- }
- }
- }
- //! Video
- .wp-block-video {
- video {
- width: 100%;
- }
- }
- //! Button
- .wp-block-button {
- .wp-block-button__link {
- @include button-transition;
- border: none;
- font-size: $font__size-sm;
- font-family: $font__heading;
- font-weight: 600;
- line-height: $font__line-height-heading;
- box-sizing: border-box;
- font-size: $font__size-sm;
- text-decoration: none;
- padding: ($size__spacing-unit * .76) $size__spacing-unit;
- outline: none;
- outline: none;
- &:not(.has-background) {
- background-color: $color__background-button;
- }
- &:not(.has-text-color) {
- color: $color__background-body;
- }
- &:hover {
- color: $color__background-body;
- background: $color__background-button-hover;
- cursor: pointer;
- }
- &:focus {
- color: $color__background-body;
- background: $color__background-button-hover;
- outline: thin dotted;
- outline-offset: -4px;
- }
- }
- &:not(.is-style-squared) .wp-block-button__link {
- border-radius: 5px;
- }
- &.is-style-outline .wp-block-button__link,
- &.is-style-outline .wp-block-button__link:focus,
- &.is-style-outline .wp-block-button__link:active {
- @include button-all-transition;
- border-width: 2px;
- border-style: solid;
- &:not(.has-background) {
- background: transparent;
- }
- &:not(.has-text-color) {
- color: $color__background-button;
- border-color: currentColor;
- }
- }
- &.is-style-outline .wp-block-button__link:hover {
- color: $color__text-main;
- border-color: $color__background-button-hover;
- &:not(.has-background) {
- color: $color__background-button-hover;
- }
- }
- }
- //! Latest posts, categories, archives
- .wp-block-archives,
- .wp-block-categories,
- .wp-block-latest-posts {
- padding: 0;
- list-style: none;
- li {
- color: $color__text-light;
- font-family: $font__heading;
- font-size: calc(#{$font__size_base} * #{$font__size-ratio});
- line-height: $font__line-height-heading;
- padding-bottom: ( .75 * $size__spacing-unit );
- &.menu-item-has-children,
- &:last-child {
- padding-bottom: 0;
- }
- a {
- text-decoration: none;
- }
- }
- }
- .wp-block-archives,
- .wp-block-categories {
- &.aligncenter {
- text-align: center;
- }
- }
- //! Latest categories
- .wp-block-categories {
- ul {
- padding-top: ( .75 * $size__spacing-unit );
- }
- li ul {
- list-style: none;
- padding-left: 0;
- }
- @include nestedSubMenuPadding();
- }
- //! Latest posts grid view
- .wp-block-latest-posts.is-grid {
- li {
- border-top: 2px solid $color__border;
- padding-top: (1 * $size__spacing-unit);
- margin-bottom: $size__vertical-spacing-unit;
- a {
- &:after {
- content: '';
- }
- }
- &:last-child {
- margin-bottom: auto;
- a:after {
- content: '';
- }
- }
- }
- }
- //! Latest preformatted text
- .wp-block-preformatted {
- font-size: $font__size-xs;
- line-height: 1.8;
- padding: $size__spacing-unit;
- }
- //! Verse
- .wp-block-verse {
- font-family: $font__body;
- font-size: $font__size_base;
- line-height: 1.8;
- }
- //! Paragraphs
- .has-drop-cap {
- &:not(:focus):first-letter {
- font-family: $font__heading;
- font-size: $font__size-xxxl;
- line-height: 1;
- font-weight: bold;
- margin: 0 0.25em 0 0;
- }
- }
- //! Pullquote
- .wp-block-pullquote {
- border-color: transparent;
- border-width: 2px;
- padding: $size__spacing-unit;
- blockquote {
- color: $color__text-main;
- border: none;
- margin-top: calc(3 * #{$size__vertical-spacing-unit});
- margin-bottom: calc(3.33 * #{$size__vertical-spacing-unit});
- margin-right: 0;
- padding-left: 0;
- }
- p {
- font-size: $font__size-lg;
- font-style: italic;
- line-height: 1.3;
- margin-bottom: 0.5em;
- margin-top: 0.5em;
- em {
- font-style: normal;
- }
- @include media(tablet) {
- font-size: $font__size-xl;
- }
- }
- cite {
- display: inline-block;
- font-family: $font__heading;
- line-height: 1.6;
- text-transform: none;
- color: $color__text-light;
- /*
- * This requires a rem-based font size calculation instead of our normal em-based one,
- * because the cite tag sometimes gets wrapped in a p tag. This is equivalent to $font-size_xs.
- */
- font-size: calc(1rem / (1.25 * #{$font__size-ratio}));
- }
- &.alignleft,
- &.alignright {
- width: 100%;
- padding: 0;
- blockquote {
- margin: $size__vertical-spacing-unit 0;
- padding: 0;
- text-align: left;
- max-width: 100%;
- p:first-child {
- margin-top: 0;
- }
- }
- }
- &.is-style-solid-color {
- background-color: $color__link;
- padding-left: 0;
- padding-right: 0;
- @include media(tablet) {
- padding-left: 10%;
- padding-right: 10%;
- }
- p {
- font-size: $font__size-lg;
- line-height: 1.3;
- margin-bottom: 0.5em;
- margin-top: 0.5em;
- @include media(tablet) {
- font-size: $font__size-xl;
- }
- }
- a {
- color: $color__background-body;
- }
- cite {
- color: inherit;
- }
- blockquote {
- max-width: 100%;
- color: $color__background-body;
- padding-left: 0;
- margin-left: $size__spacing-unit;
- margin-right: $size__spacing-unit;
- &.has-text-color p,
- &.has-text-color a,
- &.has-primary-color,
- &.has-secondary-color,
- &.has-dark-gray-color,
- &.has-light-gray-color,
- &.has-white-color {
- color: inherit;
- }
- @include media(tablet) {
- margin-left: 0;
- margin-right: 0;
- }
- }
- &.alignright,
- &.alignleft {
- @include media(tablet) {
- padding: $size__spacing-unit calc(2 * #{$size__spacing-unit});
- }
- }
- &.alignfull {
- @include media(tablet) {
- padding-left: calc(10% + 58px + (2 * #{$size__spacing-unit}));
- padding-right: calc(10% + 58px + (2 * #{$size__spacing-unit}));
- }
- }
- }
- }
- //! Blockquote
- .wp-block-quote {
- &:not(.is-large),
- &:not(.is-style-large) {
- border-color: $color__link;
- border-width: 2px;
- padding-top: 0;
- padding-bottom: 0;
- }
- p {
- font-size: 1em;
- font-style: normal;
- line-height: 1.8;
- }
- cite {
- color: $color__text-light;
- /*
- * This requires a rem-based font size calculation instead of our normal em-based one,
- * because the cite tag sometimes gets wrapped in a p tag. This is equivalent to $font-size_xs.
- */
- font-size: calc(1rem / (1.25 * #{$font__size-ratio}));
- }
- &.is-large,
- &.is-style-large {
- margin: $size__vertical-spacing-unit auto;
- padding: 0;
- border-left: none;
- p {
- font-size: $font__size-lg;
- line-height: 1.4;
- font-style: italic;
- }
- cite,
- footer {
- /*
- * This requires a rem-based font size calculation instead of our normal em-based one,
- * because the cite tag sometimes gets wrapped in a p tag. This is equivalent to $font-size_xs.
- */
- font-size: calc(1rem / (1.25 * #{$font__size-ratio}));
- }
- @include media(tablet) {
- margin: $size__vertical-spacing-unit auto;
- padding: $size__spacing-unit 0;
- p {
- font-size: $font__size-lg;
- }
- }
- }
- }
- //! Image
- .wp-block-image {
- max-width: 100%;
- img {
- display: block;
- }
- &.alignfull img {
- width: 100vw;
- max-width: calc( 100% + (2 * #{$size__spacing-unit}));
- @include media(tablet) {
- max-width: calc( 125% + 150px );
- margin-left: auto;
- margin-right: auto;
- }
- }
- }
- //! Cover Image
- .wp-block-cover-image,
- .wp-block-cover {
- position: relative;
- min-height: 430px;
- padding: $size__spacing-unit;
- @include media(tablet) {
- padding: $size__spacing-unit 10%;
- min-height: 60vh;
- }
- .wp-block-cover__inner-container {
- padding: 0;
- color: #fff;
- width: 100%;
- a {
- color: inherit;
- }
- @include media(tablet) {
- max-width: 100%;
- margin-left: auto;
- margin-right: auto;
- }
- }
- h1, h2, h3, h4, h5, h6 {
- font-weight: 700;
- &.has-text-align-left {
- text-align: left;
- }
- &.has-text-align-center {
- text-align: center;
- }
- &.has-text-align-right {
- text-align: right;
- }
- }
- h1 {
- font-size: $font__size-xl;
- }
- .wp-block-cover-image-text,
- .wp-block-cover-text,
- h2 {
- font-size: $font__size-lg;
- font-weight: 700;
- margin: 1rem 0;
- max-width: inherit;
- padding: 0;
- text-align: inherit;
- }
- h3 {
- font-size: $font__size-md;
- }
- h4 {
- font-size: $font__size_base;
- }
- h5 {
- font-size: $font__size-sm;
- }
- h6 {
- font-size: $font__size-xs;
- }
- @include media(tablet) {
- h1 {
- font-size: $font__size-xxl;
- }
- .wp-block-cover-image-text,
- .wp-block-cover-text,
- h2 {
- font-size: $font__size-xl;
- }
- h3 {
- font-size: $font__size-lg;
- }
- h4 {
- font-size: $font__size-md;
- }
- h5 {
- font-size: $font__size_base;
- }
- h6 {
- font-size: $font__size_sm;
- }
- }
- &.alignleft,
- &.alignright {
- width: 100%;
- @include media(tablet) {
- padding: $size__spacing-unit calc(2 * #{$size__spacing-unit});
- }
- }
- &.alignwide {
- .wp-block-cover__inner-container {
- @include postContentMaxWidth();
- }
- @include media(tablet) {
- .wp-block-cover__inner-container {
- padding: 0;
- }
- }
- }
- &.alignfull {
- @include media(tablet) {
- padding-left: calc(10% + 58px + (2 * #{$size__spacing-unit}));
- padding-right: calc(10% + 58px + (2 * #{$size__spacing-unit}));
- .wp-block-cover__inner-container {
- padding: 0;
- }
- .wp-block-cover-image-text,
- .wp-block-cover-text,
- h1 {
- font-size: $font__size-xxxxl;
- }
- h2 {
- font-size: $font__size-xxxl;
- }
- }
- }
- }
- //! Galleries
- .wp-block-gallery {
- list-style-type: none;
- padding-left: 0;
- .blocks-gallery-image:last-child,
- .blocks-gallery-item:last-child {
- margin-bottom: 16px;
- }
- figcaption a {
- color: #fff;
- }
- }
- //! Captions
- .wp-block-audio figcaption,
- .wp-block-video figcaption,
- .wp-block-image figcaption,
- .wp-block-gallery .blocks-gallery-image figcaption,
- .wp-block-gallery .blocks-gallery-item figcaption {
- font-size: $font__size-xs;
- font-family: $font__heading;
- line-height: $font__line-height-pre;
- margin: 0;
- padding: ( $size__spacing-unit * .5 );
- text-align: center;
- }
- .wp-block-audio figcaption,
- .wp-block-video figcaption,
- .wp-block-image figcaption {
- color: $color__text-light;
- }
- //! Separator
- .wp-block-separator,
- hr {
- background-color: $color__background-hr;
- border: 0;
- height: 2px;
- margin-bottom: $size__vertical-spacing-unit;
- margin-top: $size__vertical-spacing-unit;
- max-width: 5em;
- text-align: left;
- &.is-style-wide {
- max-width: 100%;
- @include postContentMaxWidth();
- }
- &.is-style-dots {
- max-width: 100%;
- @include postContentMaxWidth();
- background-color: inherit;
- border: inherit;
- height: inherit;
- text-align: center;
- &:before {
- color: $color__background-hr;
- font-size: $font__size-lg;
- letter-spacing: $font__size-sm;
- padding-left: $font__size-sm;
- }
- }
- }
- //! Spacer
- .wp-block-spacer {
- &.desktop-only {
- display: none;
- @include media(tablet) {
- display: block;
- }
- }
- }
- //! Twitter Embed
- .wp-block-embed-twitter {
- word-break: break-word;
- }
- //! Table
- .wp-block-table {
- th,
- td {
- border-color: $color__text-light;
- }
- }
- //! File
- .wp-block-file {
- font-family: $font__heading;
- .wp-block-file__button {
- display: table;
- @include button-transition;
- border: none;
- border-radius: 5px;
- background: $color__background-button;
- font-size: $font__size-base;
- font-family: $font__heading;
- font-weight: 600;
- line-height: $font__line-height-heading;
- text-decoration: none;
- padding: ($size__spacing-unit * .75) $size__spacing-unit;
- color: $color__background-body;
- margin-left: 0;
- margin-top: calc(0.75 * #{$size__vertical-spacing-unit});
- @include media(desktop) {
- font-size: $font__size-base;
- padding: ($size__spacing-unit * .875) ($size__spacing-unit * 1.5);
- }
- &:hover {
- background: $color__background-button-hover;
- cursor: pointer;
- }
- &:focus {
- background: $color__background-button-hover;
- outline: thin dotted;
- outline-offset: -4px;
- }
- }
- }
- //! Code
- .wp-block-code {
- border-radius: 0;
- color: $color__text-main;
- code {
- font-size: $font__size-md;
- white-space: pre-wrap;
- word-break: break-word;
- }
- }
- //! Media & Text
- .wp-block-media-text {
- background: $color__background-screen;
- .wp-block-media-text__content {
- > :first-child {
- margin-top: 0.88889rem;
- }
- > :last-child {
- margin-bottom: 0.88889rem;
- }
- }
- & + .wp-block-media-text {
- margin-top: -$size__vertical-spacing-unit;
- }
- &.has-media-on-the-right.is-stacked-on-mobile {
- .wp-block-media-text__media {
- grid-row: 1;
- }
- .wp-block-media-text__content {
- grid-row: 2;
- }
- }
- @include media(mobile) {
- &.has-media-on-the-right.is-stacked-on-mobile {
- .wp-block-media-text__content {
- grid-row: 1;
- }
- }
- }
- .wp-block-media-text__content {
- h1, h2, h3, h4, h5, h6 {
- text-align: left;
- }
- a,
- a:hover {
- color: inherit;
- }
- @include media(desktop) {
- border-left: 2px solid rgba(255,255,255,0.15);
- margin-left: 7.5%;
- margin-right: 7.5%;
- padding-left: 1rem;
- padding-right: 1rem;
- }
- }
- &.alignfull.is-stacked-on-mobile .wp-block-media-text__content {
- padding: 0 1rem;
- @include media(mobile) {
- padding: 0 8%;
- }
- @include media(desktop) {
- border-left: 2px solid rgba(255,255,255,0.15);
- margin-left: 7.5%;
- margin-right: 7.5%;
- padding-left: 1rem;
- padding-right: 1rem;
- }
- }
- @include media(tablet) {
- &.alignfull + .wp-block-media-text {
- margin-top: -$size__vertical-spacing-unit;
- }
- }
- // Temporary fix for IE 11 for this issue: https://github.com/WordPress/gutenberg/issues/11577
- @media all and (-ms-high-contrast:none) {
- &:after {
- display: table;
- content: "";
- clear: both;
- }
- figure {
- float: left;
- width: 50%;
- }
- .wp-block-media-text__content {
- float: right;
- width: 50%;
- }
- &.has-media-on-the-right figure {
- float: right;
- }
- &.has-media-on-the-right .wp-block-media-text__content {
- float: left;
- }
- }
- }
- //! Columns
- .wp-block-columns {
- &.alignfull {
- padding-left: $size__spacing-unit;
- padding-right: $size__spacing-unit;
- }
- @include media(tabletalt) {
- .wp-block-column {
- margin-left: #{0.5 * $size__spacing-unit};
- margin-right: #{0.5 * $size__spacing-unit};
- &:first-child {
- margin-left: 0;
- }
- &:last-child {
- margin-right: 0;
- }
- }
- .wp-block-column > * {
- &:first-child {
- margin-top: 0;
- }
- &:last-child {
- margin-bottom: 0;
- }
- }
- &.alignfull {
- padding-left: calc(2 * #{$size__spacing-unit});
- padding-right: calc(2 * #{$size__spacing-unit});
- }
- }
- }
- //! Latest Comments
- .wp-block-latest-comments {
- padding-left: 0;
- .wp-block-latest-comments__comment-meta {
- font-family: $font__heading;
- .wp-block-latest-comments__comment-date {
- color: $color__text-light;
- font-weight: normal;
- }
- }
- .wp-block-latest-comments__comment,
- .wp-block-latest-comments__comment-date,
- .wp-block-latest-comments__comment-excerpt p {
- font-size: inherit;
- }
- &.has-avatars {
- }
- &.has-dates {
- .wp-block-latest-comments__comment-date {
- font-size: $font__size-xs;
- }
- }
- &.has-excerpts {
- }
- }
- //! Font Sizes
- .has-small-font-size {
- font-size: $font__size-sm;
- }
- .has-normal-font-size {
- font-size: $font__size-md;
- }
- .has-large-font-size {
- font-size: $font__size-lg;
- }
- .has-huge-font-size {
- font-size: $font__size-xl;
- }
- //! Custom background colors
- .has-primary-background-color,
- .has-secondary-background-color,
- .has-white-background-color,
- .has-light-gray-background-color {
- // Use dark gray text against these background by default.
- color: $color__background-body;
- p,
- h1,
- h2,
- h3,
- h4,
- h5,
- h6,
- a {
- color: $color__background-body;
- }
- }
- .has-dark-gray-background-color {
- color: $color__text-main;
- // Use white text against this backgrounds by default.
- p,
- h1,
- h2,
- h3,
- h4,
- h5,
- h6,
- a {
- color: $color__text-main;
- }
- }
- .has-primary-background-color,
- .wp-block-pullquote.is-style-solid-color.has-primary-background-color {
- background-color: $color__link;
- }
- .has-secondary-background-color,
- .wp-block-pullquote.is-style-solid-color.has-secondary-background-color {
- background-color: $color__border-link-hover;
- }
- .has-dark-gray-background-color,
- .wp-block-pullquote.is-style-solid-color.has-dark-gray-background-color {
- background-color: $color__background-screen;
- }
- .has-light-gray-background-color,
- .wp-block-pullquote.is-style-solid-color.has-light-gray-background-color {
- background-color: $color__text-light;
- }
- .has-white-background-color,
- .wp-block-pullquote.is-style-solid-color.has-white-background-color {
- background-color: #FFF;
- }
- //! Custom foreground colors
- .has-primary-color,
- .wp-block-pullquote.is-style-solid-color blockquote.has-primary-color,
- .wp-block-pullquote.is-style-solid-color blockquote.has-primary-color p {
- color: $color__link;
- }
- .has-secondary-color,
- .wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color,
- .wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color p {
- color: $color__border-link-hover;
- }
- .has-dark-gray-color,
- .wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color,
- .wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color p {
- color: $color__background-screen;
- }
- .has-light-gray-color,
- .wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color,
- .wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color p {
- color: $color__text-light;
- }
- .has-white-color,
- .wp-block-pullquote.is-style-solid-color blockquote.has-white-color {
- color: #FFF;
- }
- //! Posts List
- .a8c-posts-list-item__title,
- .a8c-posts-list-item__meta {
- a {
- text-decoration: none;
- }
- }
- .a8c-posts-list__view-all {
- text-decoration: none;
- }
- .a8c-posts-list-item__title {
- a {
- color: inherit;
- &:hover,
- &:focus {
- color: $color__text-hover;
- }
- }
- }
- .a8c-posts-list-item__meta {
- a {
- color: $color__text-light;
- &:hover,
- &:focus {
- color: $color__link;
- }
- }
- .a8c-posts-list-item__edit-link {
- a {
- color: $color__background-body;
- }
- }
- }
- .a8c-posts-list {
- text-align: center;
- }
- .a8c-posts-list__item:not(:first-child) {
- margin-top: calc(6 * #{$size__spacing-unit});
- }
- .a8c-posts-list-item__featured {
- span {
- background: $color__background-button;
- color: $color__background-body;
- display: inline-block;
- font-size: $font__size-xxs;
- font-weight: bold;
- line-height: 1;
- padding: .25rem;
- text-transform: uppercase;
- z-index: 1;
- }
- }
- .a8c-posts-list-item__post-thumbnail {
- margin-bottom: $size__vertical-spacing-unit;
- img {
- display: block;
- }
- }
- .a8c-posts-list-item__title {
- font-size: $font__size-lg;
- margin: 0;
- @include media(tablet) {
- font-size: $font__size-xl;
- }
- }
- .a8c-posts-list-item__meta {
- color: $color__text-light;
- font-size: $font__size-xxs;
- }
- .a8c-posts-list-item__author {
- margin-right: calc(.5 * #{$size__spacing-unit});
- }
- .a8c-posts-list-item__edit-link {
- @include button-transition;
- background: $color__background-button;
- border-radius: 3px;
- font-family: $font__heading;
- font-weight: 600;
- padding: .05rem .4rem;
- &:hover,
- &:focus {
- background: $color__background-button-hover;
- cursor: pointer;
- }
- }
- .a8c-posts-list-item__excerpt {
- @include postContentMaxWidth();
- margin: 0 auto;
- text-align: left;
- p {
- margin: $size__vertical-spacing-unit 0;
- }
- }
- .a8c-posts-list__view-all {
- @include button-transition;
- background: $color__background-button;
- border: none;
- border-radius: 5px;
- box-sizing: border-box;
- color: $color__background-body;
- display: inline-block;
- font-family: $font__heading;
- font-size: $font__size-sm;
- font-weight: 600;
- line-height: $font__line-height-heading;
- margin-top: calc(6 * #{$size__spacing-unit} - #{$size__vertical-spacing-unit});
- outline: none;
- padding: ( $size__spacing-unit * .76 ) $size__spacing-unit;
- vertical-align: bottom;
- &:hover {
- background: $color__background-button-hover;
- cursor: pointer;
- }
- &:visited {
- color: $color__background-body;
- text-decoration: none;
- }
- &:focus {
- background: $color__background-button-hover;
- outline: thin dotted;
- outline-offset: -4px;
- }
- }
- }
|