💄style(isso): clean isso styles & use CSS variables

This commit is contained in:
welpo
2023-08-26 20:11:47 +02:00
parent 95a35fceb6
commit 85fe38f815
2 changed files with 58 additions and 66 deletions

View File

@@ -12,25 +12,25 @@
/* Thread heading area */
/* ========================================================================== */
#isso-thread {
padding: 0;
margin: 0 auto;
color: var(--text-color);
font-family: var(--sans-serif-font);
font-size: 0.9em;
padding: 0;
width: 100%;
color: var(--text-color);
font-size: 0.9em;
font-family: var(--sans-serif-font);
}
h4.isso-thread-heading {
font-size: 1.2rem;
color: var(--text-color);
padding-bottom: 0.2em;
color: var(--text-color);
font-size: 1.2rem;
}
.isso-feedlink {
float: right;
padding-left: 1em;
}
.isso-feedlink a {
font-size: 0.8em;
vertical-align: bottom;
font-size: 0.8em;
}
/* ========================================================================== */
@@ -38,17 +38,17 @@ h4.isso-thread-heading {
/* ========================================================================== */
.isso-comment {
max-width: 68em;
margin: 0 auto;
max-width: 68em;
}
.isso-preview .isso-comment {
padding-top: 0;
margin: 0;
padding-top: 0;
}
.isso-comment:not(:first-of-type),
.isso-follow-up .isso-comment {
border-top: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 0.5em;
border-top: 1px solid var(--divider-color);
}
.isso-avatar {
display: block;
@@ -56,13 +56,12 @@ h4.isso-thread-heading {
margin: 0.95em 0.95em 0;
}
.isso-avatar svg {
max-width: 48px;
max-height: 48px;
width: 100%;
height: 100%;
border: 1px solid rgba(0, 0, 0, 0.2);
border: 1px solid var(--divider-color);
border-radius: 3px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 48px;
height: 100%;
max-height: 48px;
}
.isso-text-wrapper {
display: block;
@@ -92,22 +91,21 @@ h4.isso-thread-heading {
font-weight: normal;
text-shadow: none;
}
.isso-spacer:hover,
.isso-permalink:hover,
.isso-note:hover,
.isso-parent:hover {
color: #606060;
color: var(--hover-color);
}
.isso-note {
float: right;
}
.isso-author {
font-weight: 500;
color: var(--text-color);
font-weight: 500;
}
.isso-page-author-suffix {
font-weight: bold;
color: var(--text-color-high-contrast);
font-weight: bold;
}
/* Style author comments and replies */
.isso-is-page-author > .isso-text-wrapper {
@@ -115,13 +113,13 @@ h4.isso-thread-heading {
}
.isso-textarea,
.isso-preview {
width: 100%;
padding: 10px;
border: none;
font-family: var(--sans-serif-font);
color: var(--text-color);
background-color: var(--bg-2);
padding: 10px;
width: 100%;
color: var(--text-color);
font-size: 0.8em;
font-family: var(--sans-serif-font);
}
.isso-text p {
margin-top: -0.4em;
@@ -135,30 +133,32 @@ h4.isso-thread-heading {
.isso-text h4,
.isso-text h5,
.isso-text h6 {
font-size: 130%;
font-weight: bold;
font-size: 130%;
}
.isso-comment-footer {
font-size: 0.80em;
color: gray;
clear: left;
color: var(--meta-color);
font-size: 0.80em;
}
.isso-feedlink,
.isso-comment-footer a {
font-weight: bold;
text-decoration: none;
margin: 0.4em;
padding: 0.1em;
font-weight: bold;
text-decoration: none;
}
.isso-comment-footer .isso-votes {
color: gray;
color: var(--meta-color);
}
.isso-upvote svg,
.isso-downvote svg {
position: relative;
top: .2em;
}
.isso-upvote:hover svg, .isso-downvote:hover svg {
fill: var(--hover-color);
}
/* Reply postbox under existing comment */
.isso-comment .isso-postbox {
margin-top: 0.8em;
@@ -171,9 +171,8 @@ h4.isso-thread-heading {
/* Postbox */
/* ========================================================================== */
.isso-postbox {
max-width: 68em;
margin: 0 auto 2em;
clear: right;
margin: 0 auto 2em;
}
.isso-form-wrapper {
display: flex;
@@ -182,10 +181,9 @@ h4.isso-thread-heading {
.isso-textarea,
.isso-preview {
margin-top: 0.2em;
width: 100%;
border: var(--border-color);
border: 1px solid var(--divider-color);
border-radius: 5px;
box-shadow: 0 0 2px #888;
width: 100%;
}
.isso-textarea {
outline: 0;
@@ -193,68 +191,62 @@ h4.isso-thread-heading {
resize: none;
}
.isso-form-wrapper input[type=checkbox] {
vertical-align: middle;
position: relative;
bottom: 1px;
vertical-align: middle;
margin-left: 0;
}
.isso-notification-section {
font-size: 0.90em;
padding-top: .3em;
display: none;
padding-top: .3em;
padding-bottom: 10px;
font-size: 0.90em;
}
.isso-auth-section {
display: flex;
flex-direction: row;
}
.isso-textarea:focus,
.isso-auth-section input:focus {
border-color: rgba(0, 0, 0, 0.8);
}
.isso-input-wrapper {
display: inline-block;
position: relative;
font-family: var(--sans-serif-font);
font-size: 0.9em;
margin: 0 auto;
max-width: 25%;
margin: 0;
font-size: 0.8em;
font-family: var(--sans-serif-font);
text-align: center;
}
.isso-input-wrapper input {
max-width: 100%;
line-height: 1.2em;
padding: 0.3em;
border: 1px solid var(--divider-color);
border-radius: 5px;
width: 90%;
font-family: var(--sans-serif-font);
color: var(--text-color);
background-color: var(--bg-2);
border: var(--border-color);
box-shadow: 0 0 2px #888;
padding: 0.3em;
width: 90%;
color: var(--text-color);
line-height: 1.2em;
font-family: var(--sans-serif-font);
}
.isso-input-wrapper label {
display: inline-block;
line-height: 1.4em;
height: 1.4em;
line-height: 1.4em;
}
.isso-post-action {
display: block;
margin: 0 auto;
align-self: flex-end;
margin: 0 auto;
margin-bottom: 0.3em;
}
.isso-post-action > input {
font-size: 0.8rem;
background-color: var(--primary-color);
color: var(--background-color);
cursor: pointer;
cursor: pointer;
margin: 0.1em;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: var(--primary-color);
padding: 0.6em 1em;
margin: 0.1em;
cursor: pointer;
color: var(--background-color);
font-size: 0.8rem;
}
.isso-post-action > input:hover {
opacity: 0.8;
}
@@ -275,7 +267,6 @@ h4.isso-thread-heading {
display: inline;
}
.isso-preview {
background-color: var(--bg-0);
background: repeating-linear-gradient(
-45deg,
var(--bg-0),
@@ -283,6 +274,7 @@ h4.isso-thread-heading {
var(--bg-2) 10px,
var(--bg-2) 20px
);
background-color: var(--bg-0);
}
/* ========================================================================== */
@@ -309,8 +301,8 @@ h4.isso-thread-heading {
}
.isso-input-wrapper {
display: block;
max-width: 100%;
margin: 0 0 .4em;
max-width: 100%;
}
.isso-input-wrapper input {
width: 100%;