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

74 lines
993 B
CSS
Raw Normal View History

2017-03-30 08:00:14 +03:00
.nav {
display: flex;
min-height: 5rem;
align-items: stretch;
}
2017-04-02 22:22:13 +03:00
.nav img {
max-height: 3rem;
}
.nav>.container {
2017-03-30 08:00:14 +03:00
display: flex;
}
.nav-center,
.nav-left,
.nav-right {
display: flex;
2017-04-02 22:22:13 +03:00
flex: 1;
2017-03-30 08:00:14 +03:00
}
.nav-left {
justify-content: flex-start;
}
.nav-right {
justify-content: flex-end;
}
.nav-center {
justify-content: center;
}
@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-03-30 08:00:14 +03:00
}
2017-04-02 09:05:23 +03:00
.nav a,
.nav .brand {
2017-03-30 08:00:14 +03:00
text-decoration: none;
display: flex;
align-items: center;
2017-04-02 22:22:13 +03:00
padding: 1rem 2rem;
2017-04-03 06:26:56 +03:00
color: #555;
}
.nav .active:not(.button) {
color: #000; /* fallback */
color: var(--color-primary);
2017-04-02 22:22:13 +03:00
}
.nav .brand {
2017-04-03 06:26:56 +03:00
font-size: 1.75em;
2017-04-02 22:22:13 +03:00
padding-top: 0;
padding-bottom: 0;
}
.nav .brand img {
padding-right: 1rem;
}
2017-04-02 22:22:13 +03:00
.nav .button {
margin: auto 1rem;
2017-03-30 08:00:14 +03:00
}