Skip to content

Commit 86ce271

Browse files
authored
docs: remove gradients, use solid background, and clean up styles (#1101)
1 parent 33d985c commit 86ce271

File tree

3 files changed

+5
-24
lines changed

3 files changed

+5
-24
lines changed

docs/ui/src/css/base.css

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,7 @@ html {
99
font-size: var(--body-font-size);
1010
height: 100%;
1111
scroll-behavior: smooth;
12-
background:
13-
radial-gradient(ellipse 100% 100% at var(--x1) var(--y1), rgba(89, 36, 99, 0.8), transparent 50%),
14-
radial-gradient(ellipse 80% 120% at var(--x2) var(--y2), rgba(138, 214, 236, 0.5), transparent 55%),
15-
radial-gradient(ellipse 150% 90% at var(--x3) var(--y3), rgba(40, 98, 114, 0.6), transparent 65%),
16-
radial-gradient(ellipse 100% 100% at 80% 100%, rgba(89, 36, 99, 0.8), transparent 60%),
17-
linear-gradient(135deg, #124b83, #124b83, #124b83);
18-
background-attachment: fixed;
19-
background-size: cover;
20-
background-repeat: no-repeat;
12+
background-color: var(--body-background);
2113
}
2214

2315
@media screen and (min-width: 1024px) {

docs/ui/src/css/vars.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
--color-black-75: rgba(0, 0, 0, 0.75);
2626
--color-black-15: rgba(0, 0, 0, 0.15);
2727
--color-blue-10: rgba(140, 210, 255, 0.95);
28+
--color-blue-100: rgb(18, 75, 131);
2829
/* fonts */
2930
--rem-base: 18; /* used to compute rem value from desired pixel value (e.g., calc(18 / var(--rem-base) * 1rem) = 18px) */
3031
--body-font-size: 1.0625em; /* 17px */
@@ -37,7 +38,7 @@
3738
--monospace-font-family: "Roboto Mono", monospace;
3839
--monospace-font-weight-bold: 600;
3940
/* base */
40-
--body-background: var(--color-white);
41+
--body-background: var(--color-blue-100);
4142
--panel-background: var(--color-black-75);
4243
--panel-border-color: var(--color-smoke-90);
4344
--scrollbar-track-color: var(--color-smoke-30);

docs/website/styles.css

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
--function-name-color-hover: #0091ea;
2929
--primary-color:rgba(16, 149, 193, 1);
3030
--primary-color-hover:rgba(6, 125, 166, 1);
31+
--body-background: #124b83;
3132
}
3233

3334
@media (min-width: 576px) {
@@ -2535,10 +2536,6 @@ body > footer ul:first-of-type {
25352536
margin-bottom: calc(var(--spacing) * .5)
25362537
}
25372538

2538-
body > footer ul:first-of-type a {
2539-
text-decoration:
2540-
}
2541-
25422539
@media (max-width: 767px) {
25432540
body > footer ul:last-of-type li {
25442541
display: list-item
@@ -2735,16 +2732,7 @@ html {
27352732
margin: 0;
27362733
padding: 0;
27372734
min-height: 100%;
2738-
background:
2739-
radial-gradient(ellipse 100% 100% at var(--x1) var(--y1), rgba(89, 36, 99, 0.8), transparent 50%),
2740-
radial-gradient(ellipse 80% 120% at var(--x2) var(--y2), rgba(138, 214, 236, 0.5), transparent 55%),
2741-
radial-gradient(ellipse 150% 90% at var(--x3) var(--y3), rgba(40, 98, 114, 0.6), transparent 65%),
2742-
radial-gradient(ellipse 100% 100% at 80% 100%, rgba(89, 36, 99, 0.8), transparent 60%),
2743-
linear-gradient(135deg, #124B83, #124B83, #124B83);
2744-
background-blend-mode: normal;
2745-
background-repeat: no-repeat;
2746-
background-size: cover;
2747-
background-attachment: fixed;
2735+
background-color: var(--body-background);
27482736
}
27492737

27502738
/* ===========================

0 commit comments

Comments
 (0)