1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00
- new grid 📐
- header sizes
This commit is contained in:
Jenil Gogari 2017-04-01 22:02:55 -04:00
parent 7ad75c917a
commit bf44a8b34a
6 changed files with 399 additions and 403 deletions

702
dist/chota.css vendored
View File

@ -1,558 +1,532 @@
:root { :root{
--primary-color: #1a9f60; --primary-color:#1a9f60;
--lightGrey-color: #ddd; --lightGrey-color:#ddd;
--grid-maxWidth: 120rem; --grid-maxWidth:120rem;
--grid-gutter: 1.5rem; --grid-gutter:2rem;
--font-family: -apple-system, BlinkMacSystemFont, Avenir, "Avenir Next", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; --font-family:-apple-system,BlinkMacSystemFont,Avenir,"Avenir Next","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
} }
* { *{
box-sizing: border-box; box-sizing:border-box;
} }
html { html{
box-sizing: border-box; font-size:62.5%;
font-size: 62.5%; line-height:1.15;
line-height: 1.15; -ms-text-size-adjust:100%;
-ms-text-size-adjust: 100%; -webkit-text-size-adjust:100%;
-webkit-text-size-adjust: 100%;
} }
body { body{
letter-spacing: 0.01em; letter-spacing:.01em;
line-height: 1.6; line-height:1.6;
font-size: 1.6rem; font-size:1.6rem;
font-weight: 400; font-weight:400;
font-family: var(--font-family); font-family:var(--font-family);
margin: 0; margin:0;
padding: 0; padding:0;
} }
h1, h1,h2,h3,h4,h5,h6{
h2, font-weight:500;
h3, margin:.35em 0 .7em;
h4,
h5,
h6 {
font-weight: 600;
} }
h1 { h1{
font-size: 2em; font-size:2em;
margin: 0.67em 0;
} }
a { h2{
color: var(--primary-color); font-size:1.75em;
} }
a:hover:not(.button) { h3{
opacity: 0.6; font-size:1.5em;
} }
p { h4{
margin-top: 0; font-size:1.25em;
} }
blockquote { h5{
background-color: #f3f3f3; font-size:1em;
padding: 1.5rem 2rem;
border-left: 3px solid var(--lightGrey-color);
} }
dl dt { h6{
font-weight: bold; font-size:.85em;
} }
hr { a{
border: none; color:var(--primary-color);
background-color: var(--lightGrey-color);
height: 1px;
margin: 1rem 0;
} }
table { a:hover:not(.button){
width: 100%; opacity:.6;
border: none;
border-collapse: collapse;
border-spacing: 0;
text-align: left;
} }
td, p{
th { margin-top:0;
vertical-align: middle;
padding: 1.2rem 0.4rem;
} }
thead { blockquote{
border-bottom: 2px solid var(--lightGrey-color); background-color:#f3f3f3;
padding:1.5rem 2rem;
border-left:3px solid var(--lightGrey-color);
} }
tfoot { dl dt{
border-top: 2px solid var(--lightGrey-color); font-weight:700;
} }
code, hr{
kbd, background-color:var(--lightGrey-color);
pre, height:1px;
samp, margin:1rem 0;
tt {
font-family: monaco, "Consolas", "Lucida Console", monospace;
} }
code, hr,table{
kbd { border:none;
padding: 0 0.4rem;
font-size: 90%;
white-space: pre-wrap;
border-radius: 4px;
color: #c62424;
padding: 0.2em 0.4em;
background-color: #f7f7f7;
} }
pre { table{
background-color: #f7f7f7; width:100%;
font-size: 1em; border-collapse:collapse;
padding: 1rem; border-spacing:0;
text-align:left;
} }
pre code { td,th{
background: none; vertical-align:middle;
padding:1.2rem .4rem;
} }
abbr[title] { thead{
border-bottom: none; border-bottom:2px solid var(--lightGrey-color);
text-decoration: underline;
text-decoration: underline dotted;
} }
img { tfoot{
max-width: 100%; border-top:2px solid var(--lightGrey-color);
} }
fieldset, code,kbd,pre,samp,tt{
iframe { font-family:monaco,Consolas,Lucida Console,monospace;
border: 1px solid var(--lightGrey-color);
} }
.container { code,kbd{
max-width: var(--grid-maxWidth); padding:0 .4rem;
margin: 0 auto; font-size:90%;
width: 90%; white-space:pre-wrap;
border-radius:4px;
color:#c62424;
padding:.2em .4em;
} }
.row { code,kbd,pre{
display: flex; background-color:#f7f7f7;
flex-flow: row wrap;
justify-content: flex-start;
margin-top: var(--grid-gutter);
margin-bottom: var(--grid-gutter);
} }
.row > :first-child { pre{
margin-left: 0; font-size:1em;
padding:1rem;
} }
.col { pre code{
flex: 1; background:none;
} }
.col, abbr[title]{
[class*=" col-"], border-bottom:none;
[class^='col-'] { text-decoration:underline;
margin-left: var(--grid-gutter); text-decoration:underline dotted;
} }
.col-1 { img{
width: calc((100% - var(--grid-gutter)*((12/1) - 1))/(12/1)); max-width:100%;
} }
.col-2 { fieldset,iframe{
width: calc((100% - var(--grid-gutter)*((12/2) - 1))/(12/2)); border:1px solid var(--lightGrey-color);
} }
.col-3 { .container{
width: calc((100% - var(--grid-gutter)*((12/3) - 1))/(12/3)); max-width:var(--grid-maxWidth);
margin:0 auto;
width:96%;
padding:0 calc(var(--grid-gutter) / 2);
} }
.col-4 { .row{
width: calc((100% - var(--grid-gutter)*((12/4) - 1))/(12/4)); display:flex;
flex-flow:row wrap;
justify-content:flex-start;
margin-left:calc(var(--grid-gutter) / -2);
margin-right:calc(var(--grid-gutter) / -2);
} }
.col-5 { .col{
width: calc((100% - var(--grid-gutter)*((12/5) - 1))/(12/5)); flex:1;
} }
.col-6 { .col,[class*=" col-"],[class^=col-]{
width: calc((100% - var(--grid-gutter)*((12/6) - 1))/(12/6)); margin-bottom:var(--grid-gutter);
margin-left:calc(var(--grid-gutter) / 2);
margin-right:calc(var(--grid-gutter) / 2);
} }
.col-7 { .col-1{
width: calc((100% - var(--grid-gutter)*((12/7) - 1))/(12/7)); width:calc((100% / (12/1)) - var(--grid-gutter));
} }
.col-8 { .col-2{
width: calc((100% - var(--grid-gutter)*((12/8) - 1))/(12/8)); width:calc((100% / (12/2)) - var(--grid-gutter));
} }
.col-9 { .col-3{
width: calc((100% - var(--grid-gutter)*((12/9) - 1))/(12/9)); width:calc((100% / (12/3)) - var(--grid-gutter));
} }
.col-10 { .col-4{
width: calc((100% - var(--grid-gutter)*((12/10) - 1))/(12/10)); width:calc((100% / (12/4)) - var(--grid-gutter));
} }
.col-11 { .col-5{
width: calc((100% - var(--grid-gutter)*((12/11) - 1))/(12/11)); width:calc((100% / (12/5)) - var(--grid-gutter));
} }
.col-12 { .col-6{
width: calc((100% - var(--grid-gutter)*((12/12) - 1))/(12/12)); width:calc((100% / (12/6)) - var(--grid-gutter));
} }
@media screen and (max-width: 768px) { .col-7{
.col, width:calc((100% / (12/7)) - var(--grid-gutter));
[class*=" col-"], }
[class^='col-'] {
margin: var(--grid-gutter) 0; .col-8{
width: 100%; width:calc((100% / (12/8)) - var(--grid-gutter));
}
.col-9{
width:calc((100% / (12/9)) - var(--grid-gutter));
}
.col-10{
width:calc((100% / (12/10)) - var(--grid-gutter));
}
.col-11{
width:calc((100% / (12/11)) - var(--grid-gutter));
}
.col-12{
width:calc((100% / (12/12)) - var(--grid-gutter));
}
@media screen and (max-width:768px){
.container{
width:100%;
}
.col,[class*=" col-"],[class^=col-]{
flex-basis:100%;
} }
} }
fieldset { fieldset{
padding: 0.5rem 2rem; padding:.5rem 2rem;
} }
legend { legend{
text-transform: uppercase; text-transform:uppercase;
font-size: 0.8em; font-size:.8em;
letter-spacing: 0.1rem; letter-spacing:.1rem;
} }
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]), input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]),select,textarea,textarea[type=text]{
select, font-family:inherit;
textarea, padding:.7rem 1rem;
textarea[type=text] { border-radius:4px;
font-family: inherit; border:1px solid var(--lightGrey-color);
padding: 0.7rem 1rem; font-size:1em;
border-radius: 4px; transition:all .2s ease;
border: 1px solid var(--lightGrey-color); display:block;
font-size: 1em; width:100%;
transition: all 0.2s ease;
display: block;
width: 100%;
} }
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]):hover, input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]):hover,select:hover,textarea:hover,textarea[type=text]:hover{
select:hover, border-color:#aaa;
textarea:hover,
textarea[type=text]:hover {
border-color: #aaa;
} }
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]):focus, input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]):focus,select:focus,textarea:focus,textarea[type=text]:focus{
select:focus, outline:none;
textarea:focus, border-color:var(--primary-color);
textarea[type=text]:focus {
outline: none;
border-color: var(--primary-color);
} }
select { select{
-webkit-appearance: none; -webkit-appearance:none;
background-color: #fafafa; background-color:#fafafa;
border: 1px solid var(--lightGrey-color); border:1px solid var(--lightGrey-color);
background-position: right center; background-position:100%;
background-repeat: no-repeat; background-repeat:no-repeat;
background-size: 1ex; background-size:1ex;
background-origin: content-box; background-origin:content-box;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' fill='#555'><polygon points='0,0 60,0 30,40'/></svg>"); background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' fill='#555'><polygon points='0,0 60,0 30,40'/></svg>");
} }
[type="checkbox"], [type=checkbox],[type=radio]{
[type="radio"] { -webkit-appearance:none;
-webkit-appearance: none; width:1.6rem;
width: 1.6rem; height:1.6rem;
height: 1.6rem; margin:-.2rem .2rem;
margin: -0.2rem 0.2rem; border:1px solid #aaa;
border: 1px solid #aaa;
} }
[type="radio"] { [type=radio]{
border-radius: 50%; border-radius:50%;
box-shadow: inset 0 0 0 3px white; box-shadow:inset 0 0 0 3px #fff;
} }
[type="radio"]:checked { [type=radio]:checked{
background-color: var(--primary-color); background-color:var(--primary-color);
} }
[type="checkbox"]:checked { [type=checkbox]:checked{
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAaCAYAAACgoey0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAX9JREFUeNpi+P//PwMNsS4QbwBiLnQ5WlqqAsRP/0PARiBmoYfFkkB8+z8qWALEjLS0mB+IL/3HDibSymJQXB7/jx/UgNSCvU4lwAbEG4DYkwi1WUxUspQZiOcRaSkIWOAKMk0Sg3jaf+IBOIVjMyQWiH8DsR+RljaTYOkBWJ5GNwRk2R+ooh9A7ETA0jwSLL0ATfEYqRpkyVc0xR+A2AyHpdFA/I9IS0F5WhRbAWIEtQQbeAXE6lhC5jeRlj4GYgVsRaYK1HBCmmWgmuyxhAwu8BpaXjNgs/gYkYbcAGIXPCGDDkCOM8eVPkCEFhE+JhX8BGJnfAkTxgC57BOVLAXlihBC2RA9Vf+k0FJQKk8nJv+jCwQi5WNyQAWxpR02wRQS8icy6CKlmMUlUUGipfOQK3lKLAbhdhIKfWZS6258kiAfzCZg6V4gZiOn0UBIAcgn63BYehK50Ke2xQxQH+3FUoqJUtJMIlYhLxAfxVJu09xiWENuMxCrUaNhCBBgAOAVfjALa5TLAAAAAElFTkSuQmCC") var(--primary-color) no-repeat center; background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAaCAYAAACgoey0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAX9JREFUeNpi+P//PwMNsS4QbwBiLnQ5WlqqAsRP/0PARiBmoYfFkkB8+z8qWALEjLS0mB+IL/3HDibSymJQXB7/jx/UgNSCvU4lwAbEG4DYkwi1WUxUspQZiOcRaSkIWOAKMk0Sg3jaf+IBOIVjMyQWiH8DsR+RljaTYOkBWJ5GNwRk2R+ooh9A7ETA0jwSLL0ATfEYqRpkyVc0xR+A2AyHpdFA/I9IS0F5WhRbAWIEtQQbeAXE6lhC5jeRlj4GYgVsRaYK1HBCmmWgmuyxhAwu8BpaXjNgs/gYkYbcAGIXPCGDDkCOM8eVPkCEFhE+JhX8BGJnfAkTxgC57BOVLAXlihBC2RA9Vf+k0FJQKk8nJv+jCwQi5WNyQAWxpR02wRQS8icy6CKlmMUlUUGipfOQK3lKLAbhdhIKfWZS6258kiAfzCZg6V4gZiOn0UBIAcgn63BYehK50Ke2xQxQH+3FUoqJUtJMIlYhLxAfxVJu09xiWENuMxCrUaNhCBBgAOAVfjALa5TLAAAAAElFTkSuQmCC") var(--primary-color) no-repeat 50%;
background-size: 1rem; background-size:1rem;
} }
/* BUTTONS */ .button,[type=button],[type=reset],[type=submit],button{
padding:1rem 2.5rem;
.button, color:#333;
[type=button], background:#e6e6e6;
[type=reset], border-radius:4px;
[type=submit], border:none;
button { font-size:1.5rem;
padding: 1rem 2.5rem; line-height:1;
color: #333; transition:all .2s ease;
background: #e6e6e6; text-decoration:none;
border-radius: 4px; transform:scale(1);
border: none; transition:all .3s;
font-size: 1.5rem; display:inline-block;
line-height: 1;
transition: all 0.2s ease;
text-decoration: none;
transform: scale(1);
transition: all 300ms;
display: inline-block;
} }
.button + .button { .button+.button{
margin-left: 1rem; margin-left:1rem;
} }
.button:hover, .button:hover,[type=button]:hover,[type=reset]:hover,[type=submit]:hover,button:hover{
[type=button]:hover, opacity:.8;
[type=reset]:hover,
[type=submit]:hover,
button:hover {
opacity: 0.8;
} }
.button:active, .button:active,[type=button]:active,[type=reset]:active,[type=submit]:active,button:active{
[type=button]:active, transform:scale(.98);
[type=reset]:active,
[type=submit]:active,
button:active {
transform: scale(0.98);
} }
input[disabled] { input[disabled]{
opacity: 0.4; opacity:.4;
cursor: not-allowed; cursor:not-allowed;
} }
.button.primary, .button.primary,[type=submit]{
[type=submit] { color:#fff;
color: #fff; background:var(--primary-color);
background: var(--primary-color);
} }
.button.outline { .button.outline{
background-color: transparent; background-color:transparent;
border: 1px solid var(--lightGrey-color); border:1px solid var(--lightGrey-color);
} }
.button.outline.primary { .button.outline.primary{
border-color: var(--primary-color); border-color:var(--primary-color);
color: var(--primary-color); color:var(--primary-color);
} }
.button.clear { .button.clear{
background-color: transparent; background-color:transparent;
border-color: transparent; border-color:transparent;
color: var(--primary-color); color:var(--primary-color);
} }
.nav { .nav{
display: flex; min-height:5rem;
min-height: 5rem; align-items:stretch;
align-items: stretch;
} }
.nav > .container { .nav,.nav>.container{
display: flex; display:flex;
} }
.container > .nav { .nav-center,.nav-left,.nav-right{
padding-left: var(--grid-gutter); display:flex;
padding-right: var(--grid-gutter); flex-basis:0;
flex-grow:1;
flex-shrink:0;
} }
.nav-center, .nav-left{
.nav-left, justify-content:flex-start;
.nav-right {
display: flex;
flex-basis: 0;
flex-grow: 1;
flex-shrink: 0;
} }
.nav-left { .nav-right{
justify-content: flex-start; justify-content:flex-end;
} }
.nav-right { .nav-center{
justify-content: flex-end; justify-content:center;
} }
.nav-center { @media screen and (max-width:480px){
justify-content: center; .nav,.nav>.container{
} flex-direction:column;
@media screen and (max-width: 480px) {
.nav, .nav>.container {
flex-direction: column;
} }
.nav-center, .nav-center,.nav-left,.nav-right{
.nav-left, flex-basis:100%;
.nav-right { justify-content:center;
flex-basis: 100%; flex-shrink:1;
justify-content: center; flex-grow:0;
flex-shrink: 1; flex-wrap:wrap;
flex-grow: 0;
flex-wrap: wrap;
} }
} }
.nav .brand { .nav .brand{
display: flex; margin:0;
align-items: center;
margin: 0;
font-weight: 300;
} }
.nav a { .nav .brand,.nav a{
text-decoration: none; display:flex;
cursor: pointer; align-items:center;
display: flex;
align-items: center;
padding: 1rem 2rem;
} }
.card { .nav a{
padding: 1rem 2rem; text-decoration:none;
border-radius: 4px; cursor:pointer;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
} }
.card header > * { .card,.nav a{
margin-top: 0; padding:1rem 2rem;
margin-bottom: 1rem;
} }
.tabs { .card{
display: flex; border-radius:4px;
box-shadow:0 0 2px rgba(0,0,0,.4);
} }
.tabs a { .card header>*{
text-decoration: none; margin-top:0;
margin-bottom:1rem;
} }
.tabs > a { .tabs{
padding: 1rem 2rem; display:flex;
flex: 1;
color: #555;
border-bottom: 2px solid var(--lightGrey-color);
text-align: center;
} }
.tabs > a.active, .tabs a{
.tabs > a:hover { text-decoration:none;
border-bottom: 2px solid #555;
} }
.tabs > a.active { .tabs>a{
border-color: var(--primary-color); padding:1rem 2rem;
flex:1;
color:#555;
border-bottom:2px solid var(--lightGrey-color);
text-align:center;
} }
.pull-right { .tabs>a.active,.tabs>a:hover{
float: right; border-bottom:2px solid #555;
} }
.pull-left { .tabs>a.active{
float: left; border-color:var(--primary-color);
} }
.is-text-center { .pull-right{
text-align: center; float:right;
} }
.is-text-left { .pull-left{
text-align: left; float:left;
} }
.is-text-right { .is-text-center{
text-align: right; text-align:center;
} }
.is-text-uppercase { .is-text-left{
text-transform: uppercase; text-align:left;
} }
.is-text-lowercase { .is-text-right{
text-transform: lowercase; text-align:right;
} }
.is-text-capitalize { .is-text-uppercase{
text-transform: capitalize; text-transform:uppercase;
} }
.is-full-screen { .is-text-lowercase{
width: 100%; text-transform:lowercase;
min-height: 100vh;
} }
.is-full-width { .is-text-capitalize{
width: 100%; text-transform:capitalize;
} }
.is-vertical-align { .is-full-screen{
display: flex; width:100%;
align-items: center; min-height:100vh;
} }
.is-horizontal-align { .is-full-width{
display: flex; width:100%;
justify-content: center;
} }
.is-center { .is-vertical-align{
display: flex; display:flex;
align-items: center; align-items:center;
justify-content: center;
} }
.is-right { .is-center,.is-horizontal-align{
display: flex; display:flex;
align-items: center; justify-content:center;
justify-content: flex-end;
} }
.is-left { .is-center{
display: flex; align-items:center;
align-items: center;
justify-content: flex-start;
} }
.is-fixed { .is-right{
position: fixed; justify-content:flex-end;
width: 100%;
} }
.clearfix { .is-left,.is-right{
content: ""; display:flex;
display: table; align-items:center;
clear: both;
} }
@media screen and (max-width: 480px) { .is-left{
.hide-phone { justify-content:flex-start;
display: none; }
.is-fixed{
position:fixed;
width:100%;
}
.clearfix{
content:"";
display:table;
clear:both;
}
@media screen and (max-width:480px){
.hide-phone{
display:none;
} }
} }
@media screen and (max-width: 768px) { @media screen and (max-width:768px){
.hide-tablet { .hide-tablet{
display: none; display:none;
} }
} }

