mirror of
https://github.com/discourse/discourse.git
synced 2024-12-23 11:33:44 +08:00
0ce0bcd8ff
* add border-radius-large variable * UX: replace chat border-radius with variable
216 lines
3.5 KiB
SCSS
216 lines
3.5 KiB
SCSS
.chat-emoji-picker {
|
|
border-top: 1px solid var(--primary-low);
|
|
transition: height 125ms ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 300px;
|
|
overflow: hidden;
|
|
background: var(--secondary);
|
|
|
|
.emoji {
|
|
padding: 6px;
|
|
width: 32px;
|
|
height: 32px;
|
|
image-rendering: -webkit-optimize-contrast;
|
|
cursor: pointer;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background: var(--primary-very-low);
|
|
border-radius: var(--d-border-radius);
|
|
transform: scale(1.25);
|
|
}
|
|
}
|
|
|
|
&__filter-container {
|
|
top: 0;
|
|
position: sticky;
|
|
background: var(--secondary);
|
|
display: flex;
|
|
height: 50px;
|
|
}
|
|
|
|
&__filter {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
margin: 0.25rem;
|
|
|
|
input {
|
|
background: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
&.dc-filter-input-container {
|
|
border-color: transparent;
|
|
background: var(--primary-very-low);
|
|
}
|
|
}
|
|
|
|
&__scrollable-content {
|
|
height: 100%;
|
|
overflow-y: scroll;
|
|
text-transform: capitalize;
|
|
@include chat-scrollbar();
|
|
margin: 1px;
|
|
}
|
|
|
|
&__no-results {
|
|
padding: 1em;
|
|
}
|
|
|
|
&__sections-nav {
|
|
top: 0;
|
|
position: sticky;
|
|
background: var(--secondary);
|
|
border-bottom: 1px solid var(--primary-low);
|
|
height: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&__indicator {
|
|
background: var(--tertiary);
|
|
height: 4px;
|
|
transition: transform 0.3s cubic-bezier(0.1, 0.82, 0.25, 1);
|
|
position: absolute;
|
|
bottom: 0;
|
|
}
|
|
}
|
|
|
|
&__section-btn {
|
|
padding: 0.25rem;
|
|
|
|
&:hover {
|
|
.emoji {
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
&:focus,
|
|
&.active {
|
|
background: none;
|
|
}
|
|
|
|
.emoji {
|
|
width: 21px;
|
|
height: 21px;
|
|
}
|
|
}
|
|
|
|
&__section-emojis,
|
|
&__section.filtered {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
&__backdrop {
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.75);
|
|
bottom: 0;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
&__section-title {
|
|
margin: 0;
|
|
padding: 0.5rem;
|
|
color: var(--primary-very-high);
|
|
font-size: var(--font-up-0);
|
|
font-weight: 700;
|
|
background: rgba(var(--secondary-rgb), 0.95);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
&__fitzpatrick-modifier-btn {
|
|
min-width: 21px;
|
|
width: 21px;
|
|
height: 21px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
background: none;
|
|
margin-right: 0.5rem;
|
|
border: 0;
|
|
border-radius: var(--d-border-radius);
|
|
|
|
.d-icon {
|
|
visibility: hidden;
|
|
}
|
|
|
|
&.current {
|
|
min-width: 25px;
|
|
width: 25px;
|
|
height: 25px;
|
|
}
|
|
|
|
&:not(.current):hover,
|
|
&:not(.current):focus {
|
|
.d-icon {
|
|
visibility: visible;
|
|
color: white;
|
|
filter: drop-shadow(0.5px 1.5px 0 rgba(0, 0, 0, 0.3));
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
&.t1 {
|
|
background: #ffcc4d;
|
|
}
|
|
|
|
&.t2 {
|
|
background: #f7dece;
|
|
}
|
|
|
|
&.t3 {
|
|
background: #f3d2a2;
|
|
}
|
|
|
|
&.t4 {
|
|
background: #d5ab88;
|
|
}
|
|
|
|
&.t5 {
|
|
background: #af7e57;
|
|
}
|
|
|
|
&.t6 {
|
|
background: #7c533e;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
forced-color-adjust: none;
|
|
}
|
|
}
|
|
|
|
&__fitzpatrick-scale {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
.chat-channel-message-emoji-picker-connector {
|
|
position: relative;
|
|
|
|
.chat-emoji-picker {
|
|
border: 1px solid var(--primary-low);
|
|
width: 320px;
|
|
z-index: z("header") + 1;
|
|
|
|
.emoji {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
}
|
|
}
|