mirror of
https://github.com/jenil/chota.git
synced 2023-08-10 21:13:07 +03:00
update tabs and navs
This commit is contained in:
parent
1c1268fe66
commit
951c03006b
141
dist/chota.css
vendored
141
dist/chota.css
vendored
@ -1,3 +1,4 @@
|
|||||||
|
/*! chota.css | MIT License | github.com/jenil/chota */
|
||||||
:root{
|
:root{
|
||||||
--primary-color:#1a9f60;
|
--primary-color:#1a9f60;
|
||||||
--lightGrey-color:#ddd;
|
--lightGrey-color:#ddd;
|
||||||
@ -5,114 +6,92 @@
|
|||||||
--grid-gutter:2rem;
|
--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{
|
||||||
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:.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:Segoe UI,Helvetica Neue,san-serif;
|
||||||
font-family:var(--font-family);
|
font-family:var(--font-family);
|
||||||
margin:0;
|
margin:0;
|
||||||
padding:0;
|
padding:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,h2,h3,h4,h5,h6{
|
h1,h2,h3,h4,h5,h6{
|
||||||
font-weight:500;
|
font-weight:500;
|
||||||
margin:.35em 0 .7em;
|
margin:.35em 0 .7em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1{
|
h1{
|
||||||
font-size:2em;
|
font-size:2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2{
|
h2{
|
||||||
font-size:1.75em;
|
font-size:1.75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3{
|
h3{
|
||||||
font-size:1.5em;
|
font-size:1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4{
|
h4{
|
||||||
font-size:1.25em;
|
font-size:1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h5{
|
h5{
|
||||||
font-size:1em;
|
font-size:1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h6{
|
h6{
|
||||||
font-size:.85em;
|
font-size:.85em;
|
||||||
}
|
}
|
||||||
|
|
||||||
a{
|
a{
|
||||||
color:var(--primary-color);
|
color:var(--primary-color);
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover:not(.button){
|
a:hover:not(.button){
|
||||||
opacity:.6;
|
opacity:.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
p{
|
p{
|
||||||
margin-top:0;
|
margin-top:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote{
|
blockquote{
|
||||||
background-color:#f3f3f3;
|
background-color:#f3f3f3;
|
||||||
padding:1.5rem 2rem;
|
padding:1.5rem 2rem;
|
||||||
border-left:3px solid var(--lightGrey-color);
|
border-left:3px solid var(--lightGrey-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
dl dt{
|
dl dt{
|
||||||
font-weight:700;
|
font-weight:700;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr{
|
hr{
|
||||||
background-color:var(--lightGrey-color);
|
background-color:var(--lightGrey-color);
|
||||||
height:1px;
|
height:1px;
|
||||||
margin:1rem 0;
|
margin:1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr,table{
|
hr,table{
|
||||||
border:none;
|
border:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
table{
|
table{
|
||||||
width:100%;
|
width:100%;
|
||||||
border-collapse:collapse;
|
border-collapse:collapse;
|
||||||
border-spacing:0;
|
border-spacing:0;
|
||||||
text-align:left;
|
text-align:left;
|
||||||
}
|
}
|
||||||
|
|
||||||
td,th{
|
td,th{
|
||||||
vertical-align:middle;
|
vertical-align:middle;
|
||||||
padding:1.2rem .4rem;
|
padding:1.2rem .4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
thead{
|
thead{
|
||||||
border-bottom:2px solid var(--lightGrey-color);
|
border-bottom:2px solid var(--lightGrey-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
tfoot{
|
tfoot{
|
||||||
border-top:2px solid var(--lightGrey-color);
|
border-top:2px solid var(--lightGrey-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
code,kbd,pre,samp,tt{
|
code,kbd,pre,samp,tt{
|
||||||
font-family:monaco,Consolas,Lucida Console,monospace;
|
font-family:monaco,Consolas,Lucida Console,monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
code,kbd{
|
code,kbd{
|
||||||
padding:0 .4rem;
|
padding:0 .4rem;
|
||||||
font-size:90%;
|
font-size:90%;
|
||||||
@ -121,42 +100,34 @@ code,kbd{
|
|||||||
color:#c62424;
|
color:#c62424;
|
||||||
padding:.2em .4em;
|
padding:.2em .4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
code,kbd,pre{
|
code,kbd,pre{
|
||||||
background-color:#f7f7f7;
|
background-color:#f7f7f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre{
|
pre{
|
||||||
font-size:1em;
|
font-size:1em;
|
||||||
padding:1rem;
|
padding:1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre code{
|
pre code{
|
||||||
background:none;
|
background:none;
|
||||||
padding:0;
|
padding:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
abbr[title]{
|
abbr[title]{
|
||||||
border-bottom:none;
|
border-bottom:none;
|
||||||
text-decoration:underline;
|
text-decoration:underline;
|
||||||
text-decoration:underline dotted;
|
text-decoration:underline dotted;
|
||||||
}
|
}
|
||||||
|
|
||||||
img{
|
img{
|
||||||
max-width:100%;
|
max-width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset,iframe{
|
fieldset,iframe{
|
||||||
border:1px solid var(--lightGrey-color);
|
border:1px solid var(--lightGrey-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.container{
|
.container{
|
||||||
max-width:var(--grid-maxWidth);
|
max-width:var(--grid-maxWidth);
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
width:96%;
|
width:96%;
|
||||||
padding:0 calc(var(--grid-gutter) / 2);
|
padding:0 calc(var(--grid-gutter) / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.row{
|
.row{
|
||||||
display:flex;
|
display:flex;
|
||||||
flex-flow:row wrap;
|
flex-flow:row wrap;
|
||||||
@ -164,75 +135,60 @@ fieldset,iframe{
|
|||||||
margin-left:calc(var(--grid-gutter) / -2);
|
margin-left:calc(var(--grid-gutter) / -2);
|
||||||
margin-right:calc(var(--grid-gutter) / -2);
|
margin-right:calc(var(--grid-gutter) / -2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.col{
|
.col{
|
||||||
flex:1;
|
flex:1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.col,[class*=" col-"],[class^=col-]{
|
.col,[class*=" col-"],[class^=col-]{
|
||||||
margin:0 calc(var(--grid-gutter) / 2) calc(var(--grid-gutter) / 2);
|
margin:0 calc(var(--grid-gutter) / 2) calc(var(--grid-gutter) / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-1{
|
.col-1{
|
||||||
flex:0 0 calc((100% / (12/1)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/1)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/1)) - var(--grid-gutter));
|
max-width:calc((100% / (12/1)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-2{
|
.col-2{
|
||||||
flex:0 0 calc((100% / (12/2)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/2)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/2)) - var(--grid-gutter));
|
max-width:calc((100% / (12/2)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-3{
|
.col-3{
|
||||||
flex:0 0 calc((100% / (12/3)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/3)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/3)) - var(--grid-gutter));
|
max-width:calc((100% / (12/3)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-4{
|
.col-4{
|
||||||
flex:0 0 calc((100% / (12/4)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/4)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/4)) - var(--grid-gutter));
|
max-width:calc((100% / (12/4)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-5{
|
.col-5{
|
||||||
flex:0 0 calc((100% / (12/5)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/5)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/5)) - var(--grid-gutter));
|
max-width:calc((100% / (12/5)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-6{
|
.col-6{
|
||||||
flex:0 0 calc((100% / (12/6)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/6)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/6)) - var(--grid-gutter));
|
max-width:calc((100% / (12/6)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-7{
|
.col-7{
|
||||||
flex:0 0 calc((100% / (12/7)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/7)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/7)) - var(--grid-gutter));
|
max-width:calc((100% / (12/7)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-8{
|
.col-8{
|
||||||
flex:0 0 calc((100% / (12/8)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/8)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/8)) - var(--grid-gutter));
|
max-width:calc((100% / (12/8)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-9{
|
.col-9{
|
||||||
flex:0 0 calc((100% / (12/9)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/9)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/9)) - var(--grid-gutter));
|
max-width:calc((100% / (12/9)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-10{
|
.col-10{
|
||||||
flex:0 0 calc((100% / (12/10)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/10)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/10)) - var(--grid-gutter));
|
max-width:calc((100% / (12/10)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-11{
|
.col-11{
|
||||||
flex:0 0 calc((100% / (12/11)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/11)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/11)) - var(--grid-gutter));
|
max-width:calc((100% / (12/11)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-12{
|
.col-12{
|
||||||
flex:0 0 calc((100% / (12/12)) - var(--grid-gutter));
|
flex:0 0 calc((100% / (12/12)) - var(--grid-gutter));
|
||||||
max-width:calc((100% / (12/12)) - var(--grid-gutter));
|
max-width:calc((100% / (12/12)) - var(--grid-gutter));
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width:768px){
|
@media screen and (max-width:768px){
|
||||||
.container{
|
.container{
|
||||||
width:100%;
|
width:100%;
|
||||||
@ -243,17 +199,14 @@ fieldset,iframe{
|
|||||||
max-width:100%;
|
max-width:100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset{
|
fieldset{
|
||||||
padding:.5rem 2rem;
|
padding:.5rem 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
legend{
|
legend{
|
||||||
text-transform:uppercase;
|
text-transform:uppercase;
|
||||||
font-size:.8em;
|
font-size:.8em;
|
||||||
letter-spacing:.1rem;
|
letter-spacing:.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]):not([type=button]):not([type=reset]),select,textarea,textarea[type=text]{
|
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;
|
font-family:inherit;
|
||||||
padding:.7rem 1rem;
|
padding:.7rem 1rem;
|
||||||
@ -264,16 +217,13 @@ input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=color]
|
|||||||
display:block;
|
display:block;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
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{
|
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;
|
border-color:#aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
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{
|
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;
|
outline:none;
|
||||||
border-color:var(--primary-color);
|
border-color:var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
select{
|
select{
|
||||||
-webkit-appearance:none;
|
-webkit-appearance:none;
|
||||||
background-color:#fafafa;
|
background-color:#fafafa;
|
||||||
@ -284,7 +234,6 @@ select{
|
|||||||
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=radio]{
|
[type=checkbox],[type=radio]{
|
||||||
-webkit-appearance:none;
|
-webkit-appearance:none;
|
||||||
width:1.6rem;
|
width:1.6rem;
|
||||||
@ -292,21 +241,17 @@ select{
|
|||||||
margin:-.2rem .2rem;
|
margin:-.2rem .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 #fff;
|
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 50%;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button,[type=button],[type=reset],[type=submit],button{
|
.button,[type=button],[type=reset],[type=submit],button{
|
||||||
padding:1rem 2.5rem;
|
padding:1rem 2.5rem;
|
||||||
color:#333;
|
color:#333;
|
||||||
@ -322,226 +267,190 @@ select{
|
|||||||
transition:all .3s;
|
transition:all .3s;
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button+.button{
|
.button+.button{
|
||||||
margin-left:1rem;
|
margin-left:1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button:hover,[type=button]:hover,[type=reset]:hover,[type=submit]:hover,button:hover{
|
.button:hover,[type=button]:hover,[type=reset]:hover,[type=submit]:hover,button:hover{
|
||||||
opacity:.8;
|
opacity:.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button:active,[type=button]:active,[type=reset]:active,[type=submit]:active,button:active{
|
.button:active,[type=button]:active,[type=reset]:active,[type=submit]:active,button:active{
|
||||||
transform:scale(.98);
|
transform:scale(.98);
|
||||||
}
|
}
|
||||||
|
|
||||||
button[disabled],button[disabled]:hover,input[disabled],input[disabled]:hover{
|
button[disabled],button[disabled]:hover,input[disabled],input[disabled]:hover{
|
||||||
opacity:.4;
|
opacity:.4;
|
||||||
cursor:not-allowed;
|
cursor:not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button.primary,[type=submit]{
|
.button.primary,[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 img{
|
||||||
.nav,.nav>.container{
|
max-height:3rem;
|
||||||
|
}
|
||||||
|
.nav>.container{
|
||||||
display:flex;
|
display:flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-center,.nav-left,.nav-right{
|
.nav-center,.nav-left,.nav-right{
|
||||||
display:flex;
|
display:flex;
|
||||||
flex-basis:0;
|
flex:1;
|
||||||
flex-grow:1;
|
|
||||||
flex-shrink:0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-left{
|
.nav-left{
|
||||||
justify-content:flex-start;
|
justify-content:flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-right{
|
.nav-right{
|
||||||
justify-content:flex-end;
|
justify-content:flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-center{
|
.nav-center{
|
||||||
justify-content:center;
|
justify-content:center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width:480px){
|
@media screen and (max-width:480px){
|
||||||
.nav,.nav>.container{
|
.nav,.nav>.container{
|
||||||
flex-direction:column;
|
flex-direction:column;
|
||||||
}
|
}
|
||||||
.nav-center,.nav-left,.nav-right{
|
.nav-center,.nav-left,.nav-right{
|
||||||
flex-basis:100%;
|
|
||||||
justify-content:center;
|
|
||||||
flex-shrink:1;
|
|
||||||
flex-grow:0;
|
|
||||||
flex-wrap:wrap;
|
flex-wrap:wrap;
|
||||||
|
justify-content:center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav .brand{
|
|
||||||
margin:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav .brand,.nav a{
|
.nav .brand,.nav a{
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
display:flex;
|
display:flex;
|
||||||
align-items:center;
|
align-items:center;
|
||||||
padding:0 2rem;
|
padding:1rem 2rem;
|
||||||
|
}
|
||||||
|
.nav .brand{
|
||||||
|
margin:0;
|
||||||
|
padding-top:0;
|
||||||
|
padding-bottom:0;
|
||||||
|
}
|
||||||
|
.nav .brand a{
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
.nav .button{
|
||||||
|
margin:auto 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card{
|
.card{
|
||||||
padding:1rem 2rem;
|
padding:1rem 2rem;
|
||||||
border-radius:4px;
|
border-radius:4px;
|
||||||
box-shadow:0 0 2px rgba(0,0,0,.4);
|
box-shadow:0 0 2px rgba(0,0,0,.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card header>*{
|
.card header>*{
|
||||||
margin-top:0;
|
margin-top:0;
|
||||||
margin-bottom:1rem;
|
margin-bottom:1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs{
|
.tabs{
|
||||||
display:flex;
|
display:flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs a{
|
.tabs a{
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs>a{
|
.tabs>a{
|
||||||
padding:1rem 2rem;
|
padding:1rem 2rem;
|
||||||
flex:1;
|
flex:0 1 auto;
|
||||||
color:#555;
|
color:#555;
|
||||||
border-bottom:2px solid var(--lightGrey-color);
|
border-bottom:2px solid var(--lightGrey-color);
|
||||||
text-align:center;
|
text-align:center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs>a.active,.tabs>a:hover{
|
.tabs>a.active,.tabs>a:hover{
|
||||||
opacity:1;
|
opacity:1;
|
||||||
border-bottom:2px solid #555;
|
border-bottom:2px solid #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs>a.active{
|
.tabs>a.active{
|
||||||
border-color:var(--primary-color);
|
border-color:var(--primary-color);
|
||||||
}
|
}
|
||||||
|
.tabs.is-full a{
|
||||||
|
flex:1;
|
||||||
|
}
|
||||||
.pull-right{
|
.pull-right{
|
||||||
float:right;
|
float:right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pull-left{
|
.pull-left{
|
||||||
float:left;
|
float:left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-text-center{
|
.is-text-center{
|
||||||
text-align:center;
|
text-align:center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-text-left{
|
.is-text-left{
|
||||||
text-align:left;
|
text-align:left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-text-right{
|
.is-text-right{
|
||||||
text-align:right;
|
text-align:right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-text-uppercase{
|
.is-text-uppercase{
|
||||||
text-transform:uppercase;
|
text-transform:uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-text-lowercase{
|
.is-text-lowercase{
|
||||||
text-transform:lowercase;
|
text-transform:lowercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-text-capitalize{
|
.is-text-capitalize{
|
||||||
text-transform:capitalize;
|
text-transform:capitalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-full-screen{
|
.is-full-screen{
|
||||||
width:100%;
|
width:100%;
|
||||||
min-height:100vh;
|
min-height:100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-full-width{
|
.is-full-width{
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-vertical-align{
|
.is-vertical-align{
|
||||||
display:flex;
|
display:flex;
|
||||||
align-items:center;
|
align-items:center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-center,.is-horizontal-align{
|
.is-center,.is-horizontal-align{
|
||||||
display:flex;
|
display:flex;
|
||||||
justify-content:center;
|
justify-content:center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-center{
|
.is-center{
|
||||||
align-items:center;
|
align-items:center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-right{
|
.is-right{
|
||||||
justify-content:flex-end;
|
justify-content:flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-left,.is-right{
|
.is-left,.is-right{
|
||||||
display:flex;
|
display:flex;
|
||||||
align-items:center;
|
align-items:center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-left{
|
.is-left{
|
||||||
justify-content:flex-start;
|
justify-content:flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-fixed{
|
.is-fixed{
|
||||||
position:fixed;
|
position:fixed;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-paddingless{
|
.is-paddingless{
|
||||||
padding:0 !important;
|
padding:0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-marginless{
|
.is-marginless{
|
||||||
margin:0 !important;
|
margin:0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clearfix{
|
.clearfix{
|
||||||
content:"";
|
content:"";
|
||||||
display:table;
|
display:table;
|
||||||
clear:both;
|
clear:both;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width:480px){
|
@media screen and (max-width:480px){
|
||||||
.hide-phone{
|
.hide-phone{
|
||||||
display:none;
|
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
2
dist/chota.min.css
vendored
File diff suppressed because one or more lines are too long
@ -22,6 +22,7 @@ body {
|
|||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
font-family: "Segoe UI", "Helvetica Neue", san-serif; /*fallback*/
|
||||||
font-family: var(--font-family);
|
font-family: var(--font-family);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
36
src/_nav.css
36
src/_nav.css
@ -4,6 +4,10 @@
|
|||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav img {
|
||||||
|
max-height: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
.nav>.container {
|
.nav>.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
@ -12,9 +16,7 @@
|
|||||||
.nav-left,
|
.nav-left,
|
||||||
.nav-right {
|
.nav-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-basis: 0;
|
flex: 1;
|
||||||
flex-grow: 1;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-left {
|
.nav-left {
|
||||||
@ -30,28 +32,36 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 480px) {
|
@media screen and (max-width: 480px) {
|
||||||
.nav, .nav>.container {
|
.nav,
|
||||||
|
.nav>.container {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.nav-center,
|
.nav-center,
|
||||||
.nav-left,
|
.nav-left,
|
||||||
.nav-right {
|
.nav-right {
|
||||||
flex-basis: 100%;
|
|
||||||
justify-content: center;
|
|
||||||
flex-shrink: 1;
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav .brand {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav a,
|
.nav a,
|
||||||
.nav .brand {
|
.nav .brand {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 2rem;
|
padding: 1rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav .brand {
|
||||||
|
margin: 0;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav .brand a {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav .button {
|
||||||
|
margin: auto 1rem;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
.tabs > a {
|
.tabs > a {
|
||||||
padding: 1rem 2rem;
|
padding: 1rem 2rem;
|
||||||
flex: 1;
|
flex: 0 1 auto;
|
||||||
color: #555;
|
color: #555;
|
||||||
border-bottom: 2px solid var(--lightGrey-color);
|
border-bottom: 2px solid var(--lightGrey-color);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -23,3 +23,7 @@
|
|||||||
.tabs > a.active {
|
.tabs > a.active {
|
||||||
border-color: var(--primary-color);
|
border-color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabs.is-full a {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/*! chota.css | MIT License | github.com/jenil/chota */
|
||||||
@import "_base.css";
|
@import "_base.css";
|
||||||
@import "_grid.css";
|
@import "_grid.css";
|
||||||
@import "_form.css";
|
@import "_form.css";
|
||||||
|
@ -6,11 +6,33 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Grids</title>
|
<title>Grids</title>
|
||||||
<link rel="stylesheet" href="../dist/chota.min.css">
|
<link rel="stylesheet" href="../dist/chota.min.css">
|
||||||
|
<style>
|
||||||
|
.nav {
|
||||||
|
border: 1px solid red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<nav class="nav">
|
<nav class="nav">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="nav-left">
|
||||||
|
<h2 class="brand">
|
||||||
|
<a href="#">Logo</a>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
<div class="nav-center">
|
||||||
|
<a class="button outline" href="#">Centered</a>
|
||||||
|
</div>
|
||||||
|
<div class="nav-right">
|
||||||
|
<a href="#!1.html">Link 1</a>
|
||||||
|
<a href="#!2.html">Link 2</a>
|
||||||
|
<a href="#!3.html">Link 3</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<br>
|
||||||
|
<nav class="nav">
|
||||||
<div class="nav-left">
|
<div class="nav-left">
|
||||||
<h2 class="brand">
|
<h2 class="brand">
|
||||||
<a href="#">Logo</a>
|
<a href="#">Logo</a>
|
||||||
@ -24,7 +46,6 @@
|
|||||||
<a href="#!2.html">Link 2</a>
|
<a href="#!2.html">Link 2</a>
|
||||||
<a href="#!3.html">Link 3</a>
|
<a href="#!3.html">Link 3</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Nav</h1>
|
<h1>Nav</h1>
|
||||||
@ -33,17 +54,48 @@
|
|||||||
<a href="#!1.html">Link 1</a>
|
<a href="#!1.html">Link 1</a>
|
||||||
<a href="#!2.html">Link 2</a>
|
<a href="#!2.html">Link 2</a>
|
||||||
<a href="#!3.html">Link 3</a>
|
<a href="#!3.html">Link 3</a>
|
||||||
|
<a href="#!" class="button primary">Button</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
<br><hr><br>
|
||||||
|
<nav class="nav">
|
||||||
|
<div class="nav-left">
|
||||||
|
<h3 class="brand"><a href="#">Brand</a></h3>
|
||||||
|
</div>
|
||||||
|
<div class="nav-right">
|
||||||
|
<div class="tabs">
|
||||||
|
<a href="#!1.html">Link 1</a>
|
||||||
|
<a href="#!2.html">Link 2</a>
|
||||||
|
<a href="#!3.html">Link 3</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<br><hr><br>
|
||||||
|
<nav class="nav">
|
||||||
|
<div class="nav-left">
|
||||||
|
<a class="brand" href="#">
|
||||||
|
<img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="tabs">
|
||||||
|
<a href="#!1.html">Link 1</a>
|
||||||
|
<a href="#!2.html">Link 2</a>
|
||||||
|
<a href="#!3.html">Link 3</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<br><hr><br>
|
||||||
|
|
||||||
<h1>Tabs</h1>
|
<h1>Tabs</h1>
|
||||||
<div class="row is-center">
|
|
||||||
<div class="col-5">
|
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<a class="active" href="#!1.html">Tab 1</a>
|
<a class="active" href="#!1.html">Tab 1</a>
|
||||||
<a href="#!2.html">Tab 2</a>
|
<a href="#!2.html">Tab 2</a>
|
||||||
<a href="#!3.html">Tab 3</a>
|
<a href="#!3.html">Tab 3</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<br> <hr> <br>
|
||||||
|
<div class="tabs is-full">
|
||||||
|
<a class="active" href="#!1.html">Tab 1</a>
|
||||||
|
<a href="#!2.html">Tab 2</a>
|
||||||
|
<a href="#!3.html">Tab 3</a>
|
||||||
</div>
|
</div>
|
||||||
<h1>Card</h1>
|
<h1>Card</h1>
|
||||||
<div class="row is-center">
|
<div class="row is-center">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user