summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-bootstrap/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-04 14:23:31 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-10 15:28:16 +0200
commit6f6a29bcb00e8d86508f89b4b4837e5e390cac84 (patch)
tree6463934763d297155c59fcf9dc4696d5db893e5f /themes/luci-theme-bootstrap/htdocs
parent3f93650901caf9e4094aeaee6a47d68efafeac97 (diff)
luci-theme-bootstrap: add required styles for file upload widget
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-bootstrap/htdocs')
-rw-r--r--themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css91
1 files changed, 91 insertions, 0 deletions
diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
index f8f1c11105..0399985a33 100644
--- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
+++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
@@ -99,6 +99,7 @@ input[type="reset"],
input[type="submit"] {
cursor: pointer;
-webkit-appearance: button;
+ word-break: break-all;
}
button[disabled],
@@ -1201,6 +1202,7 @@ footer {
flex-basis: 100%;
line-height: normal;
margin-bottom: .5em;
+ max-width: 100%;
}
.modal > pre,
@@ -2248,3 +2250,92 @@ html body.apply-overlay-active {
overflow: visible;
transition: opacity .25s ease-in;
}
+
+.cbi-filebrowser {
+ min-width: 210px;
+ max-width: 100%;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+ display: flex;
+ flex-direction: column;
+ opacity: 0;
+ height: 0;
+ overflow: hidden;
+}
+
+.cbi-filebrowser.open {
+ opacity: 1;
+ height: auto;
+ overflow: visible;
+ transition: opacity .25s ease-in;
+}
+
+.cbi-filebrowser > * {
+ max-width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ padding: 0 0 .25em 0;
+ margin: .25em .25em 0px .25em;
+ white-space: nowrap;
+ border-bottom: 1px solid #ccc;
+}
+
+.cbi-filebrowser .cbi-button-positive {
+ margin-right: .25em;
+}
+
+.cbi-filebrowser > div {
+ border-bottom: none;
+}
+
+.cbi-filebrowser > ul > li {
+ display: flex;
+ flex-direction: row;
+}
+
+.cbi-filebrowser > ul > li:hover {
+ background: #f5f5f5;
+}
+
+.cbi-filebrowser > ul > li > div:first-child {
+ flex: 10;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.cbi-filebrowser > ul > li > div:last-child {
+ flex: 3;
+ text-align: right;
+}
+
+.cbi-filebrowser > ul > li > div:last-child > button {
+ padding: .125em .25em;
+ margin: 1px 0 1px .25em;
+}
+
+.cbi-filebrowser .upload {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ margin: 0 -.125em .25em -.125em;
+ padding: 0 0 .125em 0px;
+ border-bottom: 1px solid #ccc;
+}
+
+.cbi-filebrowser .upload > * {
+ margin: .125em;
+ flex: 1;
+}
+
+.cbi-filebrowser .upload > .btn {
+ flex-basis: 60px;
+}
+
+.cbi-filebrowser .upload > div {
+ flex: 10;
+ min-width: 150px;
+}
+
+.cbi-filebrowser .upload > div > input {
+ width: 100%;
+}