Skip to content

Instantly share code, notes, and snippets.

@worenga
Last active September 25, 2015 11:07
Show Gist options
  • Save worenga/911385 to your computer and use it in GitHub Desktop.
Save worenga/911385 to your computer and use it in GitHub Desktop.
CSS without Mixin usage
-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 */
body {
font: 12px Helvetica, Arial, sans-serif;
}
a.button {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
@import 'vendor'
body
font 12px Helvetica, Arial, sans-serif
a.button
border-radius 5px
font-size = 14px
font = (font-size * 2) "Lucida Grande", Arial
body
font font sans-serif
body {
font: 28px "Lucida Grande", Arial sans-serif;
}
$ npm install stylus
#header
color #000000
#logo
color #A7A7A7
<?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;
}
#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