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