Skip to content

Instantly share code, notes, and snippets.

@nacengineer
Created January 23, 2013 03:03
Show Gist options
  • Save nacengineer/4601494 to your computer and use it in GitHub Desktop.
Save nacengineer/4601494 to your computer and use it in GitHub Desktop.
An SCSS version of Zac Stewart's Meow CSS
.meows {
position: fixed;
top: 0;
right: 0;
}
.meow {
margin: 20px 20px 0 0;
position: relative;
.inner {
background: #191919;
zoom: 1;
filter: alpha(opacity = 75);
background: rgba(25, 25, 25, .75);
border: 2px solid transparent;
-moz-border-radius: 10px;
-webket-border-radius: 10px;
-khtml-border-radius: 10px;
-o-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 2px 2px 10px rgba(25, 25, 25, .25);
-webkit-box-shadow: 2px 2px 10px rgba(25, 25, 25, .25);
-khtml-box-shadow: 2px 2px 10px rgba(25, 25, 25, .25);
-o-box-shadow: 2px 2px 10px rgba(25, 25, 25, .25);
box-shadow: 2px 2px 10px rgba(25, 25, 25, .25);
color: #fff;
font-family: Helvetica, Arial, sans-serif;
font-size: 15px;
padding: 10px;
text-shadow: 1px 1px 3px #000;
width: 300px;
min-height: 48px;
&:after {
content: "\0200";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
h1 {
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 0;
line-height: 1;
}
.close {
display: none;
}
.icon {
width: 48px;
height: 48px;
float: left;
margin-right: 6px;
img {
max-width: 48px;
max-height: 48px;
}
}
}
&:hover {
.inner {
border: 2px solid #fff;
.close {
background: #191919;
zoom: 1;
filter: alpha(opacity = 75);
background: rgba(25, 25, 25, .75);
border: 2px solid #ffffff;
-khtml-border-radius: 18px;
-moz-border-radius: 18px;
-o-border-radius: 18px;
-webket-border-radius: 18px;
border-radius: 18px;
color: #ffffff;
display: block;
font-size: 22px;
font-weight: 500;
height: 18px;
left: 4px;
line-height: 14px;
position: absolute;
text-align: center;
text-decoration: none;
top: 4px;
width: 18px;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment