Skip to content

Commit b9dff54

Browse files
Joshua Crisssystemcrash
authored andcommitted
luci-theme-openwrt: refining hide/show buttons
Match "show" button style to IP table, change border colour to match font colour; fade it slightly: no variable for disabled opacity like luci-theme-bootstrap, assuming 0.7. Remove fade when hovered. Change mouse icon from text cursor to pointer, restore button text weight and font similar to indicators, add subtle border to compliment both states of button. Work with existing mobile styling for 480px and below, make bigger buttons and fix heading alignment. Signed-off-by: Joshua Criss <owlsy@outlook.com.au>
1 parent 9e4058c commit b9dff54

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

  • themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org

themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,3 +2115,38 @@ select + .cbi-button {
21152115
display: none;
21162116
}
21172117
}
2118+
2119+
/* === STATUS OVERVIEW: HIDE/SHOW BUTTONS === */
2120+
2121+
/* Match "show" button style to IP table, change border colour to match font colour; fade it slightly: no variable for disabled opacity like luci-theme-bootstrap, assuming 0.7 */
2122+
body[data-page='admin-status-overview'] .cbi-title .label.notice {
2123+
background: #90c0e0;
2124+
color: #000;
2125+
border: 1px #000 solid;
2126+
opacity: 0.7;
2127+
}
2128+
2129+
/* Remove fade when hovered */
2130+
body[data-page='admin-status-overview'] .cbi-title .label.notice:hover {
2131+
opacity: initial;
2132+
}
2133+
2134+
/* Change mouse icon from text cursor to pointer, restore button text weight and font similar to indicators, add subtle border to compliment both states of button */
2135+
body[data-page='admin-status-overview'] .cbi-title .label {
2136+
cursor: pointer;
2137+
font-weight: normal;
2138+
font-family: Arial,Verdana,sans-serif;
2139+
border: 1px #888 solid;
2140+
}
2141+
2142+
/* Work with existing mobile styling for 480px and below, make bigger buttons and fix heading alignment */
2143+
@media screen and (max-width: 480px) {
2144+
body[data-page='admin-status-overview'] .cbi-title .label {
2145+
line-height: 3em;
2146+
}
2147+
body[data-page='admin-status-overview'] .cbi-title h3 {
2148+
align-items: center;
2149+
}
2150+
}
2151+
2152+
/* === END STATUS OVERVIEW: HIDE/SHOW BUTTONS === */

0 commit comments

Comments
 (0)