dufs/assets/index.css

268 lines
3.6 KiB
CSS
Raw Normal View History

2022-05-26 11:17:55 +03:00
html {
2023-02-21 03:13:29 +03:00
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;
2023-02-20 12:23:31 +03:00
margin: 0;
}
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;
2023-02-20 12:23:31 +03:00
padding: 0.6em 1em;
position: fixed;
width: 100%;
background-color: white;
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
}
2023-02-21 03:13:29 +03:00
.breadcrumb>a {
2022-05-26 11:17:55 +03:00
color: #0366d6;
text-decoration: none;
}
2023-02-21 03:13:29 +03:00
.breadcrumb>a:hover {
2022-05-26 11:17:55 +03:00
text-decoration: underline;
}
/* final breadcrumb */
2023-02-21 03:13:29 +03:00
.breadcrumb>b {
2022-05-26 11:17:55 +03:00
color: #24292e;
}
2023-02-21 03:13:29 +03:00
.breadcrumb>.separator {
2022-05-26 11:17:55 +03:00
color: #586069;
padding: 0 0.25em;
}
.breadcrumb svg {
height: 100%;
2023-02-21 03:13:29 +03:00
fill: rgba(3, 47, 98, 0.5);
2022-05-26 11:17:55 +03:00
}
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
}
2023-02-21 03:13:29 +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;
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 {
padding: 3.3em 1em 0;
2022-05-26 11:17:55 +03:00
}
.empty-folder {
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
}
.paths-table thead a {
color: unset;
text-decoration: none;
}
2023-02-21 03:13:29 +03:00
.paths-table thead a>span {
padding-left: 2px;
}
.paths-table tbody tr:hover {
2022-07-30 03:04:31 +03:00
background-color: #fafafa;
}
2022-06-03 01:49:55 +03:00
.paths-table .cell-actions {
2023-02-21 03:13:29 +03:00
width: 90px;
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;
2023-02-21 03:13:29 +03:00
fill: rgba(3, 47, 98, 0.5);
2022-05-26 11:17:55 +03:00
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
.editor {
width: 100%;
height: calc(100vh - 5rem);
border: 1px solid #ced4da;
outline: none;
}
.save-btn {
margin-left: auto;
margin-right: 2em;
cursor: pointer;
user-select: none;
}
.not-editable {
font-style: italic;
}
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;
}
.paths-table tbody tr:hover {
background-color: #1a1a1a;
}
2023-02-21 03:13:29 +03:00
}