1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00
chota/dist/chota.css

459 lines
10 KiB
CSS
Raw Normal View History

2017-04-02 22:22:13 +03:00
/*! chota.css | MIT License | github.com/jenil/chota */
2017-04-02 05:02:55 +03:00
:root{
--primary-color:#1a9f60;
--lightGrey-color:#ddd;
--grid-maxWidth:120rem;
--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;
}
2017-04-02 05:02:55 +03:00
*{
box-sizing:border-box;
}
2017-04-02 05:02:55 +03:00
html{
font-size:62.5%;
line-height:1.15;
-ms-text-size-adjust:100%;
-webkit-text-size-adjust:100%;
}
2017-04-02 05:02:55 +03:00
body{
letter-spacing:.01em;
line-height:1.6;
font-size:1.6rem;
font-weight:400;
2017-04-02 22:22:13 +03:00
font-family:Segoe UI,Helvetica Neue,san-serif;
2017-04-02 05:02:55 +03:00
font-family:var(--font-family);
margin:0;
padding:0;
}
2017-04-02 05:02:55 +03:00
h1,h2,h3,h4,h5,h6{
font-weight:500;
margin:.35em 0 .7em;
}
2017-04-02 05:02:55 +03:00
h1{
font-size:2em;
}
2017-04-02 05:02:55 +03:00
h2{
font-size:1.75em;
}
2017-04-02 05:02:55 +03:00
h3{
font-size:1.5em;
}
2017-04-02 05:02:55 +03:00
h4{
font-size:1.25em;
}
2017-04-02 05:02:55 +03:00
h5{
font-size:1em;
}
2017-04-02 05:02:55 +03:00
h6{
font-size:.85em;
}
2017-04-02 05:02:55 +03:00
a{
color:var(--primary-color);
2017-04-02 09:05:23 +03:00
text-decoration:none;
}
2017-04-02 05:02:55 +03:00
a:hover:not(.button){
opacity:.6;
}
2017-04-02 05:02:55 +03:00
p{
margin-top:0;
}
2017-04-02 05:02:55 +03:00
blockquote{
background-color:#f3f3f3;
padding:1.5rem 2rem;
border-left:3px solid var(--lightGrey-color);
}
2017-04-02 05:02:55 +03:00
dl dt{
font-weight:700;
}
2017-04-02 05:02:55 +03:00
hr{
background-color:var(--lightGrey-color);
height:1px;
margin:1rem 0;
}
2017-04-02 05:02:55 +03:00
hr,table{
border:none;
}
2017-04-02 05:02:55 +03:00
table{
width:100%;
border-collapse:collapse;
border-spacing:0;
text-align:left;
}
2017-04-02 05:02:55 +03:00
td,th{
vertical-align:middle;
padding:1.2rem .4rem;
2017-04-01 05:08:01 +03:00
}
2017-04-02 05:02:55 +03:00
thead{
border-bottom:2px solid var(--lightGrey-color);
}
2017-04-02 05:02:55 +03:00
tfoot{
border-top:2px solid var(--lightGrey-color);
}
2017-04-02 05:02:55 +03:00
code,kbd,pre,samp,tt{
font-family:monaco,Consolas,Lucida Console,monospace;
}
2017-04-02 05:02:55 +03:00
code,kbd{
padding:0 .4rem;
font-size:90%;
white-space:pre-wrap;
border-radius:4px;
color:#c62424;
padding:.2em .4em;
}
2017-04-02 05:02:55 +03:00
code,kbd,pre{
background-color:#f7f7f7;
}
2017-04-02 05:02:55 +03:00
pre{
font-size:1em;
padding:1rem;
}
2017-04-02 05:02:55 +03:00
pre code{
background:none;
2017-04-02 09:05:23 +03:00
padding:0;
}
2017-04-02 05:02:55 +03:00
abbr[title]{
border-bottom:none;
text-decoration:underline;
text-decoration:underline dotted;
}
2017-04-02 05:02:55 +03:00
img{
max-width:100%;
}
2017-04-02 05:02:55 +03:00
fieldset,iframe{
border:1px solid var(--lightGrey-color);
}
2017-04-02 05:02:55 +03:00
.container{
max-width:var(--grid-maxWidth);
margin:0 auto;
width:96%;
padding:0 calc(var(--grid-gutter) / 2);
}
2017-04-02 05:02:55 +03:00
.row{
display:flex;
flex-flow:row wrap;
justify-content:flex-start;
margin-left:calc(var(--grid-gutter) / -2);
margin-right:calc(var(--grid-gutter) / -2);
}
2017-04-02 05:02:55 +03:00
.col{
flex:1;
}
2017-04-02 05:02:55 +03:00
.col,[class*=" col-"],[class^=col-]{
2017-04-02 09:05:23 +03:00
margin:0 calc(var(--grid-gutter) / 2) calc(var(--grid-gutter) / 2);
}
2017-04-02 05:02:55 +03:00
.col-1{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/1)) - var(--grid-gutter));
max-width:calc((100% / (12/1)) - var(--grid-gutter));
}
2017-04-02 05:02:55 +03:00
.col-2{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/2)) - var(--grid-gutter));
max-width:calc((100% / (12/2)) - var(--grid-gutter));
}
2017-04-02 05:02:55 +03:00
.col-3{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/3)) - var(--grid-gutter));
max-width:calc((100% / (12/3)) - var(--grid-gutter));
}
2017-04-02 05:02:55 +03:00
.col-4{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/4)) - var(--grid-gutter));
max-width:calc((100% / (12/4)) - var(--grid-gutter));
}
2017-04-02 05:02:55 +03:00
.col-5{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/5)) - var(--grid-gutter));
max-width:calc((100% / (12/5)) - var(--grid-gutter));
}
2017-04-02 05:02:55 +03:00
.col-6{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/6)) - var(--grid-gutter));
max-width:calc((100% / (12/6)) - var(--grid-gutter));
}
2017-04-02 05:02:55 +03:00
.col-7{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/7)) - var(--grid-gutter));
max-width:calc((100% / (12/7)) - var(--grid-gutter));
2017-04-02 05:02:55 +03:00
}
.col-8{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/8)) - var(--grid-gutter));
max-width:calc((100% / (12/8)) - var(--grid-gutter));
2017-04-02 05:02:55 +03:00
}
.col-9{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/9)) - var(--grid-gutter));
max-width:calc((100% / (12/9)) - var(--grid-gutter));
2017-04-02 05:02:55 +03:00
}
.col-10{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/10)) - var(--grid-gutter));
max-width:calc((100% / (12/10)) - var(--grid-gutter));
2017-04-02 05:02:55 +03:00
}
.col-11{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/11)) - var(--grid-gutter));
max-width:calc((100% / (12/11)) - var(--grid-gutter));
}
2017-04-02 05:02:55 +03:00
.col-12{
2017-04-02 09:05:23 +03:00
flex:0 0 calc((100% / (12/12)) - var(--grid-gutter));
max-width:calc((100% / (12/12)) - var(--grid-gutter));
}
2017-04-02 05:02:55 +03:00
@media screen and (max-width:768px){
.container{
width:100%;
}
.col,[class*=" col-"],[class^=col-]{
2017-04-02 09:05:23 +03:00
flex:0 1 100%;
max-width:100%;
2017-04-02 05:02:55 +03:00
}
}
2017-04-02 05:02:55 +03:00
fieldset{
padding:.5rem 2rem;
}
2017-04-02 05:02:55 +03:00
legend{
text-transform:uppercase;
font-size:.8em;
letter-spacing:.1rem;
}
2017-04-02 05:02:55 +03:00
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]),select,textarea,textarea[type=text]{
font-family:inherit;
padding:.7rem 1rem;
border-radius:4px;
border:1px solid var(--lightGrey-color);
font-size:1em;
transition:all .2s ease;
display:block;
width:100%;
}
2017-04-02 05:02:55 +03:00
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{
border-color:#aaa;
}
2017-04-02 05:02:55 +03:00
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{
outline:none;
border-color:var(--primary-color);
}
2017-04-02 05:02:55 +03:00
select{
-webkit-appearance:none;
background-color:#fafafa;
border:1px solid var(--lightGrey-color);
background-position:100%;
background-repeat:no-repeat;
background-size:1ex;
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>");
}
2017-04-02 05:02:55 +03:00
[type=checkbox],[type=radio]{
-webkit-appearance:none;
width:1.6rem;
height:1.6rem;
margin:-.2rem .2rem;
border:1px solid #aaa;
}
2017-04-02 05:02:55 +03:00
[type=radio]{
border-radius:50%;
box-shadow:inset 0 0 0 3px #fff;
}
2017-04-02 05:02:55 +03:00
[type=radio]:checked{
background-color:var(--primary-color);
}
[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 50%;
background-size:1rem;
}
2017-04-02 05:02:55 +03:00
.button,[type=button],[type=reset],[type=submit],button{
padding:1rem 2.5rem;
color:#333;
background:#e6e6e6;
border-radius:4px;
border:none;
font-size:1.5rem;
line-height:1;
2017-04-02 09:05:23 +03:00
text-align:center;
2017-04-02 05:02:55 +03:00
transition:all .2s ease;
text-decoration:none;
transform:scale(1);
transition:all .3s;
display:inline-block;
}
2017-04-02 05:02:55 +03:00
.button+.button{
margin-left:1rem;
}
2017-04-02 05:02:55 +03:00
.button:hover,[type=button]:hover,[type=reset]:hover,[type=submit]:hover,button:hover{
opacity:.8;
}
2017-04-02 05:02:55 +03:00
.button:active,[type=button]:active,[type=reset]:active,[type=submit]:active,button:active{
transform:scale(.98);
}
2017-04-02 09:05:23 +03:00
button[disabled],button[disabled]:hover,input[disabled],input[disabled]:hover{
2017-04-02 05:02:55 +03:00
opacity:.4;
cursor:not-allowed;
}
2017-04-02 05:02:55 +03:00
.button.primary,[type=submit]{
color:#fff;
background:var(--primary-color);
}
2017-04-02 05:02:55 +03:00
.button.outline{
background-color:transparent;
border:1px solid var(--lightGrey-color);
}
2017-04-02 05:02:55 +03:00
.button.outline.primary{
border-color:var(--primary-color);
color:var(--primary-color);
}
2017-04-02 05:02:55 +03:00
.button.clear{
background-color:transparent;
border-color:transparent;
color:var(--primary-color);
}
2017-04-02 05:02:55 +03:00
.nav{
2017-04-02 22:22:13 +03:00
display:flex;
2017-04-02 05:02:55 +03:00
min-height:5rem;
align-items:stretch;
}
2017-04-02 22:22:13 +03:00
.nav img{
max-height:3rem;
}
.nav>.container{
2017-04-02 05:02:55 +03:00
display:flex;
}
2017-04-02 05:02:55 +03:00
.nav-center,.nav-left,.nav-right{
display:flex;
2017-04-02 22:22:13 +03:00
flex:1;
}
2017-04-02 05:02:55 +03:00
.nav-left{
justify-content:flex-start;
}
2017-04-02 05:02:55 +03:00
.nav-right{
justify-content:flex-end;
}
2017-04-02 05:02:55 +03:00
.nav-center{
justify-content:center;
}
2017-04-02 05:02:55 +03:00
@media screen and (max-width:480px){
2017-04-02 22:22:13 +03:00
.nav,.nav>.container{
flex-direction:column;
}
.nav-center,.nav-left,.nav-right{
flex-wrap:wrap;
justify-content:center;
}
2017-04-02 05:02:55 +03:00
}
.nav .brand,.nav a{
2017-04-02 09:05:23 +03:00
text-decoration:none;
2017-04-02 05:02:55 +03:00
display:flex;
align-items:center;
2017-04-02 22:22:13 +03:00
padding:1rem 2rem;
}
.nav .brand{
margin:0;
padding-top:0;
padding-bottom:0;
}
.nav .brand a{
padding:0;
}
.nav .button{
margin:auto 1rem;
}
2017-04-02 05:02:55 +03:00
.card{
2017-04-02 09:05:23 +03:00
padding:1rem 2rem;
2017-04-02 05:02:55 +03:00
border-radius:4px;
box-shadow:0 0 2px rgba(0,0,0,.4);
}
2017-04-02 05:02:55 +03:00
.card header>*{
margin-top:0;
margin-bottom:1rem;
}
2017-04-02 05:02:55 +03:00
.tabs{
display:flex;
}
2017-04-02 05:02:55 +03:00
.tabs a{
text-decoration:none;
}
2017-04-02 05:02:55 +03:00
.tabs>a{
padding:1rem 2rem;
2017-04-02 22:22:13 +03:00
flex:0 1 auto;
2017-04-02 05:02:55 +03:00
color:#555;
border-bottom:2px solid var(--lightGrey-color);
text-align:center;
}
2017-04-02 05:02:55 +03:00
.tabs>a.active,.tabs>a:hover{
2017-04-02 09:05:23 +03:00
opacity:1;
2017-04-02 05:02:55 +03:00
border-bottom:2px solid #555;
}
2017-04-02 05:02:55 +03:00
.tabs>a.active{
border-color:var(--primary-color);
}
2017-04-02 22:22:13 +03:00
.tabs.is-full a{
flex:1;
}
2017-04-02 05:02:55 +03:00
.pull-right{
float:right;
}
2017-04-02 05:02:55 +03:00
.pull-left{
float:left;
}
2017-04-02 05:02:55 +03:00
.is-text-center{
text-align:center;
}
2017-04-02 05:02:55 +03:00
.is-text-left{
text-align:left;
}
2017-04-02 05:02:55 +03:00
.is-text-right{
text-align:right;
}
2017-04-02 05:02:55 +03:00
.is-text-uppercase{
text-transform:uppercase;
}
2017-04-02 05:02:55 +03:00
.is-text-lowercase{
text-transform:lowercase;
}
2017-04-02 05:02:55 +03:00
.is-text-capitalize{
text-transform:capitalize;
}
2017-04-02 05:02:55 +03:00
.is-full-screen{
width:100%;
min-height:100vh;
}
2017-04-02 05:02:55 +03:00
.is-full-width{
width:100%;
}
2017-04-02 05:02:55 +03:00
.is-vertical-align{
display:flex;
align-items:center;
}
2017-04-02 05:02:55 +03:00
.is-center,.is-horizontal-align{
display:flex;
justify-content:center;
}
2017-04-02 05:02:55 +03:00
.is-center{
align-items:center;
}
2017-04-02 05:02:55 +03:00
.is-right{
justify-content:flex-end;
}
2017-04-02 05:02:55 +03:00
.is-left,.is-right{
display:flex;
align-items:center;
}
2017-04-02 05:02:55 +03:00
.is-left{
justify-content:flex-start;
}
2017-04-02 05:02:55 +03:00
.is-fixed{
position:fixed;
width:100%;
}
2017-04-02 09:05:23 +03:00
.is-paddingless{
padding:0 !important;
}
.is-marginless{
margin:0 !important;
}
2017-04-02 05:02:55 +03:00
.clearfix{
content:"";
display:table;
clear:both;
}
2017-04-02 05:02:55 +03:00
@media screen and (max-width:480px){
.hide-phone{
display:none;
}
}
2017-04-02 05:02:55 +03:00
@media screen and (max-width:768px){
.hide-tablet{
display:none;
}
}