Skip to content

Instantly share code, notes, and snippets.

@Bernix01
Last active June 19, 2016 03:53
Show Gist options
  • Save Bernix01/ca70f4654e6e4c6982ff9e74e448b2e2 to your computer and use it in GitHub Desktop.
Save Bernix01/ca70f4654e6e4c6982ff9e74e448b2e2 to your computer and use it in GitHub Desktop.
SASS - PSW
sass style.scss style.css
#!/bin/bash
sudo apt-get install ruby-full
sudo gem install sass
echo "Listo, ya tienes Sass!"
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; }
$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