From f52840623c5408eadc3ccdecdd748bed96cee609 Mon Sep 17 00:00:00 2001 From: Cherrg Date: Fri, 12 Jul 2019 21:11:05 +0200 Subject: [PATCH] backport of #7393 - create class for inline positioned lists (#7439) see #7393 affects #6464 Signed-off-by: Michael Gnehr michael@gnehr.de --- public/css/index.css | 3 +++ public/less/_base.less | 17 ++++++++++++++++- templates/org/create.tmpl | 30 +++++++++++++----------------- 3 files changed, 32 insertions(+), 18 deletions(-) diff --git a/public/css/index.css b/public/css/index.css index 437605e1d3..9aa2cdd283 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -208,6 +208,9 @@ footer .ui.left,footer .ui.right{line-height:40px} .ui.tabular.menu .item{color:rgba(0,0,0,.5)} .ui.tabular.menu .item:hover{color:rgba(0,0,0,.8)} .ui.tabular.menu .item.active{color:rgba(0,0,0,.9)} +.inline-grouped-list{display:inline-block;vertical-align:top} +.inline-grouped-list>.ui{display:block;margin-top:5px;margin-bottom:10px} +.inline-grouped-list>.ui:first-child{margin-top:1px} .markdown:not(code){overflow:hidden;font-size:16px;line-height:1.6!important;word-wrap:break-word} .markdown:not(code).ui.segment{padding:3em} .markdown:not(code).file-view{padding:2em 2em 2em!important} diff --git a/public/less/_base.less b/public/less/_base.less index 4ce1b8eff9..01560c56c4 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -605,7 +605,6 @@ code, .file-comment { font: 12px @monospaced-fonts, monospace; color: rgba(0, 0, 0, 0.87); - } .ui.floating.dropdown { @@ -877,3 +876,19 @@ footer { .ui.tabular.menu .item.active { color: rgba(0, 0, 0, 0.9); } + +/* multiple radio or checkboxes as inline element */ +.inline-grouped-list { + display: inline-block; + vertical-align: top; + + > .ui { + display: block; + margin-top: 5px; + margin-bottom: 10px; + + &:first-child { + margin-top: 1px; + } + } +} diff --git a/templates/org/create.tmpl b/templates/org/create.tmpl index a64c415233..5b6080c227 100644 --- a/templates/org/create.tmpl +++ b/templates/org/create.tmpl @@ -17,23 +17,19 @@
-
- - -
-
-
- -
- - -
-
-
- -
- - +
+
+ + +
+
+ + +
+
+ + +