summaryrefslogtreecommitdiff
path: root/bootstrap/fonts/less/badges.less
diff options
context:
space:
mode:
authorPrashant S2019-07-26 11:21:31 +0530
committerGitHub2019-07-26 11:21:31 +0530
commitbfb41f58674f7c24bd41e6e6891f0773c3706ddc (patch)
treea407e9cac3242db67394711596835982160b0eaa /bootstrap/fonts/less/badges.less
parente5a79b1f0f70eb0bc413c5b85139617dbe84b07d (diff)
parent17bc989bd924aa4682807cf7920abb8558da0006 (diff)
downloadfossee_istos-master.tar.gz
fossee_istos-master.tar.bz2
fossee_istos-master.zip
Merge pull request #1 from sanjeevi01/masterHEADmaster
internship work for new theme for drupal-8.x
Diffstat (limited to 'bootstrap/fonts/less/badges.less')
-rwxr-xr-xbootstrap/fonts/less/badges.less66
1 files changed, 66 insertions, 0 deletions
diff --git a/bootstrap/fonts/less/badges.less b/bootstrap/fonts/less/badges.less
new file mode 100755
index 0000000..be7f8d0
--- /dev/null
+++ b/bootstrap/fonts/less/badges.less
@@ -0,0 +1,66 @@
+//
+// Badges
+// --------------------------------------------------
+
+
+// Base class
+.badge {
+ display: inline-block;
+ min-width: 10px;
+ padding: 3px 7px;
+ font-size: @font-size-small;
+ font-weight: @badge-font-weight;
+ line-height: @badge-line-height;
+ color: @badge-color;
+ text-align: center;
+ white-space: nowrap;
+ vertical-align: middle;
+ background-color: @badge-bg;
+ border-radius: @badge-border-radius;
+
+ // Empty badges collapse automatically (not available in IE8)
+ &:empty {
+ display: none;
+ }
+
+ // Quick fix for badges in buttons
+ .btn & {
+ position: relative;
+ top: -1px;
+ }
+
+ .btn-xs &,
+ .btn-group-xs > .btn & {
+ top: 0;
+ padding: 1px 5px;
+ }
+
+ // Hover state, but only for links
+ a& {
+ &:hover,
+ &:focus {
+ color: @badge-link-hover-color;
+ text-decoration: none;
+ cursor: pointer;
+ }
+ }
+
+ // Account for badges in navs
+ .list-group-item.active > &,
+ .nav-pills > .active > a > & {
+ color: @badge-active-color;
+ background-color: @badge-active-bg;
+ }
+
+ .list-group-item > & {
+ float: right;
+ }
+
+ .list-group-item > & + & {
+ margin-right: 5px;
+ }
+
+ .nav-pills > li > a > & {
+ margin-left: 3px;
+ }
+}