mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 08:19:37 -05:00
cccd0f06d7
[web] Create Bootstrap 5 badges GitOrigin-RevId: 72355c7cf7dca2a5d16bc890d7cfa4a432dd15ba
49 lines
843 B
Text
49 lines
843 B
Text
.badge-bs3 {
|
|
@size: 24px;
|
|
@padding: 4px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
height: @size;
|
|
min-height: @size;
|
|
padding: 0 @padding;
|
|
white-space: nowrap;
|
|
color: @ol-blue-gray-6;
|
|
background-color: @neutral-20;
|
|
border-radius: 4px;
|
|
|
|
&:hover {
|
|
background-color: @neutral-30;
|
|
}
|
|
|
|
&-prepend {
|
|
margin-right: 2px;
|
|
}
|
|
|
|
&-close {
|
|
.reset-button;
|
|
width: @size;
|
|
margin-left: 4px;
|
|
font-size: 20px;
|
|
height: @size;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: -@padding;
|
|
color: inherit;
|
|
|
|
&:hover {
|
|
background-color: @neutral-40;
|
|
}
|
|
}
|
|
|
|
&-sm {
|
|
@size-sm: 20px;
|
|
height: @size-sm;
|
|
font-size: @font-size-extra-small;
|
|
.badge-bs3-close {
|
|
width: @size-sm;
|
|
font-size: @size-sm;
|
|
}
|
|
}
|
|
}
|