Summary Files Commits Branches @commit @diff @stats
path: root / src / progress.less
diff options
context:
space:
mode:
Commit599834af2f655717374d398f87d5b5e05279aa03 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-02-21 19:15:05 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-02-21 19:15:05 +0800
Filesb8a7e456f705962786bfcf0ab34d686c08377b6a /src/progress.less
Spectre-Dark-Gruvbox-599834af2f655717374d398f87d5b5e05279aa03.tar
Spectre-Dark-Gruvbox-599834af2f655717374d398f87d5b5e05279aa03.tar.gz
Spectre-Dark-Gruvbox-599834af2f655717374d398f87d5b5e05279aa03.zip
Parentd121966a525a72aa564d81a8da19b3c4fd154bfb (diff)
ADD: Progress element experimental support
1 files changed, 30 insertions, 0 deletions
-rw-r--r--src/progress.less30
diff --git a/src/progress.less b/src/progress.less
new file mode 100644
index 0000000..c42f8b1
--- /dev/null
+++ b/src/progress.less
@@ -0,0 +1,30 @@
+// Progress
+// Credit: https://css-tricks.com/html5-progress-element/
+.progress {
+ appearance: none;
+ border: 0;
+ color: @core-color;
+ height: .6rem;
+ width: 100%;
+
+ &::-webkit-progress-bar {
+ background: @core-border-color;
+ border-radius: @border-radius;
+ }
+
+ &::-webkit-progress-value {
+ background: @core-color;
+ border-radius: @border-radius;
+ }
+
+ &::-moz-progress-bar {
+ background: @core-color;
+ border-radius: @border-radius;
+ }
+
+ &.progress-lg {
+ &::after {
+ content: attr(value) '%';
+ }
+ }
+}