refactor: rename variable
This commit is contained in:
@@ -101,17 +101,20 @@ html[theme-color-scheme='day'] {
|
||||
--color-theme-framed: ;
|
||||
--color-theme-menu: ;
|
||||
--color-theme-header: ;
|
||||
--color-theme-scrollbar: rgba(134, 134, 134, 0.45) rgba(255, 255, 255, 0);
|
||||
--list-theme-marker: "►";
|
||||
--font-theme-size: 1rem;
|
||||
--line-theme-height: calc(var(--font-theme-size) * 1.54);
|
||||
--radius-theme-default: 0;
|
||||
--font-theme-default: 'JetBrains Mono';
|
||||
--font-theme-fallback: -apple-system, BlinkMacSystemFont, 'segoe ui', Roboto, Oxygen,
|
||||
--size-theme-font: 1rem;
|
||||
--height-theme-line: calc(var(--size-theme-font) * 1.54);
|
||||
--radius-theme-border: 0;
|
||||
--family-theme-font: 'JetBrains Mono';
|
||||
--family-theme-fallback-font: -apple-system, BlinkMacSystemFont, 'segoe ui', Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, 'open sans', 'helvetica neue', Arial, 'Noto Sans',
|
||||
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
||||
--scrollbar-theme-width: thin;
|
||||
--scrollbar-theme-color: rgba(134, 134, 134, 0.45) rgba(255, 255, 255, 0);
|
||||
--font-theme-lig: none;
|
||||
--width-theme-scrollbar: thin;
|
||||
--lig-theme-font: none;
|
||||
--width-theme-border: calc(var(--size-theme-font) * 0.125);
|
||||
--style-theme-border: solid;
|
||||
--style-theme-title-divider: dashed;
|
||||
}
|
||||
```
|
||||
|
||||
@@ -119,7 +122,7 @@ html[theme-color-scheme='day'] {
|
||||
|
||||
```css
|
||||
html[theme-color-scheme='matrix'] {
|
||||
--font-theme-default: '-apple-system'
|
||||
--family-theme-font: '-apple-system'
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ a.button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: calc(var(--font-theme-size) * 0.5) calc(var(--font-theme-size) * 1.125);
|
||||
padding: calc(var(--size-theme-font) * 0.5) calc(var(--size-theme-font) * 1.125);
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
font: inherit;
|
||||
@@ -26,7 +26,7 @@ button.outline,
|
||||
a.button.outline {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
padding: calc(var(--font-theme-size) * 0.5) calc(var(--font-theme-size) * 1.125);
|
||||
padding: calc(var(--size-theme-font) * 0.5) calc(var(--size-theme-font) * 1.125);
|
||||
}
|
||||
|
||||
button.outline :hover,
|
||||
@@ -40,20 +40,20 @@ button.link,
|
||||
.button.link,
|
||||
a.button.link {
|
||||
background: none;
|
||||
font-size: var(--font-theme-size);
|
||||
font-size: var(--size-theme-font);
|
||||
}
|
||||
|
||||
button.small,
|
||||
.button.small,
|
||||
a.button.small {
|
||||
font-size: calc(var(--font-theme-size) * 0.8);
|
||||
font-size: calc(var(--size-theme-font) * 0.8);
|
||||
}
|
||||
|
||||
button.wide,
|
||||
.button.wide,
|
||||
a.button.wide {
|
||||
min-width: calc(var(--font-theme-size) * 12.5);
|
||||
padding: calc(var(--font-theme-size) * 0.875) calc(var(--font-theme-size) * 1.5);
|
||||
min-width: calc(var(--size-theme-font) * 12.5);
|
||||
padding: calc(var(--size-theme-font) * 0.875) calc(var(--size-theme-font) * 1.5);
|
||||
}
|
||||
|
||||
a.button.inline {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
comment-widget {
|
||||
--halo-cw-base-font-family: var(--font-theme-default) !important;
|
||||
--halo-cw-base-rounded: var(--radius-theme-default) !important;
|
||||
--halo-cw-base-font-size: var(--font-theme-size) !important;
|
||||
--halo-cw-base-font-family: var(--family-theme-font) !important;
|
||||
--halo-cw-base-rounded: var(--radius-theme-border) !important;
|
||||
--halo-cw-base-font-size: var(--size-theme-font) !important;
|
||||
|
||||
--halo-cw-primary-1-color: var(--color-theme-accent) !important;
|
||||
--halo-cw-primary-2-color: var(--color-theme-accent) !important;
|
||||
@@ -25,10 +25,10 @@ comment-widget {
|
||||
// --halo-cw-avatar-rounded:
|
||||
// --halo-cw-avatar-size
|
||||
|
||||
--halo-comment-widget-base-font-family: var(--font-theme-default) !important;
|
||||
--halo-comment-widget-base-border-radius: var(--radius-theme-default) !important;
|
||||
--halo-comment-widget-base-font-size: var(--font-theme-size) !important;
|
||||
--halo-comment-widget-base-line-height: var(--line-theme-height) !important;
|
||||
--halo-comment-widget-base-font-family: var(--family-theme-font) !important;
|
||||
--halo-comment-widget-base-border-radius: var(--radius-theme-border) !important;
|
||||
--halo-comment-widget-base-font-size: var(--size-theme-font) !important;
|
||||
--halo-comment-widget-base-line-height: var(--height-theme-line) !important;
|
||||
--halo-comment-widget-base-color: var(--color-theme-foreground) !important;
|
||||
--halo-comment-widget-base-info-color: var(--color-theme-foreground) !important;
|
||||
--halo-comment-widget-component-form-input-bg-color: var(--color-theme-background) !important;
|
||||
@@ -58,5 +58,5 @@ comment-widget {
|
||||
}
|
||||
|
||||
.comment {
|
||||
margin-top: calc(var(--font-theme-size) * 2.5);
|
||||
margin-top: calc(var(--size-theme-font) * 2.5);
|
||||
}
|
||||
+16
-16
@@ -1,7 +1,7 @@
|
||||
@use "variables" as *;
|
||||
|
||||
.footer {
|
||||
padding: calc(var(--font-theme-size) * 1.25) 0;
|
||||
padding: calc(var(--size-theme-font) * 1.25) 0;
|
||||
flex-grow: 0;
|
||||
opacity: 0.65;
|
||||
position: relative;
|
||||
@@ -13,10 +13,10 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: calc(var(--font-theme-size) * 1.25);
|
||||
max-width: calc(var(--font-theme-size) * 75);
|
||||
padding: calc(var(--size-theme-font) * 1.25);
|
||||
max-width: calc(var(--size-theme-font) * 75);
|
||||
margin: 0 auto;
|
||||
gap: calc(var(--font-theme-size) * 0.75);
|
||||
gap: calc(var(--size-theme-font) * 0.75);
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
@@ -28,7 +28,7 @@
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: calc(var(--font-theme-size) * 0.9);
|
||||
font-size: calc(var(--size-theme-font) * 0.9);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -42,9 +42,9 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: calc(var(--font-theme-size) * 0.625);
|
||||
gap: calc(var(--size-theme-font) * 0.625);
|
||||
flex-wrap: wrap;
|
||||
font-size: calc(var(--font-theme-size) * 0.9);
|
||||
font-size: calc(var(--size-theme-font) * 0.9);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -58,42 +58,42 @@
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: calc(var(--font-theme-size) * 0.625);
|
||||
gap: calc(var(--size-theme-font) * 0.625);
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.footer-inner {
|
||||
padding: calc(var(--font-theme-size) * 0.9375) calc(var(--font-theme-size) * 0.625);
|
||||
gap: calc(var(--font-theme-size) * 0.625);
|
||||
padding: calc(var(--size-theme-font) * 0.9375) calc(var(--size-theme-font) * 0.625);
|
||||
gap: calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
.footer-copyright-engine {
|
||||
font-size: calc(var(--font-theme-size) * 0.8125);
|
||||
font-size: calc(var(--size-theme-font) * 0.8125);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.footer-copyright-site {
|
||||
flex-direction: column;
|
||||
gap: calc(var(--font-theme-size) * 0.5);
|
||||
font-size: calc(var(--font-theme-size) * 0.8125);
|
||||
gap: calc(var(--size-theme-font) * 0.5);
|
||||
font-size: calc(var(--size-theme-font) * 0.8125);
|
||||
}
|
||||
|
||||
.footer-icp p {
|
||||
flex-direction: column;
|
||||
gap: calc(var(--font-theme-size) * 0.3125);
|
||||
gap: calc(var(--size-theme-font) * 0.3125);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.footer-inner {
|
||||
padding: calc(var(--font-theme-size) * 0.75) calc(var(--font-theme-size) * 0.5);
|
||||
padding: calc(var(--size-theme-font) * 0.75) calc(var(--size-theme-font) * 0.5);
|
||||
}
|
||||
|
||||
.footer-copyright-engine,
|
||||
.footer-copyright-site {
|
||||
font-size: calc(var(--font-theme-size) * 0.75);
|
||||
font-size: calc(var(--size-theme-font) * 0.75);
|
||||
}
|
||||
|
||||
.footer-copyright-engine span,
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
#theme-toggle, #search-button, #pixel-toggle {
|
||||
background-color: transparent;
|
||||
color: var(--color-theme-header);
|
||||
border: var(--border-theme-width) solid var(--color-theme-header);
|
||||
margin: 0 0 0 calc(var(--font-theme-size) * 0.5);
|
||||
border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-header);
|
||||
margin: 0 0 0 calc(var(--size-theme-font) * 0.5);
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
@@ -25,10 +25,10 @@
|
||||
|
||||
.header__logo::after {
|
||||
content: "";
|
||||
background: repeating-linear-gradient(90deg, var(--color-theme-header), var(--color-theme-header) var(--border-theme-width), transparent 0, transparent calc(var(--font-theme-size) * 0.625));
|
||||
background: repeating-linear-gradient(90deg, var(--color-theme-header), var(--color-theme-header) var(--width-theme-border), transparent 0, transparent calc(var(--size-theme-font) * 0.625));
|
||||
display: block;
|
||||
width: 100%;
|
||||
right: calc(var(--font-theme-size) * 0.625);
|
||||
right: calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
.header__logo a {
|
||||
@@ -44,7 +44,7 @@
|
||||
background: var(--color-theme-header);
|
||||
color: var(--color-theme-background);
|
||||
font-weight: 500;
|
||||
padding: calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.625);
|
||||
padding: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
@media print {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
}
|
||||
|
||||
.button-icon {
|
||||
width: calc(var(--font-theme-size) * 1.85);
|
||||
width: calc(var(--size-theme-font) * 1.85);
|
||||
}
|
||||
|
||||
html[pixel_style='false'] .icon-regular {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.link-section {
|
||||
margin-bottom: calc(var(--font-theme-size) * 2);
|
||||
margin-bottom: calc(var(--size-theme-font) * 2);
|
||||
}
|
||||
|
||||
.link-table {
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
.link-item {
|
||||
display: block;
|
||||
margin-bottom: calc(var(--font-theme-size) * 0.5);
|
||||
margin-bottom: calc(var(--size-theme-font) * 0.5);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
@@ -20,12 +20,12 @@
|
||||
|
||||
.link-container {
|
||||
display: flex;
|
||||
padding: calc(var(--font-theme-size) * 0.25);
|
||||
padding: calc(var(--size-theme-font) * 0.25);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.link-logo {
|
||||
width: calc(var(--font-theme-size) * 4);
|
||||
width: calc(var(--size-theme-font) * 4);
|
||||
height: auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -35,7 +35,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
min-height: calc(var(--font-theme-size) * 4);
|
||||
min-height: calc(var(--size-theme-font) * 4);
|
||||
}
|
||||
|
||||
.link-title {
|
||||
@@ -45,12 +45,12 @@
|
||||
|
||||
.link-url {
|
||||
color: var(--color-theme-accent);
|
||||
font-size: calc(var(--font-theme-size) * 0.9);
|
||||
font-size: calc(var(--size-theme-font) * 0.9);
|
||||
}
|
||||
|
||||
.link-description {
|
||||
margin: 0;
|
||||
color: var(--color-theme-foreground);
|
||||
font-size: calc(var(--font-theme-size) * 0.9);
|
||||
font-size: calc(var(--size-theme-font) * 0.9);
|
||||
line-height: 1.4;
|
||||
}
|
||||
+84
-82
@@ -10,19 +10,20 @@
|
||||
--color-theme-framed: ;
|
||||
--color-theme-menu: ;
|
||||
--color-theme-header: ;
|
||||
--color-theme-scrollbar: rgba(134, 134, 134, 0.45) rgba(255, 255, 255, 0);
|
||||
--list-theme-marker: "►";
|
||||
--font-theme-size: 1rem;
|
||||
--line-theme-height: calc(var(--font-theme-size) * 1.54);
|
||||
--radius-theme-default: 0;
|
||||
--font-theme-default: 'JetBrains Mono';
|
||||
--font-theme-fallback: -apple-system, BlinkMacSystemFont, 'segoe ui', Roboto, Oxygen,
|
||||
--size-theme-font: 1rem;
|
||||
--height-theme-line: calc(var(--size-theme-font) * 1.54);
|
||||
--radius-theme-border: 0;
|
||||
--family-theme-font: 'JetBrains Mono';
|
||||
--family-theme-fallback-font: -apple-system, BlinkMacSystemFont, 'segoe ui', Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, 'open sans', 'helvetica neue', Arial, 'Noto Sans',
|
||||
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
||||
--scrollbar-theme-width: thin;
|
||||
--scrollbar-theme-color: rgba(134, 134, 134, 0.45) rgba(255, 255, 255, 0);
|
||||
--font-theme-lig: none;
|
||||
--border-theme-width: calc(var(--font-theme-size) * 0.125);
|
||||
white-space-collapse: discard;
|
||||
--width-theme-scrollbar: thin;
|
||||
--lig-theme-font: none;
|
||||
--width-theme-border: calc(var(--size-theme-font) * 0.125);
|
||||
--style-theme-border: solid;
|
||||
--style-theme-title-divider: dashed;
|
||||
}
|
||||
|
||||
html {
|
||||
@@ -31,17 +32,17 @@ html {
|
||||
}
|
||||
|
||||
html[pixel_style='true'] {
|
||||
--font-theme-default: 'Fusion Pixel 12px P zh_hans';
|
||||
--family-theme-font: 'Fusion Pixel 12px P zh_hans';
|
||||
}
|
||||
|
||||
html[system_font_enable='true']:not([pixel_style='true']) {
|
||||
--font-theme-default: system-ui;
|
||||
--family-theme-font: system-ui;
|
||||
}
|
||||
|
||||
* {
|
||||
scrollbar-width: var(--scrollbar-theme-width) !important;
|
||||
scrollbar-color: var(--scrollbar-theme-color);
|
||||
font-variant-ligatures: var(--font-theme-lig);
|
||||
scrollbar-width: var(--width-theme-scrollbar) !important;
|
||||
scrollbar-color: var(--color-theme-scrollbar);
|
||||
font-variant-ligatures: var(--lig-theme-font);
|
||||
}
|
||||
|
||||
*,
|
||||
@@ -54,9 +55,9 @@ html[system_font_enable='true']:not([pixel_style='true']) {
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: var(--font-theme-default), var(--font-theme-fallback), sans-serif;
|
||||
font-size: var(--font-theme-size);
|
||||
line-height: var(--line-theme-height);
|
||||
font-family: var(--family-theme-font), var(--family-theme-fallback-font), sans-serif;
|
||||
font-size: var(--size-theme-font);
|
||||
line-height: var(--height-theme-line);
|
||||
background-color: var(--color-theme-background);
|
||||
color: var(--color-theme-foreground);
|
||||
text-rendering: optimizelegibility;
|
||||
@@ -65,7 +66,7 @@ body {
|
||||
text-size-adjust: 100%;
|
||||
|
||||
@media (max-width: $phone-max-width) {
|
||||
font-size: calc(var(--font-theme-size) * 0.95);
|
||||
font-size: calc(var(--size-theme-font) * 0.95);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,13 +78,13 @@ body {
|
||||
.sidebar-left,
|
||||
.sidebar-right {
|
||||
width: 20%;
|
||||
padding: calc(var(--font-theme-size) * 1.25);
|
||||
padding: calc(var(--size-theme-font) * 1.25);
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: calc(var(--font-theme-size) * 2.5);
|
||||
padding: calc(var(--size-theme-font) * 2.5);
|
||||
width: 60%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@@ -106,7 +107,7 @@ body {
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
padding: calc(var(--font-theme-size) * 1.25);
|
||||
padding: calc(var(--size-theme-font) * 1.25);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,24 +122,24 @@ body {
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: calc(var(--font-theme-size) * 1.45);
|
||||
font-size: calc(var(--size-theme-font) * 1.45);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: calc(var(--font-theme-size) * 1.35);
|
||||
font-size: calc(var(--size-theme-font) * 1.35);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: calc(var(--font-theme-size) * 1.15);
|
||||
font-size: calc(var(--size-theme-font) * 1.15);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: calc(var(--font-theme-size) * 1);
|
||||
font-size: calc(var(--size-theme-font) * 1);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
@@ -155,7 +156,7 @@ img,
|
||||
figure,
|
||||
video,
|
||||
table {
|
||||
margin: calc(var(--font-theme-size) * 1.5625) 0;
|
||||
margin: calc(var(--size-theme-font) * 1.5625) 0;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -171,9 +172,9 @@ button {
|
||||
text-align: center;
|
||||
background: transparent;
|
||||
color: var(--color-theme-accent);
|
||||
padding: calc(var(--font-theme-size) * 0.315) calc(var(--font-theme-size) * 1.125);
|
||||
border: calc(var(--border-theme-width) * 2) solid var(--color-theme-accent);
|
||||
border-radius: var(--radius-theme-default);
|
||||
padding: calc(var(--size-theme-font) * 0.315) calc(var(--size-theme-font) * 1.125);
|
||||
border: calc(var(--width-theme-border) * 2) var(--style-theme-border) var(--color-theme-accent);
|
||||
border-radius: var(--radius-theme-border);
|
||||
transition: background 0.15s linear;
|
||||
appearance: none;
|
||||
cursor: pointer;
|
||||
@@ -192,9 +193,9 @@ a:focus-visible {
|
||||
|
||||
fieldset {
|
||||
display: inline-block;
|
||||
border: var(--border-theme-width) solid var(--color-theme-foreground);
|
||||
border-radius: var(--radius-theme-default);
|
||||
padding: calc(var(--font-theme-size) * 0.625);
|
||||
border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-foreground);
|
||||
border-radius: var(--radius-theme-border);
|
||||
padding: calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
fieldset *:first-child {
|
||||
@@ -206,7 +207,7 @@ fieldset select,
|
||||
fieldset textarea,
|
||||
fieldset label,
|
||||
fieldset button {
|
||||
margin-top: calc(var(--line-theme-height) * 0.5);
|
||||
margin-top: calc(var(--height-theme-line) * 0.5);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -223,9 +224,9 @@ textarea,
|
||||
select {
|
||||
background: transparent;
|
||||
color: var(--color-theme-foreground);
|
||||
border: calc(var(--border-theme-width) / 2) solid var(--color-theme-foreground);
|
||||
border-radius: var(--radius-theme-default);
|
||||
padding: calc(var(--font-theme-size) * 0.625);
|
||||
border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-foreground);
|
||||
border-radius: var(--radius-theme-border);
|
||||
padding: calc(var(--size-theme-font) * 0.625);
|
||||
font: inherit;
|
||||
appearance: none;
|
||||
}
|
||||
@@ -241,8 +242,8 @@ textarea:active,
|
||||
select:focus-visible,
|
||||
select:active {
|
||||
border-color: var(--color-theme-accent);
|
||||
outline: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-accent);
|
||||
outline-offset: calc(var(--font-theme-size) * 0.125);
|
||||
outline: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-accent);
|
||||
outline-offset: calc(var(--size-theme-font) * 0.125);
|
||||
}
|
||||
|
||||
input:active,
|
||||
@@ -259,9 +260,9 @@ select {
|
||||
),
|
||||
linear-gradient(135deg, var(--color-theme-foreground) 50%, transparent 50%);
|
||||
background-position: calc(100% - 1.25em), calc(100% - 1em);
|
||||
background-size: calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.3125), calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.3125);
|
||||
background-size: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.3125), calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.3125);
|
||||
background-repeat: no-repeat;
|
||||
padding-right: calc(var(--font-theme-size) * 2.5);
|
||||
padding-right: calc(var(--size-theme-font) * 2.5);
|
||||
}
|
||||
|
||||
select option {
|
||||
@@ -270,7 +271,7 @@ select option {
|
||||
|
||||
input[type="checkbox"] {
|
||||
vertical-align: middle;
|
||||
padding: calc(var(--font-theme-size) * 0.625);
|
||||
padding: calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked {
|
||||
@@ -280,8 +281,9 @@ input[type="checkbox"]:checked {
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
border-radius: var(--radius-theme-default);
|
||||
padding: calc(var(--font-theme-size) * 0.25);
|
||||
border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-foreground);
|
||||
border-radius: var(--radius-theme-border);
|
||||
padding: calc(var(--size-theme-font) * 0.25);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -324,11 +326,11 @@ figure figcaption {
|
||||
background: var(--color-theme-accent);
|
||||
color: var(--color-theme-background);
|
||||
text-align: center;
|
||||
font-size: var(--font-theme-size);
|
||||
font-size: var(--size-theme-font);
|
||||
font-weight: normal;
|
||||
margin-top: calc(var(--font-theme-size) * -0.5);
|
||||
padding: 0 calc(var(--font-theme-size) * 0.5);
|
||||
border-radius: 0 0 var(--radius-theme-default) var(--radius-theme-default);
|
||||
margin-top: calc(var(--size-theme-font) * -0.5);
|
||||
padding: 0 calc(var(--size-theme-font) * 0.5);
|
||||
border-radius: 0 0 var(--radius-theme-border) var(--radius-theme-border);
|
||||
}
|
||||
|
||||
figure figcaption p:first-child {
|
||||
@@ -358,18 +360,18 @@ kbd {
|
||||
font-family: inherit !important;
|
||||
font-feature-settings: normal;
|
||||
background: color-mix(in srgb, var(--color-theme-foreground) 15%, transparent);
|
||||
border: calc(var(--border-theme-width) / 2) solid var(--code-border);
|
||||
padding: calc(var(--font-theme-size) * 0.0625) calc(var(--font-theme-size) * 0.375);
|
||||
margin: 0 calc(var(--font-theme-size) * 0.125);
|
||||
font-size: calc(var(--font-theme-size) * 0.95);
|
||||
border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--code-border);
|
||||
padding: calc(var(--size-theme-font) * 0.0625) calc(var(--size-theme-font) * 0.375);
|
||||
margin: 0 calc(var(--size-theme-font) * 0.125);
|
||||
font-size: calc(var(--size-theme-font) * 0.95);
|
||||
}
|
||||
|
||||
kbd {
|
||||
border-top: calc(var(--border-theme-width) / 2) solid color-mix(in srgb, var(--color-theme-accent) 25%, transparent);
|
||||
border-left: calc(var(--border-theme-width) / 2) solid var(--color-theme-accent);
|
||||
border-right: calc(var(--border-theme-width) / 2) solid var(--color-theme-accent);
|
||||
border-bottom: calc(var(--border-theme-width) * 2) solid var(--color-theme-accent);
|
||||
border-radius: calc(var(--font-theme-size) * 0.25);
|
||||
border-top: calc(var(--width-theme-border) / 2) var(--style-theme-border) color-mix(in srgb, var(--color-theme-accent) 25%, transparent);
|
||||
border-left: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-accent);
|
||||
border-right: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-accent);
|
||||
border-bottom: calc(var(--width-theme-border) * 2) var(--style-theme-border) var(--color-theme-accent);
|
||||
border-radius: calc(var(--size-theme-font) * 0.25);
|
||||
}
|
||||
|
||||
code code {
|
||||
@@ -383,11 +385,11 @@ pre {
|
||||
tab-size: 4;
|
||||
background: color-mix(in srgb, var(--color-theme-foreground) 5%, transparent) !important;
|
||||
color: var(--color-theme-foreground);
|
||||
padding: calc(var(--font-theme-size) * 0.625) calc(var(--font-theme-size) * 0.625);
|
||||
font-size: calc(var(--font-theme-size) * 0.95) !important;
|
||||
padding: calc(var(--size-theme-font) * 0.625) calc(var(--size-theme-font) * 0.625);
|
||||
font-size: calc(var(--size-theme-font) * 0.95) !important;
|
||||
overflow: auto;
|
||||
border-radius: var(--radius-theme-default);
|
||||
border: calc(var(--border-theme-width) / 2) solid color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
|
||||
border-radius: var(--radius-theme-border);
|
||||
border: calc(var(--width-theme-border) / 2) var(--style-theme-border) color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
|
||||
|
||||
@media (max-width: $phone-max-width) {
|
||||
white-space: pre-wrap;
|
||||
@@ -414,11 +416,11 @@ abbr {
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: calc(var(--font-theme-size) * -0.25);
|
||||
bottom: calc(var(--size-theme-font) * -0.25);
|
||||
}
|
||||
|
||||
sup {
|
||||
top: calc(var(--font-theme-size) * -0.25);
|
||||
top: calc(var(--size-theme-font) * -0.25);
|
||||
}
|
||||
|
||||
mark {
|
||||
@@ -428,9 +430,9 @@ mark {
|
||||
|
||||
blockquote {
|
||||
position: relative;
|
||||
border-left: var(--border-theme-width) solid var(--color-theme-accent);
|
||||
margin: calc(var(--font-theme-size) * 0.625) 0 calc(var(--font-theme-size) * 0.625) 0;
|
||||
padding: calc(var(--font-theme-size) * 1.25);
|
||||
border-left: var(--width-theme-border) var(--style-theme-border) var(--color-theme-accent);
|
||||
margin: calc(var(--size-theme-font) * 0.625) 0 calc(var(--size-theme-font) * 0.625) 0;
|
||||
padding: calc(var(--size-theme-font) * 1.25);
|
||||
}
|
||||
|
||||
blockquote p:first-child {
|
||||
@@ -449,23 +451,23 @@ table {
|
||||
table,
|
||||
th,
|
||||
td {
|
||||
border: var(--border-theme-width) solid var(--color-theme-foreground);
|
||||
padding: calc(var(--font-theme-size) * 0.625);
|
||||
border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-foreground);
|
||||
padding: calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
th {
|
||||
border-style: solid;
|
||||
border-style: var(--style-theme-border);
|
||||
color: var(--color-theme-foreground);
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: calc(var(--font-theme-size) * 0.04);
|
||||
letter-spacing: calc(var(--size-theme-font) * 0.04);
|
||||
}
|
||||
|
||||
hr {
|
||||
width: 100%;
|
||||
border: none;
|
||||
background: var(--color-theme-accent);
|
||||
height: calc(var(--font-theme-size) * 0.125);
|
||||
height: calc(var(--size-theme-font) * 0.125);
|
||||
}
|
||||
|
||||
/* One Heading Size */
|
||||
@@ -475,9 +477,9 @@ hr {
|
||||
.headings--one-size h4,
|
||||
.headings--one-size h5,
|
||||
.headings--one-size h6 {
|
||||
font-size: calc(var(--font-theme-size) * 1.4);
|
||||
font-size: calc(var(--size-theme-font) * 1.4);
|
||||
line-height: 1.3;
|
||||
margin: calc(var(--font-theme-size) * 1.25) 0;
|
||||
margin: calc(var(--size-theme-font) * 1.25) 0;
|
||||
}
|
||||
|
||||
.headings--one-size ~ h1:first-child,
|
||||
@@ -486,7 +488,7 @@ hr {
|
||||
.headings--one-size ~ h4:first-child,
|
||||
.headings--one-size ~ h5:first-child,
|
||||
.headings--one-size ~ h6:first-child {
|
||||
margin-top: calc(var(--font-theme-size) * 1.25);
|
||||
margin-top: calc(var(--size-theme-font) * 1.25);
|
||||
}
|
||||
|
||||
blockquote.twitter-tweet {
|
||||
@@ -494,8 +496,8 @@ blockquote.twitter-tweet {
|
||||
background: var(--color-theme-background);
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
border: calc(var(--border-theme-width) / 2) solid var(--color-theme-accent);
|
||||
padding-top: calc(var(--font-theme-size) * 3.75);
|
||||
border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-accent);
|
||||
padding-top: calc(var(--size-theme-font) * 3.75);
|
||||
}
|
||||
|
||||
blockquote.twitter-tweet a {
|
||||
@@ -506,8 +508,8 @@ blockquote.twitter-tweet a {
|
||||
blockquote.twitter-tweet::before {
|
||||
content: "> From X:";
|
||||
position: absolute;
|
||||
top: calc(var(--font-theme-size) * 1.25);
|
||||
left: calc(var(--font-theme-size) * 1.25);
|
||||
top: calc(var(--size-theme-font) * 1.25);
|
||||
left: calc(var(--size-theme-font) * 1.25);
|
||||
color: var(--color-theme-accent);
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -540,11 +542,11 @@ blockquote.twitter-tweet::before {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
width: calc(var(--font-theme-size) * 3.75);
|
||||
height: calc(var(--font-theme-size) * 3.75);
|
||||
width: calc(var(--size-theme-font) * 3.75);
|
||||
height: calc(var(--size-theme-font) * 3.75);
|
||||
}
|
||||
|
||||
iframe[src*="youtube.com"] {
|
||||
border: calc(var(--border-theme-width) * 2) solid var(--color-theme-accent) !important;
|
||||
padding: calc(var(--font-theme-size) * 0.5) !important;
|
||||
border: calc(var(--width-theme-border) * 2) var(--style-theme-border) var(--color-theme-accent) !important;
|
||||
padding: calc(var(--size-theme-font) * 0.5) !important;
|
||||
}
|
||||
+15
-15
@@ -4,7 +4,7 @@
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
margin: calc(var(--font-theme-size) * 1.25) calc(var(--font-theme-size) * 0.0625);
|
||||
margin: calc(var(--size-theme-font) * 1.25) calc(var(--size-theme-font) * 0.0625);
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
@@ -33,29 +33,29 @@
|
||||
}
|
||||
|
||||
li:not(:last-of-type) {
|
||||
margin-bottom: calc(var(--font-theme-size) * 0.625);
|
||||
margin-bottom: calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
.navigation-menu__inner li {
|
||||
margin: 0;
|
||||
padding: calc(var(--font-theme-size) * 0.3125);
|
||||
padding: calc(var(--size-theme-font) * 0.3125);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navigation-menu__inner > li {
|
||||
flex: 0 0 auto;
|
||||
margin-bottom: calc(var(--font-theme-size) * 0.625);
|
||||
margin-bottom: calc(var(--size-theme-font) * 0.625);
|
||||
white-space: nowrap;
|
||||
|
||||
@media (max-width: $phone-max-width) {
|
||||
margin: 0;
|
||||
padding: calc(var(--font-theme-size) * 0.3125);
|
||||
padding: calc(var(--size-theme-font) * 0.3125);
|
||||
}
|
||||
}
|
||||
|
||||
.navigation-menu__inner > li:not(:last-of-type) {
|
||||
margin-right: calc(var(--font-theme-size) * 1.25);
|
||||
margin-right: calc(var(--size-theme-font) * 1.25);
|
||||
}
|
||||
|
||||
.navigation-menu .spacer {
|
||||
@@ -75,16 +75,16 @@
|
||||
cursor: pointer;
|
||||
background-color: var(--color-theme-background) !important;
|
||||
margin-right: 0 !important;
|
||||
padding-left: calc(var(--font-theme-size) * 0.3125);
|
||||
padding-right: calc(var(--font-theme-size) * 0.3125);
|
||||
padding-left: calc(var(--size-theme-font) * 0.3125);
|
||||
padding-right: calc(var(--size-theme-font) * 0.3125);
|
||||
color: var(--color-theme-menu);
|
||||
user-select: none;
|
||||
border: none;
|
||||
display: inline-flex;
|
||||
|
||||
@media (max-width: $phone-max-width) {
|
||||
padding-left: calc(var(--font-theme-size) * 0.625);
|
||||
padding-right: calc(var(--font-theme-size) * 0.625);
|
||||
padding-left: calc(var(--size-theme-font) * 0.625);
|
||||
padding-right: calc(var(--size-theme-font) * 0.625);
|
||||
margin-bottom: 0 !important;
|
||||
outline: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
@@ -97,10 +97,10 @@
|
||||
position: absolute;
|
||||
background: var(--color-theme-background);
|
||||
color: var(--color-theme-accent);
|
||||
border: calc(var(--font-theme-size) * 0.125) solid var(--color-theme-menu);
|
||||
border: calc(var(--size-theme-font) * 0.125) solid var(--color-theme-menu);
|
||||
margin: 0;
|
||||
padding: calc(var(--font-theme-size) * 0.3125);
|
||||
top: calc(var(--font-theme-size) * 1.5625);
|
||||
padding: calc(var(--size-theme-font) * 0.3125);
|
||||
top: calc(var(--size-theme-font) * 1.5625);
|
||||
list-style: none;
|
||||
z-index: 99;
|
||||
|
||||
@@ -115,12 +115,12 @@
|
||||
}
|
||||
|
||||
.menu__dropdown > li:not(:last-of-type) {
|
||||
margin-bottom: calc(var(--font-theme-size) * 0.625);
|
||||
margin-bottom: calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
.menu__dropdown > li a {
|
||||
display: flex;
|
||||
padding: calc(var(--font-theme-size) * 0.3125);
|
||||
padding: calc(var(--size-theme-font) * 0.3125);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
.moment-media {
|
||||
display: grid;
|
||||
gap: calc(var(--font-theme-size) * 0.5);
|
||||
margin: var(--font-theme-size) 0;
|
||||
gap: calc(var(--size-theme-font) * 0.5);
|
||||
margin: var(--size-theme-font) 0;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.moment-media video {
|
||||
width: 100%;
|
||||
height: calc(var(--font-theme-size) * 12.5);
|
||||
height: calc(var(--size-theme-font) * 12.5);
|
||||
object-fit: cover;
|
||||
border-radius: var(--font-theme-size);
|
||||
border-radius: var(--size-theme-font);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
@@ -1,22 +1,22 @@
|
||||
@use "variables" as *;
|
||||
|
||||
.pagination {
|
||||
margin-top: calc(var(--font-theme-size) * 0.625);
|
||||
margin-top: calc(var(--size-theme-font) * 0.625);
|
||||
|
||||
.pagination__title {
|
||||
display: flex;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
margin: calc(var(--font-theme-size) * 0.625) 0 calc(var(--font-theme-size) * 0.625);
|
||||
margin: calc(var(--size-theme-font) * 0.625) 0 calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
.pagination__title-h {
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
padding: calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.625);
|
||||
padding: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.625);
|
||||
background: var(--color-theme-background);
|
||||
color: color-mix(in srgb, var(--color-theme-foreground) 65%, transparent);
|
||||
font-size: calc(var(--font-theme-size) * 0.8);
|
||||
font-size: calc(var(--size-theme-font) * 0.8);
|
||||
text-decoration: none;
|
||||
letter-spacing: 0.1em;
|
||||
z-index: 1;
|
||||
@@ -28,7 +28,7 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
margin-top: calc(var(--font-theme-size) * 0.9375);
|
||||
margin-top: calc(var(--size-theme-font) * 0.9375);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: calc(var(--font-theme-size) * 1.25);
|
||||
gap: calc(var(--size-theme-font) * 1.25);
|
||||
|
||||
@media (min-width: $phone-min-width) {
|
||||
flex-direction: row;
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
@media (max-width: $phone-max-width) {
|
||||
flex-direction: column;
|
||||
gap: calc(var(--font-theme-size) * 0.9375);
|
||||
gap: calc(var(--size-theme-font) * 0.9375);
|
||||
}
|
||||
|
||||
span {
|
||||
@@ -97,11 +97,11 @@
|
||||
}
|
||||
|
||||
.next .button__icon {
|
||||
margin-left: calc(var(--font-theme-size) * 0.5);
|
||||
margin-left: calc(var(--size-theme-font) * 0.5);
|
||||
}
|
||||
|
||||
.prev .button__icon {
|
||||
margin-right: calc(var(--font-theme-size) * 0.5);
|
||||
margin-right: calc(var(--size-theme-font) * 0.5);
|
||||
}
|
||||
|
||||
.pagination__buttons:has(span:only-child) {
|
||||
|
||||
+27
-27
@@ -1,12 +1,12 @@
|
||||
@use "variables" as *;
|
||||
|
||||
.index-content {
|
||||
margin: calc(var(--font-theme-size) * 1.5625) 0;
|
||||
margin: calc(var(--size-theme-font) * 1.5625) 0;
|
||||
}
|
||||
|
||||
.framed {
|
||||
border: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-framed);
|
||||
padding: calc(var(--font-theme-size) * 1.25);
|
||||
border: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-framed);
|
||||
padding: calc(var(--size-theme-font) * 1.25);
|
||||
}
|
||||
|
||||
.framed *:first-child {
|
||||
@@ -24,16 +24,16 @@
|
||||
.post {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: calc(var(--font-theme-size) * 1.875) 0;
|
||||
padding: calc(var(--size-theme-font) * 1.875) 0;
|
||||
}
|
||||
|
||||
.post:not(:last-of-type) {
|
||||
border-bottom: calc(var(--font-theme-size) * 0.0625) solid color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
|
||||
border-bottom: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
font-size: calc(var(--font-theme-size) * 0.96);
|
||||
margin-bottom: calc(var(--font-theme-size) * 0.3125);
|
||||
font-size: calc(var(--size-theme-font) * 0.96);
|
||||
margin-bottom: calc(var(--size-theme-font) * 0.3125);
|
||||
color: color-mix(in srgb, var(--color-theme-meta) 65%, transparent);
|
||||
}
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
position: relative;
|
||||
color: var(--color-theme-title);
|
||||
margin-top: 0 !important;
|
||||
margin-bottom: calc(var(--font-theme-size) * 0.9375) !important;
|
||||
padding-bottom: calc(var(--font-theme-size) * 0.9375) !important;
|
||||
margin-bottom: calc(var(--size-theme-font) * 0.9375) !important;
|
||||
padding-bottom: calc(var(--size-theme-font) * 0.9375) !important;
|
||||
text-decoration: none !important;
|
||||
font-weight: 400;
|
||||
}
|
||||
@@ -68,10 +68,10 @@
|
||||
.post-title::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: calc(var(--font-theme-size) * 0.01);
|
||||
bottom: calc(var(--size-theme-font) * 0.01);
|
||||
display: block;
|
||||
width: 100%;
|
||||
border-bottom: calc(var(--font-theme-size) * 0.125) dashed var(--color-theme-accent);
|
||||
border-bottom: calc(var(--size-theme-font) * 0.125) var(--style-theme-title-divider) var(--color-theme-accent);
|
||||
}
|
||||
|
||||
.post-title a {
|
||||
@@ -92,7 +92,7 @@
|
||||
}
|
||||
|
||||
.post-tags {
|
||||
margin-bottom: calc(var(--font-theme-size) * 0.3125);
|
||||
margin-bottom: calc(var(--size-theme-font) * 0.3125);
|
||||
font-size: inherit;
|
||||
color: var(--color-theme-tag);
|
||||
}
|
||||
@@ -114,25 +114,25 @@
|
||||
}
|
||||
|
||||
.post-meta .post-tags {
|
||||
font-size: calc(var(--font-theme-size) * 0.95);
|
||||
font-size: calc(var(--size-theme-font) * 0.95);
|
||||
}
|
||||
|
||||
.table-of-contents {
|
||||
margin: calc(var(--font-theme-size) * 0.5) 0;
|
||||
margin: calc(var(--size-theme-font) * 0.5) 0;
|
||||
}
|
||||
|
||||
.post-excerpt {
|
||||
font-size: calc(var(--font-theme-size) * 0.98);
|
||||
margin-top: calc(var(--font-theme-size) * 1.25);
|
||||
margin-bottom: calc(var(--font-theme-size) * 1.25);
|
||||
font-size: calc(var(--size-theme-font) * 0.98);
|
||||
margin-top: calc(var(--size-theme-font) * 1.25);
|
||||
margin-bottom: calc(var(--size-theme-font) * 1.25);
|
||||
}
|
||||
|
||||
.post-content {
|
||||
margin-top: calc(var(--font-theme-size) * 1.5625);
|
||||
margin-top: calc(var(--size-theme-font) * 1.5625);
|
||||
}
|
||||
|
||||
.post-cover {
|
||||
margin: calc(var(--font-theme-size) * 1.5625) 0;
|
||||
margin: calc(var(--size-theme-font) * 1.5625) 0;
|
||||
}
|
||||
|
||||
.post ul {
|
||||
@@ -142,7 +142,7 @@
|
||||
.post ul li:not(:empty)::before {
|
||||
content: var(--list-theme-marker);
|
||||
position: absolute;
|
||||
left: calc(var(--font-theme-size) * -1.25);
|
||||
left: calc(var(--size-theme-font) * -1.25);
|
||||
color: var(--color-theme-foreground);
|
||||
}
|
||||
|
||||
@@ -152,19 +152,19 @@
|
||||
|
||||
.post--regulation h2 {
|
||||
justify-content: center;
|
||||
margin-bottom: calc(var(--font-theme-size) * -0.625);
|
||||
margin-bottom: calc(var(--size-theme-font) * -0.625);
|
||||
}
|
||||
|
||||
.post--regulation h2 + h2 {
|
||||
margin-top: calc(var(--font-theme-size) * -0.625);
|
||||
margin-bottom: calc(var(--font-theme-size) * 1.25);
|
||||
margin-top: calc(var(--size-theme-font) * -0.625);
|
||||
margin-bottom: calc(var(--size-theme-font) * 1.25);
|
||||
}
|
||||
|
||||
.hanchor {
|
||||
position: absolute;
|
||||
color: var(--color-theme-accent);
|
||||
text-decoration: none;
|
||||
margin-left: calc(var(--font-theme-size) * 0.625);
|
||||
margin-left: calc(var(--size-theme-font) * 0.625);
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ h6:hover .hanchor {
|
||||
|
||||
.post-list {
|
||||
|
||||
padding: calc(var(--font-theme-size) * 0.25) 0;
|
||||
padding: calc(var(--size-theme-font) * 0.25) 0;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
@@ -196,7 +196,7 @@ h6:hover .hanchor {
|
||||
|
||||
@media (max-width: $phone-max-width) {
|
||||
.post-cover {
|
||||
padding: calc(var(--font-theme-size) * 0.625);
|
||||
border-width: calc(var(--font-theme-size) * 0.625);
|
||||
padding: calc(var(--size-theme-font) * 0.625);
|
||||
border-width: calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
search-modal {
|
||||
--halo-search-widget-base-font-size: var(--font-theme-size) !important;
|
||||
--halo-search-widget-base-font-family: var(--font-theme-default) !important;
|
||||
--halo-search-widget-base-font-size: var(--size-theme-font) !important;
|
||||
--halo-search-widget-base-font-family: var(--family-theme-font) !important;
|
||||
--halo-search-widget-base-bg-color: var(--color-theme-background) !important;
|
||||
--halo-search-widget-primary-color: var(--color-theme-accent) !important;
|
||||
--halo-search-widget-muted-color: var(--color-theme-foreground) !important;
|
||||
|
||||
+4
-4
@@ -2,9 +2,9 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: var(--font-theme-size);
|
||||
gap: var(--size-theme-font);
|
||||
flex-wrap: wrap;
|
||||
padding: calc(var(--font-theme-size) * 0.75) 0;
|
||||
padding: calc(var(--size-theme-font) * 0.75) 0;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
|
||||
.sns-container .sns-icon svg {
|
||||
width: calc(var(--font-theme-size) * 1.2);
|
||||
height: calc(var(--font-theme-size) * 1.2);
|
||||
width: calc(var(--size-theme-font) * 1.2);
|
||||
height: calc(var(--size-theme-font) * 1.2);
|
||||
}
|
||||
|
||||
.sns-container .divider {
|
||||
|
||||
+35
-35
@@ -1,15 +1,15 @@
|
||||
.toc {
|
||||
margin-left: calc(var(--font-theme-size) * 0.75);
|
||||
margin-left: calc(var(--size-theme-font) * 0.75);
|
||||
position: fixed;
|
||||
display: block;
|
||||
z-index: 1000;
|
||||
top: 20vh;
|
||||
padding: calc(var(--font-theme-size) * 2.5) calc(var(--font-theme-size) * 0.75) calc(var(--font-theme-size) * 0.75);
|
||||
padding: calc(var(--size-theme-font) * 2.5) calc(var(--size-theme-font) * 0.75) calc(var(--size-theme-font) * 0.75);
|
||||
|
||||
.toc-content {
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
max-height: calc(100vh - 20vh - var(--font-theme-size) * 5);
|
||||
max-height: calc(100vh - 20vh - var(--size-theme-font) * 5);
|
||||
}
|
||||
|
||||
&.toc-visible .toc-content {
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
|
||||
.toc-content::-webkit-scrollbar {
|
||||
width: calc(var(--font-theme-size) * 0.375);
|
||||
width: calc(var(--size-theme-font) * 0.375);
|
||||
}
|
||||
|
||||
.toc-content::-webkit-scrollbar-track {
|
||||
@@ -39,21 +39,21 @@
|
||||
}
|
||||
|
||||
.toc-list-item {
|
||||
margin: calc(var(--font-theme-size) * 0.25) 0;
|
||||
margin: calc(var(--size-theme-font) * 0.25) 0;
|
||||
|
||||
.toc-list {
|
||||
margin-left: var(--font-theme-size);
|
||||
border-left: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground);
|
||||
padding-left: calc(var(--font-theme-size) * 0.5);
|
||||
margin-left: var(--size-theme-font);
|
||||
border-left: calc(var(--size-theme-font) * 0.0625) solid var(--color-theme-foreground);
|
||||
padding-left: calc(var(--size-theme-font) * 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
.toc-link {
|
||||
display: block;
|
||||
padding: calc(var(--font-theme-size) * 0.25) calc(var(--font-theme-size) * 0.5);
|
||||
padding: calc(var(--size-theme-font) * 0.25) calc(var(--size-theme-font) * 0.5);
|
||||
text-decoration: none;
|
||||
color: var(--color-theme-foreground);
|
||||
font-size: calc(var(--font-theme-size) * 0.875);
|
||||
font-size: calc(var(--size-theme-font) * 0.875);
|
||||
|
||||
&:hover {
|
||||
background: transparent;
|
||||
@@ -72,8 +72,8 @@
|
||||
|
||||
@media (min-width: 1401px) {
|
||||
.toc:not(.toc-visible) {
|
||||
width: calc(var(--font-theme-size) * 2);
|
||||
height: calc(var(--font-theme-size) * 2);
|
||||
width: calc(var(--size-theme-font) * 2);
|
||||
height: calc(var(--size-theme-font) * 2);
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
@@ -86,10 +86,10 @@
|
||||
|
||||
.toc-toggle {
|
||||
position: absolute;
|
||||
top: calc(var(--font-theme-size) * -0.0625);
|
||||
left: calc(var(--font-theme-size) * -0.0625);
|
||||
width: calc(var(--font-theme-size) * 2);
|
||||
height: calc(var(--font-theme-size) * 2);
|
||||
top: calc(var(--size-theme-font) * -0.0625);
|
||||
left: calc(var(--size-theme-font) * -0.0625);
|
||||
width: calc(var(--size-theme-font) * 2);
|
||||
height: calc(var(--size-theme-font) * 2);
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -99,7 +99,7 @@
|
||||
border: none;
|
||||
color: var(--color-theme-foreground);
|
||||
cursor: pointer;
|
||||
font-size: var(--font-theme-size);
|
||||
font-size: var(--size-theme-font);
|
||||
z-index: 1002;
|
||||
|
||||
&:hover {
|
||||
@@ -110,36 +110,36 @@
|
||||
|
||||
@media (max-width: 1400px) {
|
||||
.toc {
|
||||
width: calc(var(--font-theme-size) * 2);
|
||||
height: calc(var(--font-theme-size) * 2);
|
||||
width: calc(var(--size-theme-font) * 2);
|
||||
height: calc(var(--size-theme-font) * 2);
|
||||
padding: 0;
|
||||
border: none;
|
||||
overflow: visible;
|
||||
left: calc(100vw - var(--font-theme-size) * 3.25);
|
||||
left: calc(100vw - var(--size-theme-font) * 3.25);
|
||||
|
||||
.toc-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.toc-visible {
|
||||
width: calc(var(--font-theme-size) * 17.5);
|
||||
max-width: calc(100vw - var(--font-theme-size) * 1.25);
|
||||
width: calc(var(--size-theme-font) * 17.5);
|
||||
max-width: calc(100vw - var(--size-theme-font) * 1.25);
|
||||
height: auto;
|
||||
max-height: calc(100vh - var(--font-theme-size) * 5);
|
||||
padding: calc(var(--font-theme-size) * 2.5) calc(var(--font-theme-size) * 0.75) calc(var(--font-theme-size) * 0.75);
|
||||
max-height: calc(100vh - var(--size-theme-font) * 5);
|
||||
padding: calc(var(--size-theme-font) * 2.5) calc(var(--size-theme-font) * 0.75) calc(var(--size-theme-font) * 0.75);
|
||||
background: var(--color-theme-background);
|
||||
border: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground);
|
||||
border: calc(var(--size-theme-font) * 0.0625) solid var(--color-theme-foreground);
|
||||
z-index: 1001;
|
||||
|
||||
&.toc-overflow-right {
|
||||
left: auto !important;
|
||||
right: calc(var(--font-theme-size) * 0.625);
|
||||
right: calc(var(--size-theme-font) * 0.625);
|
||||
}
|
||||
|
||||
.toc-content {
|
||||
display: block;
|
||||
overflow-y: auto;
|
||||
max-height: calc(100vh - var(--font-theme-size) * 8.5);
|
||||
max-height: calc(100vh - var(--size-theme-font) * 8.5);
|
||||
}
|
||||
|
||||
.toc-list {
|
||||
@@ -148,23 +148,23 @@
|
||||
}
|
||||
|
||||
.toc-link {
|
||||
font-size: calc(var(--font-theme-size) * 0.85);
|
||||
padding: calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.5);
|
||||
font-size: calc(var(--size-theme-font) * 0.85);
|
||||
padding: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.5);
|
||||
}
|
||||
|
||||
.toc-list-item {
|
||||
margin: calc(var(--font-theme-size) * 0.1875) 0;
|
||||
margin: calc(var(--size-theme-font) * 0.1875) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.toc.toc-visible {
|
||||
max-width: max(calc(100vw - (var(--font-theme-size) * 12.5)), 50vw);
|
||||
max-width: max(calc(100vw - (var(--size-theme-font) * 12.5)), 50vw);
|
||||
max-height: 60vh;
|
||||
|
||||
.toc-content {
|
||||
max-height: calc(60vh - var(--font-theme-size) * 3.75);
|
||||
max-height: calc(60vh - var(--size-theme-font) * 3.75);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
@@ -172,12 +172,12 @@
|
||||
}
|
||||
|
||||
.toc-list-item {
|
||||
margin: calc(var(--font-theme-size) * 0.125) 0;
|
||||
margin: calc(var(--size-theme-font) * 0.125) 0;
|
||||
}
|
||||
|
||||
.toc-link {
|
||||
font-size: calc(var(--font-theme-size) * 0.70);
|
||||
padding: calc(var(--font-theme-size) * 0.1) calc(var(--font-theme-size) * 0.1);
|
||||
font-size: calc(var(--size-theme-font) * 0.70);
|
||||
padding: calc(var(--size-theme-font) * 0.1) calc(var(--size-theme-font) * 0.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user