summaryrefslogtreecommitdiffstats
path: root/asset/css/compat.less
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:30:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:30:08 +0000
commit4ce65d59ca91871cfd126497158200a818720bce (patch)
treee277def01fc7eba7dbc21c4a4ae5576e8aa2cf1f /asset/css/compat.less
parentInitial commit. (diff)
downloadicinga-php-library-4ce65d59ca91871cfd126497158200a818720bce.tar.xz
icinga-php-library-4ce65d59ca91871cfd126497158200a818720bce.zip
Adding upstream version 0.13.1.upstream/0.13.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'asset/css/compat.less')
-rw-r--r--asset/css/compat.less88
1 files changed, 88 insertions, 0 deletions
diff --git a/asset/css/compat.less b/asset/css/compat.less
new file mode 100644
index 0000000..1188c7e
--- /dev/null
+++ b/asset/css/compat.less
@@ -0,0 +1,88 @@
+// General input styles
+
+.icinga-controls {
+ .uploaded-files {
+ background-color: @default-input-bg;
+ }
+}
+
+form.icinga-form {
+ .uploaded-files {
+ flex: 1 1 auto;
+ width: 0;
+ }
+}
+
+.icinga-controls {
+ .uploaded-files {
+ font-size: inherit;
+ padding: .5em;
+ }
+}
+
+// Button styles
+
+// The `form` selector is only required to overrule the hover effect applied by Icinga Web.
+// It's not required if done by Icinga Web itself, only here because this is applied earlier
+// as it's part of a library.
+form.icinga-controls {
+ button[type="submit"].remove-uploaded-file {
+ all: unset;
+ }
+}
+
+// Schedule Element styles
+
+.icinga-form > .schedule-element,
+.icinga-form > .schedule-element > fieldset {
+ margin-top: 1em;
+
+ > .control-group:first-child {
+ margin-top: 0;
+ }
+}
+
+.icinga-form .schedule-element {
+ .control-group > fieldset > .weekly,
+ .control-group > .ordinal,
+ .control-group > .monthly,
+ .control-group > .annually {
+ flex: 1 1 auto;
+ }
+
+ // TODO: This effectively restricts the weekly fields to always be aligned to the right,
+ // regardless of the using an icinga-form or not. So this should be removed once we
+ // have re-implemented the decorators.
+ .control-group > fieldset > .weekly {
+ margin-left: 14em;
+ }
+}
+
+form.icinga-form .control-group {
+ > .monthly,
+ > .ordinal {
+ margin-right: 2em;
+ }
+
+ > .ordinal.annually {
+ margin-right: 1em;
+ }
+}
+
+// TermInput styles
+
+form.icinga-form .control-group {
+ > .term-input-area {
+ flex: 1 1 auto;
+
+ width: auto;
+ &.vertical {
+ width: 0;
+ }
+
+ input[type="text"] {
+ flex: unset;
+ width: 100%;
+ }
+ }
+}