mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
luci-theme-*: wrap span tags, fixes badge text
The nowrap can be a bit obnoxious when available layout space is limited. Wrap. Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -318,7 +318,9 @@ a:hover {
|
|||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nowrap {
|
.nowrap:not(span) {
|
||||||
|
/* Sometimes you need to wrap: badges on narrow screens look weird
|
||||||
|
and nowrap defeats other width constraints, so exclude span */
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2193,7 +2195,6 @@ th[data-sort-direction="desc"]::after { content: "\a0\25bc"; }
|
|||||||
.ifacebadge {
|
.ifacebadge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
white-space: nowrap;
|
|
||||||
border: 1px solid var(--border-color-high);
|
border: 1px solid var(--border-color-high);
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
background: linear-gradient(var(--background-color-high), var(--background-color-high) 25%, var(--background-color-medium));
|
background: linear-gradient(var(--background-color-high), var(--background-color-high) 25%, var(--background-color-medium));
|
||||||
|
|||||||
@@ -369,7 +369,9 @@ small {
|
|||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nowrap:not(.td) {
|
.nowrap:not(.td span) {
|
||||||
|
/* Sometimes you need to wrap: badges on narrow screens look weird
|
||||||
|
and nowrap defeats other width constraints, so exclude span */
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -552,7 +552,9 @@ tr.placeholder > td {
|
|||||||
vertical-align: middle !important;
|
vertical-align: middle !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nowrap {
|
.nowrap:not(span) {
|
||||||
|
/* Sometimes you need to wrap: badges on narrow screens look weird
|
||||||
|
and nowrap defeats other width constraints, so exclude span */
|
||||||
white-space: nowrap !important;
|
white-space: nowrap !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,9 @@ body {
|
|||||||
line-height: 3em;
|
line-height: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nowrap {
|
.nowrap:not(span) {
|
||||||
|
/* Sometimes you need to wrap: badges on narrow screens look weird
|
||||||
|
and nowrap defeats other width constraints, so exclude span */
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user