Use flexbox for header

parent df77b0d7
......@@ -52,8 +52,6 @@ body
bottom: 0;
line-height: 3.5rem;
font-size: .9rem;
letter-spacing: 1px;
//border-bottom: 1px solid #4a4a4a;
@media #{$medium-and-up} { font-size: 1.1rem; }
&:hover
......
......@@ -227,35 +227,50 @@
display: -webkit-flex;
display: flex;
}
@mixin flex($values) {
-webkit-box-flex: $values;
-moz-box-flex: $values;
-webkit-flex: $values;
-ms-flex: $values;
flex: $values;
}
@mixin order($val) {
-webkit-box-ordinal-group: $val;
-moz-box-ordinal-group: $val;
-ms-flex-order: $val;
-webkit-order: $val;
order: $val;
}
@mixin flex-flow($val) {
-ms-flex-flow: $val;
-webkit-flex-flow: $val;
flex-flow: $val;
}
@mixin align($align) {
-webkit-flex-align: $align;
-ms-flex-align: $align;
-webkit-align-items: $align;
align-items: $align;
}
@mixin justify-content($val) {
-webkit-justify-content: $val;
justify-content: $val;
}
@mixin flex($values) {
-webkit-box-flex: $values;
-moz-box-flex: $values;
-webkit-flex: $values;
-ms-flex: $values;
flex: $values;
}
@mixin order($val) {
-webkit-box-ordinal-group: $val;
-moz-box-ordinal-group: $val;
-ms-flex-order: $val;
-webkit-order: $val;
order: $val;
}
@mixin flex-flow($val) {
-ms-flex-flow: $val;
-webkit-flex-flow: $val;
flex-flow: $val;
}
@mixin align($align) {
-webkit-flex-align: $align;
-ms-flex-align: $align;
-webkit-align-items: $align;
align-items: $align;
}
@mixin justify-content($val) {
-webkit-justify-content: $val;
justify-content: $val;
}
@mixin flex-direction($direction) {
@if $direction == column {
-webkit-flex-direction:vertical;
-moz-flex-direction:vertical;
-ms-flex-direction:column;
-webkit-flex-direction:column;
flex-direction:column;
} @else {
-webkit-flex-direction:horizontal;
-moz-flex-direction:horizontal;
-ms-flex-direction:row;
-webkit-flex-direction:row;
flex-direction:row;
}
}
// Gradients
@mixin gradient($default: #F5F5F5, $start: #EEE, $stop: #FFF) {
......
@import 'partials/base';
body.gogo-load-css
{
height: auto;
min-height: 100%;
@include flexbox();
@include flex-direction(column);
}
.gogo-load-css
{
......@@ -20,16 +28,8 @@
@import 'components/wysiwyg-content';
body
{
height: auto;
min-height: 100%;
@include flexbox();
}
header
{
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
......@@ -37,13 +37,6 @@
#page-container
{
padding-top: 3rem;
@media only screen and (min-width : 701px)
{
padding-top: 3.5rem;
}
&.with-sidebar {
@media only screen and (min-width : 900px) and (max-width : 1400px) {
padding-left: 215px;
......
......@@ -14,13 +14,11 @@ body
{
@include flexbox();
width: 100%;
height: 100%;
}
#page-content.directory
{
width: 100%;
height: 100%;
margin: 0;
max-width: 100%;
@include flexbox();
......
......@@ -4,6 +4,7 @@
header
{
color: white ;
@media only screen and (max-width : 701px) { margin-bottom: -1px; }
//@extend .z-depth-2;
#menu
......@@ -26,7 +27,6 @@ header
{
display: inline-block;
font-weight: bold;
letter-spacing: -1px;
font-size: 1.4rem;
line-height: 3rem;
margin-right: 0;
......@@ -93,7 +93,6 @@ header
{
font-size: 1.5rem;
display: inline-block;
color: #c6cad0;
padding-left: 1rem;
line-height: 2.1rem;
......@@ -117,14 +116,13 @@ header
display: none;
line-height: 2.5rem;
position: absolute;
border-top: 1px solid #a9b2c1;
padding: .5rem 0;
left: 0;
right: 0;
top: 3rem;
padding-bottom: 1rem;
text-align: center;
background-color: #3d4b61;
background-color: inherit;
}
......@@ -133,6 +131,7 @@ header
line-height: 3rem;
float : right;
line-height: 3.5rem;
position: relative;
}
.nav-overlay
......@@ -196,7 +195,6 @@ header
border-radius: 0;
border: none;
background-color: transparent;
letter-spacing: .5px;
.header-icon
{
......
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