tweb-i2p/src/scss/partials/_badge.scss
Eduard Kuzmenko 9458e82a96 Fix scrolling to last bubble in outer chats
Avoid opening the same profile
Show write menu on touch devices
2021-04-16 17:30:42 +04:00

56 lines
921 B
SCSS

/*
* https://github.com/morethanwords/tweb
* Copyright (C) 2019-2021 Eduard Kuzmenko
* https://github.com/morethanwords/tweb/blob/master/LICENSE
*/
.badge {
border-radius: .75rem;
font-weight: 500;
color: var(--badge-text-color);
font-size: .875rem;
text-align: center;
@include animation-level(2) {
transition: background-color .2s ease-in-out;
}
&:not(.tgico):empty {
display: none;
}
&-20 {
height: 1.25rem;
min-width: 1.25rem;
line-height: 1.25rem !important;
padding: 0 .375rem;
}
&-24 {
height: 1.5rem;
min-width: 1.5rem;
line-height: 1.5rem !important;
padding: 0 .5rem;
&.tgico {
// width: 1.5rem;
&:before {
font-size: 1.5rem;
}
}
}
/* &.tgico {
padding: 0;
} */
&-primary {
background-color: var(--primary-color);
}
&-gray {
background-color: var(--secondary-color);
}
}