From d4edc9f20d0ca54b8fef71c087442cc36d6a2567 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 18 Dec 2019 21:37:27 +0000 Subject: [PATCH] Bring jstress css from spree_backend --- app/assets/stylesheets/admin/all.scss | 1 + .../stylesheets/admin/plugins/_jstree.scss | 131 ++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 app/assets/stylesheets/admin/plugins/_jstree.scss diff --git a/app/assets/stylesheets/admin/all.scss b/app/assets/stylesheets/admin/all.scss index 797bbf9689..bccaba8c94 100644 --- a/app/assets/stylesheets/admin/all.scss +++ b/app/assets/stylesheets/admin/all.scss @@ -15,6 +15,7 @@ */ @import 'plugins/powertip'; +@import 'plugins/jstree'; @import 'hacks/mozilla'; @import 'hacks/opera'; diff --git a/app/assets/stylesheets/admin/plugins/_jstree.scss b/app/assets/stylesheets/admin/plugins/_jstree.scss new file mode 100644 index 0000000000..ae024e0f13 --- /dev/null +++ b/app/assets/stylesheets/admin/plugins/_jstree.scss @@ -0,0 +1,131 @@ +#taxonomy_tree { + > ul, .jstree-icon { + background-image: none; + } + + .jstree-icon { + @extend [class^="icon-"]:before; + } + + .jstree-open > .jstree-icon { + @extend .icon-caret-down; + } + .jstree-closed > .jstree-icon { + @extend .icon-caret-right; + } + + li { + background-image: none; + + a { + background-color: very-light($color-3); + border: 1px solid $color-border; + color: $color-body-text; + font-weight: $font-weight-bold; + text-shadow: none; + width: 90%; + height: auto; + line-height: inherit; + padding: 5px 0 5px 10px; + margin-bottom: 10px; + + .jstree-icon { + padding-left: 0px; + @extend .icon-move; + } + } + } +} + +#vakata-dragged.jstree-apple .jstree-invalid, +#vakata-dragged.jstree-apple .jstree-ok, +#jstree-marker { + background-image: none !important; + background-color: transparent !important; + @extend [class^="icon-"]:before; +} +#vakata-dragged.jstree-apple .jstree-invalid { + @extend .icon-remove; + color: $color-5; +} +#vakata-dragged.jstree-apple .jstree-ok { + @extend .icon-ok; + color: $color-2; +} + +#jstree-marker { + @extend .icon-caret-right; + color: $color-body-text !important; + width: 4px !important; +} + +#jstree-marker-line { + @include border-radius($border-radius !important); + height: 0px !important; + margin-left: 5px !important; + margin-top: -2px !important; + border: none !important; + border-bottom: 1px solid $color-body-text !important; + background-color: very-light($color-3) !important; + + -webkit-box-shadow: none !important; + -moz-box-shadow: none !important; + box-shadow: none !important; + +} + +#vakata-contextmenu { + background-color: $color-3 !important; + -moz-box-shadow: none !important; + -webkit-box-shadow: none !important; + box-shadow: none !important; + border: none !important; + @include border-radius($border-radius !important); + + &:before { + content: ''; + position: absolute; + border-left: 10px solid transparent; + border-right: 10px solid transparent; + border-bottom: 10px solid $color-3; + top: 0px; + margin-top: -10px; + left: 25px; + z-index: 1; + } + + a { + color: $color-1 !important; + line-height: inherit !important; + padding: 5px 10px !important; + margin: 0 !important; + font-size: 90% !important; + + &:hover { + @include border-radius($border-radius !important); + background-color: $color-2 !important; + border: none !important; + -moz-box-shadow: none !important; + -webkit-box-shadow: none !important; + line-height: inherit !important; + padding: 5px 10px !important; + margin: 0 !important; + } + } + + li:first-child a:hover:before { + content: ''; + position: absolute; + border-left: 10px solid transparent; + border-right: 10px solid transparent; + border-bottom: 10px solid $color-2; + top: 0px; + margin-top: -10px; + left: 25px; + z-index: 1; + } + + li.vakata-separator { + display: none; + } +} \ No newline at end of file