Scope zapthreads styles in Tailwind components

This commit is contained in:
thePR0M3TH3AN committed 2025-10-13 09:05:49 -04:00
1 parent fda93c6304
commit eb41945e7a
1 file changed
+397 -1
+397 -1
View File
@@ -2960,7 +2960,403 @@
}
.blog-app-root zap-threads {
font-size: 0.9rem;
font-size: var(--ztr-font-size);
}
.blog-app-root #ztr-content img {
max-width: 100%;
}
.blog-app-root #ztr-content {
max-width: 100%;
}
.blog-app-root #ztr-root {
display: flex;
flex-direction: column;
font-family: var(--ztr-font);
font-size: var(--ztr-font-size);
color: var(--ztr-text-color);
border: 1px solid transparent;
word-wrap: break-word;
margin-top: 4em;
line-height: 1.2em;
}
.blog-app-root #ztr-subtitle {
font-size: 1.2em;
color: var(--color-blog-gray-500);
}
.blog-app-root #ztr-root a {
color: var(--ztr-link-color);
text-decoration: none;
}
.blog-app-root .ztr-comment {
position: relative;
margin: 0;
padding: 0;
background-color: var(--ztr-background-color);
}
.blog-app-root .ztr-comment:first-child {
border-top-left-radius: 0.3em;
border-top-right-radius: 0.3em;
}
.blog-app-root .ztr-comment:last-child {
border-bottom-left-radius: 0.3em;
border-bottom-right-radius: 0.3em;
}
.blog-app-root .ztr-comment-body {
padding: 1em;
}
.blog-app-root .ztr-comment-info-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
}
.blog-app-root .ztr-comment-info {
display: flex;
align-items: center;
}
.blog-app-root .ztr-comment-info-picture {
width: 3.5em;
}
.blog-app-root ul.ztr-comment-info-items {
display: flex;
align-items: center;
list-style: none;
margin: 0;
padding: 0;
font-size: 0.9em;
}
.blog-app-root ul.ztr-comment-info-items li {
display: inline-block;
cursor: default;
padding-right: 0.5em;
}
.blog-app-root ul.ztr-comment-info-items li a {
font-weight: 600;
}
.blog-app-root .ztr-comment-info-author a {
font-size: 1.2em;
padding-right: 0.2em;
}
.blog-app-root .ztr-comment-info-dots {
cursor: pointer;
}
.blog-app-root .ztr-comment-info-separator {
width: 0.5em;
}
.blog-app-root .ztr-comment-info-picture img {
width: 2em;
height: 2em;
border-radius: 50%;
padding: 0.5em;
position: relative;
display: block;
object-fit: cover;
}
.blog-app-root .ztr-comment-text,
.blog-app-root #ztr-content {
margin-bottom: 0.75em;
padding: 0 0.8em 0 3.5em;
line-height: 1.5em;
line-break: loose;
word-break: break-word;
overflow: hidden;
max-width: 750px;
}
.blog-app-root .ztr-comment-text p {
margin: 0 0 0.5em 0;
}
.blog-app-root .ztr-comment-text code {
font-size: 1.1em;
margin: 0 0.2em;
}
.blog-app-root .ztr-comment-text pre,
.blog-app-root .ztr-info-pane pre {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
word-wrap: break-word;
}
.blog-app-root .ztr-comment-text a:hover {
text-decoration: underline;
}
.blog-app-root .ztr-comment-text img {
max-width: 100%;
}
.blog-app-root .ztr-comment-text .warning {
margin-top: 0;
font-size: 0.8em;
display: flex;
align-items: center;
}
.blog-app-root .ztr-comment-text .warning svg {
height: 1.2em;
fill: var(--color-blog-amber-500);
padding-right: 0.7em;
}
.blog-app-root .ztr-comment-replies {
margin-left: 2em;
}
.blog-app-root .highlight p {
background: var(--color-blog-amber-400);
color: var(--color-blog-gray-800);
display: inline;
padding: 0.2em;
}
.blog-app-root .ztr-comment-expand {
display: flex;
justify-content: center;
}
.blog-app-root .ztr-comment-expand span {
margin: 1em 0 1em 0.35em;
cursor: pointer;
}
.blog-app-root ul.ztr-comment-actions,
.blog-app-root .ztr-comment-expand {
display: flex;
align-items: center;
list-style: none;
margin: 0;
padding: 0 0 0 3.5em;
font-weight: 600;
user-select: none;
}
.blog-app-root ul.ztr-comment-actions li {
display: inline-flex;
align-items: center;
text-align: center;
padding: 0 2em 0 0;
cursor: pointer;
}
.blog-app-root ul.ztr-comment-actions li span {
padding: 0.25em 0.25em 0 0.25em;
color: var(--ztr-icon-color);
}
.blog-app-root #ztr-root svg {
fill: var(--ztr-icon-color);
width: 1.1em;
height: 1.1em;
}
.blog-app-root .ztr-comment-action-reply:hover svg {
fill: var(--color-blog-purple-accent);
}
.blog-app-root .ztr-comment-action-reply:hover span {
color: var(--color-blog-purple-accent);
}
.blog-app-root .ztr-comment-action-zap:hover svg {
fill: var(--color-blog-amber-500);
}
.blog-app-root .ztr-comment-action-zap:hover span {
color: var(--color-blog-amber-500);
}
.blog-app-root .ztr-comment-action-like:hover svg {
fill: var(--color-blog-orange-600);
}
.blog-app-root .ztr-comment-action-like:hover span {
color: var(--color-blog-orange-600);
}
.blog-app-root .ztr-reply-form {
padding: 0 0.5em 0 3.5em;
}
.blog-app-root .ztr-reply-form textarea {
font-family: var(--ztr-font);
font-size: 1.1em;
line-height: 1.4;
color: var(--color-blog-gray-800);
background-color: var(--color-blog-neutral-50);
border: 1px solid var(--color-blog-gray-220);
outline: none;
width: calc(100% - 1.5em);
padding: 0.7em;
margin: 0.5em 0;
height: 4em;
border-radius: 0.2em;
min-height: 4em;
resize: vertical;
}
.blog-app-root .ztr-reply-form:disabled {
opacity: 65%;
user-select: none;
}
.blog-app-root .ztr-reply-controls {
display: flex;
align-items: center;
justify-content: flex-end;
}
.blog-app-root .ztr-reply-controls span {
font-weight: bold;
font-size: 0.85em;
margin-right: 1em;
user-select: none;
cursor: default;
}
.blog-app-root .ztr-reply-error {
color: var(--color-blog-error);
}
.blog-app-root .ztr-reply-controls button {
font-family: var(--ztr-font);
appearance: none;
border: none;
padding: 0.5em 1em;
border-radius: 0.2em;
font-size: 0.85em;
font-weight: 600;
cursor: pointer;
}
.blog-app-root .ztr-reply-login-button {
color: var(--color-white);
background-color: var(--ztr-login-button-color);
margin-left: 1em;
}
.blog-app-root .ztr-reply-button {
color: var(--ztr-text-color);
display: flex;
align-items: center;
background-color: var(--ztr-background-color);
}
.blog-app-root .ztr-info-pane {
padding: 0 0.5em 1em 3.5em;
}
.blog-app-root .ztr-info-pane pre {
font-size: 0.8em;
}
.blog-app-root .ztr-spinner {
width: 1.2em;
height: 1.2em;
padding: 0.9em;
animation: ztr-rotate 4s linear infinite;
}
.blog-app-root .ztr-reply-button:disabled {
opacity: 65%;
pointer-events: none;
cursor: pointer;
user-select: none;
}
.blog-app-root .ztr-spinner .path {
stroke: var(--ztr-text-color);
stroke-linecap: round;
animation: ztr-dash 1.5s ease-in-out infinite;
}
@keyframes ztr-rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes ztr-dash {
0% {
stroke-dasharray: 1, 150;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -35;
}
100% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -124;
}
}
.blog-app-root .ztr-comment-new .ztr-reply-form {
margin: 0.5em 0;
padding: 0;
}
.blog-app-root .ztr-comment-new .ztr-comment-body {
padding: 0;
}
.blog-app-root .ztr-comment-new .ztr-comment-actions {
font-size: 1.1em;
padding: 0;
}
@media (prefers-color-scheme: dark) {
.blog-app-root .ztr-spinner .path {
stroke: var(--ztr-text-color, var(--color-blog-gray-200));
}
.blog-app-root .ztr-comment,
.blog-app-root .ztr-reply-button {
background-color: var(--ztr-background-color, rgba(255, 255, 255, 0.06));
}
.blog-app-root .ztr-reply-login-button {
color: var(--color-blog-gray-800);
background-color: var(--ztr-login-button-color, var(--color-blog-gray-200));
}
.blog-app-root #ztr-root svg {
fill: var(--ztr-icon-color, var(--color-blog-gray-200));
}
.blog-app-root ul.ztr-comment-actions li span {
color: var(--ztr-icon-color);
}
.blog-app-root .ztr-comment-action-reply:hover svg {
fill: var(--color-blog-purple-muted);
}
.blog-app-root .ztr-comment-action-reply:hover span {
color: var(--color-blog-purple-muted);
}
}
.blog-app-root .splide__container {