Last active
March 4, 2022 13:02
-
-
Save zastrow/1da68a80e902d5bf9bad135e7a10cf55 to your computer and use it in GitHub Desktop.
Demo 6
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
> 1% | |
last 2 versions |
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
.example-1 { | |
font-family: Helvetica, sans-serif; | |
font-size: 1rem; | |
color: black; | |
} | |
.example-2 { | |
font-family: Helvetica, sans-serif; | |
font-size: 0.875rem; | |
color: blue; | |
text-transform: uppercase; | |
letter-spacing: 0.125em; | |
} | |
.example-3 { | |
font-family: Helvetica, sans-serif; | |
font-size: 2rem; | |
color: white; | |
text-shadow: 0 0.25rem 1rem black; | |
} |
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
// ---- | |
// libsass (v3.5.4) | |
// ---- | |
//// | |
/// Demo 6: Complex Mixin | |
/// @author Philip Zastrow | |
/// @access private | |
//// | |
$sans: Helvetica, sans-serif; | |
@mixin heading-1($size:1rem, $color:black, ) { | |
font-family: $sans; | |
font-size: $size; | |
color: $color; | |
@if $size == 0.875rem { | |
text-transform: uppercase; | |
letter-spacing: 0.125em; | |
} | |
@if $color == white { | |
text-shadow: 0 0.25rem 1rem black; | |
} | |
} | |
.example-1 { | |
@include heading-1; | |
} | |
.example-2 { | |
@include heading-1( | |
$size: 0.875rem, | |
$color: blue | |
); | |
} | |
.example-3 { | |
@include heading-1( | |
$size: 2rem, | |
$color: white | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment