misuzu/assets/less/mio/classes/navigation.less

107 lines
2.4 KiB
Text
Raw Normal View History

2018-03-22 02:56:41 +00:00
@mio-navigation-mobile: 1000px;
2018-04-16 00:33:54 +00:00
.navigation {
2018-05-21 02:28:51 +00:00
margin: 2px 0;
2018-03-22 02:56:41 +00:00
width: 100%;
display: flex;
2018-03-22 17:07:22 +00:00
border-width: 0;
2018-09-09 22:44:10 +00:00
border-color: var(--text-colour);
2018-03-22 17:07:22 +00:00
border-style: solid;
2018-03-22 02:56:41 +00:00
border-top-width: 1px;
align-items: flex-start;
justify-content: center;
@media (max-width: @mio-navigation-mobile) {
border: none;
align-items: center;
flex-direction: column;
}
2018-05-20 01:16:29 +00:00
@media (min-width: @mio-navigation-mobile) {
&--left {
justify-content: left;
padding-left: 25px;
}
2018-05-18 01:20:27 +00:00
2018-05-20 01:16:29 +00:00
&--right {
justify-content: right;
padding-right: 25px;
}
2018-05-18 01:20:27 +00:00
}
2018-03-22 02:56:41 +00:00
&--top {
border-top-width: 0;
border-bottom-width: 1px;
align-items: flex-end;
2018-04-16 00:33:54 +00:00
.navigation__option {
2018-03-22 02:56:41 +00:00
border-top-width: 1px;
border-bottom-width: 0;
@media (min-width: @mio-navigation-mobile) {
&--selected {
top: 1px;
}
2018-03-22 02:56:41 +00:00
}
}
}
&__option {
list-style: none;
background-color: #c9bbcc;
2018-09-09 22:44:10 +00:00
border: 1px solid var(--text-colour);
2018-03-22 02:56:41 +00:00
border-top-width: 0;
flex-grow: 0;
@media (max-width: @mio-navigation-mobile) {
2018-09-09 22:44:10 +00:00
background-color: var(--accent-colour);
2018-03-22 02:56:41 +00:00
width: 100%;
border: none;
flex-grow: 1;
margin-bottom: 1px;
}
&:not(:first-child) {
border-left-width: 0;
}
&--selected {
2018-09-09 22:44:10 +00:00
background-color: var(--background-colour);
2018-03-22 02:56:41 +00:00
top: -1px;
@media (max-width: @mio-navigation-mobile) {
2018-09-09 22:44:10 +00:00
background-color: #a586c3;
2018-03-22 02:56:41 +00:00
top: 0;
}
&:not(:first-child) {
margin-left: -1px;
border-left-width: 1px;
}
2018-03-22 17:07:22 +00:00
@media (min-width: @mio-navigation-mobile) {
2018-04-16 00:33:54 +00:00
.navigation__link {
2018-03-22 17:07:22 +00:00
padding: 3px 1em;
}
2018-03-22 02:56:41 +00:00
}
}
}
&__link {
display: block;
padding: 2px 1em;
2018-09-09 22:44:10 +00:00
color: var(--text-colour);
2018-03-22 02:56:41 +00:00
text-decoration: none;
@media (max-width: @mio-navigation-mobile) {
padding: 10px 15px;
2018-09-09 22:44:10 +00:00
color: var(--text-colour-header);
2018-03-22 02:56:41 +00:00
font-size: 1.5em;
}
&:hover {
color: #609;
}
}
}