From 527da44bd0043b2f6297149421b87fb30f59dbe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Jim=C3=A9nez?= Date: Tue, 12 Dec 2017 15:12:39 +0100 Subject: [PATCH] Removed inline CSS from Settings --- public/less/loader.js | 1 + public/less/settings.less | 54 ++++++++++++++++++++++++++++ public/templates/settings.html | 64 ++++++++++++++++------------------ 3 files changed, 85 insertions(+), 34 deletions(-) create mode 100644 public/less/settings.less diff --git a/public/less/loader.js b/public/less/loader.js index 06afe426b..002e51aac 100644 --- a/public/less/loader.js +++ b/public/less/loader.js @@ -10,4 +10,5 @@ require('plugins/wazuh/less/wazuh-navbar.less'); require('plugins/wazuh/less/not-used.less'); require('plugins/wazuh/less/buttons.less'); require('plugins/wazuh/less/overview.less'); +require('plugins/wazuh/less/settings.less'); import 'ui/styles/theme.less' diff --git a/public/less/settings.less b/public/less/settings.less new file mode 100644 index 000000000..686f443d5 --- /dev/null +++ b/public/less/settings.less @@ -0,0 +1,54 @@ +.settings-height-70 { + height: 70px; +} + +.settings-padding-right { + padding-right: 0px; +} + +.settings-margin-top-30 { + margin-top: 30px; +} + +.settings-font-15 { + font-size: 15px; +} + +.settings-font-18 { + font-size: 18px; +} + +.settings-font-25 { + font-size: 25px; +} + +.settings-font-bold { + font-weight: bold; +} + +.settings-template-1 { + color: #f39c12; + font-size: 18px; +} + +.settings-template-2 { + margin-left: 7px; + font-size: 18px; +} + +.settings-template-3 { + font-size: 13px; + margin-right: 5px; +} + +.settings-width-500 { + width: 500px; +} + +.settings-background-e2 { + background-color: #e2e2e2; +} + +.settings-color-f9 { + color: #ff9999; +} diff --git a/public/templates/settings.html b/public/templates/settings.html index 5b9b7cf48..a13c687d6 100644 --- a/public/templates/settings.html +++ b/public/templates/settings.html @@ -1,11 +1,11 @@ - + - + API Extensions Pattern @@ -34,7 +34,7 @@ -

Wazuh RESTful API seems to be down

+

Wazuh RESTful API seems to be down

Please, check if Wazuh RESTful API is running with one of the commands bellow:

For Systemd: @@ -47,30 +47,28 @@ -

Wazuh App: API configuration

+

Wazuh App: API configuration

-

Cluster

-

Manager

-

API URL

-

API Port

-

User

-

Actions

- - +

Cluster

+

Manager

+

API URL

+

API Port

+

User

+

Actions

-

{{entry._source.cluster_info.cluster}}

-

{{entry._source.cluster_info.manager}}

-

{{entry._source.url}}

-

{{entry._source.api_port}}

-

{{entry._source.api_user}}

-

- - - +

{{entry._source.cluster_info.cluster}}

+

{{entry._source.cluster_info.manager}}

+

{{entry._source.url}}

+

{{entry._source.api_port}}

+

{{entry._source.api_user}}

+

+ + +

@@ -78,10 +76,10 @@
- Add new API + Add new API
-
+ @@ -99,10 +97,10 @@
-

{{messageError}}

+

{{messageError}}

- SAVE + SAVE
@@ -110,12 +108,12 @@ -

Wazuh App: Extensions

+

Wazuh App: Extensions

Enable or disable extensions according to your needs. The extension includes: Panels and Discover, for Overview / Agents tabs.

- + PCI DSS @@ -128,7 +126,7 @@
- + OpenSCAP @@ -141,7 +139,7 @@
- + Audit @@ -156,12 +154,12 @@ -

Wazuh App: Index pattern selection

+

Wazuh App: Index pattern selection

Select the index pattern to run search and analytics against

Beware: the new index-pattern structure must be compatible with Wazuh alerts, otherwise the visualizations will load erroneous data, or no data at all.

- + {{indexPattern.attributes.title}} @@ -188,9 +186,8 @@
- - +

Version

App version

@@ -206,7 +203,6 @@

Revision

{{appInfo["revision"]}}

-