Last active
September 25, 2015 11:07
-
-
Save worenga/911385 to your computer and use it in GitHub Desktop.
CSS without Mixin usage
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
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
border-radius: 5px; | |
opacity: .75; /* Standard: FF gt 1.5, Opera, Safari */ | |
filter: alpha(opacity=75); /* IE lt 8 */ | |
-ms-filter: "alpha(opacity=75)"; /* IE 8 */ | |
-khtml-opacity: .75; /* Safari 1.x */ | |
-moz-opacity: .75; /* FF lt 1.5, Netscape */ |
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
body { | |
font: 12px Helvetica, Arial, sans-serif; | |
} | |
a.button { | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
border-radius: 5px; | |
} |
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
@import 'vendor' | |
body | |
font 12px Helvetica, Arial, sans-serif | |
a.button | |
border-radius 5px |
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
font-size = 14px | |
font = (font-size * 2) "Lucida Grande", Arial | |
body | |
font font sans-serif |
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
body { | |
font: 28px "Lucida Grande", Arial sans-serif; | |
} |
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
$ npm install stylus |
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
#header | |
color #000000 | |
#logo | |
color #A7A7A7 |
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
<?php | |
$infobox_bg = '#FAF7B1'; | |
$border_size = '5px'; | |
?> | |
<?php function opacity($pct=50){ ?> | |
opacity: .<?php echo $pct ?>; /* Standard: FF gt 1.5, Opera, Safari */ | |
filter: alpha(opacity=<?php echo $pct ?>); /* IE lt 8 */ | |
-ms-filter: "alpha(opacity=<?php echo $pct ?>)"; /* IE 8 */ | |
-khtml-opacity: .<?php echo $pct ?>; /* Safari 1.x */ | |
-moz-opacity: .<?php echo $pct ?>; /* FF lt 1.5, Netscape */ | |
<?php }?> | |
#content .infobox{ | |
<?php opacity(75) ?> | |
background-color: <?php echo $infobox_bg ?>; | |
border: <?php echo $border_size; ?> solid #000; | |
} |
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
#header{ | |
color: #000000; | |
} | |
#header #logo{ | |
color #A7A7A7 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment