mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Add light badges from #35408
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
// Light badges
|
||||||
|
@each $color, $value in $theme-colors {
|
||||||
|
$badge-light-bg: shift-color($value, -80%);
|
||||||
|
.badge-light-#{$color} {
|
||||||
|
background-color: $badge-light-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Light buttons
|
||||||
@each $color, $value in $theme-colors {
|
@each $color, $value in $theme-colors {
|
||||||
$btn-light-bg: shift-color($value, -80%);
|
$btn-light-bg: shift-color($value, -80%);
|
||||||
$btn-light-border: shift-color($value, -80%);
|
$btn-light-border: shift-color($value, -80%);
|
||||||
|
|||||||
@@ -7,6 +7,24 @@ group: extend
|
|||||||
|
|
||||||
## Components
|
## Components
|
||||||
|
|
||||||
|
### Light badges
|
||||||
|
|
||||||
|
{{< example >}}
|
||||||
|
{{< badge.inline >}}
|
||||||
|
{{- range (index $.Site.Data "theme-colors") }}
|
||||||
|
<span class="badge badge-light-{{ .name }} text-dark">{{ .name | title }}</span>{{- end -}}
|
||||||
|
{{< /badge.inline >}}
|
||||||
|
{{< /example >}}
|
||||||
|
|
||||||
|
```scss
|
||||||
|
@each $color, $value in $theme-colors {
|
||||||
|
$badge-light-bg: shift-color($value, -80%);
|
||||||
|
.badge-light-#{$color} {
|
||||||
|
background-color: $badge-light-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Light buttons
|
### Light buttons
|
||||||
|
|
||||||
{{< example >}}
|
{{< example >}}
|
||||||
|
|||||||
Reference in New Issue
Block a user