Commit d5dc27ce authored by Seth Vargo's avatar Seth Vargo

Update CSS for Bootstrap 3

parent b732c5a2
@mixin button {
font-family: $mono;
height: $button-height;
line-height: $button-height;
background-color: transparent;
border-width: 2px;
border-style: solid;
display: block;
padding: 0 30px;
text-transform: uppercase;
letter-spacing: 3px;
@include rounded(5px);
&.spaced {
margin-right: 20px;
}
&.primary {
color: $green;
border-color: $green;
&:hover {
background-color: transparentize($green, .7);
}
&:active {
background-color: transparentize($green, .5);
}
}
&.secondary {
color: $black;
border-color: $black;
&:hover {
background-color: transparentize($black, .9);
}
&:active {
background-color: transparentize($black, .7);
}
}
&.inline {
margin: auto $baseline;
@include respond-to(mobile) {
display: block;
width: 100%;
margin: $baseline 0;
}
}
}
.container-xs-height {
display:table;
padding-left:0px;
padding-right:0px;
}
.col-xs-height {
display:table-cell;
float:none;
}
@media (min-width: 768px) {
.container-sm-height {
display:table;
padding-left:0px;
padding-right:0px;
}
.col-sm-height {
display:table-cell;
float:none;
}
}
@media (min-width: 992px) {
.container-md-height {
display:table;
padding-left:0px;
padding-right:0px;
}
.col-md-height {
display:table-cell;
float:none;
}
}
@media (min-width: 1200px) {
.container-lg-height {
display:table;
padding-left:0px;
padding-right:0px;
}
.col-lg-height {
display:table-cell;
float:none;
}
}
footer { footer {
height: $nav-height; height: $nav-height;
max-height: $nav-height; max-height: $nav-height;
background-color: $black !important; background-color: $black !important;
padding: 0; padding: 0;
margin: 0; margin: 0;
text-transform: uppercase; text-transform: uppercase;
color: $white; color: $white;
font-family: $sans; font-family: $sans;
@include respond-to(mobile) { @include respond-to(mobile) {
margin-right: -20px; margin-right: -20px;
margin-left: -20px; margin-left: -20px;
} }
ul { ul {
margin-top: 40px; margin-top: 40px;
@include respond-to(mobile) { @include respond-to(mobile) {
margin-left: $baseline; margin-left: $baseline;
margin-top: $baseline; margin-top: $baseline;
} }
li { li {
display: inline; display: inline;
margin-right: 50px; margin-right: 50px;
@include respond-to(mobile) { @include respond-to(mobile) {
margin-right: 20px; margin-right: 20px;
display: list-item; display: list-item;
} }
} }
.hashi-logo { .hashi-logo {
background: image-url('logo_footer.png') no-repeat center top; background: image-url('logo_footer.png') no-repeat center top;
height: 40px; height: 40px;
width: 40px; width: 40px;
background-size: 37px 40px; background-size: 37px 40px;
text-indent: -999999px; text-indent: -999999px;
display: inline-block; display: inline-block;
margin-top: -10px; margin-top: -10px;
margin-right: 0; margin-right: 0;
@include respond-to(mobile) { @include respond-to(mobile) {
margin-top: -50px; margin-top: -50px;
margin-right: $baseline; margin-right: $baseline;
} }
} }
} }
.active { .active {
color: $green; color: $green;
} }
button { button {
margin-top: 20px; margin-top: 20px;
} }
} }
.page-wrap { .page-wrap {
min-height: 100%; min-height: 100%;
/* equal to footer height */ /* equal to footer height */
margin-bottom: -($nav-height); margin-bottom: -($nav-height);
} }
.page-wrap:after { .page-wrap:after {
content: ""; content: "";
display: block; display: block;
} }
.page-wrap:after { .page-wrap:after {
/* .push must be the same height as footer */ /* .push must be the same height as footer */
height: $nav-height; height: $nav-height;
} }
...@@ -23,7 +23,7 @@ $base-line-height: 20px; ...@@ -23,7 +23,7 @@ $base-line-height: 20px;
$button-height: 60px; $button-height: 60px;
.center { .center {
margin: 0 auto; margin: 0 auto;
} }
.padded-lg {padding: ($baseline * 2) 0;} .padded-lg {padding: ($baseline * 2) 0;}
...@@ -44,17 +44,17 @@ $serif: 'myriad-pro', helvetica, Georgia, serif; ...@@ -44,17 +44,17 @@ $serif: 'myriad-pro', helvetica, Georgia, serif;
$sans: 'HeimatStencil-SemiBold', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif; $sans: 'HeimatStencil-SemiBold', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$mono: 'Inconsolata', 'courier new', courier, mono-space; $mono: 'Inconsolata', 'courier new', courier, mono-space;
.serif {font-family: $serif;} .serif { font-family: $serif; }
.sans {font-family: $sans;} .sans { font-family: $sans; }
.mono {font-family: $mono;} .mono { font-family: $mono; }
.text-center {text-align: center !important;} .text-center { text-align: center !important; }
.text-left {text-align: left !important;} .text-left { text-align: left !important; }
.text-right {text-align: right !important;} .text-right { text-align: right !important; }
.text-green {color: $green;} .text-green { color: $green; }
.uppercase {text-transform: uppercase !important;} .uppercase { text-transform: uppercase !important; }
@font-face { @font-face {
font-family: 'HeimatStencil-SemiBold'; font-family: 'HeimatStencil-SemiBold';
...@@ -65,47 +65,45 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space; ...@@ -65,47 +65,45 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space;
font-style: normal; font-style: normal;
} }
//color //color
.dark-background { .dark-background {
background-color: #000; background-color: #000;
color: $white; color: $white;
a { a {
color: inherit; color: inherit;
&:hover {
color: $green; &:hover {
color: $green;
} }
&:active { &:active {
color: darken($green, 30%); color: darken($green, 30%);
} }
} }
} }
.white-background { .white-background {
background-color: $white; background-color: $white;
} }
//elements //elements
.divider { .divider {
background: image-url('divider.png') no-repeat center bottom; background: image-url('divider.png') no-repeat center bottom;
height: 70px; height: 70px;
width: 70px; width: 70px;
background-size: 70px 70px; background-size: 70px 70px;
display: table-cell; display: table-cell;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
} }
.packer { .packer {
color: $orange; color: $orange;
font-size: 20px; font-size: 20px;
a:hover, a:hover, a:active, a:visited {
a:active, color: inherit;
a:visited {
color: inherit;
} }
} }
...@@ -141,39 +139,39 @@ $break-lg: 980px; ...@@ -141,39 +139,39 @@ $break-lg: 980px;
/* utlities */ /* utlities */
.d { .d {
border-bottom: 1px solid $red; border-bottom: 1px solid $red;
border-top: 1px solid $red; border-top: 1px solid $red;
background-color: transparentize($red, .9); background-color: transparentize($red, .9);
} }
.hyphenate { .hyphenate {
-webkit-hyphens: auto; -webkit-hyphens: auto;
-moz-hyphens: auto; -moz-hyphens: auto;
hyphens: auto; hyphens: auto;
} }
.full-width { .full-width {
margin-right: -20px; margin-right: -20px;
margin-left: -20px; margin-left: -20px;
} }
.add-transition { .add-transition {
transition: all .1s ease-in-out; -webkit-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out; -moz-transition: all .1s ease-in-out;
-webkit-transition: all .1s ease-in-out; -o-transition: all .1s ease-in-out;
-o-transition: all .1s ease-in-out; transition: all .1s ease-in-out;
} }
@mixin opacity($opacity) { @mixin opacity($opacity) {
-khtml-opacity: $opacity; -khtml-opacity: $opacity;
-moz-opacity: $opacity; -moz-opacity: $opacity;
opacity: $opacity; opacity: $opacity;
} }
@mixin transform-scale($value) { @mixin transform-scale($value) {
-moz-transform: scale($value); -webkit-transform: scale($value);
-webkit-transform: scale($value); -moz-transform: scale($value);
transform: scale($value); transform: scale($value);
} }
@mixin transition($type, $speed, $easing) { @mixin transition($type, $speed, $easing) {
...@@ -184,8 +182,8 @@ opacity: $opacity; ...@@ -184,8 +182,8 @@ opacity: $opacity;
} }
@mixin rounded($radius) { @mixin rounded($radius) {
-moz-border-radius: $radius; -webkit-border-radius: $radius;
-webkit-border-radius: $radius; -moz-border-radius: $radius;
-khtml-border-radius: $radius; -khtml-border-radius: $radius;
border-radius: $radius; border-radius: $radius;
} }
nav { nav {
height: $nav-height; height: $nav-height;
padding: $baseline 0; height: $nav-height;
padding: 0; padding: 0;
margin: 0; margin: 0;
min-width: 940px; min-width: 940px;
text-transform: uppercase; text-transform: uppercase;
color: $white; color: $white;
font-family: $sans; font-family: $sans;
font-size: 16px; font-size: 16px;
border-bottom: 1px solid $border-dark; border-bottom: 1px solid $border-dark;
ul {
margin-top: ($baseline * 2);
margin-left: $nav-height;
li {
display: inline-block;
margin-right: 50px;
}
}
.packer-logo {
background: image-url('logo_nav.png') no-repeat center top;
height: 80px;
width: 80px;
background-size: 34px 50px;
text-indent: -999999px;
display: inline-block;
margin-top: 25px;
}
@media (min-width: $screen-md-min) {
ul { ul {
margin-top: ($baseline * 2); li {
margin-left: $nav-height; &.featured {
margin: -20px 0 0 10px;
float: right;
li { a {
display: inline-block; @include button;
margin-right: 50px; font-weight: bold;
}
} }
}
} }
}
.packer-logo { @media (max-width: $screen-sm-max) {
background: image-url('logo_nav.png') no-repeat center top; height: auto;
height: 80px; padding: 0;
width: 80px; min-width: auto;
background-size: 34px 50px;
text-indent: -999999px; ul {
display: inline-block; margin: 1em 0 1em 80px;
margin-top: 25px;
}
.active { li {
color: $green; display: block;
margin: 0;
padding: 1em;
}
} }
}
@media (max-width: $screen-xs-max) {
button { button {
margin-top: $baseline;
}
} //nav }
}
}
form, form, input, textarea, button {
input, padding: 0;
textarea, margin: 0;
button { vertical-align: middle;
padding: 0; border: 0;
margin: 0; box-shadow: none;
vertical-align: middle; -moz-border-radius: 0;
border: 0; -webkit-border-radius: 0;
box-shadow: none; -khtml-border-radius: 0;
-moz-border-radius: 0; border-radius: 0;
-webkit-border-radius: 0; background-color: transparent;
-khtml-border-radius: 0; font-family: $mono;
border-radius: 0; font-size: $base-font-size;
background-color: transparent; line-height: 1.0;
font-family: $mono; color: inherit;
font-size: $base-font-size;
line-height: 1.0;
color: inherit;
&:focus { &:focus {
line-height: 1.0; line-height: 1.0;
box-shadow: none !important; box-shadow: none !important;
outline: none; outline: none;
vertical-align: middle; vertical-align: middle;
} }
} }
\ No newline at end of file
.sidebar { .sidebar {
$border: 1px solid $gray-dark; $border: 1px solid $gray-dark;
font-size: 16px; font-size: 16px;
font-family: $mono; font-family: $mono;
color: $gray-light; color: $gray-light;
width: $sidebar-width; background-color: $sidebar-background-color;
float: left; min-height: 100%;
background-color: $sidebar-background-color;
height: 100%;
h2 { h2 {
color: $green; color: $green;
text-transform: uppercase; text-transform: uppercase;
padding: $docs-top-margin 20px 0; padding: $docs-top-margin 20px 0;
} }
h4 {
color: $white;
text-transform: uppercase;
margin-bottom: -10px;
}
ul { h4 {
@extend .padded-sm; color: $white;
text-transform: uppercase;
margin-bottom: -10px;
}
li { ul {
border-bottom: $border; @extend .padded-sm;
padding: 15px 0;
text-align: left;
}
li > * { li {
padding: auto 20px; border-bottom: $border;
margin-left: 20px; padding: 15px 0;
display: block; text-align: left;
width: 100%;
}
} }
.sidebar-background { li > * {
background-color: $sidebar-background-color; padding: auto 20px;
height: 100%; margin-left: 20px;
width: $sidebar-width; display: block;
position: fixed; width: 100%;
top: 0;
left: 0;
z-index: -9999;
} }
}
} }
* { * {
margin: 0; margin: 0;
} }
html, html,
body { body {
margin: 0; margin: 0;
height: 100%; height: 100%;
} }
html { html {
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
body { body {
background-color: $background; background-color: $background;
font-family: $sans; font-family: $sans;
letter-spacing: 1px; letter-spacing: 1px;
font-size: $base-font-size; font-size: $base-font-size;
line-height: $base-line-height; line-height: $base-line-height;
} }
h1, h1, h2, h3, h4, h5, h6 {
h2, letter-spacing: 2px;
h3, font-weight: normal;
h4,
h5,
h6 {
letter-spacing: 2px;
font-weight: normal;
} }
h1 { h1 {
font-family: $sans; font-family: $sans;
font-size: 70px; font-size: 70px;
line-height: (80/70); line-height: (80/70);
@include respond-to(mobile) { @include respond-to(mobile) {
font-size: 50px; font-size: 50px;
line-height: (50/45); line-height: (50/45);
} }
} }
h2 { h2 {
font-family: $sans; font-family: $sans;
font-size: 40px; font-size: 40px;
line-height: (50/40); line-height: (50/40);
&.has-dividers { &.has-dividers {
//overflow: auto !important; //overflow: auto !important;
display: table-cell; display: table-cell;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
@include respond-to(mobile) { @include respond-to(mobile) {
display: block; display: block;
}
} }
}
} }
h3 { h3 {
font-family: $sans; font-family: $sans;
font-size: 20px; font-size: 20px;
line-height: (30/20); line-height: (30/20);
} }
h4 { h4 {
font-family: $mono; font-family: $mono;
font-size: 20px; font-size: 20px;
line-height: (30/20); line-height: (30/20);
} }
h5 { h5 {
font-family: $sans; font-family: $sans;
font-size: 16px; font-size: 16px;
line-height: (22/16); line-height: (22/16);
} }
h6 { h6 {
font-family: $mono; font-family: $mono;
font-size: 16px; font-size: 16px;
line-height: (22/16); line-height: (22/16);
} }
p { p {
font-family: $serif; font-family: $serif;
font-size: 17px; font-size: 17px;
line-height: (30/17); line-height: (30/17);
letter-spacing: 1px; letter-spacing: 1px;
&.large-text {
font-size: 20px;
line-height: (35/20);
}
a { &.large-text {
color: $green; font-size: 20px;
&:hover { line-height: (35/20);
color: darken($green, 30%); }
}
&:active {
color: darken($green, 50%);
}
}
}
a { a {
color: inherit; color: $green;
text-decoration: none;
&:hover { &:hover {
color: inherit; color: darken($green, 30%);
text-decoration: none;
}
&:visited {
} }
&:active { &:active {
color: darken($green, 50%);
} }
}
}
a {
color: inherit;
text-decoration: none;
&:hover {
color: inherit;
text-decoration: none;
}
} }
dt { dt {
font-size: 18px; font-size: 18px;
} }
dd { dd {
font-family: $serif; font-family: $serif;
font-size: 17px; font-size: 17px;
line-height: 1.5; line-height: 1.5;
letter-spacing: 1px; letter-spacing: 1px;
margin-bottom: 30px; margin-bottom: 30px;
} }
ul, ul, ol {
ol { margin: 0;
margin: 0; padding: 0;
padding: 0; list-style-type: none;
list-style-type: none;
} }
em { em {
font-style: italic; font-style: italic;
} }
strong { strong {
font-weight: bold; font-weight: bold;
} }
small, small, .small {
.small { font-size: 13px;
font-size: 13px;
} }
hr { hr {
margin: ($baseline * 2) 0; margin: ($baseline * 2) 0;
border-color: $gray-mid; border-color: $gray-mid;
border-bottom: 0; border-bottom: 0;
} }
pre { pre {
background-color: $black; background-color: $black;
color: $white; color: $white;
margin: $baseline 0; margin: $baseline 0;
} }
table { table {
font-family: $mono; font-family: $mono;
margin: ($baseline * 2) 0; margin: ($baseline * 2) 0;
color: $gray-dark; color: $gray-dark;
th { th {
color: $black; color: $black;
font-weight: normal !important; font-weight: normal !important;
} }
} }
::selection { ::selection {
background: #ffff00; /* Safari */ background: #ffff00; /* Safari */
color: $black; color: $black;
} }
::-moz-selection { ::-moz-selection {
background: #ffff00; /* Firefox */ background: #ffff00; /* Firefox */
color: $black; color: $black;
}
input {
}
button {
height: $button-height;
background-color: transparent;
border-width: 2px;
border-style: solid;
padding: 0 30px;
text-transform: uppercase;
letter-spacing: 3px;
@include rounded(5px);
&.spaced {
margin-right: 20px;
}
&.primary {
color: $green;
border-color: $green;
&:hover {
background-color: transparentize($green, .7);
}
&:active {
background-color: transparentize($green, .5);
}
}
&.secondary {
color: $black;
border-color: $black;
&:hover {
background-color: transparentize($black, .9);
}
&:active {
background-color: transparentize($black, .7);
}
}
&.inline {
margin: auto $baseline;
@include respond-to(mobile) {
display: block;
width: 100%;
margin: $baseline 0;
}
}
} }
@import "bootstrap-sprockets";
@import "bootstrap";
@import url("http://fonts.googleapis.com/css?family=Inconsolata");
@import "_helpers";
@import "_reset";
@import "_columns";
@import "_buttons";
@import "_styles";
@import "_nav";
@import "_footer";
@import "_components";
@import "_sidebar";
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment