mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
luci-theme-material: update cascade.css to use first-of-type instead of last/first-child
first-child: Selects an element that is the first child of its parent. The element must be the very first child of its parent, regardless of its type. first-of-type: Selects the first element of its type among its siblings. The element must be the first of its type (e.g., <p>, <div>, etc.) within its parent, but it does *not* have to be the first child. Makes the CSS usage more robust if the layout changes and new html elements are added. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
committed by
Paul Donald
parent
193f802e5a
commit
47d26bcb62
@@ -1786,11 +1786,11 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal .button-row > :not(:last-child) {
|
.modal .button-row > button:not(:first-of-type) {
|
||||||
margin-right: .5em;
|
margin-right: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal .button-row > :first-child {
|
.modal .button-row > button:first-of-type {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user