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;
}
}
...@@ -14,13 +14,32 @@ header .header { ...@@ -14,13 +14,32 @@ header .header {
} }
.hero { .hero {
height: $hero-height; height: $hero-height + 100px;
background: #000000 image-url('hero_image.jpg') no-repeat 35px -40px; background: #000000 image-url('hero_image.jpg') no-repeat;
background-size: 960px 467px; background-position: 35px -40px;
background-size: 100%;
h2 { h2 {
margin-top: 70px; margin-top: 70px;
} }
@media (max-width: $screen-md-max) {
height: $hero-height;
h2 {
font-size: 2.1em;
}
}
@media (max-width: $screen-sm-max) {
height: auto;
background: none;
h2 {
margin: 0;
padding: 1em;
}
}
} }
.belt { .belt {
...@@ -35,6 +54,13 @@ header .header { ...@@ -35,6 +54,13 @@ header .header {
min-height: 73px; min-height: 73px;
margin: 0 auto; margin: 0 auto;
padding-left: 100px; padding-left: 100px;
@media (max-width: $screen-sm) {
background: none;
font-size: 75%;
min-height: 50px;
padding: 0;
}
} }
.download-row { .download-row {
...@@ -140,17 +166,12 @@ header .header { ...@@ -140,17 +166,12 @@ header .header {
} }
.docs-wrapper { .docs-wrapper {
clear: right;
.docs-body { .docs-body {
float: left;
width: 70%;
max-width: 760px;
display: block;
@extend .white-background; @extend .white-background;
.docs-content { .docs-content {
padding: $docs-top-margin 80px; padding: $docs-top-margin 80px;
max-width: 960px;
display: block; display: block;
code { code {
...@@ -172,8 +193,7 @@ header .header { ...@@ -172,8 +193,7 @@ header .header {
} }
} }
ul, ul, ol {
ol {
list-style-position: inside; list-style-position: inside;
margin-top: $baseline; margin-top: $baseline;
margin-left: 20px; margin-left: 20px;
...@@ -200,10 +220,10 @@ header .header { ...@@ -200,10 +220,10 @@ header .header {
font-size: 17px; font-size: 17px;
line-height: 1.5; line-height: 1.5;
letter-spacing: 1px; letter-spacing: 1px;
margin-left: -80px; margin-left: -95px;
margin-right: -80px; margin-right: -95px;
padding-top: 15px; padding-top: 40px;
padding-bottom: 15px; padding-bottom: 40px;
padding-left: 80px; padding-left: 80px;
padding-right: 80px; padding-right: 80px;
border-radius: 0; border-radius: 0;
...@@ -212,8 +232,8 @@ header .header { ...@@ -212,8 +232,8 @@ header .header {
pre { pre {
border: 0; border: 0;
font-size: 14px; font-size: 14px;
margin-left: -80px; margin-left: -95px;
margin-right: -80px; margin-right: -95px;
padding-top: 40px; padding-top: 40px;
padding-bottom: 40px; padding-bottom: 40px;
padding-left: 80px; padding-left: 80px;
...@@ -222,17 +242,6 @@ header .header { ...@@ -222,17 +242,6 @@ header .header {
} }
} }
.docs-background {
@extend .white-background;
height: 100%;
width: 70%;
max-width: 760px;
position: fixed;
top: 0;
left: $sidebar-width;
z-index: -9999;
}
section { section {
margin-top: $docs-top-margin; margin-top: $docs-top-margin;
} }
...@@ -261,7 +270,8 @@ header .header { ...@@ -261,7 +270,8 @@ header .header {
height: $nav-height; height: $nav-height;
border-top: $border; border-top: $border;
font-size: 20px; font-size: 20px;
margin: 0px; margin: 0 -15px -40px -15px;
display: block;
h4 { h4 {
display: inline-block; display: inline-block;
...@@ -274,7 +284,6 @@ header .header { ...@@ -274,7 +284,6 @@ header .header {
} }
span { span {
@include respond-to(mobile) { @include respond-to(mobile) {
display: block; display: block;
} }
......
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;
...@@ -51,22 +51,20 @@ margin-left: -20px; ...@@ -51,22 +51,20 @@ margin-left: -20px;
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;
} }
...@@ -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,7 +65,6 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space; ...@@ -65,7 +65,6 @@ $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;
...@@ -73,9 +72,11 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space; ...@@ -73,9 +72,11 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space;
a { a {
color: inherit; color: inherit;
&:hover { &:hover {
color: $green; color: $green;
} }
&:active { &:active {
color: darken($green, 30%); color: darken($green, 30%);
} }
...@@ -83,28 +84,25 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space; ...@@ -83,28 +84,25 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space;
} }
.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,
a:visited {
color: inherit; color: inherit;
} }
} }
...@@ -141,38 +139,38 @@ $break-lg: 980px; ...@@ -141,38 +139,38 @@ $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) {
-webkit-transform: scale($value);
-moz-transform: scale($value); -moz-transform: scale($value);
-webkit-transform: scale($value);
transform: scale($value); transform: scale($value);
} }
...@@ -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;
...@@ -18,7 +18,6 @@ nav { ...@@ -18,7 +18,6 @@ nav {
display: inline-block; display: inline-block;
margin-right: 50px; margin-right: 50px;
} }
} }
.packer-logo { .packer-logo {
...@@ -31,12 +30,41 @@ nav { ...@@ -31,12 +30,41 @@ nav {
margin-top: 25px; margin-top: 25px;
} }
.active { @media (min-width: $screen-md-min) {
color: $green; ul {
li {
&.featured {
margin: -20px 0 0 10px;
float: right;
a {
@include button;
font-weight: bold;
}
}
}
}
} }
button { @media (max-width: $screen-sm-max) {
margin-top: $baseline; height: auto;
padding: 0;
min-width: auto;
ul {
margin: 1em 0 1em 80px;
li {
display: block;
margin: 0;
padding: 1em;
}
} }
}
@media (max-width: $screen-xs-max) {
button {
} //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;
} }
} }
...@@ -3,10 +3,8 @@ ...@@ -3,10 +3,8 @@
font-size: 16px; font-size: 16px;
font-family: $mono; font-family: $mono;
color: $gray-light; color: $gray-light;
width: $sidebar-width;
float: left;
background-color: $sidebar-background-color; background-color: $sidebar-background-color;
height: 100%; min-height: 100%;
h2 { h2 {
color: $green; color: $green;
...@@ -36,14 +34,4 @@ ...@@ -36,14 +34,4 @@
width: 100%; width: 100%;
} }
} }
.sidebar-background {
background-color: $sidebar-background-color;
height: 100%;
width: $sidebar-width;
position: fixed;
top: 0;
left: 0;
z-index: -9999;
}
} }
...@@ -21,12 +21,7 @@ body { ...@@ -21,12 +21,7 @@ body {
line-height: $base-line-height; line-height: $base-line-height;
} }
h1, h1, h2, h3, h4, h5, h6 {
h2,
h3,
h4,
h5,
h6 {
letter-spacing: 2px; letter-spacing: 2px;
font-weight: normal; font-weight: normal;
} }
...@@ -94,9 +89,11 @@ p { ...@@ -94,9 +89,11 @@ p {
a { a {
color: $green; color: $green;
&:hover { &:hover {
color: darken($green, 30%); color: darken($green, 30%);
} }
&:active { &:active {
color: darken($green, 50%); color: darken($green, 50%);
} }
...@@ -111,15 +108,6 @@ a { ...@@ -111,15 +108,6 @@ a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
&:visited {
}
&:active {
}
} }
dt { dt {
...@@ -134,8 +122,7 @@ dd { ...@@ -134,8 +122,7 @@ dd {
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;
...@@ -149,8 +136,7 @@ strong { ...@@ -149,8 +136,7 @@ strong {
font-weight: bold; font-weight: bold;
} }
small, small, .small {
.small {
font-size: 13px; font-size: 13px;
} }
...@@ -185,57 +171,3 @@ table { ...@@ -185,57 +171,3 @@ table {
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