Last active
June 19, 2016 03:53
-
-
Save Bernix01/ca70f4654e6e4c6982ff9e74e448b2e2 to your computer and use it in GitHub Desktop.
SASS - PSW
This file contains 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 style.scss style.css |
This file contains 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
#!/bin/bash | |
sudo apt-get install ruby-full | |
sudo gem install sass | |
echo "Listo, ya tienes Sass!" |
This file contains 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: 100% Helvetica, sans-serif; | |
color: #333; } | |
nav ul { | |
margin: 0; | |
padding: 0; | |
list-style: none; } | |
nav li { | |
display: inline-block; } | |
nav a { | |
display: block; | |
padding: 6px 12px; | |
text-decoration: none; } | |
.box { | |
-webkit-border-radius: 10px; | |
-moz-border-radius: 10px; | |
-ms-border-radius: 10px; | |
border-radius: 10px; } | |
.message, .success, .error, .warning { | |
border: 1px solid #ccc; | |
padding: 10px; | |
color: #333; } | |
.success { | |
border-color: green; } | |
.error { | |
border-color: red; } | |
.warning { | |
border-color: yellow; } |
This file contains 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-stack: Helvetica, sans-serif; | |
$primary-color: #333; | |
body { | |
font: 100% $font-stack; | |
color: $primary-color; | |
} | |
nav { | |
ul { | |
margin: 0; | |
padding: 0; | |
list-style: none; | |
} | |
li { display: inline-block; } | |
a { | |
display: block; | |
padding: 6px 12px; | |
text-decoration: none; | |
} | |
} | |
@mixin border-radius($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
-ms-border-radius: $radius; | |
border-radius: $radius; | |
} | |
.box { @include border-radius(10px); } | |
.message { | |
border: 1px solid #ccc; | |
padding: 10px; | |
color: #333; | |
} | |
.success { | |
@extend .message; | |
border-color: green; | |
} | |
.error { | |
@extend .message; | |
border-color: red; | |
} | |
.warning { | |
@extend .message; | |
border-color: yellow; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment