mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Add styling for tabs
This commit is contained in:
@@ -132,3 +132,5 @@
|
||||
@import "app/webpacker/css/admin/trix.scss";
|
||||
|
||||
@import "terms_of_service_banner"; // admin_v3
|
||||
|
||||
@import "pages/product_preview"; // admin_v3
|
||||
|
||||
41
app/webpacker/css/admin_v3/pages/product_preview.scss
Normal file
41
app/webpacker/css/admin_v3/pages/product_preview.scss
Normal file
@@ -0,0 +1,41 @@
|
||||
#product-preview {
|
||||
// tabs
|
||||
dl.tabs {
|
||||
box-shadow: $box-shadow;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
dd {
|
||||
width: auto;
|
||||
padding: 0;
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
padding: 16px 20px;
|
||||
color: $color-9 !important;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
|
||||
&:hover {
|
||||
color: $red !important;
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
height: 3px;
|
||||
background: $red;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
@extend a, :hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user