about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/polls.scss
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-04-28 10:16:55 +0200
committerThibaut Girka <thib@sitedethib.com>2020-05-03 21:44:43 +0200
commit9e5a2168782f24464353e24e497c1f174d9dc1d9 (patch)
tree3f6b1fc550c30a769efb66d49cbb677f270e521b /app/javascript/flavours/glitch/styles/polls.scss
parent4a5f93c25f747e22fa97a17fb56e216c73ee60fa (diff)
[Glitch] Fix end-user-facing uses of inline CSS
Port 0e362b7678e75cb71ce207fd45dd4dc0d955fdca to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/styles/polls.scss')
-rw-r--r--app/javascript/flavours/glitch/styles/polls.scss30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/styles/polls.scss b/app/javascript/flavours/glitch/styles/polls.scss
index 44338338f..5fc41ed9e 100644
--- a/app/javascript/flavours/glitch/styles/polls.scss
+++ b/app/javascript/flavours/glitch/styles/polls.scss
@@ -25,6 +25,36 @@
     }
   }
 
+  progress {
+    border: 0;
+    display: block;
+    width: 100%;
+    height: 5px;
+    appearance: none;
+    background: transparent;
+
+    &::-webkit-progress-bar {
+      background: transparent;
+    }
+
+    // Those rules need to be entirely separate or they won't work, hence the
+    // duplication
+    &::-moz-progress-bar {
+      border-radius: 4px;
+      background: darken($ui-primary-color, 5%);
+    }
+
+    &::-ms-fill {
+      border-radius: 4px;
+      background: darken($ui-primary-color, 5%);
+    }
+
+    &::-webkit-progress-value {
+      border-radius: 4px;
+      background: darken($ui-primary-color, 5%);
+    }
+  }
+
   &__option {
     position: relative;
     display: flex;