aboutsummaryrefslogtreecommitdiffstats
path: root/data/style.scss
diff options
context:
space:
mode:
authorDean Li <deantvv@gmail.com>2021-06-03 13:26:27 +0000
committerDean Li <deantvv@gmail.com>2021-08-30 11:55:58 +0000
commit7944db336ca3ef0338369091af60aa2b15789952 (patch)
tree98d5c2a9e9a007a569710d60328e32713d832b60 /data/style.scss
parentAdd CHANGELOG entry for binding behavior revamp (diff)
downloadminiserve-7944db336ca3ef0338369091af60aa2b15789952.tar.gz
miniserve-7944db336ca3ef0338369091af60aa2b15789952.zip
Implement show symlink destination
Add option `show_symlink_info` to represent show symlink info or not. (Default to no) Show symlink destination after symlink symbol in directory listing Resemble `ls -l` and also the short argument select for this feature is also `-l`. Basic testing is included. Related to #499
Diffstat (limited to '')
-rw-r--r--data/style.scss16
1 files changed, 11 insertions, 5 deletions
diff --git a/data/style.scss b/data/style.scss
index 0a69222..7e63751 100644
--- a/data/style.scss
+++ b/data/style.scss
@@ -95,11 +95,18 @@ a.file:hover {
color: var(--file_link_color);
}
+a.symlink,
+a.symlink:visited {
+ font-weight: bold;
+ color: var(--symlink_color);
+}
+
.symlink-symbol::after {
content: "⇢";
display: inline-block;
border: 1px solid;
margin-left: 0.5rem;
+ margin-right: 0.5rem;
border-radius: 0.2rem;
padding: 0 0.1rem;
}
@@ -276,11 +283,6 @@ td.date-cell {
color: var(--date_text_color);
}
-.file-entry {
- display: flex;
- justify-content: space-between;
-}
-
span.size {
border-radius: 1rem;
background: var(--size_background_color);
@@ -532,6 +534,7 @@ th span.active span {
--directory_link_color_visited: #9b1985;
--file_link_color: #0086b3;
--file_link_color_visited: #974ec2;
+ --symlink_color: #ADD8E6;
--table_background: #ffffff;
--table_text_color: #323232;
--table_header_background: #323232;
@@ -578,6 +581,7 @@ th span.active span {
--directory_link_color_visited: #0388f4;
--file_link_color: #ea95ff;
--file_link_color_visited: #a595ff;
+ --symlink_color: #66d9ef;
--table_background: #353946;
--table_text_color: #eeeeee;
--table_header_background: #5294e2;
@@ -624,6 +628,7 @@ th span.active span {
--directory_link_color_visited: #ebc390;
--file_link_color: #87d6d5;
--file_link_color_visited: #a7b9ec;
+ --symlink_color: #11a8cd;
--table_background: #4a4949;
--table_text_color: #efefef;
--table_header_background: #7f9f7f;
@@ -670,6 +675,7 @@ th span.active span {
--directory_link_color_visited: #bc39a7;
--file_link_color: #a6e22e;
--file_link_color_visited: #4cb936;
+ --symlink_color: #29b8db;
--table_background: #3b3a32;
--table_text_color: #f8f8f0;
--table_header_background: #75715e;