mirror of
https://github.com/mgerb/react-starter
synced 2026-01-10 17:12:48 +00:00
init
This commit is contained in:
9
app/scss/Default.scss
Normal file
9
app/scss/Default.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
.Default {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
font-size: 5em;
|
||||
}
|
||||
5
app/scss/Home.scss
Normal file
5
app/scss/Home.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
.Home {
|
||||
max-width: 800px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
34
app/scss/Navbar.scss
Normal file
34
app/scss/Navbar.scss
Normal file
@@ -0,0 +1,34 @@
|
||||
.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%);
|
||||
}
|
||||
}
|
||||
8
app/scss/index.scss
Normal file
8
app/scss/index.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
@import '../assets/normalize.css';
|
||||
@import './variables.scss';
|
||||
|
||||
// import all css files
|
||||
@import './style.scss';
|
||||
@import './Navbar.scss';
|
||||
@import './Default.scss';
|
||||
@import './Home.scss';
|
||||
3
app/scss/style.scss
Normal file
3
app/scss/style.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
body {
|
||||
padding-top: $navbarHeight;
|
||||
}
|
||||
1
app/scss/variables.scss
Normal file
1
app/scss/variables.scss
Normal file
@@ -0,0 +1 @@
|
||||
$navbarHeight: 50px;
|
||||
Reference in New Issue
Block a user