Created
January 25, 2024 00:04
-
-
Save doolez/80318ba5fb72d0ac734a0d3035cb860b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test for compiled css order | |
// mixin experiment | |
@mixin text-links ($color: green) { | |
&:link { | |
color: $color; | |
} | |
&:visited { | |
color: $color; | |
} | |
&:hover { | |
color: $color; | |
border: 1px dashed $color; | |
} | |
&:focus, | |
&:focus-visible { | |
outline: 1px solid $color; | |
} | |
&:active { | |
color: red; | |
} | |
} | |
.junk-class1 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
} | |
.junk-class2 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
} | |
.junk-class3 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
a { | |
@include text-links; | |
} | |
} | |
.junk-class4 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
} | |
.junk-class5 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
a { | |
@include text-links; | |
} | |
} | |
.section-custom { | |
// default | |
a { | |
@include text-links(blue); | |
} | |
.subsection { | |
a { | |
@include text-links(pink); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.junk-class1 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
} | |
.junk-class2 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
} | |
.junk-class3 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
} | |
.junk-class3 a:link { | |
color: green; | |
} | |
.junk-class3 a:visited { | |
color: green; | |
} | |
.junk-class3 a:hover { | |
color: green; | |
border: 1px dashed green; | |
} | |
.junk-class3 a:focus, .junk-class3 a:focus-visible { | |
outline: 1px solid green; | |
} | |
.junk-class3 a:active { | |
color: red; | |
} | |
.junk-class4 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
} | |
.junk-class5 { | |
background-color: purple; | |
color: white; | |
padding: 1138em; | |
margin: 1701em; | |
} | |
.junk-class5 a:link { | |
color: green; | |
} | |
.junk-class5 a:visited { | |
color: green; | |
} | |
.junk-class5 a:hover { | |
color: green; | |
border: 1px dashed green; | |
} | |
.junk-class5 a:focus, .junk-class5 a:focus-visible { | |
outline: 1px solid green; | |
} | |
.junk-class5 a:active { | |
color: red; | |
} | |
.section-custom a:link { | |
color: blue; | |
} | |
.section-custom a:visited { | |
color: blue; | |
} | |
.section-custom a:hover { | |
color: blue; | |
border: 1px dashed blue; | |
} | |
.section-custom a:focus, .section-custom a:focus-visible { | |
outline: 1px solid blue; | |
} | |
.section-custom a:active { | |
color: red; | |
} | |
.section-custom .subsection a:link { | |
color: pink; | |
} | |
.section-custom .subsection a:visited { | |
color: pink; | |
} | |
.section-custom .subsection a:hover { | |
color: pink; | |
border: 1px dashed pink; | |
} | |
.section-custom .subsection a:focus, .section-custom .subsection a:focus-visible { | |
outline: 1px solid pink; | |
} | |
.section-custom .subsection a:active { | |
color: red; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sass": { | |
"compiler": "dart-sass/1.32.12", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment