From 23d9eb8f38f28e4795571a0872453a86ba00a17d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 26 Jul 2019 15:05:59 +0200 Subject: [PATCH] forms.less: Move role-form related styles to widgets.less --- public/css/icinga/forms.less | 56 ---------------------------------- public/css/icinga/widgets.less | 47 ++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 56 deletions(-) diff --git a/public/css/icinga/forms.less b/public/css/icinga/forms.less index c1f8ed106..a4965e30f 100644 --- a/public/css/icinga/forms.less +++ b/public/css/icinga/forms.less @@ -23,62 +23,6 @@ form.icinga-form { max-width: 70em; width: 80%; - > fieldset { - border: none; - padding: 0; - margin: 0; - - h3 em { - font-size: .857em; - font-weight: normal; - color: @text-color-light; - } - - h4 { - margin-top: 1.5em; - } - - &.collapsible:before { - display: none; - } - - &:not(:last-of-type) .collapsible-control { - border-bottom: 1px solid @gray-light; - cursor: default; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - } - - .collapsed .collapsible-control { - border-bottom: none; - } - - .collapsible-control:after { - content: "\f103"; - display: inline-block; - font-family: 'ifont'; - font-weight: normal; - padding: 0 .25em; - margin-right: .25em; - width: 1em; - opacity: .6; - float: right; - } - - &.collapsed .collapsible-control:after { - content: "\e87b"; - /*content: "\e87a";*/ - } - - .permission-heading { - display: none; - } - } - .control-group { display: flex; flex-wrap: wrap; diff --git a/public/css/icinga/widgets.less b/public/css/icinga/widgets.less index 15f21939e..3cbf5012c 100644 --- a/public/css/icinga/widgets.less +++ b/public/css/icinga/widgets.less @@ -227,6 +227,53 @@ form.role-form { color: @text-color-light; font-style: normal; } + + fieldset.collapsible { + border: none; + padding: 0; + margin: 0; + + &:before { + display: none; + } + + h3 em { + font-size: .857em; + font-weight: normal; + color: @text-color-light; + } + + h4 { + margin-top: 1.5em; + } + + .collapsible-control { + border-bottom: 1px solid @gray-light; + cursor: pointer; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + } + + .collapsible-control:after { + content: "\f103"; + display: inline-block; + font-family: 'ifont'; + font-weight: normal; + padding: 0 .25em; + margin-right: .25em; + width: 1em; + opacity: .6; + float: right; + } + + &.collapsed .collapsible-control:after { + content: "\e87a"; + } + } } ul.tree select:first-of-type { /* ?? */