Skip to content

Commit

Permalink
Version v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Mar 22, 2023
1 parent 77c423f commit bc7b457
Show file tree
Hide file tree
Showing 574 changed files with 403,589 additions and 0 deletions.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.11.0
35 changes: 35 additions & 0 deletions asset/css/awesome-icons.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
:root, :host {
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
}

@font-face {
font-family: 'Font Awesome 6 Free';
font-style: normal;
font-weight: 400;
font-display: block;
src: url('@{iplWebAssets}/font/awesome/fa-regular-400.woff2') format('woff2'),
url('@{iplWebAssets}/font/awesome/fa-regular-400.ttf') format('truetype');
}

.far,
.fa-regular {
font-family: 'Font Awesome 6 Free';
font-weight: 400;
}

@font-face {
font-family: 'Font Awesome 6 Free';
font-style: normal;
font-weight: 900;
font-display: block;
src: url('@{iplWebAssets}/font/awesome/fa-solid-900.woff2') format('woff2'),
url('@{iplWebAssets}/font/awesome/fa-solid-900.ttf') format('truetype');
}

.fa,
.fas,
.fa-solid {
font-family: 'Font Awesome 6 Free';
font-weight: 900;
}
148 changes: 148 additions & 0 deletions asset/css/balls.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
@ball-pad: 1/6em;

.ball {
border-radius: 50%;
display: inline-block;
text-align: center;
}

.ball-size-xs {
height: 1/3em;
width: 1/3em;
}

.ball-size-s {
height: 0.5em;
width: 0.5em;
}

.ball-size-m {
height: 0.75em;
width: 0.75em;
line-height: 0;

i.icon:before {
font-size: .75 - @ball-pad * 2;
line-height: 1em;
}
}

.ball-size-ml {
height: 1em;
width: 1em;
line-height: 0;

i.icon {
line-height: 0.3;

&:before {
font-size: 0.8 - @ball-pad * 2;
line-height: 1 - @ball-pad * 2;
}
}
}

.ball-size-l {
height: 1.5em;
width: 1.5em;
line-height: 1em;

i.icon:before {
font-size: 1 - @ball-pad * 2;
line-height: 1.5 - @ball-pad * 2;
}
}

.ball-size-xl {
width: 2em;
height: 2em;

i.icon:before {
line-height: 2 - @ball-pad * 2;
}
}

.ball-outline(@color) {
border: @ball-pad solid @color;
color: @color;
}

.ball-solid(@color) {
background-color: @color;
color: var(--default-text-color-inverted, @default-text-color-inverted);
padding: @ball-pad;
}

.state-ball {
.ball();

&.state-pending:not(.ball-size-l):not(.ball-size-xl) {
.ball-solid(var(--state-pending, @state-pending));
}

&.state-pending.ball-size-l,
&.state-pending.ball-size-xl {
.ball-outline(var(--state-pending, @state-pending));
}

&.state-up:not(.ball-size-l):not(.ball-size-xl) {
.ball-solid(var(--state-up, @state-up));
}

&.state-up.ball-size-l,
&.state-up.ball-size-xl {
.ball-outline(var(--state-up, @state-up));
}

&.state-down {
.ball-solid(var(--state-down, @state-down));
}

&.state-ok:not(.ball-size-l):not(.ball-size-xl) {
.ball-solid(var(--state-ok, @state-ok));
}

&.state-ok.ball-size-l,
&.state-ok.ball-size-xl {
.ball-outline(var(--state-ok, @state-ok));
}

&.state-warning {
.ball-solid(var(--state-warning, @state-warning));
}

&.state-critical {
.ball-solid(var(--state-critical, @state-critical));
}

&.state-unknown {
.ball-solid(var(--state-unknown, @state-unknown));
}

&.handled {
opacity: 0.6;
}

i {
text-align: center;
display: block;

&:before {
margin-right: 0;
}
}

// Specific icon styles
&.ball-size-l i {
&.fa-sitemap:before {
font-size: 8px; // px to ignore browser min font-size
}
}

&.ball-size-xl i {
&.fa-sitemap:before {
font-size: .857em;
line-height: (2 - @ball-pad * 2) / .857;
}
}
}
34 changes: 34 additions & 0 deletions asset/css/cancel-button.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.cancel-button {
display: inline-flex;
align-items: baseline;
padding: .5em 1em;

.appearance(none);
.rounded-corners();
line-height: normal;
cursor: pointer;

background: var(--cancel-button-bg, @cancel-button-bg);
border: 1px solid var(--cancel-button-border-color, @cancel-button-border-color);
color: var(--cancel-button-color, @cancel-button-color);

&:focus,
&:hover {
background-color: var(--cancel-button-hover-bg, @cancel-button-hover-bg);
color: var(--cancel-button-hover-color, @cancel-button-hover-color);
}

&[disabled] {
background: none;
cursor: default;

border: 1px solid var(--control-disabled-color, @control-disabled-color);
color: var(--control-disabled-color, @control-disabled-color);

&:focus,
&:hover {
background: none;
color: var(--control-disabled-color, @control-disabled-color);
}
}
}
70 changes: 70 additions & 0 deletions asset/css/compat.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// 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;
}
}
Loading

0 comments on commit bc7b457

Please sign in to comment.