css (reset & mobile first nav)
This commit is contained in:
parent
a017c7a79d
commit
cb70cf75d9
1 changed files with 75 additions and 0 deletions
|
|
@ -1 +1,76 @@
|
||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
|
|
||||||
|
/** CSS-Reset **/
|
||||||
|
|
||||||
|
html{font-family:'Open Sans',sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}
|
||||||
|
body{margin:0;background:#f7f5f2;font:100%/1.6 'Open Sans',sans-serif;-webkit-animation:bugfix infinite 1s}
|
||||||
|
a:focus{outline:thin dotted}
|
||||||
|
a:active,a:hover{outline:0}
|
||||||
|
b,strong,.fwb{font-weight:bold}
|
||||||
|
dfn,.fsi{font-style:italic}
|
||||||
|
img{border:0}
|
||||||
|
ul,ol{padding:0;list-style-type:none}
|
||||||
|
p{margin:0 0 .9375em;padding:0}
|
||||||
|
audio,canvas,video{display:inline-block}
|
||||||
|
audio:not([controls]){display:none;height:0}
|
||||||
|
[hidden]{display:none}
|
||||||
|
abbr[title]{border-bottom:.0625em dotted}
|
||||||
|
hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||||
|
mark{background:#ff0;color:#000}
|
||||||
|
code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}
|
||||||
|
pre{white-space:pre-wrap}
|
||||||
|
q{quotes:"\201C" "\201D" "\2018" "\2019"}
|
||||||
|
small{font-size:80%}
|
||||||
|
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||||
|
sup{top:-.5em}
|
||||||
|
sub{bottom:-.25em}
|
||||||
|
svg:not(:root){overflow:hidden}
|
||||||
|
figure{margin:0}
|
||||||
|
fieldset{border:.0625em solid #c0c0c0;margin:0 .125em;padding:.35em .625em .75em}
|
||||||
|
legend{border:0;padding:0}
|
||||||
|
button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
|
||||||
|
button,input{line-height:normal}
|
||||||
|
button,select{text-transform:none}
|
||||||
|
button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}
|
||||||
|
button[disabled],html input[disabled]{cursor:default}
|
||||||
|
input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}
|
||||||
|
input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||||
|
input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}
|
||||||
|
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}
|
||||||
|
textarea{overflow:auto;vertical-align:top}
|
||||||
|
table{border-collapse:collapse;border-spacing:0}
|
||||||
|
|
||||||
|
|
||||||
|
/** Initial **/
|
||||||
|
|
||||||
|
@-webkit-keyframes bugfix{from{padding:0}to{padding:0}}
|
||||||
|
|
||||||
|
.cf:before,.cf:after{display:table;content:""}
|
||||||
|
.cf:after{clear:both}
|
||||||
|
.cf{zoom:1}
|
||||||
|
.cb{clear:both}
|
||||||
|
|
||||||
|
.wrap{margin:0 5%;max-height:999999px;min-height:1px}
|
||||||
|
a{color:#347894;text-decoration:none}
|
||||||
|
|
||||||
|
header{background:#0f373c;margin-bottom:1.1875em;position:fixed;width:100%;z-index:99}
|
||||||
|
header .fa{padding:0 10px 0 0;color:#5e9499}
|
||||||
|
|
||||||
|
nav{z-index:99}
|
||||||
|
menu{display:none;opacity:0;position:absolute;margin:0;padding:0 0 16px;background:#0f373c;right:0;left:0}
|
||||||
|
menu li{display:block;margin:0 5%}
|
||||||
|
menu a{display:block;padding:15px 0;color:#fff}
|
||||||
|
|
||||||
|
#profile{float:right;padding:18px;color:#fff}
|
||||||
|
|
||||||
|
#toggle,.toggle{display:none}
|
||||||
|
.toggle{display:inline-block;padding:18px 18px 18px 0;position:relative;cursor:pointer;-webkit-touch-callout:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}
|
||||||
|
#toggle:checked ~ menu{display:block;opacity:1}
|
||||||
|
#navicon{display:block;color:#fff}
|
||||||
|
|
||||||
|
|
||||||
|
article{padding-top:5.375em;margin-bottom:30px}
|
||||||
|
|
||||||
|
|
||||||
|
/** Media Queries **/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue