Summary Files Commits Branches @commit @diff @stats
path: root / src / badges.less
diff options
context:
space:
mode:
Commite78b3c34348f26d40a813612c5a3786f1c56607a (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-08-29 18:07:53 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-08-29 18:07:53 +0800
Filesf857491026c5f728fe95fe1564ec30c931a1b30a /src/badges.less
Spectre-Dark-Gruvbox-e78b3c34348f26d40a813612c5a3786f1c56607a.tar
Spectre-Dark-Gruvbox-e78b3c34348f26d40a813612c5a3786f1c56607a.tar.gz
Spectre-Dark-Gruvbox-e78b3c34348f26d40a813612c5a3786f1c56607a.zip
Parent66c492fd05c2d720c81e2be8d6845560b868e7ff (diff)
Initial SASS build
1 files changed, 0 insertions, 70 deletions
-rw-r--r--src/badges.less70
diff --git a/src/badges.less b/src/badges.less
deleted file mode 100644
index c62df9d..0000000
--- a/src/badges.less
+++ /dev/null
@@ -1,70 +0,0 @@
-// Badges
-.badge {
- position: relative;
- white-space: nowrap;
-
- &[data-badge],
- &:not([data-badge]) {
- &::after {
- background: @primary-color;
- background-clip: padding-box;
- border-radius: .5rem;
- box-shadow: 0 0 0 .1rem @bg-color-light;
- color: @light-color;
- content: attr(data-badge);
- display: inline-block;
- transform: translate(-.1rem, -.5rem);
- }
- }
- &[data-badge] {
- &::after {
- font-size: @font-size-sm;
- height: 18px;
- line-height: 1;
- min-width: 18px;
- padding: 3px 5px;
- text-align: center;
- white-space: nowrap;
- }
- }
- &:not([data-badge]),
- &[data-badge=''] {
- &::after {
- height: 6px;
- min-width: 6px;
- padding: 0;
- width: 6px;
- }
- }
-
- // Badges for Buttons
- &.btn {
- &::after {
- position: absolute;
- top: 0;
- right: 0;
- transform: translate(50%, -50%);
- }
- }
-
- // Badges for Avatars
- &.avatar {
- &::after {
- position: absolute;
- top: 14.64%;
- right: 14.64%;
- transform: translate(50%, -50%);
- z-index: @zindex-1;
- }
- }
-
- &.avatar-xs {
- &::after {
- content: "";
- height: @unit-2;
- min-width: @unit-2;
- padding: 0;
- width: @unit-2;
- }
- }
-}