optimized custom.scss for scss as well

pull/5/head
RiedleroD 2023-05-10 21:37:23 +02:00
parent 9bb618005a
commit 07c21a196d
1 changed files with 270 additions and 276 deletions

View File

@ -16,39 +16,39 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
width: 100%; width: 100%;
font-family: sans-serif font-family: sans-serif;
} li {
.tabs li { display: inline-block;
display: inline-block; }
} input[type="radio"] {
.tabs input[type="radio"] { display: none;
display: none; }
} label {
.tabs label { display: block;
display: block; cursor: pointer;
cursor: pointer; padding: 10px 15px;
padding: 10px 15px; border: 2px solid black;
border: 2px solid black; border-bottom: 0;
border-bottom: 0; border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0; background-color: black;
background-color: black; }
} .tab-panel {
.tabs .tab-panel { display: none;
display: none; overflow: auto;
overflow: auto; width: 100%;
width: 100%; position: absolute;
position: absolute; left: 0;
left: 0; border-top: 2px solid gray;
border-top: 2px solid gray; }
}
.tabs [id^="tab"]:checked + label { [id^="tab"]:checked + label {
background-color: gray; background-color: gray;
border: 2px solid gray; border: 2px solid gray;
color: #fff; color: #fff;
} }
.tabs [id^="tab"]:checked ~ [id^="tab-panel"] { [id^="tab"]:checked ~ .tab-panel {
display: contents; display: contents;
}
} }
/* FONTS */ /* FONTS */
@ -69,270 +69,264 @@
/* ISSO CSS */ /* ISSO CSS */
#isso-thread * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#isso-thread .isso-comment-header a {
text-decoration: none;
}
#isso-thread { #isso-thread {
padding: 0; padding: 0;
margin: 0; margin: 0;
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.isso-comment-header a {
text-decoration: none;
}
h4 {
color: #e5e5e5;
font-weight: bold;
}
> .isso-feedlink {
float: right;
padding-left: 1em;
> a {
font-size: 0.8em;
vertical-align: bottom;
}
}
.textarea {
min-height: 58px;
outline: 0;
&.placeholder {
color: #e5e5e5;
}
}
.textarea:focus,
input:focus {
border-color: rgba(0, 0, 0, 0.8);
}
} }
#isso-thread > h4 { .isso-comment{
color: #e5e5e5; #isso-root & {
font-weight: bold; max-width: 68em;
} padding-top: 0.95em;
#isso-thread > .isso-feedlink { margin: 0.95em auto;
float: right; }
padding-left: 1em; #isso-root .preview & {
} padding-top: 0;
#isso-thread > .isso-feedlink > a { margin: 0;
font-size: 0.8em; }
vertical-align: bottom; #isso-root &:not(:first-of-type),
} .isso-follow-up & {
#isso-thread .textarea { border-top: 1px solid #525252;
min-height: 58px; }
outline: 0; > .avatar {
} display: block;
#isso-thread .textarea.placeholder { float: left;
color: #e5e5e5; margin: 3px 15px 0 0;
} > svg {
width: 48px;
#isso-root .isso-comment { height: 48px;
max-width: 68em; border: 1px solid rgba(0, 0, 0, 0.2);
padding-top: 0.95em; border-radius: 3px;
margin: 0.95em auto; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
} }
#isso-root .preview .isso-comment { }
padding-top: 0; > .text-wrapper {
margin: 0; display: block;
} > .isso-comment-header,
#isso-root .isso-comment:not(:first-of-type), > .isso-comment-footer {
.isso-follow-up .isso-comment { font-size: 0.95em;
border-top: 1px solid #525252; }
} > .isso-comment-header {
.isso-comment > div.avatar { font-size: 0.85em;
display: block; .spacer {
float: left; padding: 0 6px;
margin: 3px 15px 0 0; }
} .spacer,
.isso-comment > div.avatar > svg { a.permalink,
width: 48px; .note,
height: 48px; a.parent {
border: 1px solid rgba(0, 0, 0, 0.2); color: gray !important;
border-radius: 3px; font-weight: normal;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); text-shadow: none !important;
} &:hover{
.isso-comment > div.text-wrapper { color: #606060 !important;
display: block; }
} }
.isso-comment .isso-follow-up { .note {
padding-left: calc(7% + 20px); float: right;
} }
.isso-comment > div.text-wrapper > .isso-comment-header, .isso-comment > div.text-wrapper > .isso-comment-footer { .author {
font-size: 0.95em; font-weight: bold;
} color: #e5e5e5;
.isso-comment > div.text-wrapper > .isso-comment-header { }
font-size: 0.85em; }
} > .textarea-wrapper .textarea,
.isso-comment > div.text-wrapper > .isso-comment-header .spacer { > .textarea-wrapper .preview {
padding: 0 6px; margin-top: 0.2em;
} width: 100%;
.isso-comment > div.text-wrapper > .isso-comment-header .spacer, border: 1px solid #f0f0f0;
.isso-comment > div.text-wrapper > .isso-comment-header a.permalink, border-radius: 2px;
.isso-comment > div.text-wrapper > .isso-comment-header .note, box-shadow: 0 0 2px #888;
.isso-comment > div.text-wrapper > .isso-comment-header a.parent { }
color: gray !important; > .text{
font-weight: normal; p {
text-shadow: none !important; margin-top: 0.2em;
} &:last-child {
.isso-comment > div.text-wrapper > .isso-comment-header .spacer:hover, margin-bottom: 0.2em;
.isso-comment > div.text-wrapper > .isso-comment-header a.permalink:hover, }
.isso-comment > div.text-wrapper > .isso-comment-header .note:hover, }
.isso-comment > div.text-wrapper > .isso-comment-header a.parent:hover { h1,h2,h3,h4,h5,h6{
color: #606060 !important; font-size: 130%;
} font-weight: bold;
.isso-comment > div.text-wrapper > .isso-comment-header .note { }
float: right; }
} > .isso-comment-footer {
.isso-comment > div.text-wrapper > .isso-comment-header .author { font-size: 0.80em;
font-weight: bold; color: gray !important;
color: #e5e5e5; clear: left;
} > a {
.isso-comment > div.text-wrapper > .textarea-wrapper .textarea, position: relative;
.isso-comment > div.text-wrapper > .textarea-wrapper .preview { top: .2em;
margin-top: 0.2em; + a {
} padding-left: 1em;
.isso-comment > div.text-wrapper > div.text p { }
margin-top: 0.2em; }
} .votes {
.isso-comment > div.text-wrapper > div.text p:last-child { color: gray;
margin-bottom: 0.2em; position: relative;
} top: 2px;
.isso-comment > div.text-wrapper > div.text h1, }
.isso-comment > div.text-wrapper > div.text h2, .upvote svg,
.isso-comment > div.text-wrapper > div.text h3, .downvote svg {
.isso-comment > div.text-wrapper > div.text h4, position: relative;
.isso-comment > div.text-wrapper > div.text h5, top: .2em;
.isso-comment > div.text-wrapper > div.text h6 { }
font-size: 130%; }
font-weight: bold; }
} .isso-follow-up {
.isso-comment > div.text-wrapper > div.textarea-wrapper .textarea, padding-left: calc(7% + 20px);
.isso-comment > div.text-wrapper > div.textarea-wrapper .preview { }
width: 100%; .isso-postbox {
border: 1px solid #f0f0f0; margin-top: 0.8em;
border-radius: 2px; }
box-shadow: 0 0 2px #888; &.isso-no-votes > * > .isso-comment-footer span.votes {
} display: none;
.isso-comment > div.text-wrapper > .isso-comment-footer { }
font-size: 0.80em;
color: gray !important;
clear: left;
} }
.isso-feedlink, .isso-feedlink,
.isso-comment > div.text-wrapper > .isso-comment-footer a { .isso-comment > div.text-wrapper > .isso-comment-footer a {
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
} &:hover{
.isso-feedlink:hover, color: #111111 !important;
.isso-comment > div.text-wrapper > .isso-comment-footer a:hover { text-shadow: #aaaaaa 0 0 1px !important;
color: #111111 !important; }
text-shadow: #aaaaaa 0 0 1px !important;
}
.isso-comment > div.text-wrapper > .isso-comment-footer > a {
position: relative;
top: .2em;
}
.isso-comment > div.text-wrapper > .isso-comment-footer > a + a {
padding-left: 1em;
}
.isso-comment > div.text-wrapper > .isso-comment-footer .votes {
color: gray;
position: relative;
top: 2px;
}
.isso-comment > div.text-wrapper > .isso-comment-footer .upvote svg,
.isso-comment > div.text-wrapper > .isso-comment-footer .downvote svg {
position: relative;
top: .2em;
}
.isso-comment .isso-postbox {
margin-top: 0.8em;
}
.isso-comment.isso-no-votes > * > .isso-comment-footer span.votes {
display: none;
} }
.isso-postbox { .isso-postbox {
max-width: 68em; max-width: 68em;
margin: 0 auto 2em; margin: 0 auto 2em;
clear: right; clear: right;
} > .form-wrapper {
.isso-postbox > .form-wrapper { display: block;
display: block; padding: 0;
padding: 0; .textarea,
} .preview {
.isso-postbox > .form-wrapper > .auth-section, margin: 0 0 .3em;
.isso-postbox > .form-wrapper > .auth-section .post-action { padding: .4em .8em;
display: block; border-radius: 3px;
} background-color: #000;
.isso-postbox > .form-wrapper .textarea, border: 1px solid rgba(0, 0, 0, 0.2);
.isso-postbox > .form-wrapper .preview { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
margin: 0 0 .3em; }
padding: .4em .8em; input[type=checkbox] {
border-radius: 3px; vertical-align: middle;
background-color: #000; position: relative;
border: 1px solid rgba(0, 0, 0, 0.2); bottom: 1px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); margin-left: 0;
} }
.isso-postbox > .form-wrapper input[type=checkbox] { .notification-section {
vertical-align: middle; font-size: 0.90em;
position: relative; padding-top: .3em;
bottom: 1px; }
margin-left: 0; > .auth-section{
} &, & .post-action {
.isso-postbox > .form-wrapper .notification-section { display: block;
font-size: 0.90em; }
padding-top: .3em; .input-wrapper {
} display: inline-block;
#isso-thread .textarea:focus, position: relative;
#isso-thread input:focus { max-width: 25%;
border-color: rgba(0, 0, 0, 0.8); margin: 0;
} input {
.isso-postbox > .form-wrapper > .auth-section .input-wrapper { padding: .3em 10px;
display: inline-block; max-width: 100%;
position: relative; border-radius: 3px;
max-width: 25%; background-color: #000;
margin: 0; line-height: 1.4em;
} border: 1px solid rgba(0, 0, 0, 0.2);
.isso-postbox > .form-wrapper > .auth-section .input-wrapper input { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
padding: .3em 10px; }
max-width: 100%; }
border-radius: 3px; .post-action {
background-color: #000; display: inline-block;
line-height: 1.4em; float: right;
border: 1px solid rgba(0, 0, 0, 0.2); margin: 0 0 0 5px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); > input {
} padding: calc(.3em - 1px);
.isso-postbox > .form-wrapper > .auth-section .post-action { border-radius: 2px;
display: inline-block; border: 1px solid #c4c4c4;
float: right; background-color: #000;
margin: 0 0 0 5px; cursor: pointer;
} outline: 0;
.isso-postbox > .form-wrapper > .auth-section .post-action > input { line-height: 1.4em;
padding: calc(.3em - 1px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
border-radius: 2px; &:hover {
border: 1px solid #c4c4c4; background-color: #eb6c6c;
background-color: #000; }
cursor: pointer; &:active {
outline: 0; background-color: #781f1a;
line-height: 1.4em; }
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
} }
.isso-postbox > .form-wrapper > .auth-section .post-action > input:hover { }
background-color: #eb6c6c; .preview {
} background-color: #303030;
.isso-postbox > .form-wrapper > .auth-section .post-action > input:active { background: repeating-linear-gradient(
background-color: #781f1a; -45deg,
} #303030,
.isso-postbox > .form-wrapper .preview, #303030 10px,
.isso-postbox > .form-wrapper input[name="edit"], #232323 10px,
.isso-postbox.preview-mode > .form-wrapper input[name="preview"], #232323 20px
.isso-postbox.preview-mode > .form-wrapper .textarea { );
display: none; }
} > .notification-section {
.isso-postbox.preview-mode > .form-wrapper .preview { display: none;
display: block; padding-bottom: 10px;
} }
.isso-postbox.preview-mode > .form-wrapper input[name="edit"] { }
display: inline; .isso-postbox > .form-wrapper .preview,
} .isso-postbox > .form-wrapper input[name="edit"],
.isso-postbox > .form-wrapper .preview { .isso-postbox.preview-mode > .form-wrapper input[name="preview"],
background-color: #303030; .isso-postbox.preview-mode > .form-wrapper .textarea {
background: repeating-linear-gradient( display: none;
-45deg, }
#303030, .isso-postbox.preview-mode > .form-wrapper{
#303030 10px, .preview {
#232323 10px, display: block;
#232323 20px }
); input[name="edit"] {
} display: inline;
.isso-postbox > .form-wrapper > .notification-section { }
display: none; }
padding-bottom: 10px;
} }
@media screen and (max-width:600px) { @media screen and (max-width:600px) {
.isso-postbox > .form-wrapper > .auth-section .input-wrapper { .isso-postbox > .form-wrapper > .auth-section .input-wrapper {
display: block; display: block;
max-width: 100%; max-width: 100%;
margin: 0 0 .3em; margin: 0 0 .3em;
} input {
.isso-postbox > .form-wrapper > .auth-section .input-wrapper input { width: 100%;
width: 100%; }
} }
} }