Skip to content

Instantly share code, notes, and snippets.

@ja-k-e
Last active September 18, 2015 19:01
Show Gist options
  • Save ja-k-e/1e1af43868a80d8ef387 to your computer and use it in GitHub Desktop.
Save ja-k-e/1e1af43868a80d8ef387 to your computer and use it in GitHub Desktop.
Spacing Prefs
//
// greet paul
greeting("Paul");
//
// greeting method to take name and return a greeting
function greeting(subject) {
//
// forming our complete sentence
var salutations = ["Dearest", subject, ", we are having a great time."],
complete_greeting = salutations.join(" ");
//
// respond with a complete sentence
return complete_greeting;
}
.a-parent {
position: absolute;
top: 0; left: 50%;
width: 100%;
background-color: red;
color: white;
transition: color 250ms ease-in;
:hover, :active {
color: blue;
}
&.state {
color: green;
background: yellow;
}
.a-child {
width: 50%;
height: 2rem;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment