1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-12 14:22:21 +04:00

tags docs

This commit is contained in:
codecalm
2018-02-22 01:13:37 +01:00
parent 4798176d1c
commit 166ed95ec2
3 changed files with 232 additions and 15 deletions
+8 -8
View File
@@ -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 {
+92 -7
View File
@@ -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;
}
}
}