Skip to content

Commit

Permalink
refactor: minor ui adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
vcheckzen committed Nov 2, 2024
1 parent d5aaf30 commit ebeb339
Showing 1 changed file with 57 additions and 26 deletions.
83 changes: 57 additions & 26 deletions front-end/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@
font-weight: bold;
column-gap: 0.3em;
user-select: none;
-webkit-tap-highlight-color: transparent; /* Removes touch background */
-webkit-touch-callout: none; /* Removes the callout on touch */
}

.list-header .file > div:active {
color: rgb(90, 101, 133);
}

.list-header i {
Expand Down Expand Up @@ -206,10 +208,10 @@
border: solid rgb(218, 215, 215) 1px;
}

.password button:hover,
.upload-entry-btn:hover,
.file-upload-chooser button:hover,
.file-upload-label:hover {
.password button:active,
.upload-entry-btn:active,
.file-upload-chooser button:active,
.file-upload-label:active {
color: white;
background: rgb(218, 215, 215);
}
Expand Down Expand Up @@ -312,7 +314,7 @@
-ms-user-select: none;
}

.btn:hover {
.btn:active {
color: white;
background: rgb(218, 215, 215);
}
Expand All @@ -321,18 +323,6 @@
margin-right: 1em;
}

#arrow-back,
#arrow-forward {
color: black;
cursor: pointer;
}

#arrow-back[disabled],
#arrow-forward[disabled] {
color: rgb(218, 215, 215);
cursor: initial;
}

.loading-wrapper {
position: fixed;
height: 2em;
Expand Down Expand Up @@ -365,6 +355,9 @@
* {
box-sizing: border-box;
font-family: serif;
outline: none;
-webkit-tap-highlight-color: transparent; /* Removes touch background */
-webkit-touch-callout: none; /* Removes the callout on touch */
}

.markdown-body {
Expand Down Expand Up @@ -446,10 +439,24 @@
cursor: default;
}

#main-page:hover,
.nav-path:hover,
.tree-node:hover,
.row.file-wrapper:hover {
#arrow-back,
#arrow-forward {
color: black;
cursor: pointer;
}

#arrow-back[disabled],
#arrow-forward[disabled] {
color: rgb(218, 215, 215);
cursor: initial;
}

#arrow-back:not([disabled]):active,
#arrow-forward:not([disabled]):active,
#main-page:active,
.nav-path:active,
.tree-node:active,
.row.file-wrapper:active {
color: rgb(90, 101, 133);
cursor: pointer;
}
Expand Down Expand Up @@ -570,14 +577,38 @@
font-size: 2em;
color: rgb(90 90 90 / 30%);
cursor: pointer;
-webkit-tap-highlight-color: transparent; /* Removes touch background */
-webkit-touch-callout: none; /* Removes the callout on touch */
}

#back-to-top:hover {
#back-to-top:active {
color: rgb(0 0 0);
}

@media (hover: hover) and (pointer: fine) {
.password button:hover,
.upload-entry-btn:hover,
.file-upload-chooser button:hover,
.file-upload-label:hover,
.btn:hover {
color: white;
background: rgb(218, 215, 215);
}

#arrow-back:not([disabled]):hover,
#arrow-forward:not([disabled]):hover,
#main-page:hover,
.nav-path:hover,
.tree-node:hover,
.list-header .file > div:hover,
.row.file-wrapper:hover {
color: rgb(90, 101, 133);
cursor: pointer;
}

#back-to-top:hover {
color: rgb(0 0 0);
}
}

@media screen and (max-width: 1000px) {
.left {
display: none;
Expand Down

0 comments on commit ebeb339

Please sign in to comment.