Skip to content

Instantly share code, notes, and snippets.

@nartamonov
Created June 1, 2014 21:23
Show Gist options
  • Save nartamonov/37c8238a6911d745284a to your computer and use it in GitHub Desktop.
Save nartamonov/37c8238a6911d745284a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div id="container">
<h1>Hello Plunker!</h1>
<p>Привет, ребята!</p>
</div>
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// Susy (v2.1.2)
// ----
@import "compass";
@import "susy";
#container {
@include container(6 show overlay);
background: #eee;
}
h1 {
//@include border-radius(5px, 5px);
@include span(2 of 6);
border: 1px solid black;
}
p {
@include span(4 of 6);
}
#container {
max-width: 100%;
margin-left: auto;
margin-right: auto;
background: #eee;
}
#container:after {
content: " ";
display: block;
clear: both;
}
head {
display: block;
position: fixed;
right: 10px;
top: 10px;
z-index: 999;
color: #333;
background: rgba(255, 255, 255, 0.25);
}
head:before {
content: "|||";
display: block;
padding: 5px 10px;
font-family: sans-serif;
font-size: 16px;
font-weight: bold;
}
head:hover {
background: rgba(255, 255, 255, 0.5);
color: red;
}
head:hover ~ #container, head:hover ~ body #container {
position: relative;
}
head:hover ~ #container:before, head:hover ~ body #container:before {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
content: " ";
z-index: 998;
background-image: -moz-linear-gradient(left, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 80%, rgba(0, 0, 0, 0) 80%), -moz-linear-gradient(top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
background-image: -webkit-linear-gradient(left, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 80%, rgba(0, 0, 0, 0) 80%), -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 80%, rgba(0, 0, 0, 0) 80%), linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
background-size: 17.24138%, 100% 24px;
background-origin: content-box, border-box;
background-clip: content-box, border-box;
background-position: left top;
}
h1 {
width: 31.03448%;
float: left;
margin-right: 3.44828%;
border: 1px solid black;
}
p {
width: 65.51724%;
float: left;
margin-right: 3.44828%;
}
<div id="container">
<h1>Hello Plunker!</h1>
<p>Привет, ребята!</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment