Skip to content

Commit

Permalink
Version v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Mar 23, 2022
1 parent 72d4035 commit 85a4666
Show file tree
Hide file tree
Showing 309 changed files with 113,949 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.8.0
36 changes: 36 additions & 0 deletions asset/css/awesome-icons.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@font-face {
font-family: 'Font Awesome 5 Free';
font-style: normal;
font-weight: 400;
font-display: block;
src: url('@{iplWebAssets}/font/awesome/fa-regular-400.eot');
src: url('@{iplWebAssets}/font/awesome/fa-regular-400.eot?#iefix') format('embedded-opentype'),
url('@{iplWebAssets}/font/awesome/fa-regular-400.woff2') format('woff2'),
url('@{iplWebAssets}/font/awesome/fa-regular-400.woff') format('woff'),
url('@{iplWebAssets}/font/awesome/fa-regular-400.ttf') format('truetype'),
url('@{iplWebAssets}/font/awesome/fa-regular-400.svg#fontawesome') format('svg');
}

.far {
font-family: 'Font Awesome 5 Free';
font-weight: 400;
}

@font-face {
font-family: 'Font Awesome 5 Free';
font-style: normal;
font-weight: 900;
font-display: block;
src: url('@{iplWebAssets}/font/awesome/fa-solid-900.eot');
src: url('@{iplWebAssets}/font/awesome/fa-solid-900.eot?#iefix') format('embedded-opentype'),
url('@{iplWebAssets}/font/awesome/fa-solid-900.woff2') format('woff2'),
url('@{iplWebAssets}/font/awesome/fa-solid-900.woff') format('woff'),
url('@{iplWebAssets}/font/awesome/fa-solid-900.ttf') format('truetype'),
url('@{iplWebAssets}/font/awesome/fa-solid-900.svg#fontawesome') format('svg');
}

.fa,
.fas {
font-family: 'Font Awesome 5 Free';
font-weight: 900;
}
143 changes: 143 additions & 0 deletions asset/css/balls.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
@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 {
.ball-solid(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;
}
}
}
32 changes: 32 additions & 0 deletions asset/css/cancel-button.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.cancel-button {
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);
}
}
}
76 changes: 76 additions & 0 deletions asset/css/controls.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.pagination-control {
li > a {
color: var(--control-color, @control-color);
border-radius: .25em;
}

li > a:hover {
background: var(--control-hover-bg, @control-hover-bg);
}

.previous-page,
.next-page {
padding: .5em .25em;

i {
display: block;
}

i:before {
margin: 0;
}
}

.previous-page > i {
margin-left: -.125em;
}

.next-page > i {
margin-right: -.125em;
}
}

// Style

.control-button {
.appearance(none);
background: none;
border: none;
color: var(--control-color, @control-color);
.rounded-corners();

&:hover, &:focus, &.active {
background-color: var(--control-hover-bg, @control-hover-bg);
text-decoration: none;
}

&.disabled {
color: var(--control-disabled-color, @control-disabled-color);

&:hover {
background: none;
}
}

i.icon:before {
color: inherit;
}
}

// Layout

.control-button {
display: inline-block;
padding: .25em .5em;

> i.icon {
display: inline-flex;
align-items: center;
height: 100%;
}

i.icon:before {
margin-right: 0;
}
}

9 changes: 9 additions & 0 deletions asset/css/datetime-picker.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.flatpickr-input + .input {
padding-right: 2em;

& + .fa-calendar {
margin: .5em 1em 0 -3.5em;
padding: 0 .5em 0 1em;
pointer-events: none;
}
}
Loading

0 comments on commit 85a4666

Please sign in to comment.