775 lines
16 KiB
SCSS
775 lines
16 KiB
SCSS
@import 'variables';
|
|
@import 'mixins';
|
|
@import 'functions';
|
|
@import 'config/import';
|
|
|
|
%kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font-size: 11px;
|
|
line-height: 10px;
|
|
color: #444d56;
|
|
vertical-align: middle;
|
|
background-color: #fafbfc;
|
|
border: solid 1px #c6cbd1;
|
|
border-bottom-color: #959da5;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #959da5;
|
|
}
|
|
|
|
$indent-distance: calc(1.1vw + 13px);
|
|
|
|
@keyframes fade-out {
|
|
0% {
|
|
background-color: rgb(208, 255, 235);
|
|
}
|
|
100% {
|
|
background-color: white;
|
|
}
|
|
}
|
|
|
|
a.header-link {
|
|
color: var(--body-color);
|
|
display: block;
|
|
&:hover {
|
|
color: var(--body-color);
|
|
}
|
|
}
|
|
|
|
.comments {
|
|
.picture {
|
|
height: 180px;
|
|
max-width: 900px;
|
|
margin: auto;
|
|
border-top-right-radius: 5px;
|
|
border-top-left-radius: 5px;
|
|
@media screen and (min-width: 390px) {
|
|
height: 240px;
|
|
}
|
|
@media screen and (min-width: 820px) {
|
|
height: 280px;
|
|
}
|
|
background-color: #ecf0f2;
|
|
background: #ecf0f2 no-repeat top center;
|
|
background-size: cover;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.blank-comment-space {
|
|
height: 3px;
|
|
@media screen and (min-width: 820px) {
|
|
height: 0px;
|
|
}
|
|
}
|
|
.article-header {
|
|
width: 820px;
|
|
max-width: 100%;
|
|
margin: 50px auto 10px;
|
|
padding: 0px 0px 90px;
|
|
background: var(--card-bg);
|
|
z-index: 3;
|
|
position: relative;
|
|
@media screen and (min-width: 820px) {
|
|
margin: 72px auto 10px;
|
|
border-radius: 5px;
|
|
@include themeable(
|
|
border,
|
|
theme-container-border,
|
|
1px solid darken($lightest-gray, 4%)
|
|
);
|
|
}
|
|
h3 {
|
|
width: 94%;
|
|
margin: 12px 0 5px;
|
|
margin-left: 1.8%;
|
|
font-weight: 500;
|
|
font-size: calc(1.5vw + 22px);
|
|
}
|
|
h4 {
|
|
margin: 0;
|
|
font-weight: 300;
|
|
color: rgb(195, 195, 195);
|
|
font-size: 17px;
|
|
width: 96%;
|
|
margin: auto;
|
|
margin-bottom: -40px;
|
|
a {
|
|
color: rgb(105, 103, 103);
|
|
}
|
|
}
|
|
.body {
|
|
padding: 60px 0px 0px;
|
|
width: 96%;
|
|
margin: auto;
|
|
margin-bottom: -35px;
|
|
.read-more {
|
|
color: var(--link-brand-color);
|
|
display: inline-block;
|
|
&:hover {
|
|
opacity: 0.96;
|
|
}
|
|
}
|
|
img {
|
|
max-width: 100%;
|
|
max-height: 350px;
|
|
}
|
|
kbd {
|
|
@extend %kbd;
|
|
}
|
|
}
|
|
}
|
|
.single-comment-header {
|
|
height: 10px;
|
|
}
|
|
}
|
|
|
|
.comments-container {
|
|
padding-top: 10px;
|
|
margin: auto;
|
|
margin-bottom: var(--su-4);
|
|
text-align: left;
|
|
overflow-wrap: break-word;
|
|
&.comments-dedicated-page-container {
|
|
width: 800px;
|
|
max-width: 96%;
|
|
min-height: calc(97vh - 200px);
|
|
}
|
|
|
|
img.icon-image {
|
|
height: 21px;
|
|
opacity: 0.7;
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.top-level-actions {
|
|
margin: 0px 0px 85px;
|
|
padding: 3px 0px;
|
|
z-index: 4;
|
|
position: relative;
|
|
border-radius: 3px;
|
|
font-size: calc(0.35vw + 16px);
|
|
h3 {
|
|
margin: 5px 0px;
|
|
a {
|
|
font-size: 0.62em;
|
|
background: $black;
|
|
color: white;
|
|
margin: 2px 0px 2px;
|
|
margin-right: 5px;
|
|
vertical-align: 2px;
|
|
}
|
|
}
|
|
.comment-action-buttons,
|
|
.comment-action-text {
|
|
display: inline-block;
|
|
color: $medium-gray;
|
|
font-weight: 300;
|
|
}
|
|
a {
|
|
display: inline-block;
|
|
background: $purple;
|
|
border-radius: 3px;
|
|
color: $black;
|
|
font-family: $helvetica-condensed;
|
|
font-stretch: condensed;
|
|
padding: 4px 8px;
|
|
font-size: 0.77em;
|
|
vertical-align: 1px;
|
|
margin: 8px 0px 2px;
|
|
}
|
|
.commentable-title {
|
|
font-size: calc(0.3vw + 16px);
|
|
color: $medium-gray;
|
|
}
|
|
}
|
|
|
|
details {
|
|
details {
|
|
.comment-deep-1,
|
|
.comment-deep-2 {
|
|
margin-top: -123px;
|
|
}
|
|
// this ms-lang hack (which behaves like a media query) is going to be ignored by all browsers
|
|
// except IE and 11 and it fixes indentation on the unsupported <details> tags
|
|
_:-ms-lang(x),
|
|
.comment-deep-1,
|
|
.comment-deep-2 {
|
|
margin-top: 0px;
|
|
}
|
|
summary {
|
|
position: relative;
|
|
}
|
|
&[open] {
|
|
> summary {
|
|
width: calc(1.1vw + 12px); //slightly smaller than indent distance
|
|
padding-bottom: 100px;
|
|
}
|
|
}
|
|
}
|
|
summary {
|
|
cursor: pointer;
|
|
color: lighten($medium-gray, 8%);
|
|
font-size: 14.5px;
|
|
font-style: oblique;
|
|
padding: 4px 0px;
|
|
padding-left: 4px;
|
|
user-select: none;
|
|
&:active {
|
|
outline: 0;
|
|
box-shadow: 0px 0px 0px $light-medium-gray !important;
|
|
}
|
|
&:focus-visible {
|
|
outline: 0;
|
|
&:not(:active) {
|
|
box-shadow: 0px 0px 6px $light-medium-gray !important;
|
|
}
|
|
}
|
|
span {
|
|
display: inline-block;
|
|
width: calc(100% - 50px);
|
|
line-height: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.comment-trees {
|
|
.comment-hash-marker {
|
|
margin-top: -45px;
|
|
margin-bottom: 45px;
|
|
border: 1px solid transparent;
|
|
z-index: var(--z-negative);
|
|
position: relative;
|
|
&:target + .single-comment-node {
|
|
animation-name: fade-out;
|
|
animation-duration: 5s;
|
|
animation-timing-function: ease-out;
|
|
}
|
|
}
|
|
.root-comment {
|
|
margin-top: -80px;
|
|
.comment-parent-link {
|
|
background: var(--card-bg);
|
|
@include themeable(
|
|
border,
|
|
theme-container-border,
|
|
1px solid $medium-gray
|
|
);
|
|
display: block;
|
|
padding: 9px 12px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-size: 0.8em;
|
|
@include themeable(
|
|
background,
|
|
theme-container-accent-background,
|
|
lighten($lightest-gray, 1%)
|
|
);
|
|
}
|
|
}
|
|
}
|
|
.comment-view-parent {
|
|
margin-bottom: 7px;
|
|
text-align: left;
|
|
font-family: $helvetica-condensed;
|
|
font-size: 0.8em;
|
|
background: $purple;
|
|
display: inline-block;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
margin-right: 5px;
|
|
vertical-align: top;
|
|
&.comment-view-commentable {
|
|
background: transparent;
|
|
max-width: calc(100% - 100px);
|
|
white-space: nowrap;
|
|
overflow-x: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
.alert-error {
|
|
background: $red;
|
|
max-width: 730px;
|
|
font-family: var(--ff-sans-serif);
|
|
color: white;
|
|
border-radius: 5px;
|
|
margin: 20px auto;
|
|
padding: 20px;
|
|
}
|
|
}
|
|
|
|
.single-comment-node {
|
|
padding: 2px 0px 0px $indent-distance;
|
|
text-align: left;
|
|
&.root {
|
|
padding: 0px 0px 2px 0;
|
|
}
|
|
margin-top: 15px;
|
|
font-size: 17px;
|
|
position: relative;
|
|
@media screen and (min-width: 390px) {
|
|
font-size: 20px;
|
|
}
|
|
&.flat-node {
|
|
padding: 0px;
|
|
margin-top: -3px;
|
|
margin-bottom: -3px;
|
|
&.root {
|
|
padding: 2px 0px;
|
|
margin-top: 0px;
|
|
}
|
|
.inner-comment {
|
|
border-top-left-radius: 0px;
|
|
border-top-right-radius: 0px;
|
|
}
|
|
button {
|
|
margin-bottom: 3px;
|
|
z-index: 7;
|
|
position: relative;
|
|
}
|
|
}
|
|
.comment-deep-3 {
|
|
margin-top: -5px;
|
|
padding: 2px 0px 2px calc(0.9vw + 7px);
|
|
button {
|
|
margin-bottom: 3px;
|
|
z-index: 8;
|
|
position: relative;
|
|
}
|
|
}
|
|
.permalink {
|
|
width: 40px;
|
|
position: absolute;
|
|
right: 2px;
|
|
margin-top: calc(0.4vw + 12px);
|
|
text-align: center;
|
|
opacity: 0.9;
|
|
img {
|
|
width: 14px;
|
|
}
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
.low-quality-comment-marker {
|
|
font-size: 0.66em;
|
|
padding: 6px 13px;
|
|
@include themeable(
|
|
background,
|
|
theme-container-accent-background,
|
|
$light-gray
|
|
);
|
|
font-weight: bold;
|
|
border-bottom: 1px solid $light-medium-gray;
|
|
a {
|
|
background: lighten($green, 14%);
|
|
color: $black;
|
|
padding: 1px 5px 3px;
|
|
border-radius: 3px;
|
|
vertical-align: -1px;
|
|
margin-left: 3px;
|
|
}
|
|
img {
|
|
height: 22px;
|
|
width: 22px;
|
|
border-radius: 100px;
|
|
border: 2px solid $medium-gray;
|
|
vertical-align: -0.6em;
|
|
margin-right: 2px;
|
|
}
|
|
}
|
|
.low-quality-comment > *:not(.dropdown) {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.body {
|
|
padding: 1px;
|
|
padding-left: 1.5%;
|
|
padding-right: 1.5%;
|
|
padding-bottom: 5px;
|
|
margin: 0;
|
|
width: 96%;
|
|
font-size: 0.95em;
|
|
line-height: 1.35em;
|
|
overflow: hidden;
|
|
margin-bottom: -28px;
|
|
word-wrap: break-word;
|
|
font-family: var(--ff-sans-serif);
|
|
position: relative;
|
|
margin-left: 1px;
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
padding: 0px;
|
|
margin: 4px 0px calc(1.1vw + 10px);
|
|
font-size: 1em;
|
|
font-weight: 600;
|
|
}
|
|
h1 {
|
|
font-size: 1.3em;
|
|
}
|
|
p {
|
|
padding: 0px;
|
|
margin: 4px 0px calc(1.1vw + 10px);
|
|
}
|
|
ul,
|
|
ol {
|
|
padding-left: 6px;
|
|
margin: 0.8em 0.7em 0.8em 1em;
|
|
}
|
|
ul {
|
|
list-style-type: square;
|
|
}
|
|
li {
|
|
margin: 3px 0px calc(0.5vw + 5px);
|
|
}
|
|
blockquote {
|
|
border-left: calc(0.2vw + 2px) solid $dark-gray;
|
|
padding: 0.1% 3% 0.1% 2%;
|
|
margin: 1.6em 1vw;
|
|
font-size: 0.92em;
|
|
line-height: 1.4em;
|
|
p {
|
|
padding: 0;
|
|
margin: 0.95em 0 0.95em;
|
|
}
|
|
&.twitter-tweet {
|
|
background: white;
|
|
max-width: 480px;
|
|
min-height: 135px;
|
|
border: 1px solid #e9eef2;
|
|
font-size: 17px;
|
|
line-height: 20px;
|
|
border-radius: 5px;
|
|
margin-top: 10px;
|
|
padding: 10px;
|
|
}
|
|
}
|
|
.edited-notification {
|
|
color: lighten($medium-gray, 20%);
|
|
font-size: 0.7em;
|
|
padding: 3px 0px 0px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
img {
|
|
max-width: 100%;
|
|
max-height: calc(50vh + 100px);
|
|
}
|
|
.table-wrapper-paragraph {
|
|
width: 100%;
|
|
margin-left: 0%;
|
|
overflow-x: auto;
|
|
}
|
|
a {
|
|
&.anchor {
|
|
padding-top: 50px;
|
|
margin-top: -50px;
|
|
-webkit-background-clip: content-box;
|
|
background-clip: content-box;
|
|
}
|
|
}
|
|
kbd {
|
|
@extend %kbd;
|
|
}
|
|
.liquid-comment {
|
|
.details {
|
|
.comment-date {
|
|
top: calc(14px - 0.25vw);
|
|
}
|
|
}
|
|
}
|
|
&.hidden-comment {
|
|
padding: 5px 0;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
.icon-img {
|
|
height: 16px;
|
|
width: 16px;
|
|
margin-right: 0px;
|
|
opacity: 0.7;
|
|
}
|
|
.details {
|
|
padding: 0px;
|
|
border-top-left-radius: 3px;
|
|
color: var(--link-brand-color);
|
|
position: relative;
|
|
.comment-date {
|
|
border: none;
|
|
position: absolute;
|
|
top: calc(14px - 0.25vw);
|
|
right: calc(35px + 0.2vw);
|
|
font-size: 12px;
|
|
text-align: right;
|
|
a {
|
|
color: var(--card-color-tertiary);
|
|
}
|
|
}
|
|
.dropbtn {
|
|
border: none;
|
|
cursor: pointer;
|
|
position: absolute;
|
|
top: calc(0.3vw + 13px);
|
|
right: 10px;
|
|
&.commentable-hidden {
|
|
top: calc(0.3vw + 8px);
|
|
}
|
|
svg {
|
|
transform: translateY(3px);
|
|
fill: var(--card-color-tertiary);
|
|
}
|
|
}
|
|
|
|
.dropdown {
|
|
position: absolute;
|
|
top: 40px;
|
|
right: 200px;
|
|
display: inline-block;
|
|
|
|
@media screen and (min-width: 580px) {
|
|
right: 10px;
|
|
}
|
|
|
|
.dropdown-icon {
|
|
position: absolute;
|
|
left: 10px;
|
|
top: 7px;
|
|
padding: 4px;
|
|
max-width: 15px;
|
|
max-height: 15px;
|
|
}
|
|
}
|
|
|
|
&.hidden-comment {
|
|
.dropbtn {
|
|
top: calc(0.3vw + 8px);
|
|
}
|
|
}
|
|
|
|
img.profile-pic {
|
|
height: 33px;
|
|
width: 33px;
|
|
border-radius: 50px;
|
|
margin: 1.5% 0.2% 1.5% 1.5%;
|
|
}
|
|
.comment-username {
|
|
vertical-align: calc(0.62vw + 13px);
|
|
}
|
|
.comment-username-inner {
|
|
vertical-align: middle;
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
overflow-x: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: calc(60% - 20px);
|
|
}
|
|
.icon-img {
|
|
vertical-align: calc(0.7vw + 9px);
|
|
margin-left: 2px;
|
|
}
|
|
.op-marker {
|
|
display: none;
|
|
@media screen and (min-width: 580px) {
|
|
display: inline-block;
|
|
vertical-align: calc(0.7vw + 12px);
|
|
background: $purple;
|
|
color: $black;
|
|
padding: 2px 6px 2px;
|
|
margin-left: 0.3vw;
|
|
font-family: $helvetica-condensed;
|
|
font-stretch: condensed;
|
|
font-size: 0.78em;
|
|
border-radius: 3px;
|
|
}
|
|
}
|
|
a {
|
|
@include themeable(color, theme-secondary-color, lighten($dark-gray, 3%));
|
|
}
|
|
}
|
|
.reaction-button,
|
|
.dropbtn {
|
|
border: 0px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
height: 32px;
|
|
display: block;
|
|
padding: 0px;
|
|
margin-left: 2px;
|
|
position: relative;
|
|
margin-top: calc(-0.6vw - 4px);
|
|
z-index: 8;
|
|
position: relative;
|
|
&.reaction-button {
|
|
padding-right: 25px;
|
|
padding-top: 4px;
|
|
margin-top: 0px;
|
|
height: 25px;
|
|
}
|
|
.reactions-count {
|
|
font-size: 0.7em;
|
|
background: $light-gray;
|
|
padding: 1px 5px;
|
|
border-radius: 3px;
|
|
border: 1px solid darken($light-gray, 10%);
|
|
margin-left: 1px;
|
|
position: absolute;
|
|
top: 4px;
|
|
left: 24px;
|
|
}
|
|
img {
|
|
height: 21px;
|
|
width: 21px;
|
|
opacity: 0.62;
|
|
left: 0px;
|
|
&.dropdown-icon {
|
|
height: 18px;
|
|
width: 18px;
|
|
}
|
|
}
|
|
&:hover {
|
|
img {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
.voted-heart {
|
|
display: none;
|
|
vertical-align: 0px;
|
|
margin-left: 0px;
|
|
height: 22px;
|
|
width: 22px;
|
|
opacity: 0.9;
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@media screen and (min-width: 390px) {
|
|
vertical-align: -7px;
|
|
}
|
|
&.reacted {
|
|
color: $green;
|
|
img {
|
|
display: none;
|
|
}
|
|
.voted-heart {
|
|
display: inline-block;
|
|
}
|
|
.reactions-count {
|
|
color: $black;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
}
|
|
img.icon-image {
|
|
height: 20px;
|
|
}
|
|
|
|
.actions {
|
|
font-size: 0.8em;
|
|
padding: 0.3em 0.6em 0.3em 0.4em;
|
|
text-align: right;
|
|
position: relative;
|
|
min-height: 1.2em;
|
|
z-index: 5;
|
|
text-transform: capitalize;
|
|
margin-left: 58px;
|
|
a.thread-indication {
|
|
color: lighten($medium-gray, 22%);
|
|
font-size: 0.8em;
|
|
cursor: default;
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
a.register-now-cta {
|
|
font-size: 1.4em;
|
|
background: lighten($yellow, 12%);
|
|
border: 1px solid darken($yellow, 15%);
|
|
box-shadow: 5px 6px 0px darken($yellow, 15%);
|
|
color: $black;
|
|
padding: 5px 10px;
|
|
margin-right: 8px;
|
|
vertical-align: 20px;
|
|
line-height: 1.8em;
|
|
}
|
|
.current-user-actions {
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
a {
|
|
margin-right: 10px;
|
|
display: inline-block;
|
|
color: $medium-gray;
|
|
}
|
|
}
|
|
}
|
|
.inner-comment {
|
|
padding: 0px;
|
|
border: 1px solid $light-medium-gray;
|
|
background: var(--card-bg);
|
|
&.comment-created-via-fetch {
|
|
animation: comment-create 1.2s;
|
|
.body {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
}
|
|
.comment-read-more {
|
|
background: $green !important;
|
|
padding: 3px 6px;
|
|
display: block;
|
|
width: 250px;
|
|
text-align: center;
|
|
margin: auto;
|
|
border-radius: 3px;
|
|
margin-bottom: 20px;
|
|
font-weight: bold;
|
|
&:hover {
|
|
opacity: 1;
|
|
background: lighten($green, 5%) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes fadein {
|
|
0% {
|
|
opacity: 0.5;
|
|
height: 21px;
|
|
width: 18px;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
height: 25px;
|
|
width: 22px;
|
|
}
|
|
}
|
|
@keyframes comment-create {
|
|
from {
|
|
background-color: $light-green;
|
|
}
|
|
to {
|
|
@include themeable(background-color, theme-container-background, #fff);
|
|
}
|
|
}
|
|
|
|
#response-templates-data {
|
|
display: none;
|
|
}
|
|
|
|
.comments-settings__row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
grid-gap: var(--su-2);
|
|
|
|
&--subtitle {
|
|
color: var(--base-60);
|
|
}
|
|
}
|