Skip to content

Commit c9c88eb

Browse files
committed
initial commit
0 parents  commit c9c88eb

File tree

5 files changed

+77
-0
lines changed

5 files changed

+77
-0
lines changed

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org/>

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Linuxfabrik's IcingaWeb2 Theme
2+
3+
## Installation
4+
5+
```bash
6+
MODULE_NAME="linuxfabrik"
7+
MODULE_VERSION="v1.0.0"
8+
MODULE_AUTHOR="Linuxfabrik"
9+
MODULES_PATH="/usr/share/icingaweb2/modules"
10+
MODULE_PATH="${MODULES_PATH}/${MODULE_NAME}"
11+
RELEASES="https://github.com/${MODULE_AUTHOR}/icingaweb2-theme-${MODULE_NAME}/archive"
12+
mkdir "$MODULE_PATH" \
13+
&& wget -q $RELEASES/${MODULE_VERSION}.tar.gz -O - \
14+
| tar xfz - -C "$MODULE_PATH" --strip-components 1
15+
icingacli module enable "${MODULE_NAME}"
16+
```
17+
18+
For details, have a look at https://icinga.com/docs/icinga-web/latest/doc/08-Modules/.

module.info

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Name: linuxfabrik
2+
Version: 1.0.0
3+
Description: Linuxfabrik's IcingaWeb2 Theme

public/css/themes/linuxfabrik.less

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// adapted from /usr/share/icingaweb2/public/css/icinga/layout.less
2+
3+
#header-logo,
4+
#mobile-menu-logo {
5+
background-image: url('../img/linuxfabrik/linuxfabrik-logo.svg');
6+
filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 1rem white) ;
7+
}
8+
9+
#icinga-logo {
10+
background-image: url('../img/linuxfabrik/linuxfabrik-logo.svg');
11+
filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 1rem white) ;
12+
13+
&.invert {
14+
background-image: url('../img/linuxfabrik/linuxfabrik-logo.svg');
15+
}
16+
}
17+
18+
// slightly reduce the padding to make the logo larger
19+
#header-logo-container {
20+
padding: 0.5em;
21+
}
22+
23+
// support light mode
24+
@light-mode: {
25+
#header-logo,
26+
#mobile-menu-logo,
27+
#about .icinga-logo {
28+
// but do not change our logo
29+
filter: initial;
30+
}
31+
};

public/img/linuxfabrik-logo.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)