Last active
September 18, 2015 19:01
-
-
Save ja-k-e/1e1af43868a80d8ef387 to your computer and use it in GitHub Desktop.
Spacing Prefs
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
// | |
// 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; | |
} |
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
.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