Skip to content

Commit

Permalink
Optimize drop-down menu style, adjust inner margins and borders to im…
Browse files Browse the repository at this point in the history
…prove user experience
  • Loading branch information
jerrykuku committed Dec 22, 2024
1 parent 30a47db commit 98478b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion htdocs/luci-static/argon/css/cascade.css

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions less/cascade.less
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ select,
.cbi-dropdown {
width: inherit;
cursor: default;
padding-right: 1rem;
}

select:not([multiple="multiple"]):focus,
Expand Down Expand Up @@ -1655,8 +1656,6 @@ tr > th,
gap: 0px;

input {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border-right-width: 0;
margin-right: 0;
}
Expand Down Expand Up @@ -2448,6 +2447,10 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child {
min-height: 2.1875rem;
}

.cbi-dropdown.btn > ul:not(.dropdown), .cbi-dropdown.cbi-button > ul:not(.dropdown){
margin: 0 0 0 0.75rem!important;
}

.cbi-dropdown[placeholder*="select"] {
max-width: 25rem;
height: auto;
Expand All @@ -2471,6 +2474,11 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child {

}

.cbi-dropdown.cbi-button-apply,
.cbi-dropdown.cbi-button-action{
padding: 0;
}

.cbi-button-apply > ul.preview {
display: none;

Expand Down Expand Up @@ -2501,10 +2509,12 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child {
flex-grow: 0;
flex-shrink: 0;
justify-content: center;
padding: 0 .25em;
cursor: default;
padding: 0 .375rem;
cursor: pointer;
text-align: center;
outline: 0;
border-left: thin solid #ccc;
margin-left: 0.5rem;
}

.cbi-dropdown > .more,
Expand Down Expand Up @@ -2835,8 +2845,7 @@ body.modal-overlay-active #modal_overlay {
}

#view {
border-radius: 0.25rem;
overflow: hidden;
border-radius: 0.25rem;

& > .spinning {
position: fixed;
Expand Down

0 comments on commit 98478b7

Please sign in to comment.