1
0
mirror of https://github.com/mgerb/react-starter synced 2026-01-10 09:02:49 +00:00

added wrapper and navbar

This commit is contained in:
2017-02-02 23:56:05 +00:00
committed by Mitchell Gerber
parent 73bd161685
commit 5f14578f86
16 changed files with 128 additions and 120 deletions

View File

@@ -1,9 +0,0 @@
.Default {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
font-size: 5em;
}

View File

@@ -1,5 +0,0 @@
.Home {
max-width: 800px;
margin-left: auto;
margin-right: auto;
}

View File

@@ -1,34 +0,0 @@
.Navbar {
position: fixed;
top: 0px;
display: flex;
align-items: center;
width: 100%;
height: $navbarHeight;
background-color: darken(white, 5%);
border-bottom: 1px solid darken(white, 10%);
.active {
background-color: darken(white, 2%);
}
}
.Navbar__item {
align-self: stretch;
display: flex;
align-items: center;
justify-content: center;
width: 100px;
background-color: white;
color: gray;
cursor: pointer;
text-decoration: none;
&:hover {
background-color: darken(white, 2%);
}
& + .Navbar__item {
border-left: 1px solid darken(white, 5%);
}
}

View File

@@ -1,8 +1,3 @@
@import '../assets/normalize.css';
@import './variables.scss';
// import all css files
@import './style.scss';
@import './Navbar.scss';
@import './Default.scss';
@import './Home.scss';

View File

@@ -1,3 +1,11 @@
body {
padding-top: $navbarHeight;
background-color: $gray1;
color: $white;
padding-left: $navbarWidth;
}
.content {
padding: 10px;
height: 100%;
width: 100%;
}

View File

@@ -1 +1,13 @@
$navbarHeight: 50px;
$navbarWidth: 200px;
// colors
$primaryBlue: #42adf4;
$white: darken(white, 10%);
$gray1: #686a6e;
$gray2: #424549;
$gray3: #36393e;
$gray4: #2e3136;
$gray5: #282b30;
$gray6: #1e2124;