Files
blog/public/css/layout/partials/comments/gitalk.css
2025-07-16 16:30:56 +00:00

528 lines
12 KiB
CSS

/* variables */
/* variables - calculated */
.comments-container .gt-container {
box-sizing: border-box;
font-size: 16px;
/* loader */
}
.comments-container .gt-container * {
box-sizing: border-box;
}
.comments-container .gt-container a {
color: #6190e8;
}
.comments-container .gt-container a:hover {
color: #81a6ed;
border-color: #81a6ed;
}
.comments-container .gt-container a.is--active {
color: #333;
cursor: default !important;
}
.comments-container .gt-container a.is--active:hover {
color: #333;
}
.comments-container .gt-container .hide {
display: none !important;
}
.comments-container .gt-container .gt-svg {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: sub;
}
.comments-container .gt-container .gt-svg svg {
width: 100%;
height: 100%;
fill: #6190e8;
}
.comments-container .gt-container .gt-ico {
display: inline-block;
}
.comments-container .gt-container .gt-ico-text {
margin-left: 0.3125em;
}
.comments-container .gt-container .gt-ico-github {
width: 100%;
height: 100%;
}
.comments-container .gt-container .gt-ico-github .gt-svg {
width: 100%;
height: 100%;
}
.comments-container .gt-container .gt-ico-github svg {
fill: inherit;
}
.comments-container .gt-container .gt-spinner {
position: relative;
}
.comments-container .gt-container .gt-spinner::before {
content: '';
box-sizing: border-box;
position: absolute;
top: 3px;
width: 0.75em;
height: 0.75em;
margin-top: -0.1875em;
margin-left: -0.375em;
border-radius: $redefine-border-radius-full;
border: 1px solid #fff;
border-top-color: #6190e8;
animation: gt-kf-rotate 0.6s linear infinite;
}
.comments-container .gt-container .gt-loader {
position: relative;
border: 1px solid #999;
animation: ease gt-kf-rotate 1.5s infinite;
display: inline-block;
font-style: normal;
width: 1.75em;
height: 1.75em;
line-height: 1.75em;
border-radius: $redefine-border-radius-full;
}
.comments-container .gt-container .gt-loader:before {
content: '';
position: absolute;
display: block;
top: 0;
left: 50%;
margin-top: -0.1875em;
margin-left: -0.1875em;
width: 0.375em;
height: 0.375em;
background-color: #999;
border-radius: $redefine-border-radius-full;
}
.comments-container .gt-container .gt-avatar {
display: inline-block;
width: 3.125em;
height: 3.125em;
}
@media (max-width: 479px) {
.comments-container .gt-container .gt-avatar {
width: 2em /* styles */;
height: 2em /* styles */;
}
}
.comments-container .gt-container .gt-avatar img {
width: 100%;
height: auto;
border-radius: 3px;
}
.comments-container .gt-container .gt-avatar-github {
width: 3em;
height: 3em;
cursor: pointer;
}
@media (max-width: 479px) {
.comments-container .gt-container .gt-avatar-github {
width: 1.875em;
height: 1.875em;
}
}
.comments-container .gt-container .gt-btn {
padding: 0.75em 1.25em;
display: inline-block;
line-height: 1;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
border: 1px solid #6190e8;
border-radius: 5px;
background-color: #6190e8;
color: #fff;
outline: none;
font-size: 0.75em;
}
.comments-container .gt-container .gt-btn-text {
font-weight: 400;
}
.comments-container .gt-container .gt-btn-loading {
position: relative;
margin-left: 0.5em;
display: inline-block;
width: 0.75em;
height: 1em;
vertical-align: top;
}
.comments-container .gt-container .gt-btn.is--disable {
cursor: not-allowed;
opacity: 0.5;
}
.comments-container .gt-container .gt-btn-login {
margin-right: 0;
}
.comments-container .gt-container .gt-btn-preview {
background-color: var(--background-color);
color: #6190e8;
}
.comments-container .gt-container .gt-btn-preview:hover {
background-color: var(--third-background-color);
}
.comments-container .gt-container .gt-btn-public:hover {
background-color: #81a6ed;
border-color: #81a6ed;
}
.comments-container-loadmore,
.comments-container .gt-error {
text-align: center;
margin: 0.625em;
color: #ff3860;
}
.comments-container .gt-initing {
padding: 1.25em 0;
text-align: center;
}
.comments-container .gt-initing-text {
margin: 0.625em auto;
font-size: 92%;
}
.comments-container .gt-no-init {
padding: 1.25em 0;
text-align: center;
}
.comments-container .gt-link {
border-bottom: 1px dotted #6190e8;
}
.comments-container .gt-link-counts,
.comments-container .gt-link-project {
text-decoration: none;
}
.comments-container .gt-meta {
margin: 1.25em 0;
padding: 1em 0;
position: relative;
border-bottom: 1px solid #e9e9e9;
font-size: 1em;
z-index: 10;
}
.comments-container .gt-meta:before,
.comments-container .gt-meta:after {
content: ' ';
display: table;
}
.comments-container .gt-meta:after {
clear: both;
}
.comments-container .gt-counts {
margin: 0 0.625em 0 0;
color: var(--default-text-color);
}
.comments-container .gt-user {
float: right;
margin: 0;
font-size: 92%;
}
.comments-container .gt-user-pic {
width: 16px;
height: 16px;
vertical-align: top;
margin-right: 0.5em;
}
.comments-container .gt-user-inner {
display: inline-block;
cursor: pointer;
}
.comments-container .gt-user-inner .gt-user-name {
color: var(--default-text-color);
}
.comments-container .gt-user .gt-ico {
margin: 0 0 0 0.3125em;
}
.comments-container .gt-user .gt-ico svg {
fill: var(--default-text-color);
}
.comments-container .gt-user .is--poping .gt-ico svg {
fill: #6190e8;
}
.comments-container .gt-version {
color: #a1a1a1;
margin-left: 0.375em;
}
.comments-container .gt-copyright {
margin: 0 0.9375em 0.5em;
border-top: 1px solid var(--border-color);
padding-top: 0.5em;
}
.comments-container .gt-popup {
position: absolute;
right: 0;
top: 2.375em;
background: var(--background-color);
display: inline-block;
border: 1px solid var(--border-color);
padding: 0.625em 0;
font-size: 0.875em;
letter-spacing: 0.5px;
}
.comments-container .gt-popup .gt-action {
cursor: pointer;
display: block;
margin: 0.5em 0;
padding: 0 1.125em;
position: relative;
text-decoration: none;
}
.comments-container .gt-popup .gt-action.is--active:before {
content: '';
width: 0.25em;
height: 0.25em;
background: #6190e8;
position: absolute;
left: 0.5em;
top: 0.4375em;
}
.comments-container .gt-header {
position: relative;
display: flex;
}
.comments-container .gt-header-comment {
flex: 1;
margin-left: 1.25em;
}
@media (max-width: 479px) {
.comments-container .gt-header-comment {
margin-left: 0.875em;
}
}
.comments-container .gt-header-textarea {
padding: 0.75em;
display: block;
box-sizing: border-box;
width: 100%;
min-height: 5.125em;
max-height: 15em;
border-radius: 5px;
border: 1px solid var(--border-color);
font-size: 0.875em;
word-wrap: break-word;
resize: vertical;
color: var(--default-text-color);
background-color: var(--fourth-text-color);
outline: none;
transition: all 0.25s ease;
}
.comments-container .gt-header-textarea:hover {
background-color: var(--background-color);
}
.comments-container .gt-header-preview {
padding: 0.75em;
border-radius: 5px;
border: 1px solid var(--border-color);
background-color: var(--background-color);
}
.comments-container .gt-header-controls {
position: relative;
margin: 0.75em 0 0;
}
.comments-container .gt-header-controls:before,
.comments-container .gt-header-controls:after {
content: ' ';
display: table;
}
.comments-container .gt-header-controls:after {
clear: both;
}
@media (max-width: 479px) {
.comments-container .gt-header-controls {
margin: 0;
}
}
.comments-container .gt-header-controls-tip {
font-size: 0.875em;
color: #6190e8;
text-decoration: none;
vertical-align: sub;
}
@media (max-width: 479px) {
.comments-container .gt-header-controls-tip {
display: none;
}
}
.comments-container .gt-header-controls .gt-btn {
float: right;
margin-left: 1.25em;
}
@media (max-width: 479px) {
.comments-container .gt-header-controls .gt-btn {
float: none;
width: 100%;
margin: 0.75em 0 0;
}
}
.comments-container:after {
content: '';
position: fixed;
bottom: 100%;
left: 0;
right: 0;
top: 0;
opacity: 0;
}
.comments-container.gt-input-focused {
position: relative;
}
.comments-container.gt-input-focused:after {
content: '';
position: fixed;
bottom: 0;
left: 0;
right: 0;
top: 0;
background: #000;
opacity: 0.6;
transition: opacity 0.3s, bottom 0s;
z-index: 9999 /* functions & mixins */;
}
.comments-container.gt-input-focused .gt-header-comment {
z-index: 10000;
}
.comments-container .gt-comments {
padding-top: 1.25em;
}
.comments-container .gt-comments-null {
text-align: center;
}
.comments-container .gt-comments-controls {
margin: 1.25em 0;
text-align: center;
}
.comments-container .gt-comment {
position: relative;
padding: 0.625em 0;
display: flex;
}
.comments-container .gt-comment-content {
flex: 1;
margin-left: 1.25em;
padding: 0.75em 1em;
background-color: var(--third-background-color);
overflow: auto;
transition: all ease 0.25s;
}
@media (max-width: 479px) {
.comments-container .gt-comment-content {
margin-left: 0.875em;
padding: 0.625em 0.75em;
}
}
.comments-container .gt-comment-header {
margin-bottom: 0.5em;
font-size: 0.875em;
position: relative;
}
.comments-container .gt-comment-block-1 {
float: right;
height: 1.375em;
width: 2em;
}
.comments-container .gt-comment-block-2 {
float: right;
height: 1.375em;
width: 4em;
}
.comments-container .gt-comment-username {
font-weight: 500;
color: #6190e8;
text-decoration: none;
}
.comments-container .gt-comment-username:hover {
text-decoration: underline;
}
.comments-container .gt-comment-text {
margin-left: 0.5em;
color: #a1a1a1;
}
.comments-container .gt-comment-date {
margin-left: 0.5em;
color: #a1a1a1;
}
.comments-container .gt-comment-like,
.comments-container .gt-comment-edit,
.comments-container .gt-comment-reply {
position: absolute;
height: 1.375em;
}
.comments-container .gt-comment-like:hover,
.comments-container .gt-comment-edit:hover,
.comments-container .gt-comment-reply:hover {
cursor: pointer;
}
.comments-container .gt-comment-like {
top: 0;
right: 2em;
}
.comments-container .gt-comment-edit,
.comments-container .gt-comment-reply {
top: 0;
right: 0;
}
.comments-container .gt-comment-body {
color: var(--second-text-color) !important;
}
.comments-container .gt-comment-body .email-hidden-toggle a {
display: inline-block;
height: 12px;
padding: 0 9px;
font-size: 12px;
font-weight: 600;
line-height: 6px;
color: #444d56;
text-decoration: none;
vertical-align: middle;
background: #dfe2e5;
border-radius: 1px;
}
.comments-container .gt-comment-body .email-hidden-toggle a:hover {
background-color: #c6cbd1;
}
.comments-container .gt-comment-body .email-hidden-reply {
display: none;
white-space: pre-wrap;
}
.comments-container .gt-comment-body .email-hidden-reply .email-signature-reply {
padding: 0 15px;
margin: 15px 0;
color: #586069;
border-left: 4px solid #dfe2e5;
}
.comments-container .gt-comment-body .email-hidden-reply.expanded {
display: block;
}
.comments-container .gt-comment-admin .gt-comment-content {
background-color: var(--fourth-text-color);
}
@-moz-keyframes gt-kf-rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
@-webkit-keyframes gt-kf-rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
@-o-keyframes gt-kf-rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
@keyframes gt-kf-rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}