Fix before and after selectors

This commit is contained in:
Jeremy Thomas
2018-04-08 19:08:39 +01:00
parent 292fd8ac4f
commit 8baa6cc6dc
8 changed files with 60 additions and 60 deletions

View File

@@ -49,7 +49,7 @@
color: $text-strong color: $text-strong
display: inline display: inline
font-weight: $weight-bold font-weight: $weight-bold
&:after &::after
content: "" content: ""
.default-description .default-description
display: inline display: inline

View File

@@ -3,7 +3,7 @@
.bd-snippet .bd-snippet
border: 1px solid $yellow border: 1px solid $yellow
position: relative position: relative
&:before &::before
background: $yellow background: $yellow
border-radius: $radius $radius 0 0 border-radius: $radius $radius 0 0
bottom: 100% bottom: 100%
@@ -150,14 +150,14 @@ $structure-invert: $danger-invert
border-color: $structure border-color: $structure
border-radius: $radius border-radius: $radius
padding: 1.5rem padding: 1.5rem
&:before &::before
background: $structure background: $structure
color: $structure-invert color: $structure-invert
content: "Structure" content: "Structure"
.bd-structure-item .bd-structure-item
position: relative position: relative
&:before &::before
+overlay +overlay
background: rgba($black, 0.7) background: rgba($black, 0.7)
background: $background background: $background
@@ -165,7 +165,7 @@ $structure-invert: $danger-invert
content: "" content: ""
display: block display: block
z-index: 1 z-index: 1
&:after &::after
+overlay +overlay
align-items: center align-items: center
content: attr(title) content: attr(title)
@@ -177,7 +177,7 @@ $structure-invert: $danger-invert
z-index: 2 z-index: 2
&.bd-is-structure-container &.bd-is-structure-container
padding: 1.5rem 0.75rem 0.75rem padding: 1.5rem 0.75rem 0.75rem
&:after &::after
align-items: flex-start align-items: flex-start
justify-content: flex-start justify-content: flex-start
padding: 0.5rem 0.75rem padding: 0.5rem 0.75rem

View File

