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

main
welpo 2 years ago
parent 95a35fceb6
commit 85fe38f815
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -12,25 +12,25 @@
/* Thread heading area */
/* ========================================================================== */
#isso-thread {
padding: 0;
margin: 0 auto;
padding: 0;
width: 100%;
color: var(--text-color);
font-family: var(--sans-serif-font);
font-size: 0.9em;
width: 100%;
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;
border: 1px solid var(--divider-color);
border-radius: 3px;
width: 100%;
max-width: 48px;
height: 100%;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 3px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
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;
background-color: var(--bg-2);
padding: 0.3em;
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;
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%;

@ -1 +1 @@
#isso-thread *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#isso-thread{padding:0;margin:0 auto;color:var(--text-color);font-family:var(--sans-serif-font);font-size:.9em;width:100%}h4.isso-thread-heading{font-size:1.2rem;color:var(--text-color);padding-bottom:.2em}.isso-feedlink,.isso-note{float:right}.isso-feedlink a{font-size:.8em;vertical-align:bottom}.isso-comment{max-width:68em;margin:0 auto}.isso-preview .isso-comment{padding-top:0;margin:0}.isso-comment:not(:first-of-type),.isso-follow-up .isso-comment{border-top:1px solid rgba(0,0,0,.1);margin-bottom:.5em}.isso-avatar{display:block;float:left;margin:.95em .95em 0}.isso-avatar svg{max-width:48px;max-height:48px;width:100%;height:100%;border:1px solid rgba(0,0,0,.2);border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1)}.isso-text-wrapper{display:block;padding:.3em}.isso-follow-up{padding-left:calc(7% + 20px)}.isso-comment-header{font-size:.85em}.isso-comment-header a{text-decoration:none}.isso-comment-header .isso-spacer{padding:0 6px}.isso-note,.isso-parent,.isso-permalink,.isso-spacer{color:var(--meta-color);font-weight:400;text-shadow:none}.isso-note:hover,.isso-parent:hover,.isso-permalink:hover,.isso-spacer:hover{color:#606060}.isso-author{font-weight:500;color:var(--text-color)}.isso-page-author-suffix{font-weight:700;color:var(--text-color-high-contrast)}.isso-input-wrapper input,.isso-preview,.isso-textarea{font-family:var(--sans-serif-font);color:var(--text-color);background-color:var(--bg-2)}.isso-is-page-author>.isso-text-wrapper{background-color:var(--bg-1)}.isso-preview,.isso-textarea{padding:10px;border:none;font-size:.8em}.isso-text p{margin-top:-.4em}.isso-text p:last-child{margin-bottom:.2em}.isso-text h1,.isso-text h2,.isso-text h3,.isso-text h4,.isso-text h5,.isso-text h6{font-size:130%;font-weight:700}.isso-comment-footer{font-size:.8em;color:gray;clear:left}.isso-comment-footer a,.isso-feedlink{font-weight:700;text-decoration:none;margin:.4em;padding:.1em}.isso-comment-footer .isso-votes{color:gray}.isso-downvote svg,.isso-upvote svg{position:relative;top:.2em}.isso-comment .isso-postbox{margin-top:.8em}.isso-comment.isso-no-votes>*>.isso-comment-footer .isso-votes,.isso-post-action input[name=edit],.isso-postbox.isso-preview-mode>.isso-form-wrapper .isso-textarea,.isso-postbox.isso-preview-mode>.isso-form-wrapper input[name=preview],.isso-preview{display:none}.isso-postbox{max-width:68em;margin:0 auto 2em;clear:right}.isso-form-wrapper{display:flex;flex-direction:column}.isso-preview,.isso-textarea{margin-top:.2em;width:100%;border:var(--border-color);border-radius:5px;box-shadow:0 0 2px #888}.isso-textarea{outline:0;width:100%;resize:none}.isso-form-wrapper input[type=checkbox]{vertical-align:middle;position:relative;bottom:1px;margin-left:0}.isso-notification-section{font-size:.9em;padding-top:.3em;display:none;padding-bottom:10px}.isso-auth-section{display:flex;flex-direction:row}.isso-auth-section input:focus,.isso-textarea:focus{border-color:rgba(0,0,0,.8)}.isso-input-wrapper{display:inline-block;position:relative;font-family:var(--sans-serif-font);font-size:.9em;max-width:25%;margin:0}.isso-input-wrapper input{max-width:100%;line-height:1.2em;padding:.3em;border-radius:5px;width:90%;border:var(--border-color);box-shadow:0 0 2px #888}.isso-input-wrapper label{display:inline-block;line-height:1.4em;height:1.4em}.isso-post-action{display:block;margin:0 auto .3em;align-self:flex-end}.isso-post-action>input{font-size:.8rem;background-color:var(--primary-color);color:var(--background-color);border:none;border-radius:5px;padding:.6em 1em;margin:.1em;cursor:pointer}.isso-post-action>input:hover{opacity: 0.8}.isso-postbox.isso-preview-mode>.isso-form-wrapper .isso-preview{display:block}.isso-postbox.isso-preview-mode>.isso-form-wrapper input[name=edit]{display:inline}.isso-preview{background-color:var(--bg-0);background:repeating-linear-gradient(-45deg,var(--bg-0),var(--bg-0) 10px,var(--bg-2) 10px,var(--bg-2) 20px)}.isso-target{animation:5s ease-out isso-target-fade}@keyframes isso-target-fade{0%{background-color:var(--divider-color)}}@media screen and (max-width:600px){.isso-auth-section{flex-direction:column;text-align:center}.isso-input-wrapper{display:block;max-width:100%;margin:0 0 .4em}.isso-input-wrapper input{width:100%}.isso-post-action{margin:.4em auto;width:60%}}
#isso-thread * {-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}#isso-thread {margin: 0 auto;padding: 0;width: 100%;color: var(--text-color);font-size: 0.9em;font-family: var(--sans-serif-font);}h4.isso-thread-heading {padding-bottom: 0.2em;color: var(--text-color);font-size: 1.2rem;}.isso-feedlink {float: right;padding-left: 1em;}.isso-feedlink a {vertical-align: bottom;font-size: 0.8em;}.isso-comment {margin: 0 auto;max-width: 68em;}.isso-preview .isso-comment {margin: 0;padding-top: 0;}.isso-comment:not(:first-of-type), .isso-follow-up .isso-comment {margin-bottom: 0.5em;border-top: 1px solid var(--divider-color);}.isso-avatar {display: block;float: left;margin: 0.95em 0.95em 0;}.isso-avatar svg {border: 1px solid var(--divider-color);border-radius: 3px;width: 100%;max-width: 48px;height: 100%;max-height: 48px;}.isso-text-wrapper {display: block;padding: 0.3em;}.isso-follow-up {padding-left: calc(7% + 20px);}.isso-comment-footer {font-size: 0.95em;}.isso-comment-header {font-size: 0.85em;}.isso-comment-header a {text-decoration: none;}.isso-comment-header .isso-spacer {padding: 0 6px;}.isso-spacer, .isso-permalink, .isso-note, .isso-parent {color: var(--meta-color);font-weight: normal;text-shadow: none;}.isso-permalink:hover, .isso-note:hover, .isso-parent:hover {color: var(--hover-color);}.isso-note {float: right;}.isso-author {color: var(--text-color);font-weight: 500;}.isso-page-author-suffix {color: var(--text-color-high-contrast);font-weight: bold;}.isso-is-page-author > .isso-text-wrapper {background-color: var(--bg-1);}.isso-textarea, .isso-preview {border: none;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;}.isso-text p:last-child {margin-bottom: 0.2em;}.isso-text h1, .isso-text h2, .isso-text h3, .isso-text h4, .isso-text h5, .isso-text h6 {font-weight: bold;font-size: 130%;}.isso-comment-footer {clear: left;color: var(--meta-color);font-size: 0.80em;}.isso-feedlink, .isso-comment-footer a {margin: 0.4em;padding: 0.1em;font-weight: bold;text-decoration: none;}.isso-comment-footer .isso-votes {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);}.isso-comment .isso-postbox {margin-top: 0.8em;}.isso-comment.isso-no-votes > * > .isso-comment-footer .isso-votes {display: none;}.isso-postbox {clear: right;margin: 0 auto 2em;}.isso-form-wrapper {display: flex;flex-direction: column;}.isso-textarea, .isso-preview {margin-top: 0.2em;border: 1px solid var(--divider-color);border-radius: 5px;width: 100%;}.isso-textarea {outline: 0;width: 100%;resize: none;}.isso-form-wrapper input[type=checkbox] {position: relative;bottom: 1px;vertical-align: middle;margin-left: 0;}.isso-notification-section {display: none;padding-top: .3em;padding-bottom: 10px;font-size: 0.90em;}.isso-auth-section {display: flex;flex-direction: row;}.isso-input-wrapper {display: inline-block;position: relative;margin: 0 auto;max-width: 25%;font-size: 0.8em;font-family: var(--sans-serif-font);text-align: center;}.isso-input-wrapper input {border: 1px solid var(--divider-color);border-radius: 5px;background-color: var(--bg-2);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;height: 1.4em;line-height: 1.4em;}.isso-post-action {display: block;align-self: flex-end;margin: 0 auto;margin-bottom: 0.3em;}.isso-post-action > input {cursor: pointer;cursor: pointer;margin: 0.1em;border: none;border-radius: 5px;background-color: var(--primary-color);padding: 0.6em 1em;color: var(--background-color);font-size: 0.8rem;}.isso-post-action > input:hover {opacity: 0.8;}.isso-preview, .isso-post-action input[name="edit"], .isso-postbox.isso-preview-mode > .isso-form-wrapper input[name="preview"], .isso-postbox.isso-preview-mode > .isso-form-wrapper .isso-textarea {display: none;}.isso-postbox.isso-preview-mode > .isso-form-wrapper .isso-preview {display: block;}.isso-postbox.isso-preview-mode > .isso-form-wrapper input[name="edit"] {display: inline;}.isso-preview {background: repeating-linear-gradient( -45deg, var(--bg-0), var(--bg-0) 10px, var(--bg-2) 10px, var(--bg-2) 20px );background-color: var(--bg-0);}.isso-target {animation: isso-target-fade 5s ease-out;}@keyframes isso-target-fade {0% {background-color: var(--divider-color) }}@media screen and (max-width:600px) {.isso-auth-section {flex-direction: column;text-align: center;}.isso-input-wrapper {display: block;margin: 0 0 .4em;max-width: 100%;}.isso-input-wrapper input {width: 100%;}.isso-post-action {margin: 0.4em auto;width: 60%;}}

Loading…
Cancel
Save