diff options
| author | 2021-08-25 11:52:40 +0200 | |
|---|---|---|
| committer | 2021-08-25 11:52:40 +0200 | |
| commit | 6c396997f2f2d5304b2413f590645dc62107dd7e (patch) | |
| tree | c20e6bba0449b3d7ef1d78541a7f5b720b74b2cb /p/themes/base-theme | |
| parent | 235f16647a8a7903f750e174139a8e12d9982dce (diff) | |
Statistics: improved layout (#3797)
* css grid layout
* Update repartition.phtml
* scrolling the canvas if it does not fit
Diffstat (limited to 'p/themes/base-theme')
| -rw-r--r-- | p/themes/base-theme/template.css | 22 | ||||
| -rw-r--r-- | p/themes/base-theme/template.rtl.css | 22 |
2 files changed, 36 insertions, 8 deletions
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index 8d851d508..1c63fac46 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -957,14 +957,20 @@ br { } /*=== Statistiques */ +.stat-grid { + display: grid; + grid-template-columns: 1fr 1fr; + grid-gap: 20px; +} + .stat { - margin: 15px 0; + grid-column: 1 / span 2; + overflow-x: auto; + overflow-y: hidden; } .stat.half { - padding: 0 2%; - display: inline-block; - width: 46%; + grid-column: auto; } .stat > table { @@ -975,6 +981,10 @@ br { height: 300px; } +.stat .flotr-legend-label{ + padding-left: 0; +} + /*=== LOGIN VIEW */ /*================*/ .formLogin .header > .item { @@ -1364,6 +1374,10 @@ input:checked + .slide-container .properties { line-height: 50px; border-bottom: 1px solid #ddd; } + + .stat.half { + grid-column: 1 / span 2; + } } /*=== PRINTER */ diff --git a/p/themes/base-theme/template.rtl.css b/p/themes/base-theme/template.rtl.css index 3c19047d4..927f92def 100644 --- a/p/themes/base-theme/template.rtl.css +++ b/p/themes/base-theme/template.rtl.css @@ -957,14 +957,20 @@ br { } /*=== Statistiques */ +.stat-grid { + display: grid; + grid-template-columns: 1fr 1fr; + grid-gap: 20px; +} + .stat { - margin: 15px 0; + grid-column: 1 / span 2; + overflow-x: auto; + overflow-y: hidden; } .stat.half { - padding: 0 2%; - display: inline-block; - width: 46%; + grid-column: auto; } .stat > table { @@ -975,6 +981,10 @@ br { height: 300px; } +.stat .flotr-legend-label{ + padding-left: 0; +} + /*=== LOGIN VIEW */ /*================*/ .formLogin .header > .item { @@ -1364,6 +1374,10 @@ input:checked + .slide-container .properties { line-height: 50px; border-bottom: 1px solid #ddd; } + + .stat.half { + grid-column: 1 / span 2; + } } /*=== PRINTER */ |
