mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
Since mobile device cannot handle :hover rule (hover is non sense for touch devices), specify css for only devices that effectivly handle it. see https://css-tricks.com/solving-sticky-hover-states-with-media-hover-hover/ and https://caniuse.com/mdn-css_at-rules_media_hover for compatibility (quite good)
74 lines
1.3 KiB
SCSS
74 lines
1.3 KiB
SCSS
@import "typography";
|
|
@import "mixins";
|
|
@import "branding";
|
|
|
|
.tabset-ctrl:not(#shop-tabs) {
|
|
.tab-view {
|
|
padding-top: 30px;
|
|
}
|
|
|
|
.tab {
|
|
text-align: center;
|
|
|
|
@include breakpoint(phablet) {
|
|
text-align: left;
|
|
}
|
|
|
|
a {
|
|
@include headingFont;
|
|
|
|
background: transparent;
|
|
text-transform: uppercase;
|
|
font-size: 1.5em;
|
|
text-shadow: 0 -1px 1px #ffffff;
|
|
padding: 1em;
|
|
border: none;
|
|
|
|
@include breakpoint(phablet) {
|
|
padding: 0.35em 0 0.65em 0;
|
|
text-shadow: none;
|
|
}
|
|
}
|
|
|
|
border-bottom: 4px solid transparent;
|
|
|
|
@media (hover: hover) {
|
|
&:hover {
|
|
transition: all 0.4s ease-in-out;
|
|
border-bottom: 4px solid $clr-brick-bright;
|
|
cursor: pointer;
|
|
|
|
@include breakpoint(phablet) {
|
|
transition: none;
|
|
color: white;
|
|
background-color: $clr-brick-bright;
|
|
}
|
|
|
|
a {
|
|
color: $clr-brick-bright;
|
|
|
|
@include breakpoint(phablet) {
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.selected {
|
|
border-bottom: 4px solid $clr-brick;
|
|
|
|
@include breakpoint(phablet) {
|
|
background-color: $clr-brick;
|
|
}
|
|
|
|
a {
|
|
color: $clr-brick;
|
|
|
|
@include breakpoint(phablet) {
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|