Files
examjam-frontend/newspaper/assets/css/comments.css
2025-07-03 01:43:25 +06:00

670 lines
18 KiB
CSS

:root {
--scale: 1;
}
@media (min-width: 1920px) {
:root{
--scale: 0.8;
}
}
#comments-section {
min-width: calc(56vw + 84px) !important;
width: calc(56vw + 84px) !important;
padding-left: 42px !important;
padding-right: 42px !important;
margin-bottom: 57px !important;
margin-left: auto;
margin-right: auto;
padding-bottom: 0px !important;
}
#comments-section * {
font-family: var(--font1) !important;
}
#comments-section figure {
display: flex;
justify-content: center;
align-items: center;
min-width: 53px;
width: 53px;
height: 53px;
overflow: hidden;
}
#comments-section figure img {
filter: var(--image-filter);
transition: filter 0.5s ease;
}
#comments-section figure img:hover {
filter: unset;
}
#comments-section figure div, #comments-section figure img {
width: 100%;
height: 100%;
}
#comments-section figure img {
border: 1px solid var(--text-color);
border-radius: 100%;
}
#comments-section h1 {
font-family: var(--font2) !important;
font-weight: 400;
font-size: 48px;
color: var(--text-color);
line-height: 80%;
margin-bottom: 20px;
}
#comments-section h1 + p {
font-size: 18px;
}
#comments-section p {
font-family: var(--font1);
font-size: 16px;
line-height: 160%;
color: var(--text-color);
}
#comments-section h4,
#comments-section div[data-testid="main-form"] .absolute.left-0 div + div .w-full.text-base,
#comments-section .z-20.mb-7 *,
#comments-section [data-testid="member-name"] {
font-weight: 600;
color: var(--text-color);
font-size: 14px;
line-height: 150%;
margin-top: 4px;
letter-spacing: 0em;
}
#comments-section div[data-testid="comment-elements"] span:not(form span), #comments-section div[data-testid="comment-elements"] .group,
#comments-section div[data-testid="main-form"] .absolute.left-0 div + div button,
#comments-section div[data-testid="form-header"] button,
#comments-section [data-testid="comment-context-menu-inner"] button,
#comments-section [data-testid="comment-in-reply-to"] {
margin-top: calc(0.3vw * var(--scale));
line-height: 130%;
font-size: 13px;
}
#comments-section div[data-testid="comment-elements"] span:not(form span), #comments-section div[data-testid="comment-elements"] .group,
#comments-section div[data-testid="main-form"] .absolute.left-0 div + div button,
#comments-section div[data-testid="form-header"] button {
color: var(--text-color);
opacity: 0.7;
}
#comments-section .gh-comment-content {
margin-top: calc(0.3vw * var(--scale));
}
#comments-section [data-testid="like-button"] svg {
width: 14px;
height: 14px;
margin-right: 3px;
}
#comments-section .fill-\[rgba\(0\2c 0\2c 0\2c 0\.9\)\]{
stroke: var(--text-color);
fill: var(--text-color);
}
#comments-section [data-testid="comment-component"] > div {
margin-right: 19px !important;
}
#comments-section [data-testid="comment-component"] {
margin-top: 34px;
margin-bottom: 0;
}
#comments-section [data-test="comment-elements"] {
margin-top: 57px;
}
#comments-section section {
margin-bottom: 57px;
margin-top: 57px;
padding-top: 87px;
padding-bottom: 87px;
border-top: 1px solid var(--text-color);
border-bottom: 1px solid var(--text-color);
}
#comments-section section > button {
font-family: var(--font1) !important;
cursor: pointer;
border: none !important;
font-size: 16px;
letter-spacing: 0em;
color: var(--background-color) !important;
line-height: 160%;
font-weight: 400;
padding: 8px 32px;
background-color: var(--text-color) !important;
white-space: nowrap;
position: relative;
display: flex;
justify-content: center;
align-items: center;
margin-top: calc(2.8vw * var(--scale));
margin-bottom: 0;
transition: all .2s ease;
opacity: 1;
border-radius: 0px;
}
#comments-section section > button:hover {
opacity: 0.92;
}
#comments-section button:hover {
opacity: 0.92;
}
#comments-section [data-testid="submit-form-button"] {
background-color: var(--text-color) !important;
color: var(--background-color) !important;
font-weight: 400;
font-size: 14px;
padding: calc(0.8vw * var(--scale)) calc(2vw * var(--scale));
line-height: 100%;
margin-bottom: 0;
width: auto;
height: auto;
margin-right: calc(0.8vw * var(--scale));
font-family: var(--font1);
}
#comments-section section p {
margin-bottom: 0;
}
#comments-section section p .font-semibold {
color: var(--text-color) !important;
font-weight: bold !important;
}
#comments-section section p span:not(.font-semibold), #comments-section section p button{
margin-top: calc(0.833vw * var(--scale));
font-family: var(--font1) !important;
line-height: 150%;
color: var(--text-color);
font-size: 14px;
opacity: 0.7;
font-weight: 400;
}
#comments-section section p button {
color: var(--text-color) !important;
opacity: 1 !important;
}
#comments-section section p button:hover {
text-decoration: underline;
}
#comments-section div[data-testid="main-form"] {
margin-top: 57px;
margin-bottom: 0px;
}
#comments-section .pl-\[40px\] {
padding-left: 63px !important;
}
#comments-section form button {
font-size: 16px;
color: var(--text-color);
}
.mb-4 {
margin-bottom: 0px !important;
}
#comments-section div[data-testid="comment-component"] .grow .sm\:flex-row,
#comments-section div[data-testid="main-form"] .absolute.left-0 .flex.flex-wrap,
#comments-section div[data-testid="form-header"] > div {
gap: max(3px, calc(0.2vw * var(--scale)));
flex-direction: column;
}
#comments-section h4 + div,
#comments-section div[data-testid="form-header"] {
display: block;
}
#comments-section h4 + div span .mx-\[0\.3em\],
#comments-section div[data-testid="main-form"] .absolute.left-0 div + div button .mx-\[0\.3em\],
#comments-section div[data-testid="form-header"] button span .mx-\[0\.3em\] {
display: none;
}
#comments-section h4 + div span .\[overflow-wrap\:anywhere\] + span .mx-\[0\.3em\] {
display: inline-block;
}
#comments-section div[data-testid="main-form"] .transition-\[padding\].pt-\[48px\] {
padding-top: calc(4.8vw * var(--scale));
}
#comments-section [data-testid="comment-component"] .h-full.to-transparent {
width: 2px;
margin-right: calc(0.5vw * var(--scale));
}
#comments-section [data-testid="comment-component"] div[data-testid="comment-component"] {
margin-top: calc(4.2vw * var(--scale));
margin-bottom: 0px;
}
#comments-section .gh-comment-content p {
padding-left: 0px !important;
padding-right: 0px !important;
}
#comments-section div[data-testid="form-editor"] {
padding-left: calc(1vw * var(--scale));
padding-right: calc(1vw * var(--scale));
}
#comments-section .z-20.mb-7 {
margin-bottom: 0px !important;
margin-top: 0px !important;
}
#comments-section [data-testid="reply-form"] div[data-testid="form-editor"] {
margin-top: 2vw;
}
#comments-section [data-testid="comments-sorting-form-dropdown"] button {
padding: calc(0.4vw * var(--scale)) calc(1vw * var(--scale));
}
#comments-section [data-testid="comments-sorting-form"] > div {
width: max(100px, calc(7vw * var(--scale)));
}
#comments-section [data-testid="comment-context-menu-inner"] {
min-width: max(80px, calc(5.56vw * var(--scale)));
}
#comments-section [data-testid="replying-to"] {
margin-top: max(2px, calc(0.14vw * var(--scale)));
}
#comments-section .z-20.mb-7 * {
margin-top: 0px !important;
}
#comments-section [data-testid="reply-pagination-button"] {
margin-left: calc((4.4vw * var(--scale)) + 1.2rem);
margin-top: max(28px, calc(1.94vw * var(--scale))) !important;
margin-bottom: 0px !important;
}
#comments-section [data-testid="reply-pagination-button"] span {
margin-top: 0px !important;
}
#comments-section div[data-testid="form-header"] button,
#comments-section div[data-testid="form-header"] button span {
margin-top: 0px !important;
}
/* Styles for large desktop */
@media (min-width: 1439px) {
#comments-section {
min-width: 61.84vw !important;
width: 61.84vw !important;
padding-left: 2.92vw !important;
padding-right: 2.92vw !important;
margin-bottom: calc(3.96vw * var(--scale)) !important;
}
#comments-section figure {
min-width: calc(3.7vw * var(--scale));
width: calc(3.7vw * var(--scale));
height: calc(3.7vw * var(--scale));
}
#comments-section h1 {
font-size: calc(3.33vw * var(--scale));
margin-bottom: calc(1.39vw * var(--scale));
}
#comments-section h1 + p {
font-size: calc(1.25vw * var(--scale));
}
#comments-section p {
font-size: calc(1.11vw * var(--scale));
}
#comments-section h4,
#comments-section div[data-testid="main-form"] .absolute.left-0 div + div .w-full.text-base,
#comments-section .z-20.mb-7 *,
#comments-section [data-testid="member-name"] {
font-size: calc(0.97vw * var(--scale));
margin-top: calc(0.28vw * var(--scale));
}
#comments-section div[data-testid="comment-elements"] span:not(form span), #comments-section div[data-testid="comment-elements"] .group,
#comments-section div[data-testid="main-form"] .absolute.left-0 div + div button,
#comments-section div[data-testid="form-header"] button,
#comments-section [data-testid="comment-context-menu-inner"] button,
#comments-section [data-testid="comment-in-reply-to"] {
font-size: calc(0.9vw * var(--scale));
}
#comments-section [data-testid="like-button"] svg {
width: calc(0.97vw * var(--scale));
height: calc(0.97vw * var(--scale));
}
#comments-section [data-testid="comment-component"] > div {
margin-right: calc(1.32vw * var(--scale)) !important;
}
#comments-section [data-testid="comment-component"] {
margin-top: calc(2.36vw * var(--scale));
margin-bottom: 0;
}
#comments-section [data-test="comment-elements"] {
margin-top: calc(3.96vw * var(--scale));
}
#comments-section section {
margin-bottom: calc(3.96vw * var(--scale));
margin-top: calc(3.96vw * var(--scale));
padding-top: 6.04vw;
padding-bottom: 6.04vw;
}
#comments-section section > button {
padding: calc(0.56vw * var(--scale)) calc(2.22vw * var(--scale));
font-size: calc(1.11vw * var(--scale));
}
#comments-section [data-testid="submit-form-button"] {
font-size: calc(0.97vw * var(--scale));
}
#comments-section section p span:not(.font-semibold), #comments-section section p button{
font-size: calc(0.97vw * var(--scale));
}
#comments-section div[data-testid="main-form"] {
margin-top: calc(3.96vw * var(--scale));
}
#comments-section .pl-\[40px\] {
padding-left: calc(4.38vw * var(--scale)) !important;
}
#comments-section form button {
font-size: calc(1.11vw * var(--scale));
}
}
/* Styles for tablet */
@media (max-width: 931px) {
#comments-section {
min-width: 100% !important;
width: 100% !important;
padding: 0px 0px !important;
margin-bottom: 38px !important;
}
#comments-section figure {
margin-right: 5px;
}
#comments-section div[data-testid="comment-elements"] span:not(form span), #comments-section div[data-testid="comment-elements"] .group,
#comments-section div[data-testid="main-form"] .absolute.left-0 div + div button,
#comments-section div[data-testid="form-header"] button,
#comments-section [data-testid="comment-context-menu-inner"] button,
#comments-section [data-testid="comment-in-reply-to"] {
margin-top: 5px;
}
#comments-section .gh-comment-content {
margin-top: 0px;
margin-bottom: 0px;
}
#comments-section [data-testid="like-button"] svg {
width: 14px;
height: 14px;
}
#comments-section [data-testid="comment-component"] .mt-10 {
margin-top: 0px;
}
#comments-section [data-testid="comment-component"] {
margin-top: 28px;
}
#comments-section [data-test="comment-elements"] {
margin-top: 44px;
}
#comments-section section {
margin-bottom: 44px;
margin-top: 44px;
}
#comments-section section > button {
margin-top: 36px;
}
#comments-section [data-testid="submit-form-button"] {
font-size: 14px;
padding: 8px 26px;
}
#comments-section section p span:not(.font-semibold), #comments-section section p button{
margin-top: 12px;
font-size: 14px;
}
#comments-section div[data-testid="main-form"] {
margin-top: 42px;
}
#comments-section .pl-\[40px\] {
padding-left: 68px !important;
}
#comments-section form button {
font-size: 14px;
}
#comments-section section > button:hover,
#comments-section form button:hover {
opacity: 1 !important;
}
#comments-section div[data-testid="main-form"] .transition-\[padding\].pt-\[48px\] {
padding-top: 68px;
}
#comments-section [data-testid="comment-component"] .h-full.to-transparent {
margin-right: 5px;
}
#comments-section div[data-testid="form-editor"] {
padding-left: 10px;
padding-right: 10px;
}
#comments-section div[data-testid="form-editor"] {
padding-left: 14px;
padding-right: 14px;
}
#comments-section .z-20.mb-7 {
margin-bottom: 0px;
}
#comments-section [data-testid="reply-form"] div[data-testid="form-editor"] {
margin-top: 25px;
}
#comments-section [data-testid="comments-sorting-form-dropdown"] button {
padding: 4px 10px;
}
#comments-section [data-testid="reply-pagination-button"] {
margin-top: 18px !important;
margin-left: calc(59px + 1.2rem);
}
#comments-section div[data-testid="form-header"] button {
margin-top: 5px !important;
}
}
/* Styles for mobile */
@media (max-width: 443px) {
#comments-section {
padding: 0px !important;
margin-bottom: 32px !important;
}
#comments-section figure {
min-width: 47px;
width: 47px;
height: 47px;
}
#comments-section figure {
margin-right: 4px;
}
#comments-section h1 {
font-size: 36px;
}
#comments-section p {
font-size: 14px;
}
#comments-section h1 + p {
font-size: 16px;
}
#comments-section h4,
#comments-section div[data-testid="main-form"] .absolute.left-0 div + div .w-full.text-base,
#comments-section .z-20.mb-7 *,
#comments-section [data-testid="member-name"] {
font-size: 14px;
margin-top: 2px;
}
#comments-section div[data-testid="comment-elements"] span:not(form span), #comments-section div[data-testid="comment-elements"] .group,
#comments-section div[data-testid="main-form"] .absolute.left-0 div + div button,
#comments-section div[data-testid="form-header"] button,
#comments-section [data-testid="comment-context-menu-inner"] button,
#comments-section [data-testid="comment-in-reply-to"] {
margin-top: 3px;
font-size: 12px;
}
#comments-section [data-testid="like-button"] svg {
width: 13px;
height: 13px;
}
#comments-section [data-test="comment-elements"] {
margin-top: 36px;
}
#comments-section [data-testid="comment-component"] {
margin-top: 24px;
}
#comments-section section {
margin-bottom: 38px;
margin-top: 38px;
padding-top: 68px;
padding-bottom: 68px;
}
#comments-section section > button {
padding: 9px 24px;
font-size: 14px;
}
#comments-section [data-testid="submit-form-button"] {
font-size: 13px;
padding: 9px 22px;
}
#comments-section section p span:not(.font-semibold), #comments-section section p button{
margin-top: 10px;
font-size: 13px;
}
#comments-section div[data-testid="main-form"] {
margin-top: 28px;
}
#comments-section .pl-\[40px\] {
padding-left: 60px !important;
}
#comments-section form button {
font-size: 13px;
}
#comments-section [data-testid="comment-component"] > div {
margin-right: 12px !important;
}
#comments-section section > button {
margin-top: 26px;
}
#comments-section div[data-testid="main-form"] .transition-\[padding\].pt-\[48px\] {
padding-top: 56px;
}
#comments-section div[data-testid="comment-component"] .grow .sm\:flex-row,
#comments-section div[data-testid="main-form"] .absolute.left-0 .flex.flex-wrap,
#comments-section div[data-testid="form-header"] > div {
gap: 1px;
}
#comments-section [data-testid="comment-component"] .h-full.to-transparent {
width: 1px;
margin-right: 4px;
}
#comments-section div[data-testid="form-editor"] {
padding-left: 8px;
padding-right: 8px;
}
#comments-section [data-testid="reply-form"] div[data-testid="form-editor"] {
margin-top: 10px;
}
#comments-section [data-testid="reply-pagination-button"] {
margin-left: calc(51px + 0.8rem);
}
#comments-section div[data-testid="form-header"] button {
margin-top: 3px !important;
}
}