95 lines
1.9 KiB
SCSS
95 lines
1.9 KiB
SCSS
@use "../abstracts/variables" as *;
|
|
@use "../abstracts/mixins" as *;
|
|
|
|
.comments-main-wrapper{
|
|
position: relative;
|
|
}
|
|
.comments-threads-wrapper {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
padding: 4px;
|
|
background: var(--background-color);
|
|
border-radius: #{$border-radius-large} #{$border-radius-large} #{$border-radius-large} 0;
|
|
backdrop-filter: blur(12px);
|
|
z-index: 1000;
|
|
transform: translateY(-100%);
|
|
outline: 1px solid var(--border-color);
|
|
transition: all 0.2s ease-out;
|
|
|
|
.comments-threads-container {
|
|
display: flex;
|
|
align-items: start;
|
|
flex-direction: column;
|
|
|
|
.users-commented {
|
|
@include flex-center;
|
|
|
|
.users {
|
|
height: 24px;
|
|
line-height: 24px;
|
|
width: 24px;
|
|
text-transform: uppercase;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
|
|
.last-comment-details {
|
|
display: flex;
|
|
align-items: start;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
transition: all 0.2s;
|
|
|
|
.header {
|
|
@include flex-center;
|
|
gap: 10px;
|
|
|
|
.user-name {
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.time {
|
|
font-size: var(--font-size-small);
|
|
color: var(--input-text-color);
|
|
}
|
|
}
|
|
|
|
.message {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.replies {
|
|
margin-top: 4px;
|
|
font-size: var(--font-size-small);
|
|
color: var(--input-text-color);
|
|
}
|
|
.header,
|
|
.message,
|
|
.replies {
|
|
display: none;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.expand {
|
|
min-width: 200px;
|
|
max-width: 260px;
|
|
padding: 12px;
|
|
padding-top: 0;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.open {
|
|
.users-commented {
|
|
padding: 12px;
|
|
}
|
|
.header,
|
|
.message,
|
|
.replies {
|
|
display: flex !important;
|
|
opacity: 1 !important;
|
|
}
|
|
}
|
|
} |