@@ -61,7 +61,7 @@
width: 20px; width: 20px;
} }
.delete:before, .modal-close:before, .delete:after, .modal-close:after { .delete::before, .modal-close::before, .delete::after, .modal-close::after {
background-color: white; background-color: white;
content: ""; content: "";
display: block; display: block;
@@ -72,12 +72,12 @@
transform-origin: center center; transform-origin: center center;
} }
.delete:before, .modal-close:before { .delete::before, .modal-close::before {
height: 2px; height: 2px;
width: 50%; width: 50%;
} }
.delete:after, .modal-close:after { .delete::after, .modal-close::after {
height: 50%; height: 50%;
width: 2px; width: 2px;
} }
@@ -117,7 +117,7 @@
width: 32px; width: 32px;
} }
.button.is-loading:after, .select.is-loading::after, .control.is-loading::after, .loader, .intro-spinner::before { .button.is-loading::after, .select.is-loading::after, .control.is-loading::after, .loader, .intro-spinner::before {
animation: spinAround 500ms infinite linear; animation: spinAround 500ms infinite linear;
border: 2px solid #dbdbdb; border: 2px solid #dbdbdb;
border-radius: 290486px; border-radius: 290486px;
@@ -131,7 +131,7 @@
} }
.is-overlay, .image.is-square img, .image.is-1by1 img, .image.is-5by4 img, .image.is-4by3 img, .image.is-3by2 img, .image.is-5by3 img, .image.is-16by9 img, .image.is-2by1 img, .image.is-3by1 img, .image.is-4by5 img, .image.is-3by4 img, .image.is-2by3 img, .image.is-3by5 img, .image.is-9by16 img, .image.is-1by2 img, .image.is-1by3 img, .modal, .modal-background, .hero-video, .intro-spinner, .intro-shadow, .bd-article-overlay, .bd-article-icon, .is-overlay, .image.is-square img, .image.is-1by1 img, .image.is-5by4 img, .image.is-4by3 img, .image.is-3by2 img, .image.is-5by3 img, .image.is-16by9 img, .image.is-2by1 img, .image.is-3by1 img, .image.is-4by5 img, .image.is-3by4 img, .image.is-2by3 img, .image.is-3by5 img, .image.is-9by16 img, .image.is-1by2 img, .image.is-1by3 img, .modal, .modal-background, .hero-video, .intro-spinner, .intro-shadow, .bd-article-overlay, .bd-article-icon,
.bd-article-info, .bd-structure-item:before, .bd-structure-item:after, .highlight .bd-show, .bd-banner-background, .bd-book-pattern::before, .bd-article-info, .bd-structure-item::before, .bd-structure-item::after, .highlight .bd-show, .bd-banner-background, .bd-book-pattern::before,
.bd-book-modal-column.bd-is-cover::before, .bd-book-pattern, .bd-book-modal-background { .bd-book-modal-column.bd-is-cover::before, .bd-book-pattern, .bd-book-modal-background {
bottom: 0; bottom: 0;
left: 0; left: 0;
@@ -251,7 +251,7 @@ html {
box-sizing: border-box; box-sizing: border-box;
} }
*, *:before, *:after { *, *::before, *::after {
box-sizing: inherit; box-sizing: inherit;
} }
@@ -406,7 +406,7 @@ table th {
color: #363636; color: #363636;
} }
.is-clearfix:after { .is-clearfix::after {
clear: both; clear: both;
content: " "; content: " ";
display: table; display: table;
@@ -1582,7 +1582,7 @@ a.box:active {
color: white; color: white;
} }
.button.is-white.is-loading:after { .button.is-white.is-loading::after {
border-color: transparent transparent #0a0a0a #0a0a0a !important; border-color: transparent transparent #0a0a0a #0a0a0a !important;
} }
@@ -1598,7 +1598,7 @@ a.box:active {
color: #0a0a0a; color: #0a0a0a;
} }
.button.is-white.is-outlined.is-loading:after { .button.is-white.is-outlined.is-loading::after {
border-color: transparent transparent white white !important; border-color: transparent transparent white white !important;
} }
@@ -1676,7 +1676,7 @@ a.box:active {
color: #0a0a0a; color: #0a0a0a;
} }
.button.is-black.is-loading:after { .button.is-black.is-loading::after {
border-color: transparent transparent white white !important; border-color: transparent transparent white white !important;
} }
@@ -1692,7 +1692,7 @@ a.box:active {
color: white; color: white;
} }
.button.is-black.is-outlined.is-loading:after { .button.is-black.is-outlined.is-loading::after {
border-color: transparent transparent #0a0a0a #0a0a0a !important; border-color: transparent transparent #0a0a0a #0a0a0a !important;
} }
@@ -1770,7 +1770,7 @@ a.box:active {
color: whitesmoke; color: whitesmoke;
} }
.button.is-light.is-loading:after { .button.is-light.is-loading::after {
border-color: transparent transparent #363636 #363636 !important; border-color: transparent transparent #363636 #363636 !important;
} }
@@ -1786,7 +1786,7 @@ a.box:active {
color: #363636; color: #363636;
} }
.button.is-light.is-outlined.is-loading:after { .button.is-light.is-outlined.is-loading::after {
border-color: transparent transparent whitesmoke whitesmoke !important; border-color: transparent transparent whitesmoke whitesmoke !important;
} }
@@ -1864,7 +1864,7 @@ a.box:active {
color: #363636; color: #363636;
} }
.button.is-dark.is-loading:after { .button.is-dark.is-loading::after {
border-color: transparent transparent whitesmoke whitesmoke !important; border-color: transparent transparent whitesmoke whitesmoke !important;
} }
@@ -1880,7 +1880,7 @@ a.box:active {
color: whitesmoke; color: whitesmoke;
} }
.button.is-dark.is-outlined.is-loading:after { .button.is-dark.is-outlined.is-loading::after {
border-color: transparent transparent #363636 #363636 !important; border-color: transparent transparent #363636 #363636 !important;
} }
@@ -1958,7 +1958,7 @@ a.box:active {
color: #00d1b2; color: #00d1b2;
} }
.button.is-primary.is-loading:after { .button.is-primary.is-loading::after {
border-color: transparent transparent #fff #fff !important; border-color: transparent transparent #fff #fff !important;
} }
@@ -1974,7 +1974,7 @@ a.box:active {
color: #fff; color: #fff;
} }
.button.is-primary.is-outlined.is-loading:after { .button.is-primary.is-outlined.is-loading::after {
border-color: transparent transparent #00d1b2 #00d1b2 !important; border-color: transparent transparent #00d1b2 #00d1b2 !important;
} }
@@ -2052,7 +2052,7 @@ a.box:active {
color: #3273dc; color: #3273dc;
} }
.button.is-link.is-loading:after { .button.is-link.is-loading::after {
border-color: transparent transparent #fff #fff !important; border-color: transparent transparent #fff #fff !important;
} }
@@ -2068,7 +2068,7 @@ a.box:active {
color: #fff; color: #fff;
} }
.button.is-link.is-outlined.is-loading:after { .button.is-link.is-outlined.is-loading::after {
border-color: transparent transparent #3273dc #3273dc !important; border-color: transparent transparent #3273dc #3273dc !important;
} }
@@ -2146,7 +2146,7 @@ a.box:active {
color: #209cee; color: #209cee;
} }
.button.is-info.is-loading:after { .button.is-info.is-loading::after {
border-color: transparent transparent #fff #fff !important; border-color: transparent transparent #fff #fff !important;
} }
@@ -2162,7 +2162,7 @@ a.box:active {
color: #fff; color: #fff;
} }
.button.is-info.is-outlined.is-loading:after { .button.is-info.is-outlined.is-loading::after {
border-color: transparent transparent #209cee #209cee !important; border-color: transparent transparent #209cee #209cee !important;
} }
@@ -2240,7 +2240,7 @@ a.box:active {
color: #23d160; color: #23d160;
} }
.button.is-success.is-loading:after { .button.is-success.is-loading::after {
border-color: transparent transparent #fff #fff !important; border-color: transparent transparent #fff #fff !important;
} }
@@ -2256,7 +2256,7 @@ a.box:active {
color: #fff; color: #fff;
} }
.button.is-success.is-outlined.is-loading:after { .button.is-success.is-outlined.is-loading::after {
border-color: transparent transparent #23d160 #23d160 !important; border-color: transparent transparent #23d160 #23d160 !important;
} }
@@ -2334,7 +2334,7 @@ a.box:active {
color: #ffdd57; color: #ffdd57;
} }
.button.is-warning.is-loading:after { .button.is-warning.is-loading::after {
border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important;
} }
@@ -2350,7 +2350,7 @@ a.box:active {
color: rgba(0, 0, 0, 0.7); color: rgba(0, 0, 0, 0.7);
} }
.button.is-warning.is-outlined.is-loading:after { .button.is-warning.is-outlined.is-loading::after {
border-color: transparent transparent #ffdd57 #ffdd57 !important; border-color: transparent transparent #ffdd57 #ffdd57 !important;
} }
@@ -2428,7 +2428,7 @@ a.box:active {
color: #ff3860; color: #ff3860;
} }
.button.is-danger.is-loading:after { .button.is-danger.is-loading::after {
border-color: transparent transparent #fff #fff !important; border-color: transparent transparent #fff #fff !important;
} }
@@ -2444,7 +2444,7 @@ a.box:active {
color: #fff; color: #fff;
} }
.button.is-danger.is-outlined.is-loading:after { .button.is-danger.is-outlined.is-loading::after {
border-color: transparent transparent #ff3860 #ff3860 !important; border-color: transparent transparent #ff3860 #ff3860 !important;
} }
@@ -2503,7 +2503,7 @@ a.box:active {
pointer-events: none; pointer-events: none;
} }
.button.is-loading:after { .button.is-loading::after {
position: absolute; position: absolute;
left: calc(50% - (1em / 2)); left: calc(50% - (1em / 2));
top: calc(50% - (1em / 2)); top: calc(50% - (1em / 2));
@@ -4876,7 +4876,7 @@ a.box:active {
width: 2em; width: 2em;
} }
.tag:not(body).is-delete:before, .tag:not(body).is-delete:after { .tag:not(body).is-delete::before, .tag:not(body).is-delete::after {
background-color: currentColor; background-color: currentColor;
content: ""; content: "";
display: block; display: block;
@@ -4887,12 +4887,12 @@ a.box:active {
transform-origin: center center; transform-origin: center center;
} }
.tag:not(body).is-delete:before { .tag:not(body).is-delete::before {
height: 1px; height: 1px;
width: 50%; width: 50%;
} }
.tag:not(body).is-delete:after { .tag:not(body).is-delete::after {
height: 50%; height: 50%;
width: 1px; width: 1px;
} }
@@ -10599,9 +10599,9 @@ svg {
position: relative; position: relative;
} }
.bd-example:before, .bd-example::before,
.bd-structure:before, .bd-structure::before,
.bd-snippet:before { .bd-snippet::before {
background: #ffdd57; background: #ffdd57;
border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;
bottom: 100%; bottom: 100%;
@@ -10784,7 +10784,7 @@ svg {
padding: 1.5rem; padding: 1.5rem;
} }
.bd-structure:before { .bd-structure::before {
background: #ff3860; background: #ff3860;
color: #fff; color: #fff;
content: "Structure"; content: "Structure";
@@ -10794,7 +10794,7 @@ svg {
position: relative; position: relative;
} }
.bd-structure-item:before { .bd-structure-item::before {
background: rgba(10, 10, 10, 0.7); background: rgba(10, 10, 10, 0.7);
background: whitesmoke; background: whitesmoke;
border: 1px solid #dbdbdb; border: 1px solid #dbdbdb;
@@ -10803,7 +10803,7 @@ svg {
z-index: 1; z-index: 1;
} }
.bd-structure-item:after { .bd-structure-item::after {
align-items: center; align-items: center;
content: attr(title); content: attr(title);
display: flex; display: flex;
@@ -10818,7 +10818,7 @@ svg {
padding: 1.5rem 0.75rem 0.75rem; padding: 1.5rem 0.75rem 0.75rem;
} }
.bd-structure-item.bd-is-structure-container:after { .bd-structure-item.bd-is-structure-container::after {
align-items: flex-start; align-items: flex-start;
justify-content: flex-start; justify-content: flex-start;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
@@ -11045,7 +11045,7 @@ svg {
font-weight: 700; font-weight: 700;
} }
#_default_ > a .default-title:after { #_default_ > a .default-title::after {
content: " — "; content: " — ";
} }

File diff suppressed because one or more lines are too long

View File

@@ -53,8 +53,8 @@ html
* *
&, &,
&:before, &::before,
&:after &::after
box-sizing: inherit box-sizing: inherit
// Media // Media

View File

@@ -138,7 +138,7 @@ $button-static-border-color: $grey-lighter !default
box-shadow: none box-shadow: none
color: $color color: $color
&.is-loading &.is-loading
&:after &::after
border-color: transparent transparent $color-invert $color-invert !important border-color: transparent transparent $color-invert $color-invert !important
&.is-outlined &.is-outlined
background-color: transparent background-color: transparent
@@ -150,7 +150,7 @@ $button-static-border-color: $grey-lighter !default
border-color: $color border-color: $color
color: $color-invert color: $color-invert
&.is-loading &.is-loading
&:after &::after
border-color: transparent transparent $color $color !important border-color: transparent transparent $color $color !important
&[disabled] &[disabled]
background-color: transparent background-color: transparent
@@ -189,7 +189,7 @@ $button-static-border-color: $grey-lighter !default
&.is-loading &.is-loading
color: transparent !important color: transparent !important
pointer-events: none pointer-events: none
&:after &::after
+loader +loader
+center(1em) +center(1em)
position: absolute !important position: absolute !important

View File

@@ -82,8 +82,8 @@ $tag-delete-margin: 1px !default
padding: 0 padding: 0
position: relative position: relative
width: 2em width: 2em
&:before, &::before,
&:after &::after
background-color: currentColor background-color: currentColor
content: "" content: ""
display: block display: block
@@ -92,10 +92,10 @@ $tag-delete-margin: 1px !default
top: 50% top: 50%
transform: translateX(-50%) translateY(-50%) rotate(45deg) transform: translateX(-50%) translateY(-50%) rotate(45deg)
transform-origin: center center transform-origin: center center
&:before &::before
height: 1px height: 1px
width: 50% width: 50%
&:after &::after
height: 50% height: 50%
width: 1px width: 1px
&:hover, &:hover,

View File

@@ -1,7 +1,7 @@
@import "initial-variables" @import "initial-variables"
=clearfix =clearfix
&:after &::after
clear: both clear: both
content: " " content: " "
display: table display: table
@@ -171,8 +171,8 @@
position: relative position: relative
vertical-align: top vertical-align: top
width: 20px width: 20px
&:before, &::before,
&:after &::after
background-color: $white background-color: $white
content: "" content: ""
display: block display: block
@@ -181,10 +181,10 @@
top: 50% top: 50%
transform: translateX(-50%) translateY(-50%) rotate(45deg) transform: translateX(-50%) translateY(-50%) rotate(45deg)
transform-origin: center center transform-origin: center center
&:before &::before
height: 2px height: 2px
width: 50% width: 50%
&:after &::after
height: 50% height: 50%
width: 2px width: 2px
&:hover, &:hover,