2019-12-19 23:09:23 +01:00
|
|
|
.switch-view {
|
|
|
|
background: $white;
|
2021-01-23 18:18:09 +01:00
|
|
|
display: inline-flex;
|
2019-12-19 23:09:23 +01:00
|
|
|
border-radius: $radius;
|
2021-01-23 18:18:09 +01:00
|
|
|
font-size: .75rem;
|
|
|
|
box-shadow: $shadow-sm;
|
2020-05-31 21:17:10 +02:00
|
|
|
height: $switch-view-height;
|
2021-01-18 22:14:10 +01:00
|
|
|
margin-bottom: 1rem;
|
2021-01-23 18:18:09 +01:00
|
|
|
padding: .5rem;
|
|
|
|
|
2019-12-19 23:09:23 +01:00
|
|
|
a {
|
2021-01-23 18:18:09 +01:00
|
|
|
padding: .25rem .5rem;
|
|
|
|
display: block;
|
2019-12-19 23:09:23 +01:00
|
|
|
border-radius: $radius;
|
|
|
|
|
|
|
|
-webkit-transition: all 100ms;
|
|
|
|
-moz-transition: all 100ms;
|
|
|
|
-ms-transition: all 100ms;
|
|
|
|
-o-transition: all 100ms;
|
|
|
|
transition: all 100ms;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
2021-01-23 18:18:09 +01:00
|
|
|
margin-right: .5rem;
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active, &:hover {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active {
|
|
|
|
background: $primary;
|
|
|
|
font-weight: bold;
|
2021-01-23 18:18:09 +01:00
|
|
|
box-shadow: $shadow-xs;
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2021-01-23 18:18:09 +01:00
|
|
|
background: $primary;
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-18 22:14:10 +01:00
|
|
|
|
|
|
|
@media screen and (max-width: $tablet) {
|
|
|
|
.switch-view-container {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
}
|