From 657f4d95d739a8193ddb798ffb2e89dd4005eb1c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 15 Sep 2023 11:02:45 +0200 Subject: [PATCH] move sidebar-item into admin v3 context --- app/webpacker/css/admin_v3/all.scss | 2 +- .../css/admin_v3/components/sidebar-item.scss | 124 ++++++++++++++++++ 2 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 app/webpacker/css/admin_v3/components/sidebar-item.scss diff --git a/app/webpacker/css/admin_v3/all.scss b/app/webpacker/css/admin_v3/all.scss index 8b0f413dcc..d9358e7a1b 100644 --- a/app/webpacker/css/admin_v3/all.scss +++ b/app/webpacker/css/admin_v3/all.scss @@ -112,7 +112,7 @@ @import "../admin/relationships"; @import "../admin/reports"; @import "components/select2"; // admin_v3 -@import "../admin/sidebar-item"; +@import "components/sidebar-item"; // admin_v3 @import "../admin/side_menu"; @import "../admin/tables"; @import "../admin/tag_rules"; diff --git a/app/webpacker/css/admin_v3/components/sidebar-item.scss b/app/webpacker/css/admin_v3/components/sidebar-item.scss new file mode 100644 index 0000000000..499c4e76e9 --- /dev/null +++ b/app/webpacker/css/admin_v3/components/sidebar-item.scss @@ -0,0 +1,124 @@ +div.sidebar_item { + margin-bottom: 30px; + + .centered { + text-align: center; + } + + div.header { + font-size: 105%; + color: #fff; + padding: 10px 0px; + position: relative; + + &.blue { + background-color: $spree-blue; + } + + &.red { + background-color: $color-warning; + } + } + + .list { + max-height: 400px; + overflow-y: auto; + overflow-x: hidden; + + &.red { + color: $color-warning; + + .list-item { + border: solid $color-warning; + border-width: 0px 3px 0px 3px; + + a.alpha, + span.alpha { + margin-left: -3px; + } + + &.odd { + background-color: #fcf6ef; + + &:hover { + background-color: $spree-green; + } + } + } + + a { + color: $color-warning; + } + } + } + + .list-item { + .icon-arrow-right { + padding-top: 6px; + font-size: 20px; + } + + border: solid $spree-blue; + border-width: 0px 1px 0px 1px; + + a.alpha, + span.alpha { + font-weight: bold; + margin-left: -1px; + padding: 10px 2px 10px 5%; + overflow: hidden; + text-overflow: ellipsis; + } + + span.omega { + padding: 8px 18px 8px 0px; + margin-right: -3px; + text-align: right; + } + + .icon-remove-sign { + color: $color-warning; + font-size: 18px; + } + + &.even { + background-color: #fff; + } + + &.odd { + background-color: $spree-light-blue; + } + + &.even, + &.odd { + &:hover { + color: #ffffff; + background-color: $spree-green; + + a { + color: #ffffff; + } + } + } + } + + a.button { + color: #fff; + padding: 15px 15px; + font-weight: bold; + text-align: center; + border-radius: 0px; + + &.blue { + background-color: $spree-blue; + } + + &.red { + background-color: $color-warning; + } + + &:hover { + background-color: $spree-green; + } + } +}