Skip to content

Instantly share code, notes, and snippets.

@dmackerman
Created December 11, 2012 22:09
Show Gist options
  • Select an option

  • Save dmackerman/4262751 to your computer and use it in GitHub Desktop.

Select an option

Save dmackerman/4262751 to your computer and use it in GitHub Desktop.
My awesome gist.
/* define some variables for the blog */
$developmentColor: #458c53;
$toolsColor: #3b64a3;
$industryColor: #84438c;
$leanStartupColor: #ba414d;
$designColor: #694181;
$modusNews: #de9a4f;
::selection {
background: #F8F7C9;
color: #CB9240;
text-shadow: none;
}
img {
border: none;
outline: none;
}
body {
background: #F3F0EB;
-webkit-font-smoothing: subpixel-antialiased;
&.ie8, &.ie7, &.ie6 {
background: #fff;
text-align: center;
header { display: none; }
section { display: none; }
div { display: none; }
.hidden {
.alert-box {
padding: 30px 200px;
line-height: 1.5;
font-size: 20px;
a {
color: white;
text-decoration: underline;
}
}
div { display: block !important; text-align: left; }
display: block !important;
margin: 0px auto;
}
}
}
a {
@include transition(all .2s ease);
&:hover { color: lighten($mainColor, 25); }
}
p {
font-size: 16px;
}
/* contact form */
#contactForm {
@extend .panel;
@include box-shadow(rgba(0, 0, 0, 0.2) 0 2px 4px);
@include border-radius(5px);
overflow: hidden;
margin-bottom: 40px;
background: #fff;
position: relative;
button {
display: block;
width: 100%;
}
// 'or' phone
span {
padding-top: 15px;
display: block;
text-align: center;
color: #555;
}
}
/* form success message */
.success {
opacity: 0;
display: none;
padding-top: 15px;
font-weight: 600;
color: #4D804D;
text-align: center;
font-size: 16px;
}
#contactFormModal {
h2 { margin: 0; }
p { margin: 0; }
.row {
margin-bottom: 20px;
}
}
.reveal-modal .close-reveal-modal {
top: 15px;
right: 15px;
}
/* tooltips */
.tooltip {
padding: 10px;
background: #3F3F3F;
p {
font-weight: 400;
font-size: 13px;
color: #CACACA;
margin-bottom: 5px;
}
span {
font-size: 16px;
font-weight: 600;
display: inline-block;
padding-bottom: 5px;
color: #5CB5D1;
text-transform: uppercase;
}
}
/* overall section padding */
section {
&[role='main'] {
padding-top: 70px;
}
padding: 25px 0;
}
li {
padding-bottom: 10px;
font-size: 16px;
}
h1 {
font-size: 34px;
}
h4 {
color: #333;
}
/* override stupid input fonts */
input, textarea, select {
font-family: "proxima-nova";
border-radius: 0 !important;
}
code {
font-weight: bold;
background: #FF9;
font-family: "Menlo";
font-size: 13px;
padding: 4px;
}
/* define some icon classes for our fonts */
.ss-icon {
vertical-align: middle;
&.larger {
color: #CCC;
font-size: 30px;
padding-right: 5px;
vertical-align: middle;
}
&.small {
font-size: 10px;
}
}
/* larger means large */
.larger { font-size: 16px; }
/* bolder means bold */
.bolder { font-weight: bold; }
.hidden { display: none; }
hr {
border: double #DADADA;
border-width: 3px 0 0;
clear: both;
margin: 22px 0 21px;
height: 0;
padding: 0;
margin: 0;
}
.no-bullets { list-style: none; }
.strong { font-weight: 700; }
.button.secondary {
color: white;
}
/* override our dd border radius and margin */
dl.sub-nav {
margin: 20px 0 20px 0;
padding: 0;
display: auto;
width: auto;
overflow: auto;
text-align: center;
text-align: center;
padding-top: 15px;
padding-bottom: 5px;
border-bottom: 1px dashed #E0E0E0;
border-top: 1px dashed #E0E0E0;
}
dl.sub-nav dd a { border-radius: 0; }
dl.sub-nav dd { margin-left: 20px; }
dl.sub-nav dt, dl.sub-nav dd {
float: none;
display: inline-block;
font-weight: bold;
}
table tbody tr:nth-child(even) {
background: #F7F5F2;
}
#back-to-top {
background-color: #292a2b;
@include background-image(linear-gradient(top, rgb(41, 42, 43), rgb(20, 20, 21)));
@include transition(all .35s ease);
@include border-radius(5px);
font-family: 'proxima-nova';
font-size: 13px;
font-weight: 600;
position: fixed;
bottom: 20px;
right: 20px;
padding: 15px;
color: #ACACAC;
text-transform: uppercase;
text-align: center;
display: none;
width: 68px;
@media all and (max-width: 400px) {
display: none !important;
}
i {
display: block;
padding-bottom: 10px;
color: #ACACAC;
}
&:hover {
background: #000;
}
}
.subnav {
font-family: 'proxima-nova';
z-index: 10;
color: #C9C9C9;
font-size: 11px;
@include background-image(linear-gradient(top, rgba(60, 60, 60, .90), rgba(41, 41, 41, .90)));
border-bottom: 1px solid #000000;
width: 100%;
box-shadow: inset 0px 1px 1px rgba(255, 255, 255, .25);
ul {
padding: 10px 0;
text-align: center;
margin: 0;
}
li {
padding: 0;
display: inline-block;
// text-transform: uppercase;
// active category on the blog
&.current-cat a {
background: #222;
color: #eee;
}
em {
font-weight: 300;
}
}
a {
font-weight: 600;
font-size: 13px;
color: #F3F0EB;
padding: 5px 12px;
border-radius: 5px;
&:hover {
background: #222;
color: #eee;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment