Forráskód Böngészése

make scroll-bars dark and reduce tags/units selection width

Daniel Sheffield 1 éve
szülő
commit
d30abb0d68

+ 1 - 1
app/rest/templates/include-exclude.tpl

@@ -1,4 +1,4 @@
-<div class="pure-u-1-3 pure-u-lg-1-5">
+<div class="pure-u-1-3 pure-u-lg-{{"1-4" if name != "tag" else "1-8"}}">
 <div class="pure-g">
   <div class="pure-u-1">
     <div class="l-box">

+ 1 - 1
app/rest/templates/select-one.tpl

@@ -1,4 +1,4 @@
-<div class="pure-u-1-3 pure-u-lg-1-5">
+<div class="pure-u-1-3 pure-u-lg-1-8">
 <div class="pure-g">
   <div class="pure-u-1">
     <div class="l-box">

+ 26 - 2
app/rest/templates/trend.tpl

@@ -2,8 +2,32 @@
 <html>
     <head>
         <style>
-body {background-color: #080808; color: #cccccc; }
-select {color: #cccccc; background-color: #080808; }
+html {
+  --scrollbarBG: #333333;
+  --thumbBG: #080808;
+}
+body {
+  background-color: #080808;
+  color: #cccccc;
+}
+select::-webkit-scrollbar {
+  width: 11px;
+}
+select {
+  color: #cccccc;
+  background-color: #080808;
+  scrollbar-width: thin;
+  scrollbar-color: var(--thumbBG) var(--scrollbarBG);
+}
+select::-webkit-scrollbar-track {
+  background: var(--scrollbarBG);
+}
+select::-webkit-scrollbar-thumb {
+  background-color: var(--thumbBG) ;
+  border-radius: 6px;
+  border: 3px solid var(--scrollbarBG);
+}
+
 svg {width: 100vw}
         </style>
         <title>Trend</title>