Skip to content

Instantly share code, notes, and snippets.

@crazyrohila
Created February 27, 2015 19:39
Show Gist options
  • Save crazyrohila/826d06668ae4c9dda0f9 to your computer and use it in GitHub Desktop.
Save crazyrohila/826d06668ae4c9dda0f9 to your computer and use it in GitHub Desktop.
Editable stylesheet
<style contentEditable="true">
.demo {
width: 150px;
height: 50px;
padding: 10px;
background: teal;
border: 2px solid indianred;
border-radius: 10px;
box-shadow: 3px 3px 5px 2px grey;
font-family: sans;
color: white;
text-align: center;
text-shadow: 2px 2px 1px darkgray;
}
</style>
<!-- Demo element -->
<div class="demo">
This is demo element.
</div>
@import "compass/css3";
style {
display: inline-block;
white-space: pre;
font-size: 1em;
border: 0;
outline: 0;
background: skyblue;
color: black;
padding: 1rem 2rem;
&:before {
content: "// Edit the below css- values, and see changes in box.";
}
}
.demo {
display: inline-block;
margin-left: 20px;
}
body {
background: lightcyan;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment