mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
The Admin V3 styles are now the primary styles for the application. This change promotes the `admin_v3` directory to `admin` and archives the old styles. Changes: - Renamed `app/webpacker/css/admin_v3` to `app/webpacker/css/admin`. - Renamed the previous `app/webpacker/css/admin` to `app/webpacker/css/admin_legacy`. - Moved all files referenced by V3 styles from the legacy directory to the new `admin` directory. - Updated imports in `all.scss` to distinct local files instead of relative paths. - Cleaned up `admin_legacy` by removing files that are duplicates (by name or content) of the new admin styles. - Updated `admin-style-v3` pack to point to the new location.
55 lines
1.2 KiB
SCSS
55 lines
1.2 KiB
SCSS
@import "unit_popout";
|
|
|
|
#edit_variant {
|
|
.popout {
|
|
@include unit_popout;
|
|
|
|
&__button {
|
|
// override popout button styles
|
|
&.popout__button {
|
|
// Reapplying button style from buttons.css
|
|
background-color: $color-btn-bg;
|
|
border: 1px solid $color-btn-bg;
|
|
color: $color-btn-text;
|
|
font-weight: bold;
|
|
|
|
&:before {
|
|
font-family: FontAwesome;
|
|
text-decoration: inherit;
|
|
display: inline-block;
|
|
speak: none;
|
|
content: "\f078";
|
|
|
|
position: absolute;
|
|
top: 0; // Required for empty buttons
|
|
right: $border-radius;
|
|
font-size: 0.67em;
|
|
}
|
|
|
|
// Reapplying button style from buttons.css
|
|
&:active,
|
|
&:focus {
|
|
outline: none;
|
|
border: 1px solid $color-btn-hover-border;
|
|
}
|
|
|
|
&:active:focus {
|
|
box-shadow: none;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: $color-btn-hover-bg;
|
|
border: 1px solid $color-btn-hover-bg;
|
|
color: $color-btn-hover-text;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__container {
|
|
width: max-content;
|
|
top: auto;
|
|
left: auto;
|
|
}
|
|
}
|
|
}
|