Skip to content

Instantly share code, notes, and snippets.

@seyDoggy
Created November 8, 2012 14:56
Show Gist options
  • Save seyDoggy/4039272 to your computer and use it in GitHub Desktop.
Save seyDoggy/4039272 to your computer and use it in GitHub Desktop.
Common css used in seydesign shocase files.
img.feature {
background-color: white;
border: 1px solid #CFD2D2;
padding: 2px;
margin-bottom: 2em;
-moz-box-shadow: 0 2px 5px rgba(0,0,0,.25);
-webkit-box-shadow: 0 2px 5px rgba(0,0,0,.25);
box-shadow: 0 2px 5px rgba(0,0,0,.25);
width: 98%;
height:auto;
}
.feature img {
background-color: white;
border: 1px solid #CFD2D2;
padding: 2px;
margin-bottom: 2em;
-moz-box-shadow: 0 2px 5px rgba(0,0,0,.25);
-webkit-box-shadow: 0 2px 5px rgba(0,0,0,.25);
box-shadow: 0 2px 5px rgba(0,0,0,.25);
width: 98%;
height:auto;
}
hr {
background: #efefef;
border: none;
height: 1px;
margin: 1em 0 2em;
}
.image-center {
display: block;
text-align: center;
width: 100%;
height: auto;
}
/* feature list */
div#featureList {
-moz-column-count: 4;
-moz-column-gap: 2em;
-webkit-column-count: 4;
-webkit-column-gap: 2em;
column-count: 4;
column-gap: 2em;
margin: 0;
padding: 1em 0 0;
}
div#featureList * {
padding: 0;
margin: 0;
}
div#featureList h4 {
padding-bottom: 0.5em;
}
div#featureList ul {
border-bottom: 1px solid #999;
list-style-type: square;
margin: 0 0 1em;
padding: 0 0 1em;
}
div#featureList ul li {
margin-left: 1em;
}
/* GUI feature list support */
div#featureList div.featureBox {
-webkit-column-break-inside: avoid;
break-inside: avoid-column;
text-align: center;
}
div#featureList div.featureBox h4 {
background: #ffffff;
background: -moz-linear-gradient(top, hsl(0,0%,100%) 0%, hsl(60,4%,95%) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,hsl(0,0%,100%)), color-stop(100%,hsl(60,4%,95%)));
background: -webkit-linear-gradient(top, hsl(0,0%,100%) 0%,hsl(60,4%,95%) 100%);
background: -o-linear-gradient(top, hsl(0,0%,100%) 0%,hsl(60,4%,95%) 100%);
background: -ms-linear-gradient(top, hsl(0,0%,100%) 0%,hsl(60,4%,95%) 100%);
background: linear-gradient(to bottom, hsl(0,0%,100%) 0%,hsl(60,4%,95%) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f4f4f3',GradientType=0 );
border: 1px solid #D9D9D9;
border-radius: 5px 5px 0 0;
font-size: 1.2em;
padding: 1em 0.5em;
}
div#featureList div.featureBox ul {
border: 1px solid #D9D9D9;
border-top: none;
border-radius: 0 0 5px 5px;
font-size: 0.9em;
list-style-type: none;
margin: 0 0 1em;
padding: 0;
}
div#featureList div.featureBox ul li {
border-bottom: 1px solid #D9D9D9;
line-height: 2.2em;
margin-left: 0;
padding: 0 1em;
}
div#featureList div.featureBox ul li:nth-child(odd) {
background-color: #FFF;
}
div#featureList div.featureBox ul li:nth-child(even) {
background-color: #FAFAFA;
}
div#featureList div.featureBox ul li:last-child {
border-bottom: none;
border-radius: 0 0 5px 5px;
}
#showcase div.column.three {
height: 140px;
}
.split2 {
-moz-column-count: 2;
-moz-column-gap: 4em;
-webkit-column-count: 2;
-webkit-column-gap: 4em;
column-count: 2;
column-gap: 4em;
padding: 0;
margin: 0;
}
@media only screen and (max-width : 1024px) {
.slideimage{height:auto !important;}
.split2 {
-moz-column-count: 1;
-moz-column-gap: 0;
-webkit-column-count: 1;
-webkit-column-gap: 0;
column-count: 1;
column-gap: 0;
padding: 0;
margin: 0;
}
}
/*-------------------------------------------------------------------------*/
/* Buttons
/*-------------------------------------------------------------------------*/
a.button {
background-image: url(../images/buttons/button-sprite.png);
text-decoration: none;
font-size: 1.8em;
font-weight: bold;
height: 20px;
line-height: 12px;
margin: 10px 0 0 0;
padding: 8px 10px 0;
border-radius: 3px;
text-align: center;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
display: inline-block;
}
a.button.large {
padding: 11px 15px 0;
line-height: 14px;
width: 65%;
height: 24px;
}
/* Black */
a.button.black {
background-position: 0 0;
}
a.button.black:link,
a.button.black:visited,
a.button.large.black:link,
a.button.large.black:visited {
border: 1px solid #4C4C4C;
color: #FFF;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
a.button.black:hover {border: 1px solid #2C2C2C;background-position: 0 -28px;}
a.button.large.black {background-position: 0 -56px;}
a.button.large.black:hover {background-position: 0 -91px;}
/* Blue */
a.button.blue {
background-position: 0 -126px;
}
a.button.blue:link,
a.button.blue:visited,
a.button.large.blue:link,
a.button.large.blue:visited {
border: 1px solid #8DC5DA;
color: #42788E;
}
a.button.blue:hover {border: 1px solid #7CAEC0;background-position: 0 -154px;}
a.button.large.blue {background-position: 0 -182px;}
a.button.large.blue:hover {background-position: 0 -217px;}
/* Green */
a.button.green {
background-position: 0 -252px;
}
a.button.green:link,
a.button.green:visited,
a.button.large.green:link,
a.button.large.green:visited {
border: 1px solid #ADC671;
color: #5D7731;
}
a.button.green:hover {border: 1px solid #8BB14D;background-position: 0 -280px;}
a.button.large.green {background-position: 0 -308px;}
a.button.large.green:hover {background-position: 0 -343px;}
/* Grey */
a.button.grey {
background-position: 0 -378px;
}
a.button.grey:link,
a.button.grey:visited,
a.button.large.grey:link,
a.button.large.grey:visited {
border: 1px solid #B5B5B5;
color: #555;
}
a.button.grey:hover {border: 1px solid #989898;background-position: 0 -406px;}
a.button.large.grey {background-position: 0 -434px;}
a.button.large.grey:hover {background-position: 0 -469px;}
/* Navy */
a.button.navy {
background-position: 0 -504px;
}
a.button.navy:link,
a.button.navy:visited,
a.button.large.navy:link,
a.button.large.navy:visited {
border: 1px solid #A2AFB8;
color: #515F6A;
}
a.button.navy:hover {border: 1px solid #8996A0;background-position: 0 -532px;}
a.button.large.navy {background-position: 0 -560px;}
a.button.large.navy:hover {background-position: 0 -595px;}
/* Orange */
a.button.orange {
background-position: 0 -630px;
}
a.button.orange:link,
a.button.orange:visited,
a.button.large.orange:link,
a.button.large.orange:visited {
border: 1px solid #DAB347;
color: #835503;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
a.button.orange:hover {border: 1px solid #DAB347;background-position: 0 -658px;}
a.button.large.orange {background-position: 0 -686px;}
a.button.large.orange:hover {background-position: 0 -721px;}
/* Purple */
a.button.purple {
background-position: 0 -756px;
}
a.button.purple:link,
a.button.purple:visited,
a.button.large.purple:link,
a.button.large.purple:visited {
border: 1px solid #BC9DB9;
color: #7B5777;
}
a.button.purple:hover {border: 1px solid #A482A0;background-position: 0 -784px;}
a.button.large.purple {background-position: 0 -812px;}
a.button.large.purple:hover {background-position: 0 -847px;}
/* Red */
a.button.red {
background-position: 0 -882px;
}
a.button.red:link,
a.button.red:visited,
a.button.large.red:link,
a.button.large.red:visited {
border: 1px solid #DF6F8B;
color: #913944;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
a.button.red:hover {border: 1px solid #C36079;background-position: 0 -910px;}
a.button.large.red {background-position: 0 -938px;}
a.button.large.red:hover {background-position: 0 -973px;}
/* Teal */
a.button.teal {
background-position: 0 -1008px;
}
a.button.teal:link,
a.button.teal:visited,
a.button.large.teal:link,
a.button.large.teal:visited {
border: 1px solid #90C6C8;
color: #437B7D;
}
a.button.teal:hover {border: 1px solid #7DB9BB;background-position: 0 -1036px;}
a.button.large.teal {background-position: 0 -1064px;}
a.button.large.teal:hover {background-position: 0 -1099px;}
/* White */
a.button.white {
background-position: 0 -1134px;
}
a.button.white:link,
a.button.white:visited,
a.button.large.white:link,
a.button.large.white:visited {
border: 1px solid #D3D3D3;
color: #555;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
a.button.white:hover {border: 1px solid #C4C4C4;background-position: 0 -1162px;}
a.button.large.white {background-position: 0 -1190px;}
a.button.large.white:hover {background-position: 0 -1225px;}
/*
Responsive video
http://amobil.se/2011/11/responsive-embeds/
<div class="frame radiusAll">
<div class="embed-container">
<iframe src="http://player.vimeo.com/video/46247005?title=0&amp;byline=0&amp;portrait=0" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>
</div>
*/
.frame {
background-color: white;
border: 1px solid #CFD2D2;
padding: 7px;
margin: 0 auto 3.5em;
box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
width: 96%;
height: auto;
}
.embed-container {
position: relative;
padding-bottom: 58%; /* 56.25 for 16/9 ratio */
padding-top: 30px; /* IE6 workaround*/
height: 0;
overflow: hidden;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* pretify.css */
.com { color: #93a1a1; }
.lit { color: #195f91; }
.pun, .opn, .clo { color: #93a1a1; }
.fun { color: #dc322f; }
.str, .atv { color: #D14; }
.kwd, .linenums .tag { color: #1e347b; }
.typ, .atn, .dec, .var { color: teal; }
.pln { color: #48484c; }
.prettyprint {
padding: 8px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
.prettyprint.linenums {
-webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
-moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
padding-left:0;
margin: 0 0 0 12px; /* IE indents via margin-left */
}
ol.linenums li {
padding-left: 12px;
color: #bebec5;
line-height: 18px;
text-shadow: 0 1px 0 #fff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment