docs: update

This commit is contained in:
Mirus
2024-12-07 11:33:50 +02:00
parent 3f85215722
commit ae9fe44ff1
3 changed files with 11 additions and 5 deletions

View File

@@ -73,8 +73,6 @@ You can find all of them in the browser's page inspector, but here is the list w
--accent-contrast-color: black; /* mainly uses for text on the accent backgrounds but not limited */
--color: white; /* text color, also some other text use the variable in color mixing */
--border-color: rgba(255, 255, 255, .1); /* border color */
--phone: "max-width: 684px"; /* phone breakpoint */
--tablet: "max-width: 900px"; /* tablet breakpoint */
--article-link-color: var(inherit); /* for you, who want to colorize your article links */
/* code syntax */
@@ -82,6 +80,11 @@ You can find all of them in the browser's page inspector, but here is the list w
--syntax-func-color: color-mix(in srgb, var(--accent) 70%, #999 30%);
--syntax-var-color: color-mix(in srgb, var(--accent) 90%, transparent);
--syntax-value-color: color-mix(in srgb, var(--accent), white);
/* breakpoints */
/* unfortunately, native CSS variables don't support media queries, so use SCSS vars instead */
$phone: 684px;
$tablet: 900px;
}
```

View File

@@ -44,14 +44,17 @@ You can find all of them in the browser's page inspector, but here is the list w
--accent-contrast-color: black; /* mainly uses for text on the accent backgrounds but not limited */
--color: white; /* text color, also some other text use the variable in color mixing */
--border-color: rgba(255, 255, 255, .1); /* border color */
--phone: "max-width: 684px"; /* phone breakpoint */
--tablet: "max-width: 900px"; /* tablet breakpoint */
/* code syntax */
/* take a look at themes/re-terminal/assets/css/syntax.scss to understand in detail which color stands for */
--syntax-func-color: color-mix(in srgb, var(--accent) 70%, #999 30%);
--syntax-var-color: color-mix(in srgb, var(--accent) 90%, transparent);
--syntax-value-color: color-mix(in srgb, var(--accent), white);
/* breakpoints */
/* unfortunately, native CSS variables don't support media queries, so use SCSS vars instead */
$phone: 684px;
$tablet: 900px;
}
```

View File

@@ -28,7 +28,7 @@ pre {
font-size: 1rem;
overflow: auto;
@media (--phone) {
@media ($phone) {
white-space: pre-wrap;
word-wrap: break-word;
}