2
dist/chota.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -5,8 +5,10 @@
"main": "dist/chota.min.css", "main": "dist/chota.min.css",
"scripts": { "scripts": {
"start": "browser-sync start --server --files '**/*.css' '**/*.html'", "start": "browser-sync start --server --files '**/*.css' '**/*.html'",
"build": "rm -r dist/ && yarn postcss && yarn postcss -- -u cssnano -x .min.css", "build": "rm -r dist/ && yarn postcss && yarn postcss -- -x .min.css && yarn cssnano && yarn cssnano:min",
"postcss": "postcss ./src/chota.css --use postcss-import -d dist/ --no-map", "postcss": "postcss ./src/chota.css -u postcss-import -d dist/ --no-map",
"cssnano": "cssnano ./dist/chota.css ./dist/chota.css --no-calc --no-core",
"cssnano:min": "cssnano ./dist/chota.min.css ./dist/chota.min.css --no-calc",
"watch": "yarn postcss -- -u cssnano -x .min.css -w", "watch": "yarn postcss -- -u cssnano -x .min.css -w",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
@ -28,8 +30,13 @@
"devDependencies": { "devDependencies": {
"autoprefixer": "^6.7.7", "autoprefixer": "^6.7.7",
"browser-sync": "^2.18.8", "browser-sync": "^2.18.8",
"cssnano": "^3.10.0", "cssnano-cli": "^1.0.5",
"postcss-cli": "^3.0.0", "postcss-cli": "^3.0.0",
"postcss-import": "^9.1.0" "postcss-import": "^9.1.0"
} },
"files": [
"src/",
"dist/",
"README.md"
]
} }

