From c1146c167cb2d5f49fe62139f1f8ef8e3dbb7039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 29 Dec 2020 20:19:22 +0100 Subject: [PATCH] style: remove custom wcs classes (#49779) --- gadjo/static/css/_hacks.scss | 15 ------ gadjo/static/css/_wcs.scss | 91 ------------------------------------ gadjo/static/css/gadjo.scss | 1 - 3 files changed, 107 deletions(-) delete mode 100644 gadjo/static/css/_wcs.scss diff --git a/gadjo/static/css/_hacks.scss b/gadjo/static/css/_hacks.scss index 28e48c0..bd2d601 100644 --- a/gadjo/static/css/_hacks.scss +++ b/gadjo/static/css/_hacks.scss @@ -8,8 +8,6 @@ div.placeholder, // combo table.agenda-table, // chrono div#appbar + form, // misc div#appbar + ul.messages + form, // misc -div#main-content > h2:first-child + form, // w.c.s. -div.form-validation form, // w.c.s. div#appbar + div#description // passerelle { background: white; @@ -27,19 +25,6 @@ div.other_actions { // authentic width: 29%; } -div div.bo-block ul.biglist { // w.c.s. - margin: -1ex; -} - -div div.bo-block h3 ~ ul.biglist { // w.c.s. - margin: 0 -1ex; - margin: 0 calc(-1ex + 1px) calc(-1ex + 1px) calc(-1ex + 1px); -} - -div div.bo-block ul.biglist p.details.badge { // w.c.s. - background: $primary-color; -} - body.welco-home div#main-content { background: white; margin: 0; diff --git a/gadjo/static/css/_wcs.scss b/gadjo/static/css/_wcs.scss deleted file mode 100644 index 723389e..0000000 --- a/gadjo/static/css/_wcs.scss +++ /dev/null @@ -1,91 +0,0 @@ -@charset "UTF-8"; - -$actions: add, duplicate, edit, remove; - -#sidebar div#sticky-sidebar { - width: calc(100% - 2rem); -} - -div#side { // w.c.s. steps in backoffice submission - background: white; - border-radius: 3px 3px 0 0; - margin-bottom: 1rem; - & + form { - background: white; - padding: 0.5rem; - border-radius: 0 0 3px 3px; - } - #steps.steps-1 { - // hide steps when there's a single one - display: none; - } - #steps ol { - background: transparent; - margin: 0.5em; - padding: 0; - span.label { - margin-left: 0.5rem; - } - .current span.marker { - background: $primary-color; - border-color: darken($primary-color, 20%); - } - } -} - -#main ul#fields-list li { - padding-top: 6px; -} - -#main ul.biglist li p.commands span { - padding: 0; - box-shadow: none; - border: none; - a { - @extend %button; - font-weight: normal; - } - &.view { - margin-top: 2px; - } - &.remove, &.add, &.edit, &.duplicate { - padding: 0; - border: 0; - background: transparent; - box-shadow: none; - a { - border: none; - padding: 6px; - display: inline-block; - text-indent: -10000px; - overflow: hidden; - width: 30px; - } - } - @each $action in $actions { - &.#{$action} a { - background: url(icons/action-#{$action}.small.#{$string-color}.png) center center no-repeat; - background-size: 20px; - background-image: url(icons/action-#{$action}.small.#{$string-color}.png), - url(icons/action-#{$action}.hover.png); - &:hover { - background-image: url(icons/action-#{$action}.hover.png); - } - } - } -} - -div.form-validation form div.page { - border: none; -} - -div.workflow-messages > div, -div.workflow-messages > p { - background: white; - margin: 1ex 0; - padding: 1ex; -} - -div.buttons > div.widget { - margin-right: 1rem; -} diff --git a/gadjo/static/css/gadjo.scss b/gadjo/static/css/gadjo.scss index 487ef03..4dbcaa0 100644 --- a/gadjo/static/css/gadjo.scss +++ b/gadjo/static/css/gadjo.scss @@ -1320,5 +1320,4 @@ div.cke_reset_all .cke_dialog .cke_dialog_body { @import 'jqueryui'; @import 'forms'; @import 'portal'; -@import 'wcs'; @import 'hacks';