mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
For `admin_style_v3` use `<` and `>` for next and previous link instead of `next` and `previous` string Extract a mixin for a default box-shadow Maybe this needs to be redefined. Let's see how next things goes. When a table is followed by a pagination, remove its margin-bottom + border Finally, design the pagination component Add sorting/pagination module, on top of table We use `cablea_ready.replace`, so need to add `#products-content` id Use a `pagy` partial with reflex action, instead of the legacy one - revert the legacy one to its previous state - in reflex, fetch product with page attribute, 1 by default Move `pagy` into `admin/shared/v3/` to be reusable + use fontawesome icons for next and previous page Remove useless line
162 lines
2.4 KiB
SCSS
162 lines
2.4 KiB
SCSS
// Navigation
|
|
//---------------------------------------------------
|
|
.inline-menu {
|
|
margin: 0;
|
|
-webkit-margin-before: 0;
|
|
-webkit-padding-start: 0;
|
|
}
|
|
|
|
nav.menu {
|
|
ul {
|
|
list-style: none;
|
|
|
|
li {
|
|
a {
|
|
padding: 10px 0;
|
|
display: block;
|
|
position: relative;
|
|
text-align: left;
|
|
border: 1px solid transparent;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
}
|
|
|
|
&.active a {
|
|
color: $green;
|
|
border-left-width: 0;
|
|
border-bottom-color: $green;
|
|
}
|
|
|
|
&:hover a {
|
|
color: $green;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.admin-login-navigation-bar {
|
|
ul {
|
|
text-align: right;
|
|
|
|
li {
|
|
padding: 5px 0 5px 10px;
|
|
text-align: right;
|
|
font-size: 90%;
|
|
color: $color-link;
|
|
margin-top: 8px;
|
|
|
|
&.user-logged-in-as {
|
|
width: 50%;
|
|
color: $color-body-text;
|
|
}
|
|
|
|
&:hover {
|
|
i {
|
|
color: $green;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#admin-menu {
|
|
@include defaultBoxShadow;
|
|
|
|
li {
|
|
.dropdown {
|
|
width: 300px;
|
|
background-color: $teal;
|
|
width: 200px;
|
|
z-index: 100000;
|
|
|
|
> li {
|
|
width: 200px !important;
|
|
|
|
a:after {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#sub-menu {
|
|
padding-bottom: 0;
|
|
box-shadow: 0px 1px 0px $color-7;
|
|
}
|
|
|
|
// Factorized rules on menu item for admin menu and sub menu
|
|
#admin-menu,
|
|
#sub-menu {
|
|
.container {
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
ul {
|
|
display: flex;
|
|
|
|
li {
|
|
a {
|
|
display: inline-block;
|
|
padding: 16px 20px;
|
|
color: $color-9 !important;
|
|
text-align: center;
|
|
position: relative;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
|
|
&:hover {
|
|
color: $red !important;
|
|
|
|
&:after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 20px;
|
|
right: 20px;
|
|
height: 3px;
|
|
background: $red;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.selected a {
|
|
@extend a, :hover;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Specific rules on menu item for admin menu and sub menu
|
|
#admin-menu {
|
|
ul {
|
|
justify-content: space-between;
|
|
li a {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
}
|
|
|
|
#sub-menu {
|
|
ul li a:hover {
|
|
&:after {
|
|
height: 2px;
|
|
}
|
|
}
|
|
}
|
|
|
|
#header figure {
|
|
margin: 0.25em 0;
|
|
}
|
|
|
|
#header .container {
|
|
padding-left: 30px;
|
|
padding-right: 30px;
|
|
}
|
|
|
|
#login-nav {
|
|
line-height: 1.75em;
|
|
}
|