Files
Trilium/apps/client/src/widgets/react/Badge.css

87 lines
1.7 KiB
CSS
Raw Normal View History

.ext-badge {
display: flex;
2025-12-20 23:12:39 +02:00
height: 1.9em;
align-items: center;
2025-12-20 23:12:39 +02:00
justify-content: center;
border-radius: var(--badge-radius);
2025-12-20 23:12:39 +02:00
padding-inline: 8px;
font-size: 0.75em;
2025-12-20 23:12:39 +02:00
letter-spacing: .2pt;
background-color: var(--color, transparent);
color: white;
min-width: 0;
flex-shrink: 1;
2025-12-20 23:12:39 +02:00
white-space: collapse;
2025-12-20 23:12:39 +02:00
&.clickable,
.dropdown-badge & {
cursor: pointer;
&:hover {
background-color: color-mix(in srgb, var(--color, --badge-background-color) 80%, black);
}
}
.tn-icon {
2025-12-20 23:12:39 +02:00
font-size: 1.2em;
margin-inline-end: 4px;
opacity: .6;
}
a {
color: inherit !important;
text-decoration: none;
}
> * {
2025-12-20 23:12:39 +02:00
display: flex;
align-items: center;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.dropdown-badge {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
border-radius: var(--badge-radius);
button,
.btn {
min-width: 0;
overflow: hidden;
}
.ext-badge {
border-radius: 0;
2025-12-15 17:17:01 +02:00
.text {
display: inline-flex;
align-items: center;
min-width: 0;
.text-inner {
min-width: 0;
text-overflow: ellipsis;
overflow: hidden;
}
2025-12-15 17:17:01 +02:00
.arrow {
font-size: 1.3em;
margin-inline-start: 0.25em;
margin-inline-end: 0;
2025-12-15 17:17:01 +02:00
}
}
}
.btn {
border: 0;
margin: 0;
padding: 0;
}
}