Basic layout

This commit is contained in:
2017-01-31 11:56:51 +08:00
parent 9461b573d8
commit 22e9a2ad97
16 changed files with 134 additions and 4 deletions
+23
View File
@@ -0,0 +1,23 @@
body {
}
section {
@include outer-container;
margin-top: 6rem;
@include media($mobile) {
margin-top: 3rem;
}
header {
@include span-columns(10);
@include shift(1);
text-align: center;
// background-color: purple;
@include media($mobile) {
@include span-columns(10);
@include shift(1);
}
}
}
View File
+54
View File
@@ -0,0 +1,54 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
*:hover, *:active, *:focus {
outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-tap-highlight-color: transparent;
}
@import "bourbon";
@import "settings/neat";
@import "neat";
@import "settings/breakpoints";
@import "layout";
$font-family-sans: 'Open Sans', sans-serif;
body {
font-family: $font-family-sans;
font-size: 16px;
color: #fff;
background-image: url('/img/bg.jpg');
background-repeat: none;
}
@media screen and (min-width: 900px) {
body {
background-size: cover;
}
}
h1, h2, h3, h4, h5 {
font-weight: normal;
font-size: 1rem;
}
input, button {
font-family: $font-family-sans;
font-size: 1rem;
}
section {
h2 {
font-size: 2.8rem;
font-weight: 300;
color: lightblue;
@include media($mobile) {
font-size: 2rem;
}
}
}
+1
View File
@@ -0,0 +1 @@
$mobile: new-breakpoint(max-width 600px);
+5
View File
@@ -0,0 +1,5 @@
// $visual-grid: true;
// $visual-grid-color: red;
// $visual-grid-index: front;
// $visual-grid-opacity: 0.5;
$max-width: em(500, 12);