Summary Files Commits Branches @commit @diff @stats
path: root / src / badges.less
diff options
context:
space:
mode:
Commit5f0809b54067d533304ac2db9ef8b61b299b8930 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-05 15:35:12 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-05 15:35:12 +0800
Files67d839979bfa5202f13d47e327cd058765042e78 /src/badges.less
Spectre-Dark-Gruvbox-5f0809b54067d533304ac2db9ef8b61b299b8930.tar
Spectre-Dark-Gruvbox-5f0809b54067d533304ac2db9ef8b61b299b8930.tar.gz
Spectre-Dark-Gruvbox-5f0809b54067d533304ac2db9ef8b61b299b8930.zip
Parent3c10fb6428aa6e9cde24e78fdab322077929cd18 (diff)
Parent781ed13b83edc7af208b75815cfffb657a766cc5 (diff)
Merge branch 'master' into gh-pages
1 files changed, 25 insertions, 0 deletions
-rw-r--r--src/badges.less25
diff --git a/src/badges.less b/src/badges.less
new file mode 100644
index 0000000..e0f1d46
--- /dev/null
+++ b/src/badges.less
@@ -0,0 +1,25 @@
+// Badges
+.badge {
+ position: relative;
+ margin-right: 2.4rem;
+
+ &::after {
+ content: attr(data-badge);
+ color: #fff;
+ font-size: 1.2rem;
+ text-align: center;
+ line-height: 1.4rem;
+ background-color: @core-color;
+ display: block;
+ width: 2rem;
+ height: 2rem;
+ padding: .3rem .1rem;
+ border-radius: 50%;
+ position: absolute;
+ top: -1rem;
+ right: -2.4rem;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+} \ No newline at end of file