diff --git a/static/isso.css b/static/isso.css index 329f06f..26d26c5 100644 --- a/static/isso.css +++ b/static/isso.css @@ -19,15 +19,18 @@ 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; @@ -41,20 +44,24 @@ h4.isso-thread-heading { 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; @@ -63,26 +70,33 @@ h4.isso-thread-heading { 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; } + /* Only for comment header, spacer between up-/downvote should have no padding */ .isso-comment-header .isso-spacer { padding: 0 6px; } + .isso-spacer, .isso-permalink, .isso-note, @@ -91,29 +105,34 @@ h4.isso-thread-heading { 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; } + /* Style author comments and replies */ -.isso-is-page-author > .isso-text-wrapper { +.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%; @@ -121,12 +140,15 @@ h4.isso-thread-heading { 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, @@ -136,11 +158,13 @@ h4.isso-thread-heading { 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; @@ -148,22 +172,28 @@ h4.isso-thread-heading { 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 { + +.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; } -.isso-comment.isso-no-votes > * > .isso-comment-footer .isso-votes { + +.isso-comment.isso-no-votes>*>.isso-comment-footer .isso-votes { display: none; } @@ -174,10 +204,12 @@ h4.isso-thread-heading { clear: right; margin: 0 auto 2em; } + .isso-form-wrapper { display: flex; flex-direction: column; } + .isso-textarea, .isso-preview { margin-top: 0.2em; @@ -185,59 +217,73 @@ h4.isso-thread-heading { 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; + +.isso-input-wrapper, +.isso-post-action { + display: flex; + flex-direction: column; + justify-content: flex-end; + align-items: center; margin: 0 auto; - max-width: 25%; + max-width: 35%; font-size: 0.8em; font-family: var(--sans-serif-font); text-align: center; } + +.isso-input-wrapper { + margin-right: 0.5em; +} + +.isso-input-wrapper input, +.isso-post-action input { + margin-top: auto; +} + +.isso-input-wrapper label { + display: inline-block; + margin-top: auto; + height: auto; + line-height: 1.4em; +} + .isso-input-wrapper input { border: 1px solid var(--divider-color); border-radius: 5px; background-color: var(--bg-2); padding: 0.3em; - width: 90%; + width: 100%; 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; + +.isso-post-action input { cursor: pointer; margin: 0.1em; border: none; @@ -247,7 +293,14 @@ h4.isso-thread-heading { color: var(--background-color); font-size: 0.8rem; } -.isso-post-action > input:hover { + +.isso-post-action { + display: block; + align-self: flex-end; + margin: 0 auto; +} + +.isso-post-action>input:hover { opacity: 0.8; } @@ -256,24 +309,25 @@ h4.isso-thread-heading { /* ========================================================================== */ .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 { +.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 { + +.isso-postbox.isso-preview-mode>.isso-form-wrapper .isso-preview { display: block; } -.isso-postbox.isso-preview-mode > .isso-form-wrapper input[name="edit"] { + +.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: repeating-linear-gradient(-45deg, + var(--bg-0), + var(--bg-0) 10px, + var(--bg-2) 10px, + var(--bg-2) 20px); background-color: var(--bg-0); } @@ -287,8 +341,11 @@ h4.isso-thread-heading { .isso-target { animation: isso-target-fade 5s ease-out; } + @keyframes isso-target-fade { - 0% { background-color: var(--divider-color) } + 0% { + background-color: var(--divider-color) + } } /* ========================================================================== */ @@ -299,14 +356,17 @@ h4.isso-thread-heading { 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%; diff --git a/static/isso.min.css b/static/isso.min.css index 67f6dbe..7d106d1 100644 --- a/static/isso.min.css +++ b/static/isso.min.css @@ -1 +1 @@ -#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%;}} +.isso-avatar svg,.isso-preview,.isso-textarea{border:1px solid var(--divider-color);width:100%}#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:.9em;font-family:var(--sans-serif-font)}h4.isso-thread-heading{padding-bottom:.2em;color:var(--text-color);font-size:1.2rem}.isso-feedlink,.isso-note{float:right}.isso-feedlink a{vertical-align:bottom;font-size:.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:.5em;border-top:1px solid var(--divider-color)}.isso-avatar{display:block;float:left;margin:.95em .95em 0}.isso-avatar svg{border-radius:3px;max-width:48px;height:100%;max-height:48px}.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{color:var(--hover-color)}.isso-author{color:var(--text-color);font-weight:500}.isso-page-author-suffix{color:var(--text-color-high-contrast);font-weight:700}.isso-input-wrapper input,.isso-preview,.isso-textarea{background-color:var(--bg-2);color:var(--text-color);font-family:var(--sans-serif-font)}.isso-is-page-author>.isso-text-wrapper{background-color:var(--bg-1)}.isso-preview,.isso-textarea{padding:10px;font-size:.8em}.isso-comment-footer,.isso-comment-footer .isso-votes{color:var(--meta-color)}.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-weight:700;font-size:130%}.isso-comment-footer{clear:left;font-size:.8em}.isso-comment-footer a,.isso-feedlink{margin:.4em;padding:.1em;font-weight:700;text-decoration:none}.isso-downvote svg,.isso-upvote svg{position:relative;top:.2em}.isso-downvote:hover svg,.isso-upvote:hover svg{fill:var(--hover-color)}.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{clear:right;margin:0 auto 2em}.isso-form-wrapper{display:flex;flex-direction:column}.isso-preview,.isso-textarea{margin-top:.2em;border-radius:5px}.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:.9em}.isso-auth-section{display:flex;flex-direction:row}.isso-input-wrapper,.isso-post-action{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;margin:0 auto;max-width:35%;font-size:.8em;font-family:var(--sans-serif-font);text-align:center}.isso-input-wrapper{margin-right:.5em}.isso-input-wrapper input,.isso-post-action input{margin-top:auto}.isso-input-wrapper label{display:inline-block;margin-top:auto;height:auto;line-height:1.4em}.isso-input-wrapper input{border:1px solid var(--divider-color);border-radius:5px;padding:.3em;width:100%;line-height:1.2em}.isso-post-action input{cursor:pointer;margin:.1em;border:none;border-radius:5px;background-color:var(--primary-color);padding:.6em 1em;color:var(--background-color);font-size:.8rem}.isso-post-action{display:block;align-self:flex-end;margin:0 auto}.isso-post-action>input:hover{opacity:.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: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: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;margin:0 0 .4em;max-width:100%}.isso-input-wrapper input{width:100%}.isso-post-action{margin:.4em auto;width:60%}}