Merge pull request #1570 from glenn-sorrentino/develop

Updated web UI
This commit is contained in:
Saptak Sengupta 2022-04-09 14:56:52 +05:30 committed by GitHub
commit 7f87cd2fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 18 deletions

View File

@ -10,6 +10,7 @@
body { body {
margin: 0; margin: 0;
font-family: Helvetica, sans-serif; font-family: Helvetica, sans-serif;
background-color: #fafafa;
} }
.d-flex { .d-flex {
@ -21,15 +22,14 @@ body {
header { header {
border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1);
background: #fcfcfc; background: #fff;
background: -webkit-linear-gradient(top, #fcfcfc 0%, #f2f2f2 100%); padding: 1rem;
padding: 0.8rem;
} }
header .logo { header .logo {
vertical-align: middle; vertical-align: middle;
width: 45px; width: 3rem;
height: 45px; height: 3rem;
} }
header h1 { header h1 {
@ -37,23 +37,26 @@ header h1 {
margin: 0 0 0 0.5rem; margin: 0 0 0 0.5rem;
vertical-align: middle; vertical-align: middle;
font-weight: normal; font-weight: normal;
font-size: 1.5rem; font-size: 1.375rem;
color: #666666; color: #333;
position: relative;
top: .125rem;
} }
header .information { header .information {
font-size: 1rem; font-size: .875rem;
} }
.button { .button {
color: #ffffff; color: #ffffff;
background-color: #4e064f; background-color: #4e064f;
padding: 10px; padding: .875rem 1rem;
border: 0; border: 0;
border-radius: 5px; border-radius: .25rem;
text-decoration: none; text-decoration: none;
margin-left: 1rem; margin-left: 1rem;
cursor: pointer; cursor: pointer;
font-weight: bold;
} }
a.button:visited { a.button:visited {
@ -102,6 +105,9 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
border-collapse: collapse; border-collapse: collapse;
font-size: .875rem;
color: #333;
background-color: #fff;
} }
.file-list .heading { .file-list .heading {
@ -109,7 +115,9 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
text-transform: uppercase; text-transform: uppercase;
font-weight: normal; font-weight: normal;
color: #666666; color: #666666;
padding: 0.5rem; padding: 0.75rem;
font-size: .75rem;
letter-spacing: .0625rem;
} }
.file-list div.d-flex { .file-list div.d-flex {
@ -119,16 +127,18 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
.file-list div.d-flex div { .file-list div.d-flex div {
white-space: nowrap; white-space: nowrap;
padding: 0.5rem 0.8rem 0.5rem 0.8rem; padding: .625rem .75rem;
} }
.file-list div.d-flex div img { .file-list div.d-flex div img {
vertical-align: middle; vertical-align: middle;
margin-right: 0.5rem; margin-right: 0.5rem;
width: 1.25rem;
height: 1.25rem;
} }
.file-list div.d-flex div:last-child { .file-list div.d-flex div:last-child {
padding-right: 0.8rem; padding-right: 0.75rem;
flex-basis: 0; flex-basis: 0;
flex-grow: 1; flex-grow: 1;
} }
@ -146,6 +156,12 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
} }
@media (max-width: 655px) { @media (max-width: 655px) {
.header {
padding: 0 1rem;
}
.file-list {
font-size: .9375rem;
}
.file-list div.d-flex { .file-list div.d-flex {
display: block; display: block;
} }
@ -153,17 +169,32 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
max-width: 100%; max-width: 100%;
word-break: break-all; word-break: break-all;
white-space: normal; white-space: normal;
vertical-align: top;
} }
.file-list div.d-flex #size-header { .file-list div.d-flex #size-header {
display: none; display: none;
} }
.file-list div.d-flex div:last-child { .file-list div.d-flex div:last-child {
padding-left: 3.5rem; padding-left: 3.75rem;
font-size: 0.85rem; font-size: 0.75rem;
padding-top: 0; padding-top: 0;
margin-top: -.5rem;
color: #666;
} }
.d-flex .row div:first-of-type {
padding-bottom: 0;
}
}
@media (max-width: 500px) {
header .information { header .information {
padding: 1rem 0; width: 100%;
align-items: end;
}
.file-list div.d-flex div {
white-space: nowrap;
padding: .625rem 1rem;
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -34,7 +34,7 @@
{% for info in dirs %} {% for info in dirs %}
<div class="d-flex"> <div class="d-flex">
<div> <div>
<img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_folder.png" /> <img title="" alt="" src="{{ static_url_path }}/img/web_folder.png" />
<a href="{{ info.link }}"> <a href="{{ info.link }}">
<span>{{ info.basename }}</span> <span>{{ info.basename }}</span>
</a> </a>
@ -57,4 +57,4 @@
</div> </div>
</body> </body>
</html> </html>