Skip to content

Commit

Permalink
使用伪元素替换用于上传文件的选择文件按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeedPartner committed Mar 22, 2023
1 parent 1c1b742 commit de3ab8c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
9 changes: 9 additions & 0 deletions htdocs/luci-static/argon/css/cascade.css
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,15 @@ small {
color: #fb6340;
border: 1px dashed #fb6340;
}
::file-selector-button {
color: #fff;
border-radius: .25rem;
border: 1px solid #2e6da4;
padding: .4rem .5rem;
background-color: #337ab7;
box-sizing: border-box;
cursor: pointer;
}
fieldset > fieldset {
margin: 0;
padding: 0;
Expand Down
5 changes: 5 additions & 0 deletions htdocs/luci-static/argon/css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,11 @@ fieldset[id^="cbi-apply-"] {
border: 1px dashed darkorange !important;
}

::file-selector-button {
border: 1px solid darkseagreen !important;
background-color: darkseagreen !important;
}

.node-services-vssr .block h4 span {
color: #ccc !important;
}
Expand Down
10 changes: 10 additions & 0 deletions htdocs/luci-static/argon/less/cascade.less
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,16 @@ small {
border: 1px dashed #fb6340;
}

::file-selector-button {
color: #fff;
border-radius: .25rem;
border: 1px solid #2e6da4;
padding: .4rem .5rem;
background-color: #337ab7;
box-sizing: border-box;
cursor: pointer;
}

fieldset>fieldset {
margin: 0;
padding: 0;
Expand Down
5 changes: 5 additions & 0 deletions htdocs/luci-static/argon/less/dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,11 @@ fieldset[id^="cbi-apply-"] {
border: 1px dashed darkorange !important;
}

::file-selector-button {
border: 1px solid darkseagreen !important;
background-color: darkseagreen !important;
}

.node-services-vssr .block h4 span{
color: #ccc !important;
}
Expand Down

1 comment on commit de3ab8c

@SpeedPartner
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更改预览:
file-selector-button

Please sign in to comment.