diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-04-22 08:34:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 08:34:17 +0200 |
| commit | c6d5605d272c963b075bf17eba7407d0a700cd2a (patch) | |
| tree | 799ef589f587465f1b8d323fc1f569b1c7590f2a /searx/static/themes/simple/less | |
| parent | b7848e342273526192a3392dcfd8c291196506ac (diff) | |
| parent | baff1cbbab8a72155823c3186971a5f56d7a92f2 (diff) | |
Merge pull request #7 from searxng/metrics
Metrics
Diffstat (limited to 'searx/static/themes/simple/less')
| -rw-r--r-- | searx/static/themes/simple/less/definitions.less | 3 | ||||
| -rw-r--r-- | searx/static/themes/simple/less/preferences.less | 3 | ||||
| -rw-r--r-- | searx/static/themes/simple/less/style.less | 2 | ||||
| -rw-r--r-- | searx/static/themes/simple/less/toolkit.less | 68 |
4 files changed, 74 insertions, 2 deletions
diff --git a/searx/static/themes/simple/less/definitions.less b/searx/static/themes/simple/less/definitions.less index 7a43720b8..c1465a579 100644 --- a/searx/static/themes/simple/less/definitions.less +++ b/searx/static/themes/simple/less/definitions.less @@ -19,6 +19,9 @@ @color-warning: #dbba34; @color-warning-background: lighten(@color-warning, 40%); +@color-success: #42db34; +@color-success-background: lighten(@color-success, 40%); + /// General @color-font: #444; diff --git a/searx/static/themes/simple/less/preferences.less b/searx/static/themes/simple/less/preferences.less index 26c4f6ddd..93bdaad27 100644 --- a/searx/static/themes/simple/less/preferences.less +++ b/searx/static/themes/simple/less/preferences.less @@ -105,9 +105,10 @@ font-size: 14px; font-weight: normal; z-index: 1000000; + text-align: left; } - th:hover .engine-tooltip, .engine-tooltip:hover { + th:hover .engine-tooltip, td:hover .engine-tooltip, .engine-tooltip:hover { display: inline-block; } diff --git a/searx/static/themes/simple/less/style.less b/searx/static/themes/simple/less/style.less index e00b2deff..55fb721c9 100644 --- a/searx/static/themes/simple/less/style.less +++ b/searx/static/themes/simple/less/style.less @@ -4,6 +4,8 @@ * To convert "style.less" to "style.css" run: $make styles */ +@stacked-bar-chart: rgb(0, 0, 0); + @import "normalize.less"; @import "definitions.less"; diff --git a/searx/static/themes/simple/less/toolkit.less b/searx/static/themes/simple/less/toolkit.less index 46ea17b3a..b3dba9ea9 100644 --- a/searx/static/themes/simple/less/toolkit.less +++ b/searx/static/themes/simple/less/toolkit.less @@ -36,6 +36,14 @@ html.js .show_if_nojs { background-color: @color-error-background; } +.warning { + background: @color-warning-background; +} + +.success { + background: @color-success-background; +} + .badge { display: inline-block; color: #fff; @@ -465,4 +473,62 @@ select { -webkit-transform: rotate(360deg); transform: rotate(360deg); } -}
\ No newline at end of file +} + +/* -- stacked bar chart -- */ +.stacked-bar-chart { + margin: 0; + padding: 0 0.125rem 0 4rem; + width: 100%; + width: -moz-available; + width: -webkit-fill-available; + width: fill; + flex-direction: row; + flex-wrap: nowrap; + align-items: center; + display: inline-flex; +} + +.stacked-bar-chart-value { + width: 3rem; + display: inline-block; + position: absolute; + padding: 0 0.5rem; + text-align: right; +} + +.stacked-bar-chart-base { + display:flex; + flex-shrink: 0; + flex-grow: 0; + flex-basis: unset; +} + +.stacked-bar-chart-median { + .stacked-bar-chart-base(); + background: @stacked-bar-chart; + border: 1px solid fade(@stacked-bar-chart, 90%); + padding: 0.3rem 0; +} + +.stacked-bar-chart-rate80 { + .stacked-bar-chart-base(); + background: transparent; + border: 1px solid fade(@stacked-bar-chart, 30%); + padding: 0.3rem 0; +} + +.stacked-bar-chart-rate95 { + .stacked-bar-chart-base(); + background: transparent; + border-bottom: 1px dotted fade(@stacked-bar-chart, 50%); + padding: 0; +} + +.stacked-bar-chart-rate100 { + .stacked-bar-chart-base(); + background: transparent; + border-left: 1px solid fade(@stacked-bar-chart, 90%); + padding: 0.4rem 0; + width: 1px; +} |