Skip to content

Commit

Permalink
Use double colons for psuedo elements
Browse files Browse the repository at this point in the history
  • Loading branch information
kkirsche committed Aug 24, 2015
1 parent c8ab0a5 commit d51f0a4
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion scss/_breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
> li {
display: inline-block;

+ li:before {
+ li::before {
$nbsp: "\00a0";
padding-right: .5rem;
padding-left: .5rem;
Expand Down
4 changes: 2 additions & 2 deletions scss/_carousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@
}

.icon-prev {
&:before {
&::before {
content: "\2039";// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
}
}
.icon-next {
&:before {
&::before {
content: "\203a";// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
}
}
Expand Down
6 changes: 3 additions & 3 deletions scss/_custom-forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
.c-input {
display: inline;

&:after {
&::after {
display: block;
margin-bottom: .25rem;
content: "";
Expand Down Expand Up @@ -199,10 +199,10 @@
border-radius: .25rem;
@include box-shadow(inset 0 .2rem .4rem rgba(0,0,0,.05));
}
.file-custom:after {
.file-custom::after {
content: "Choose file...";
}
.file-custom:before {
.file-custom::before {
position: absolute;
top: -.075rem;
right: -.075rem;
Expand Down
4 changes: 2 additions & 2 deletions scss/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

.dropdown-toggle {
// Generate the caret automatically
&:after {
&::after {
display: inline-block;
width: 0;
height: 0;
Expand All @@ -26,7 +26,7 @@

.dropup {
.dropdown-toggle {
&:after {
&::after {
border-bottom: $caret-width solid;
border-top: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion scss/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
margin-left: $navbar-padding-horizontal;
overflow: hidden;

&:before {
&::before {
content: "\00a0";
}
}
Expand Down
14 changes: 7 additions & 7 deletions scss/_popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
margin-left: -$popover-arrow-outer-width;
border-top-color: $popover-arrow-outer-color;
border-bottom-width: 0;
&:after {
&::after {
bottom: 1px;
margin-left: -$popover-arrow-width;
content: "";
Expand All @@ -49,7 +49,7 @@
margin-top: -$popover-arrow-outer-width;
border-right-color: $popover-arrow-outer-color;
border-left-width: 0;
&:after {
&::after {
bottom: -$popover-arrow-width;
left: 1px;
content: "";
Expand All @@ -69,7 +69,7 @@
margin-left: -$popover-arrow-outer-width;
border-top-width: 0;
border-bottom-color: $popover-arrow-outer-color;
&:after {
&::after {
top: 1px;
margin-left: -$popover-arrow-width;
content: "";
Expand All @@ -89,7 +89,7 @@
margin-top: -$popover-arrow-outer-width;
border-right-width: 0;
border-left-color: $popover-arrow-outer-color;
&:after {
&::after {
right: 1px;
bottom: -$popover-arrow-width;
content: "";
Expand Down Expand Up @@ -118,11 +118,11 @@

// Arrows
//
// .popover-arrow is outer, .popover-arrow:after is inner
// .popover-arrow is outer, .popover-arrow::after is inner

.popover-arrow {
&,
&:after {
&::after {
position: absolute;
display: block;
width: 0;
Expand All @@ -134,7 +134,7 @@
.popover-arrow {
border-width: $popover-arrow-outer-width;
}
.popover-arrow:after {
.popover-arrow::after {
content: "";
border-width: $popover-arrow-width;
}
6 changes: 3 additions & 3 deletions scss/_print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

@media print {
*,
*:before,
*:after {
*::before,
*::after {
text-shadow: none !important;
box-shadow: none !important;
}
Expand All @@ -18,7 +18,7 @@
text-decoration: underline;
}

abbr[title]:after {
abbr[title]::after {
content: " (" attr(title) ")";
}

Expand Down
2 changes: 1 addition & 1 deletion scss/_progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@include border-radius($border-radius);
@include box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
}
.progress[value]::-webkit-progress-value::before {
.progress[value]::-webkit-progress-value:::before {
content: attr(value);
}
.progress[value]::-webkit-progress-value {
Expand Down
4 changes: 2 additions & 2 deletions scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ html {
}

*,
*:before,
*:after {
*::before,
*::after {
box-sizing: inherit;
}

Expand Down
6 changes: 3 additions & 3 deletions scss/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ mark,
line-height: $line-height;
color: $blockquote-small-color;

&:before {
&::before {
content: "\2014 \00A0"; // em dash, nbsp
}
}
Expand All @@ -159,8 +159,8 @@ mark,

// Account for citation
footer {
&:before { content: ""; }
&:after {
&::before { content: ""; }
&::after {
content: "\00A0 \2014"; // nbsp, em dash
}
}
Expand Down
2 changes: 1 addition & 1 deletion scss/mixins/_clearfix.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@mixin clearfix() {
&:after {
&::after {
content: "";
display: table;
clear: both;
Expand Down

0 comments on commit d51f0a4

Please sign in to comment.