From 3e585e4d7e2726714c9a29e3f7e312d3b7f617c4 Mon Sep 17 00:00:00 2001 From: Patrik Uytterhoeven Date: Tue, 11 Jun 2024 00:32:31 +0200 Subject: [PATCH] added css style for columns in markdown --- docs/configuration/.zabbix-macros.md.swp | Bin 0 -> 12288 bytes docs/configuration/zabbix-macros.md | 10 +++++++ docs/configuration/zabbix-users.md | 34 ++++------------------- docs/stylesheets/extra.css | 31 +++++++++++++++++++++ mkdocs.yml | 3 ++ 5 files changed, 49 insertions(+), 29 deletions(-) create mode 100644 docs/configuration/.zabbix-macros.md.swp create mode 100644 docs/stylesheets/extra.css diff --git a/docs/configuration/.zabbix-macros.md.swp b/docs/configuration/.zabbix-macros.md.swp new file mode 100644 index 0000000000000000000000000000000000000000..d5c61afcc61cb60448f82462dc8ef23b41b07c05 GIT binary patch literal 12288 zcmeI&KTg9i6bA5D5E}&q8q)elLf;hwSHchORa1fp35joZ~SV3uxnHqDwD-&GAyJ`O%~ox z+5@QyQwD>sYhC;X0SHVH7~0t1ZPNBudwi>Vn;T+n^>oT4v>^Zi2tWV=5P$##AOL~C zBw+IfJ@SF(>O(EowehXimnaZ`00bZa0SG_<0uX=z1Rwwb2+W{>Vxk9 literal 0 HcmV?d00001 diff --git a/docs/configuration/zabbix-macros.md b/docs/configuration/zabbix-macros.md index 18dfa845..53c0f813 100644 --- a/docs/configuration/zabbix-macros.md +++ b/docs/configuration/zabbix-macros.md @@ -1,2 +1,12 @@ # Macros + +| test | test | test | test | +| ---- | ---- | ---- | ---- | +| een | een | een | een | +| twee | twee | twee | twee | +| een | een | een | een | +| twee | twee | twee | twee | +| een | een | een | een | +| twee | twee | twee | twee | + diff --git a/docs/configuration/zabbix-users.md b/docs/configuration/zabbix-users.md index ad295d23..073eaf01 100644 --- a/docs/configuration/zabbix-users.md +++ b/docs/configuration/zabbix-users.md @@ -23,35 +23,11 @@ To change the password, do the following steps: Before we create new users, it's important to know that Zabbix has three user types that are built-in. - - - - - - - - - - - - - - - - - - - - - - -
User typeDescription
Zabbix UserThis is a normal user that only has read-only permissions if given. So there are no permissions assigned by default.
Zabbix AdminA user with read/write permissions. Just like the Zabbix user, there are no permissions by default. However access can be denied to some groups.
Zabbix Super AdminA user with group read/write permissions. The user will have read/write access to all host and template groups. Access can't be revoked by denying access to groups, like with a normal admin.
- - - +| User type | Description | +| ---- | ---- | +| Zabbix User | This is a normal user that only has read-only permissions if given. So there are no permissions assigned by default. | +| Zabbix Admin | A user with read/write permissions. Just like the Zabbix user, there are no permissions by default. However access can be denied to some groups.| +| Zabbix Super Admin | A user with group read/write permissions. The user will have read/write access to all host and template groups. Access can't be revoked by denying access to groups, like with a normal admin.| Besides these differences, these users also have different access rights to our menu. Let's have a closer look. diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 00000000..a6aab00f --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,31 @@ +thead th { text-align:left; background:grey; color:white} + +tr td:first-child { + background: lightgrey; +} + +th, td { + border: 1px solid var(--md-typeset-table-color); + border-spacing: 0; + border-bottom: none; + border-left: none; + border-top: none; +} + +.md-typeset__table { + line-height: 1; +} +.md-typeset__table table:not([class]) th { + padding: 9px; +} + +/* light mode alternating table bg colors */ +.md-typeset__table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +/* dark mode alternating table bg colors */ +[data-md-color-scheme="slate"] .md-typeset__table tr:nth-child(2n) { + background-color: hsla(var(--md-hue),25%,25%,1) +} + diff --git a/mkdocs.yml b/mkdocs.yml index b408f783..d2fd99b1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -101,6 +101,9 @@ theme: icon: material/toggle-switch name: Switch to light mode +extra_css: + - stylesheets/extra.css + # Plugins plugins: - search