12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205 |
- /* !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 + 1rem );
- width: calc( 125% + 150px );
- max-width: calc( 125% + 150px - 2rem );
- }
- }
- &.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 {
- text-align: center;
- margin-top: $size__vertical-spacing-unit;
- margin-bottom: $size__vertical-spacing-unit;
- }
- //! 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__ui;
- line-height: $font__line-height-heading;
- box-sizing: border-box;
- font-weight: bold;
- 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: white;
- }
- &:not(.has-background):hover,
- &:hover {
- color: white;
- background-color: $color__background-button-hover;
- cursor: pointer;
- }
- &:focus {
- color: white;
- background-color: $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: white;
- border-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});
- font-weight: bold;
- 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;
- }
- }
- }
- //! 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: $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: #{1.7 * $font__size-xxxl};
- line-height: 1;
- font-weight: normal;
- 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-left: 0;
- padding: 0;
- text-align: left;
- max-width: 100%;
- }
- }
- &.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: calc(100% - (2 * #{$size__spacing-unit}));
- color: $color__background-body;
- padding-left: 0;
- margin-left: $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;
- }
- }
- &.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 {
- /*
- * 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 {
- img {
- display: block;
- }
- &.alignleft,
- &.alignright {
- max-width: 100%;
- }
- &.alignfull img {
- width: 100vw;
- @include media(tablet) {
- margin-left: auto;
- margin-right: auto;
- }
- }
- }
- //! Cover Image
- .wp-block-cover-image,
- .wp-block-cover {
- position: relative;
- min-height: 420px;
- padding: $size__spacing-unit;
- @include media(tablet) {
- min-height: 560px;
- padding: $size__spacing-unit 10%;
- }
- & + .wp-block-cover:not(.alignleft):not(.alignrights),
- & + .wp-block-cover-image:not(.alignleft):not(.alignrights) {
- margin-top: $size__vertical-spacing-unit;
- }
- .wp-block-cover__inner-container {
- color: #fff;
- -ms-hyphens: auto;
- -moz-hyphens: auto;
- -webkit-hyphens: auto;
- hyphens: auto;
- @include media(tablet) {
- max-width: 100%;
- }
- a {
- color: inherit;
- }
- }
- h1 {
- font-size: $font__size-xl;
- @include media(tablet) {
- font-size: $font__size-xxl;
- }
- }
- .wp-block-cover-image-text,
- .wp-block-cover-text,
- h2 {
- font-size: $font__size-lg;
- margin: inherit;
- max-width: inherit;
- padding: 0;
- text-align: inherit;
- @include media(tablet) {
- font-size: $font__size-xl;
- }
- }
- h2 {
- &.has-text-align-left {
- text-align: left;
- }
- &.has-text-align-center {
- text-align: center;
- }
- &.has-text-align-right {
- text-align: right;
- }
- }
- h3 {
- font-size: $font__size-md;
- @include media(tablet) {
- font-size: $font__size-lg;
- }
- }
- h4 {
- font-size: $font__size_base;
- @include media(tablet) {
- font-size: $font__size-md;
- }
- }
- h5 {
- font-size: $font__size-sm;
- @include media(tablet) {
- font-size: $font__size_base;
- }
- }
- h6 {
- font-size: $font__size-xs;
- @include media(tablet) {
- font-size: $font__size-sm;
- }
- }
- &.has-left-content {
- .wp-block-cover__inner-container {
- text-align: left;
- }
- }
- &.has-right-content {
- .wp-block-cover__inner-container {
- text-align: right;
- }
- }
- &.alignleft,
- &.alignright {
- width: 100%;
- @include media(tablet) {
- padding: $size__spacing-unit;
- }
- }
- &.alignfull {
- .wp-block-cover__inner-container {
- @include postContentMaxWidth();
- }
- @include media(tablet) {
- padding-left: calc(10% + 58px + #{2 * $size__spacing-unit});
- padding-right: calc(10% + 58px + #{2 * $size__spacing-unit});
- left: calc( -12.5% - 75px );
- width: calc( 125% + 150px );
- max-width: calc( 125% + 150px );
- .wp-block-cover__inner-container {
- padding: 0;
- max-width: 100%;
- }
- }
- }
- }
- //! Galleries
- .wp-block-gallery {
- list-style-type: none;
- padding-left: 0;
- .blocks-gallery-image:last-child,
- .blocks-gallery-item:last-child {
- margin-bottom: 16px;
- }
- }
- //! 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;
- }
- //! Separator
- .wp-block-separator,
- hr {
- background-color: #f1f1f1;
- border: 0;
- height: 2px;
- margin-bottom: $size__vertical-spacing-unit;
- margin-left: auto;
- margin-top: $size__vertical-spacing-unit;
- margin-right: auto;
- max-width: 5em;
- text-align: center;
- &.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__text-light;
- font-size: $font__size-lg;
- letter-spacing: $font__size-sm;
- padding-left: $font__size-sm;
- }
- }
- /* Remove duplicate rule-line when a separator
- * is followed by an H1, or H2 */
- & + h1,
- & + h2 {
- &:before {
- display: none;
- }
- }
- }
- //! 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__ui;
- line-height: $font__line-height-heading;
- text-decoration: none;
- font-weight: bold;
- padding: ($size__spacing-unit * .75) $size__spacing-unit;
- color: #fff;
- 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: $color__background-button-hover;
- cursor: pointer;
- }
- &:focus {
- background-color: $color__background-button-hover;
- outline: thin dotted;
- outline-offset: -4px;
- }
- }
- }
- //! Code
- .wp-block-code {
- border-radius: 0;
- 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 {
- margin-top: -$size__vertical-spacing-unit;
- }
- a {
- color: inherit;
- }
- .wp-block-media-text__content > :first-child {
- margin-top: 0.88889rem;
- }
- .wp-block-media-text__content > :last-child {
- margin-bottom: 0.88889rem;
- }
- &.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;
- }
- }
- }
- &.alignfull {
- .wp-block-media-text__content {
- padding: 0 1rem;
- }
- @include media(tablet) {
- left: calc( -12.5% - 75px );
- max-width: calc( 125% + 150px );
- .wp-block-media-text__content {
- padding: 0 8%;
- }
- }
- }
- // 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;
- font-weight: bold;
- .wp-block-latest-comments__comment-date {
- 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 {
- }
- }
- //! Custom background colors
- .has-primary-background-color,
- .has-secondary-background-color,
- .has-dark-gray-background-color,
- .has-light-gray-background-color {
- // Use white text against these backgrounds by default.
- color: $color__background-body;
- p,
- h1,
- h2,
- h3,
- h4,
- h5,
- h6,
- a {
- color: $color__background-body;
- }
- }
- .has-white-background-color {
- color: $color__text-main;
- // Use dark gray text against this background 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__text-main;
- }
- .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__text-main;
- }
- .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 a,
- .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: #fff;
- 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;
- font-weight: 500;
- }
- .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__ui;
- font-weight: 700;
- 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__ui;
- font-size: $font__size-sm;
- font-weight: 700;
- 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;
- }
- }
- }
|