View File

@ -2,7 +2,7 @@
--primary-color: #1a9f60; --primary-color: #1a9f60;
--lightGrey-color: #ddd; --lightGrey-color: #ddd;
--grid-maxWidth: 120rem; --grid-maxWidth: 120rem;
--grid-gutter: 1.5rem; --grid-gutter: 2rem;
--font-family: -apple-system, BlinkMacSystemFont, Avenir, "Avenir Next", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; --font-family: -apple-system, BlinkMacSystemFont, Avenir, "Avenir Next", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
} }
@ -11,7 +11,6 @@
} }
html { html {
box-sizing: border-box;
font-size: 62.5%; font-size: 62.5%;
line-height: 1.15; line-height: 1.15;
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
@ -34,12 +33,32 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
font-weight: 600; font-weight: 500;
margin: 0.35em 0 0.7em 0;
} }
h1 { h1 {
font-size: 2em; font-size: 2em;
margin: 0.67em 0; }
h2 {
font-size: 1.75em;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.25em;
}
h5 {
font-size: 1em;
}
h6 {
font-size: 0.85em;
} }
a { a {
@ -51,7 +70,7 @@ a:hover:not(.button) {
} }
p { p {
margin-top: 0; margin-top: 0;
} }
blockquote { blockquote {
@ -119,7 +138,7 @@ pre {
} }
pre code { pre code {
background: none; background: none;
} }
abbr[title] { abbr[title] {

View File

@ -1,19 +1,16 @@
.container { .container {
max-width: var(--grid-maxWidth); max-width: var(--grid-maxWidth);
margin: 0 auto; margin: 0 auto;
width: 90%; width: 96%;
padding: 0 calc(var(--grid-gutter) / 2);
} }
.row { .row {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
justify-content: flex-start; justify-content: flex-start;
margin-top: var(--grid-gutter); margin-left: calc(var(--grid-gutter) / -2);
margin-bottom: var(--grid-gutter); margin-right: calc(var(--grid-gutter) / -2);
}
.row > :first-child {
margin-left: 0;
} }
.col { .col {
@ -23,62 +20,67 @@
.col, .col,
[class*=" col-"], [class*=" col-"],
[class^='col-'] { [class^='col-'] {
margin-left: var(--grid-gutter); margin-bottom: var(--grid-gutter);
margin-left: calc(var(--grid-gutter) / 2);
margin-right: calc(var(--grid-gutter) / 2);
} }
.col-1 { .col-1 {
width: calc((100% - var(--grid-gutter)*((12/1) - 1))/(12/1)); width: calc((100% / (12/1)) - var(--grid-gutter));
} }
.col-2 { .col-2 {
width: calc((100% - var(--grid-gutter)*((12/2) - 1))/(12/2)); width: calc((100% / (12/2)) - var(--grid-gutter));
} }
.col-3 { .col-3 {
width: calc((100% - var(--grid-gutter)*((12/3) - 1))/(12/3)); width: calc((100% / (12/3)) - var(--grid-gutter));
} }
.col-4 { .col-4 {
width: calc((100% - var(--grid-gutter)*((12/4) - 1))/(12/4)); width: calc((100% / (12/4)) - var(--grid-gutter));
} }
.col-5 { .col-5 {
width: calc((100% - var(--grid-gutter)*((12/5) - 1))/(12/5)); width: calc((100% / (12/5)) - var(--grid-gutter));
} }
.col-6 { .col-6 {
width: calc((100% - var(--grid-gutter)*((12/6) - 1))/(12/6)); width: calc((100% / (12/6)) - var(--grid-gutter));
} }
.col-7 { .col-7 {
width: calc((100% - var(--grid-gutter)*((12/7) - 1))/(12/7)); width: calc((100% / (12/7)) - var(--grid-gutter));
} }
.col-8 { .col-8 {
width: calc((100% - var(--grid-gutter)*((12/8) - 1))/(12/8)); width: calc((100% / (12/8)) - var(--grid-gutter));
} }
.col-9 { .col-9 {
width: calc((100% - var(--grid-gutter)*((12/9) - 1))/(12/9)); width: calc((100% / (12/9)) - var(--grid-gutter));
} }
.col-10 { .col-10 {
width: calc((100% - var(--grid-gutter)*((12/10) - 1))/(12/10)); width: calc((100% / (12/10)) - var(--grid-gutter));
} }
.col-11 { .col-11 {
width: calc((100% - var(--grid-gutter)*((12/11) - 1))/(12/11)); width: calc((100% / (12/11)) - var(--grid-gutter));
} }
.col-12 { .col-12 {
width: calc((100% - var(--grid-gutter)*((12/12) - 1))/(12/12)); width: calc((100% / (12/12)) - var(--grid-gutter));
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
.container {
width: 100%;
}
.col, .col,
[class*=" col-"], [class*=" col-"],
[class^='col-'] { [class^='col-'] {
margin: var(--grid-gutter) 0; flex-basis: 100%;
width: 100%;
} }
} }

View File

@ -8,11 +8,6 @@
display: flex; display: flex;
} }
.container > .nav {
padding-left: var(--grid-gutter);
padding-right: var(--grid-gutter);
}
.nav-center, .nav-center,
.nav-left, .nav-left,
.nav-right { .nav-right {
@ -53,7 +48,6 @@
display: flex; display: flex;
align-items: center; align-items: center;
margin: 0; margin: 0;
font-weight: 300;
} }
.nav a { .nav a {