Reduce whitespace and adjust blockquote style

This commit is contained in:
Helen Chong 2024-07-29 22:45:07 +08:00
parent 7d1beef35b
commit a8e1ef9f26
1 changed files with 41 additions and 120 deletions

View File

@ -26,9 +26,6 @@
font-weight: 700; font-weight: 700;
src: url('./../../fonts/IntelOneMono-BoldItalic.woff2') format('woff2'); src: url('./../../fonts/IntelOneMono-BoldItalic.woff2') format('woff2');
} }
html {
font-size: 16px;
}
*::selection { *::selection {
color: #202021; color: #202021;
background-color: #d090ff; background-color: #d090ff;
@ -43,15 +40,9 @@ body {
margin: 0em 0em 2rem 0em; margin: 0em 0em 2rem 0em;
min-width: 280px; min-width: 280px;
} }
body.preview { body.preview { margin: 0rem; }
margin: 0rem; p { margin: 1rem 0rem; }
} p.footnote-backrefs { font-size: 0.75em; }
p {
margin: 1rem 0rem;
}
p.footnote-backrefs {
font-size: 0.75em;
}
h1 { h1 {
font-size: 2em; font-size: 2em;
font-weight: bold; font-weight: bold;
@ -64,9 +55,7 @@ h2, h1.banner {
margin: 0.67em 0em; margin: 0.67em 0em;
padding: 0em; padding: 0em;
} }
h2.archive { h2.archive { margin: 2rem 0rem 0rem 0rem; }
margin: 2rem 0rem 0rem 0rem;
}
h3 { h3 {
font-size: 1em; font-size: 1em;
font-weight: bold; font-weight: bold;
@ -101,9 +90,7 @@ strong {
font: inherit; font: inherit;
font-weight: bold; font-weight: bold;
} }
address { address { font: inherit; }
font: inherit;
}
small { small {
font-weight: normal; font-weight: normal;
font-size: 0.75em; font-size: 0.75em;
@ -117,14 +104,12 @@ del {
text-decoration: line-through; text-decoration: line-through;
} }
figure, blockquote { figure, blockquote {
margin: 1rem; margin: 1rem 0;
padding: 1em 1.4em 1.4em;
font: inherit; font: inherit;
font-size: 1rem;
page-break-inside: avoid; page-break-inside: avoid;
} }
blockquote { blockquote { border-inline-start: 0.1em solid currentColor; }
font-style: italic;
}
figcaption { figcaption {
font-size: 0.75em; font-size: 0.75em;
margin: 1rem 0rem; margin: 1rem 0rem;
@ -141,9 +126,7 @@ aside {
background-color: #383839; background-color: #383839;
} }
blockquote em, blockquote em,
aside em { aside em { font-style: normal; }
font-style: normal;
}
pre { pre {
font-family: "Intel One Mono", ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; font-family: "Intel One Mono", ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
font-size: 0.85em; font-size: 0.85em;
@ -173,14 +156,10 @@ hr {
border-top: 1px solid #666667; border-top: 1px solid #666667;
margin: 2em 0em; margin: 2em 0em;
} }
hr.post { hr.post { margin: 0em; }
margin: 0em;
}
hr:last-child, hr:last-child,
hr.post:last-of-type, hr.post:last-of-type,
hr + hr { hr + hr { display: none; }
display: none;
}
ul, ul,
ol.comments ul { ol.comments ul {
list-style: disc outside; list-style: disc outside;
@ -189,9 +168,7 @@ ol.comments ul {
padding: 0em; padding: 0em;
} }
ul ul, ul ul,
ol.comments ul ul { ol.comments ul ul { list-style-type: circle; }
list-style-type: circle;
}
ol, ol,
ol.comments ol { ol.comments ol {
list-style: decimal outside; list-style: decimal outside;
@ -200,9 +177,7 @@ ol.comments ol {
padding: 0em; padding: 0em;
} }
ol ol, ol ol,
ol.comments ol ol { ol.comments ol ol {list-style-type: lower-latin; }
list-style-type: lower-latin;
}
html[lang="ar"] ol ol, html[lang="ar"] ol ol,
html[lang="ar"] ol.comments ol ol { html[lang="ar"] ol.comments ol ol {
list-style-type: arabic-indic; list-style-type: arabic-indic;
@ -234,9 +209,7 @@ ul.navigation {
margin: 0em; margin: 0em;
display: inline; display: inline;
} }
ul.navigation > li { ul.navigation > li { display: inline; }
display: inline;
}
ul.archive { ul.archive {
list-style: none; list-style: none;
display: grid; display: grid;
@ -260,9 +233,7 @@ ol.comments > li {
border: 1px solid #666667; border: 1px solid #666667;
border-bottom: none; border-bottom: none;
} }
ol.comments > li#comment_shim { ol.comments > li#comment_shim { display: none; }
display: none;
}
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0em; border-spacing: 0em;
@ -295,9 +266,7 @@ form.search_box {
width: auto; width: auto;
display: block; display: block;
} }
form.comment_edit { form.comment_edit { width: 100%; }
width: 100%;
}
select[disabled], select[disabled],
textarea[disabled], textarea[disabled],
input[disabled], input[disabled],
@ -336,9 +305,7 @@ html[dir="rtl"] select {
background-position: center left 0.25em; background-position: center left 0.25em;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
html select:focus { html select:focus { background-image: url(../images/select_focus.svg); }
background-image: url(../images/select_focus.svg);
}
input[type="checkbox"], input[type="checkbox"],
input[type="radio"] { input[type="radio"] {
appearance: none; appearance: none;
@ -346,9 +313,7 @@ input[type="radio"] {
height: 20px; height: 20px;
padding: 0em; padding: 0em;
} }
input[type="radio"] { input[type="radio"] { border-radius: 50%; }
border-radius: 50%;
}
input[type="checkbox"]:checked { input[type="checkbox"]:checked {
background-image: url(../images/checkbox.svg); background-image: url(../images/checkbox.svg);
background-size: 1rem; background-size: 1rem;
@ -386,9 +351,7 @@ input::placeholder {
color: #ffffff; color: #ffffff;
opacity: 1; opacity: 1;
} }
input:focus::placeholder { input:focus::placeholder { color: #202021; }
color: #202021;
}
input#search_field { input#search_field {
display: inline; display: inline;
width: 10em; width: 10em;
@ -420,9 +383,7 @@ button {
font-size: inherit; font-size: inherit;
cursor: pointer; cursor: pointer;
} }
button:focus { button:focus { outline: none; }
outline: none;
}
label { label {
display: block; display: block;
margin-top: 1em; margin-top: 1em;
@ -487,9 +448,7 @@ div.doaction {
font-family: inherit; font-family: inherit;
margin: 1em 0em; margin: 1em 0em;
} }
div.admin { div.admin { margin: 1em 0em 0em 0em; }
margin: 1em 0em 0em 0em;
}
div#main > article, div.standalone { div#main > article, div.standalone {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
@ -543,9 +502,7 @@ section.post_archive_container {
overflow: hidden; overflow: hidden;
} }
article.video video, article.video video,
article.audio audio { article.audio audio { width: 100%; }
width: 100%;
}
a:link, a:link,
a:visited { a:visited {
color: #ffffff; color: #ffffff;
@ -589,9 +546,7 @@ div.traversal a:active {
transition: top 250ms cubic-bezier(0.5, -8, 0.2, 4); transition: top 250ms cubic-bezier(0.5, -8, 0.2, 4);
} }
div.next a:hover, div.next a:hover,
div.next a:active { div.next a:active { top: 1px; }
top: 1px;
}
section a:link, section a:link,
p a:link, p a:link,
section a:visited, section a:visited,
@ -606,9 +561,7 @@ p a:hover,
section a:focus, section a:focus,
p a:focus, p a:focus,
section a:active, section a:active,
p a:active { p a:active { color: #d090ff; }
color: #d090ff;
}
div.tag_cloud a.tag { div.tag_cloud a.tag {
display: inline-block; display: inline-block;
position: relative; position: relative;
@ -656,12 +609,8 @@ button:active {
background-color: #d090ff; background-color: #d090ff;
} }
div.doaction a.post_delete_link, div.doaction a.post_delete_link,
div.doaction a.delete_link { div.doaction a.delete_link { font-weight: bold; }
font-weight: bold; section.photo > a:focus { outline: #d090ff solid 4px; }
}
section.photo > a:focus {
outline: #d090ff solid 4px;
}
a.likes > img { a.likes > img {
display: inline-block; display: inline-block;
position: relative; position: relative;
@ -670,9 +619,7 @@ a.likes > img {
} }
a.likes:hover > img, a.likes:hover > img,
a.likes:focus > img, a.likes:focus > img,
a.likes:active > img { a.likes:active > img { top: 1px; }
top: 1px;
}
a.archive_post_link { a.archive_post_link {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
@ -686,9 +633,7 @@ a.archive_post_link {
} }
a.archive_post_link:hover, a.archive_post_link:hover,
a.archive_post_link:focus, a.archive_post_link:focus,
a.archive_post_link:active { a.archive_post_link:active { outline: #d090ff solid 4px; }
outline: #d090ff solid 4px;
}
img { img {
border-style: none; border-style: none;
margin: 0em; margin: 0em;
@ -713,17 +658,13 @@ section > *:first-child,
form > *:first-child, form > *:first-child,
aside > *:first-child, aside > *:first-child,
div.standalone > *:first-child, div.standalone > *:first-child,
ol.comments > li > *:first-child { ol.comments > li > *:first-child { margin-top: 0rem; }
margin-top: 0rem;
}
div#mast > *:last-child, div#mast > *:last-child,
article > *:last-child, article > *:last-child,
section > *:last-child, section > *:last-child,
form > *:last-child, form > *:last-child,
aside > *:last-child, aside > *:last-child,
div.standalone > *:last-child { div.standalone > *:last-child { margin-bottom: 0rem; }
margin-bottom: 0rem;
}
.top-btn, .top-btn,
.top-btn:hover { .top-btn:hover {
color: var(--clr-top-btn-txt); color: var(--clr-top-btn-txt);
@ -770,49 +711,29 @@ div.standalone > *:last-child {
) !important; ) !important;
animation: ajax_loading 2s linear infinite; animation: ajax_loading 2s linear infinite;
} }
.ajax_loading .doaction { .ajax_loading .doaction { visibility: hidden; }
visibility: hidden;
}
@keyframes ajax_loading { @keyframes ajax_loading {
from { from { background-position: 0px 0px; }
background-position: 0px 0px; to { background-position: 60px 30px; }
}
to {
background-position: 60px 30px;
}
} }
@media print { @media print {
html { html { font-size: 4.2mm; }
font-size: 4.2mm;
}
div#main > article, div#main > article,
div.standalone { div.standalone { page-break-inside: avoid; }
page-break-inside: avoid;
}
} }
@media screen and (max-width: 639px) { @media screen and (max-width: 639px) {
html { html { font-size: 14px; }
font-size: 14px;
}
aside { aside {
float: none; float: none;
max-width: 100%; max-width: 100%;
margin: 1rem 0rem; margin: 1rem 0rem;
} }
input, select { input, select { width: 100%; }
width: 100%; button#search_submit { display: none; }
}
button#search_submit {
display: none;
}
} }
@media (prefers-reduced-motion) { @media (prefers-reduced-motion) {
.ajax_loading { .ajax_loading { animation: none; }
animation: none;
}
} }
@media (prefers-contrast: more) { @media (prefers-contrast: more) {
body { body { background-color: #000000; }
background-color: #000000; }
}
}