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 {
}
.hero {
height: $hero-height;
background: #000000 image-url('hero_image.jpg') no-repeat 35px -40px;
background-size: 960px 467px;
height: $hero-height + 100px;
background: #000000 image-url('hero_image.jpg') no-repeat;
background-position: 35px -40px;
background-size: 100%;
h2 {
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 {
......@@ -35,6 +54,13 @@ header .header {
min-height: 73px;
margin: 0 auto;
padding-left: 100px;
@media (max-width: $screen-sm) {
background: none;
font-size: 75%;
min-height: 50px;
padding: 0;
}
}
.download-row {
......@@ -140,17 +166,12 @@ header .header {
}
.docs-wrapper {
clear: right;
.docs-body {
float: left;
width: 70%;
max-width: 760px;
display: block;
@extend .white-background;
.docs-content {
padding: $docs-top-margin 80px;
max-width: 960px;
display: block;
code {
......@@ -172,8 +193,7 @@ header .header {
}
}
ul,
ol {
ul, ol {
list-style-position: inside;
margin-top: $baseline;
margin-left: 20px;
......@@ -200,10 +220,10 @@ header .header {
font-size: 17px;
line-height: 1.5;
letter-spacing: 1px;
margin-left: -80px;
margin-right: -80px;
padding-top: 15px;
padding-bottom: 15px;
margin-left: -95px;
margin-right: -95px;
padding-top: 40px;
padding-bottom: 40px;
padding-left: 80px;
padding-right: 80px;
border-radius: 0;
......@@ -212,8 +232,8 @@ header .header {
pre {
border: 0;
font-size: 14px;
margin-left: -80px;
margin-right: -80px;
margin-left: -95px;
margin-right: -95px;
padding-top: 40px;
padding-bottom: 40px;
padding-left: 80px;
......@@ -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 {
margin-top: $docs-top-margin;
}
......@@ -261,7 +270,8 @@ header .header {
height: $nav-height;
border-top: $border;
font-size: 20px;
margin: 0px;
margin: 0 -15px -40px -15px;
display: block;
h4 {
display: inline-block;
......@@ -274,7 +284,6 @@ header .header {
}
span {
@include respond-to(mobile) {
display: block;
}
......
footer {
height: $nav-height;
max-height: $nav-height;
background-color: $black !important;
padding: 0;
margin: 0;
text-transform: uppercase;
color: $white;
font-family: $sans;
@include respond-to(mobile) {
margin-right: -20px;
margin-left: -20px;
}
height: $nav-height;
max-height: $nav-height;
background-color: $black !important;
padding: 0;
margin: 0;
text-transform: uppercase;
color: $white;
font-family: $sans;
@include respond-to(mobile) {
margin-right: -20px;
margin-left: -20px;
}
ul {
margin-top: 40px;
......@@ -51,22 +51,20 @@ margin-left: -20px;
button {
margin-top: 20px;
}
}
.page-wrap {
min-height: 100%;
/* equal to footer height */
margin-bottom: -($nav-height);
min-height: 100%;
/* equal to footer height */
margin-bottom: -($nav-height);
}
.page-wrap:after {
content: "";
display: block;
content: "";
display: block;
}
.page-wrap:after {
/* .push must be the same height as footer */
height: $nav-height;
/* .push must be the same height as footer */
height: $nav-height;
}
......@@ -44,17 +44,17 @@ $serif: 'myriad-pro', helvetica, Georgia, serif;
$sans: 'HeimatStencil-SemiBold', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$mono: 'Inconsolata', 'courier new', courier, mono-space;
.serif {font-family: $serif;}
.sans {font-family: $sans;}
.mono {font-family: $mono;}
.serif { font-family: $serif; }
.sans { font-family: $sans; }
.mono { font-family: $mono; }
.text-center {text-align: center !important;}
.text-left {text-align: left !important;}
.text-right {text-align: right !important;}
.text-center { text-align: center !important; }
.text-left { text-align: left !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-family: 'HeimatStencil-SemiBold';
......@@ -65,7 +65,6 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space;
font-style: normal;
}
//color
.dark-background {
background-color: #000;
......@@ -73,9 +72,11 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space;
a {
color: inherit;
&:hover {
color: $green;
}
&:active {
color: darken($green, 30%);
}
......@@ -83,28 +84,25 @@ $mono: 'Inconsolata', 'courier new', courier, mono-space;
}
.white-background {
background-color: $white;
background-color: $white;
}
//elements
.divider {
background: image-url('divider.png') no-repeat center bottom;
height: 70px;
width: 70px;
background-size: 70px 70px;
display: table-cell;
text-align: center;
vertical-align: middle;
background: image-url('divider.png') no-repeat center bottom;
height: 70px;
width: 70px;
background-size: 70px 70px;
display: table-cell;
text-align: center;
vertical-align: middle;
}
.packer {
color: $orange;
font-size: 20px;
color: $orange;
font-size: 20px;
a:hover,
a:active,
a:visited {
a:hover, a:active, a:visited {
color: inherit;
}
}
......@@ -141,38 +139,38 @@ $break-lg: 980px;
/* utlities */
.d {
border-bottom: 1px solid $red;
border-top: 1px solid $red;
background-color: transparentize($red, .9);
border-bottom: 1px solid $red;
border-top: 1px solid $red;
background-color: transparentize($red, .9);
}
.hyphenate {
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
.full-width {
margin-right: -20px;
margin-left: -20px;
margin-right: -20px;
margin-left: -20px;
}
.add-transition {
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;
-webkit-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out;
-o-transition: all .1s ease-in-out;
transition: all .1s ease-in-out;
}
@mixin opacity($opacity) {
-khtml-opacity: $opacity;
-moz-opacity: $opacity;
opacity: $opacity;
-khtml-opacity: $opacity;
-moz-opacity: $opacity;
opacity: $opacity;
}
@mixin transform-scale($value) {
-webkit-transform: scale($value);
-moz-transform: scale($value);
-webkit-transform: scale($value);
transform: scale($value);
}
......@@ -184,8 +182,8 @@ opacity: $opacity;
}
@mixin rounded($radius) {
-moz-border-radius: $radius;
-webkit-border-radius: $radius;
-khtml-border-radius: $radius;
border-radius: $radius;
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-khtml-border-radius: $radius;
border-radius: $radius;
}
nav {
height: $nav-height;
padding: $baseline 0;
height: $nav-height;
padding: 0;
margin: 0;
min-width: 940px;
......@@ -18,7 +18,6 @@ nav {
display: inline-block;
margin-right: 50px;
}
}
.packer-logo {
......@@ -31,12 +30,41 @@ nav {
margin-top: 25px;
}
.active {
color: $green;
@media (min-width: $screen-md-min) {
ul {
li {
&.featured {
margin: -20px 0 0 10px;
float: right;
a {
@include button;
font-weight: bold;
}
}
}
}
}
button {
margin-top: $baseline;
@media (max-width: $screen-sm-max) {
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,
input,
textarea,
button {
padding: 0;
margin: 0;
vertical-align: middle;
border: 0;
box-shadow: none;
-moz-border-radius: 0;
-webkit-border-radius: 0;
-khtml-border-radius: 0;
border-radius: 0;
background-color: transparent;
font-family: $mono;
font-size: $base-font-size;
line-height: 1.0;
color: inherit;
form, input, textarea, button {
padding: 0;
margin: 0;
vertical-align: middle;
border: 0;
box-shadow: none;
-moz-border-radius: 0;
-webkit-border-radius: 0;
-khtml-border-radius: 0;
border-radius: 0;
background-color: transparent;
font-family: $mono;
font-size: $base-font-size;
line-height: 1.0;
color: inherit;
&:focus {
line-height: 1.0;
box-shadow: none !important;
outline: none;
vertical-align: middle;
}
}
......@@ -3,10 +3,8 @@
font-size: 16px;
font-family: $mono;
color: $gray-light;
width: $sidebar-width;
float: left;
background-color: $sidebar-background-color;
height: 100%;
min-height: 100%;
h2 {
color: $green;
......@@ -36,14 +34,4 @@
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 {
line-height: $base-line-height;
}
h1,
h2,
h3,
h4,
h5,
h6 {
h1, h2, h3, h4, h5, h6 {
letter-spacing: 2px;
font-weight: normal;
}
......@@ -94,9 +89,11 @@ p {
a {
color: $green;
&:hover {
color: darken($green, 30%);
}
&:active {
color: darken($green, 50%);
}
......@@ -111,15 +108,6 @@ a {
color: inherit;
text-decoration: none;
}
&:visited {
}
&:active {
}
}
dt {
......@@ -134,8 +122,7 @@ dd {
margin-bottom: 30px;
}
ul,
ol {
ul, ol {
margin: 0;
padding: 0;
list-style-type: none;
......@@ -149,8 +136,7 @@ strong {
font-weight: bold;
}
small,
.small {
small, .small {
font-size: 13px;
}
......@@ -185,57 +171,3 @@ table {
background: #ffff00; /* Firefox */
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