Summary Files Commits Branches @commit @diff @stats
path: root / src / bars.less
diff options
context:
space:
mode:
Commit22eef433e38cc22dec48f5f648e424084ef15a31 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-02-28 19:55:38 +0800
Committer
 GitHub <noreply@github.com>
2017-02-28 19:55:38 +0800
Filescf1eda24ca83c2120cd9597b3dffa620e6324caa /src/bars.less
Spectre-Dark-Gruvbox-22eef433e38cc22dec48f5f648e424084ef15a31.tar
Spectre-Dark-Gruvbox-22eef433e38cc22dec48f5f648e424084ef15a31.tar.gz
Spectre-Dark-Gruvbox-22eef433e38cc22dec48f5f648e424084ef15a31.zip
Parentcae547e62d611b68b7054d0e20d0abd6974fafb4 (diff)
Parent437bf2aaf7e405cb9af2db32bb0f5067d2a8efbf (diff)
Merge pull request #147 from picturepan2/feature/bars v0.2.3
Feature/bars
1 files changed, 37 insertions, 0 deletions
-rw-r--r--src/bars.less37
diff --git a/src/bars.less b/src/bars.less
new file mode 100644
index 0000000..d410fdb
--- /dev/null
+++ b/src/bars.less
@@ -0,0 +1,37 @@
+// Bars
+.bar {
+ background: @core-border-color;
+ border-radius: @border-radius;
+ display: flex;
+ flex-wrap: nowrap;
+ height: 1.6rem;
+ width: 100%;
+
+ &.bar-sm {
+ height: .4rem;
+ }
+
+ // TODO: attr() support
+ .bar-item {
+ background: @core-color;
+ color: @core-light-color;
+ display: block;
+ font-size: 1.2rem;
+ flex-shrink: 0;
+ line-height: 1;
+ height: 100%;
+ padding: .2rem 0;
+ text-align: center;
+ width: 0;
+
+ &:first-of-type {
+ border-bottom-left-radius: @border-radius;
+ border-top-left-radius: @border-radius;
+ }
+ &:last-of-type {
+ border-bottom-right-radius: @border-radius;
+ border-top-right-radius: @border-radius;
+ flex-shrink: 1;
+ }
+ }
+}