Fixed the main content doesn't expand without the sidebar, also added correct scope the arbitary global element styles.

This commit is contained in:
Frank419 2024-08-29 15:18:13 +08:00
parent e5f36f4c58
commit 7a913f5e83

View File

@ -142,13 +142,11 @@ button:focus {
text-decoration: underline; text-decoration: underline;
} }
.minimalistflex-master a, .minimalistflex-master a {
.minimalistflex-master a * {
color: var(--minimalistflex-link); color: var(--minimalistflex-link);
} }
.minimalistflex-master a:hover, .minimalistflex-master a:hover {
.minimalistflex-master a:hover * {
color: var(--minimalistflex-link-hover); color: var(--minimalistflex-link-hover);
} }
@ -177,10 +175,10 @@ button:focus {
border-radius: 1em; border-radius: 1em;
} }
tt, .minimalistflex-master tt,
kbd, .minimalistflex-master kbd,
code, .minimalistflex-master code,
pre { .minimalistflex-master pre {
font-family: Hack, 'Courier New', Courier, monospace; font-family: Hack, 'Courier New', Courier, monospace;
background-color: #111111; background-color: #111111;
color: #ffffff; color: #ffffff;
@ -189,32 +187,32 @@ pre {
overflow-x: auto; overflow-x: auto;
} }
code:has(br) { .minimalistflex-master code:has(br) {
display: inline-block; display: inline-block;
} }
blockquote, .minimalistflex-master blockquote,
address { .minimalistflex-master address {
border-left: solid 3px var(--minimalistflex-tint); border-left: solid 3px var(--minimalistflex-tint);
padding-left: 1em; padding-left: 1em;
} }
dt { .minimalistflex-master dt {
font-weight: bold; font-weight: bold;
} }
table { .minimalistflex-master table {
border: none; border: none;
border-collapse: collapse; border-collapse: collapse;
} }
table thead, .minimalistflex-master table thead,
table tbody tr:not(:last-child) { .minimalistflex-master table tbody tr:not(:last-child) {
border-bottom: solid 1px var(--minimalistflex-default); border-bottom: solid 1px var(--minimalistflex-default);
} }
table thead, .minimalistflex-master table thead,
table tbody tr:nth-child(2n) { .minimalistflex-master table tbody tr:nth-child(2n) {
background-color: color-mix( background-color: color-mix(
in srgb, in srgb,
#f0f0f0, #f0f0f0,
@ -226,17 +224,19 @@ table tbody tr:nth-child(2n) {
text-align: center; text-align: center;
} }
a[target=_blank] { .minimalistflex-master a[target=_blank] {
margin-left: 1.5em; padding-left: 1em;
position: relative;
} }
a[target=_blank]::before { .minimalistflex-master a[target=_blank]::before {
content: "\f504"; content: "\f504";
font-family: "Dashicons"; font-family: "Dashicons";
display: inline-block; display: inline-block;
position: absolute; position: absolute;
top: calc(1em + 3px); font-size: 14px;
left: 1em; top: -5px;
left: 0;
} }
/* /*
@ -464,7 +464,6 @@ a[target=_blank]::before {
.minimalistflex-master { .minimalistflex-master {
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: stretch;
} }
.minimalistflex-master.minimalistflex-sidebar-layout-right { .minimalistflex-master.minimalistflex-sidebar-layout-right {
@ -480,6 +479,10 @@ a[target=_blank]::before {
background-color: var(--minimalistflex-level1); background-color: var(--minimalistflex-level1);
} }
.minimalistflex-master.minimalistflex-sidebar-layout-no .minimalistflex-content {
width: 100%;
}
.minimalistflex-sidebar { .minimalistflex-sidebar {
width: 33%; width: 33%;
background-color: var(--minimalistflex-level2); background-color: var(--minimalistflex-level2);