dufs/assets/index.css

231 lines
3.2 KiB
CSS
Raw Normal View History

2022-05-26 11:17:55 +03:00
html {
font-family: -apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;
2022-05-26 11:17:55 +03:00
line-height: 1.5;
color: #24292e;
}
body {
/* prevent premature breadcrumb wrapping on mobile */
min-width: 500px;
}
2022-05-30 09:22:35 +03:00
.hidden {
2022-06-21 02:23:20 +03:00
display: none !important;
2022-05-30 09:22:35 +03:00
}
2022-05-26 11:17:55 +03:00
.head {
display: flex;
2022-05-29 07:43:40 +03:00
flex-wrap: wrap;
align-items: center;
2022-05-26 16:28:30 +03:00
padding: 1em 1em 0;
2022-05-26 11:17:55 +03:00
}
.breadcrumb {
font-size: 1.25em;
padding-right: 0.6em;
2022-05-26 11:17:55 +03:00
}
.breadcrumb > a {
color: #0366d6;
text-decoration: none;
}
.breadcrumb > a:hover {
text-decoration: underline;
}
/* final breadcrumb */
.breadcrumb > b {
color: #24292e;
}
.breadcrumb > .separator {
color: #586069;
padding: 0 0.25em;
}
.breadcrumb svg {
height: 100%;
fill: rgba(3,47,98,0.5);
}
2022-05-29 07:43:40 +03:00
.toolbox {
display: flex;
2022-06-19 17:16:43 +03:00
margin-right: 10px;
2022-05-29 07:43:40 +03:00
}
.toolbox > div {
/* vertically align with breadcrumb text */
height: 1.1rem;
}
.toolbox .control {
cursor: pointer;
padding-left: 0.25em;
}
.upload-file input {
display: none;
}
2022-05-29 07:43:40 +03:00
.searchbar {
display: flex;
flex-wrap: nowrap;
width: 246px;
height: 22px;
background-color: #fafafa;
transition: all .15s;
border: 1px #ddd solid;
border-radius: 15px;
2022-06-19 17:16:43 +03:00
margin-bottom: 2px;
2022-05-29 07:43:40 +03:00
}
.searchbar #search {
box-sizing: border-box;
width: 100%;
height: 100%;
font-size: 16px;
line-height: 16px;
padding: 1px;
font-family: helvetica neue,luxi sans,Tahoma,hiragino sans gb,STHeiti,sans-serif;
background-color: transparent;
border: none;
outline: none;
}
.searchbar .icon {
color: #9a9a9a;
padding: 3px 3px;
cursor: pointer;
}
.upload-status span {
width: 70px;
display: inline-block;
}
2022-05-26 11:17:55 +03:00
.main {
2022-05-26 16:28:30 +03:00
padding: 0 1em;
2022-05-26 11:17:55 +03:00
}
.empty-folder {
padding-top: 1rem;
font-style: italic;
}
2022-06-03 01:49:55 +03:00
.uploaders-table th,
.paths-table th {
2022-05-26 11:17:55 +03:00
text-align: left;
font-weight: unset;
color: #5c5c5c;
2022-05-26 16:28:30 +03:00
white-space: nowrap;
}
2022-06-03 01:49:55 +03:00
.uploaders-table td,
.paths-table td {
2022-05-26 16:28:30 +03:00
white-space: nowrap;
2022-05-26 11:17:55 +03:00
}
2022-06-03 01:49:55 +03:00
.uploaders-table .cell-status {
width: 80px;
2022-05-26 16:28:30 +03:00
padding-left: 0.6em;
2022-05-26 11:17:55 +03:00
}
2022-06-03 01:49:55 +03:00
.paths-table .cell-actions {
width: 75px;
2022-06-03 01:49:55 +03:00
display: flex;
2022-05-26 16:28:30 +03:00
padding-left: 0.6em;
2022-05-26 14:52:54 +03:00
}
2022-06-03 01:49:55 +03:00
.paths-table .cell-mtime {
width: 120px;
padding-left: 0.6em;
}
.paths-table .cell-size {
text-align: right;
width: 70px;
2022-05-26 16:28:30 +03:00
padding-left: 0.6em;
2022-05-26 11:17:55 +03:00
}
.path svg {
height: 16px;
2022-05-26 11:17:55 +03:00
fill: rgba(3,47,98,0.5);
padding-right: 0.5em;
2022-06-19 17:04:59 +03:00
vertical-align: text-top;
2022-05-26 11:17:55 +03:00
}
.path {
list-style: none;
}
.path a {
color: #0366d6;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
display: block;
text-decoration: none;
2022-06-19 17:04:59 +03:00
max-width: calc(100vw - 375px);
min-width: 200px;
2022-05-26 11:17:55 +03:00
}
.path a:hover {
text-decoration: underline;
}
2022-05-28 13:58:43 +03:00
.action-btn {
padding-right: 0.3em;
2022-05-28 13:58:43 +03:00
}
2022-06-03 01:49:55 +03:00
.uploaders-table {
2022-05-26 11:17:55 +03:00
padding: 0.5em 0;
}
.uploader {
2022-05-26 14:52:54 +03:00
padding-right: 1em;
}
2022-06-09 17:16:43 +03:00
2022-06-20 10:11:39 +03:00
@media (min-width: 768px) {
.path a {
min-width: 400px;
}
}
2022-06-09 17:16:43 +03:00
/* dark theme */
@media (prefers-color-scheme: dark) {
body {
background-color: #000;
}
html,
.breadcrumb>b,
.searchbar #search {
color: #fff;
}
.uploaders-table th,
.paths-table th {
color: #ddd;
}
svg,
.path svg,
.breadcrumb svg {
2022-06-19 17:04:59 +03:00
fill: #fff;
2022-06-09 17:16:43 +03:00
}
.searchbar {
background-color: #111;
border-color: #fff6;
}
.searchbar svg {
fill: #fff6;
}
.path a {
color: #3191ff;
}
}