1
0
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:
Jenil Gogari
2017-04-02 15:22:13 -04:00
parent 1c1268fe66
commit 951c03006b
7 changed files with 129 additions and 152 deletions

View File

@@ -22,6 +22,7 @@ body {
line-height: 1.6;
font-size: 1.6rem;
font-weight: 400;
font-family: "Segoe UI", "Helvetica Neue", san-serif; /*fallback*/
font-family: var(--font-family);
margin: 0;
padding: 0;

View File

@@ -4,7 +4,11 @@
align-items: stretch;
}
.nav > .container {
.nav img {
max-height: 3rem;
}
.nav>.container {
display: flex;
}
@@ -12,9 +16,7 @@
.nav-left,
.nav-right {
display: flex;
flex-basis: 0;
flex-grow: 1;
flex-shrink: 0;
flex: 1;
}
.nav-left {
@@ -30,22 +32,16 @@
}
@media screen and (max-width: 480px) {
.nav, .nav>.container {
flex-direction: column;
}
.nav-center,
.nav-left,
.nav-right {
flex-basis: 100%;
justify-content: center;
flex-shrink: 1;
flex-grow: 0;
flex-wrap: wrap;
}
}
.nav .brand {
margin: 0;
.nav,
.nav>.container {
flex-direction: column;
}
.nav-center,
.nav-left,
.nav-right {
flex-wrap: wrap;
justify-content: center;
}
}
.nav a,
@@ -53,5 +49,19 @@
text-decoration: none;
display: flex;
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;
}

View File

@@ -8,7 +8,7 @@
.tabs > a {
padding: 1rem 2rem;
flex: 1;
flex: 0 1 auto;
color: #555;
border-bottom: 2px solid var(--lightGrey-color);
text-align: center;
@@ -23,3 +23,7 @@
.tabs > a.active {
border-color: var(--primary-color);
}
.tabs.is-full a {
flex: 1;
}

View File

@@ -1,3 +1,4 @@
/*! chota.css | MIT License | github.com/jenil/chota */
@import "_base.css";
@import "_grid.css";
@import "_form.css";