mirror of
https://github.com/tabler/tabler.git
synced 2026-08-12 14:22:21 +04:00
tags docs
This commit is contained in:
@@ -26,14 +26,14 @@
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.close {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-size: 1.3rem;
|
||||
padding-left: .5rem;
|
||||
line-height: inherit;
|
||||
margin-left: .25rem;
|
||||
}
|
||||
//.close {
|
||||
// cursor: pointer;
|
||||
// float: right;
|
||||
// font-size: 1.3rem;
|
||||
// padding-left: .5rem;
|
||||
// line-height: inherit;
|
||||
// margin-left: .25rem;
|
||||
//}
|
||||
|
||||
@at-root a#{&} {
|
||||
&:hover {
|
||||
|
||||
@@ -1,12 +1,97 @@
|
||||
.tag {
|
||||
display: inline-block;
|
||||
font-size: px2rem(12px);
|
||||
color: $text-muted-dark;
|
||||
background-color: rgba($text-muted-dark, .1);
|
||||
background-color: $gray-200;
|
||||
border-radius: 3px;
|
||||
padding: 2px 5px;
|
||||
margin-right: 2px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
padding: 0 .5rem;
|
||||
line-height: 2em;
|
||||
display: inline-flex;
|
||||
cursor: default;
|
||||
}
|
||||
font-weight: 400;
|
||||
user-select: none;
|
||||
|
||||
@at-root a#{&} {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: .3s color, .3s background;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba($text-muted-dark, .20);
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tag-addon {
|
||||
display: inline-block;
|
||||
padding: 0 .5rem;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
background: rgba(#000, .06);
|
||||
margin: 0 -.5rem 0 .5rem;
|
||||
text-align: center;
|
||||
min-width: 1.5rem;
|
||||
|
||||
&:last-child {
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
}
|
||||
|
||||
i {
|
||||
vertical-align: middle;
|
||||
margin: 0 -.25rem;
|
||||
}
|
||||
|
||||
@at-root a#{&} {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: .3s color, .3s background;
|
||||
|
||||
&:hover {
|
||||
background: rgba(#000, .16);
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tag-avatar {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
border-radius: 3px 0 0 3px;
|
||||
margin: 0 .5rem 0 -.5rem;
|
||||
}
|
||||
|
||||
@each $vendor, $color in $colors {
|
||||
.tag-#{$vendor} {
|
||||
background-color: $color;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
@each $vendor, $color in $theme-colors {
|
||||
.tag-#{$vendor} {
|
||||
background-color: $color;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.tag-rounded {
|
||||
border-radius: 50px;
|
||||
|
||||
.tag-avatar {
|
||||
border-radius: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
.tags {
|
||||
margin-bottom: -.5rem;
|
||||
font-size: 0;
|
||||
|
||||
>.tag {
|
||||
margin-bottom: .5rem;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-right: .5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user