Skip to content

Commit 16f7c33

Browse files
Small Style Updates (#29)
* push updates * remove class
1 parent 2b4e603 commit 16f7c33

File tree

13 files changed

+49
-14
lines changed

13 files changed

+49
-14
lines changed

src/css/doc.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,6 @@
329329

330330
.doc table.grid-all > thead th,
331331
.doc table.grid-rows > thead th {
332-
border-bottom-width: var(--ds-space-q);
333-
border-color: var(--ds-primary-outlined-border);
334332
font-size: calc(13 / var(--rem-base) * 1rem);
335333
color: var(--ds-text-tertiary);
336334
letter-spacing: 0.65px;

src/css/docsearch.css

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,17 @@ html[data-theme="dark"] .DocSearch .DocSearch-Modal {
4444
@include text-body;
4545

4646
color: var(--ds-text-placeholder);
47-
margin-right: var(--ds-space-3);
47+
margin-right: var(--ds-space-5);
4848
}
4949

5050
.DocSearch .DocSearch-Button {
51+
min-width: var(--ds-space-5);
5152
transition: var(--ds-transition);
5253
height: var(--ds-space-5);
5354
border-radius: 6px;
5455
border: 1px solid var(--ds-neutral-outlined-border);
5556
margin: 0;
57+
justify-content: center;
5658

5759
&:hover {
5860
background-color: var(--ds-neutral-outlined-hover-bg);
@@ -68,6 +70,19 @@ html[data-theme="dark"] .DocSearch .DocSearch-Modal {
6870
text-decoration: underline;
6971
}
7072

73+
.DocSearch .DocSearch-Search-Icon {
74+
display: none;
75+
}
76+
77+
.DocSearch .DocSearch-Button-Container::before,
78+
.DocSearch .DocSearch-MagnifierLabel::before {
79+
font-family: "Material Icons Outlined", sans-serif;
80+
font-weight: 400;
81+
font-size: calc(18 / var(--rem-base) * 1rem);
82+
content: "\e8b6";
83+
color: var(--ds-text-primary);
84+
}
85+
7186
@media screen and (max-width: 768px) {
7287
.DocSearch.DocSearch-Container {
7388
position: fixed;
@@ -82,7 +97,7 @@ html[data-theme="dark"] .DocSearch .DocSearch-Modal {
8297
--docsearch-icon-stroke-width: 1.4;
8398
--docsearch-highlight-color: var(--ds-text-primary);
8499
--docsearch-muted-color: var(--ds-text-placeholder);
85-
--docsearch-container-background: rgba(0, 0, 0, 0.5);
100+
--docsearch-container-background: var(--ds-background-backdrop);
86101
--docsearch-logo-color: var(--ds-text-primary);
87102

88103
/* modal */
@@ -118,7 +133,7 @@ html[data-theme="dark"] .DocSearch .DocSearch-Modal {
118133

119134
html[data-theme='dark'] .DocSearch {
120135
--docsearch-text-color: var(--ds-text-primary);
121-
--docsearch-container-background: rgba(20, 20, 20, 0.7);
136+
--docsearch-container-background: var(--ds-background-backdrop);
122137
--docsearch-modal-background: var(--ds-background-body);
123138
--docsearch-modal-shadow: none;
124139
--docsearch-searchbox-background: none;

src/css/ds-dark.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--ds-background-level3: var(--ds-neutral-600);
88
--ds-background-surface: var(--ds-neutral-900);
99
--ds-background-tooltip: var(--ds-neutral-0);
10+
--ds-background-backdrop: rgba(10, 10, 10, 0.6);
1011
--ds-cyan-main: var(--ds-cyan-400);
1112
--ds-failure-main: var(--ds-failure-400);
1213
--ds-failure-outlined-active-bg: var(--ds-failure-500);

src/css/ds-light.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
--ds-divider: var(--ds-neutral-200);
33
--ds-focus-visible: var(--ds-neutral-900);
44
--ds-background-body: var(--ds-common-white);
5-
--ds-background-level1: var(--ds-neutral-100);
6-
--ds-background-level2: var(--ds-neutral-200);
7-
--ds-background-level3: var(--ds-neutral-300);
5+
--ds-background-level1: var(--ds-neutral-0);
6+
--ds-background-level2: var(--ds-neutral-50);
7+
--ds-background-level3: var(--ds-neutral-100);
88
--ds-background-surface: var(--ds-common-white);
99
--ds-background-tooltip: var(--ds-neutral-900);
10+
--ds-background-backdrop: rgba(0, 0, 0, 0.6);
1011
--ds-cyan-main: var(--ds-cyan-600);
1112
--ds-failure-main: var(--ds-failure-500);
1213
--ds-failure-outlined-active-bg: var(--ds-failure-100);

src/css/ds-vars.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
--ds-cyan-200: #99d9ff;
77
--ds-cyan-300: #7cf;
88
--ds-cyan-400: #33b1ff;
9+
--ds-cyan-50: #c9ecff;
910
--ds-cyan-500: #1a92e1;
1011
--ds-cyan-600: #0072c3;
1112
--ds-cyan-700: #005698;
@@ -16,6 +17,7 @@
1617
--ds-failure-200: #f6b2ba;
1718
--ds-failure-300: #ec7985;
1819
--ds-failure-400: #e34853;
20+
--ds-failure-50: #fddde1;
1921
--ds-failure-500: #d91620;
2022
--ds-failure-600: #b00f16;
2123
--ds-failure-700: #86070b;
@@ -26,6 +28,7 @@
2628
--ds-magenta-200: #ffc0dc;
2729
--ds-magenta-300: #ffaacf;
2830
--ds-magenta-400: #ff7eb6;
31+
--ds-magenta-50: #ffd7e9;
2932
--ds-magenta-500: #e85293;
3033
--ds-magenta-600: #d02670;
3134
--ds-magenta-700: #a21854;
@@ -36,6 +39,7 @@
3639
--ds-neutral-200: #ced0d2;
3740
--ds-neutral-300: #a6aaae;
3841
--ds-neutral-400: #898d91;
42+
--ds-neutral-50: #edeeee;
3943
--ds-neutral-500: #6b6f73;
4044
--ds-neutral-600: #5a5d60;
4145
--ds-neutral-700: #494a4d;
@@ -46,6 +50,7 @@
4650
--ds-orange-200: #ffc49a;
4751
--ds-orange-300: #ffae75;
4852
--ds-orange-400: #ff832b;
53+
--ds-orange-50: #ffe0cb;
4954
--ds-orange-500: #dd6916;
5055
--ds-orange-600: #ba4e00;
5156
--ds-orange-700: #8c3c00;
@@ -56,6 +61,7 @@
5661
--ds-primary-200: #d7a7df;
5762
--ds-primary-300: #ba68c8;
5863
--ds-primary-400: #9946b9;
64+
--ds-primary-50: #ecd6f0;
5965
--ds-primary-500: #7724aa;
6066
--ds-primary-600: #611c9b;
6167
--ds-primary-700: #4a148c;
@@ -66,6 +72,7 @@
6672
--ds-success-200: #8cd092;
6773
--ds-success-300: #6bc074;
6874
--ds-success-400: #42a056;
75+
--ds-success-50: #ccf0ce;
6976
--ds-success-500: #198038;
7077
--ds-success-600: #116d36;
7178
--ds-success-700: #095933;
@@ -76,6 +83,7 @@
7683
--ds-teal-200: #9ef0f0;
7784
--ds-teal-300: #53d7d5;
7885
--ds-teal-400: #08bdba;
86+
--ds-teal-50: #cbf7f7;
7987
--ds-teal-500: #049d9a;
8088
--ds-teal-600: #007d79;
8189
--ds-teal-700: #005f5f;
@@ -86,6 +94,7 @@
8694
--ds-warning-200: #f5c783;
8795
--ds-warning-300: #ea9f26;
8896
--ds-warning-400: #cc7b1d;
97+
--ds-warning-50: #fde5c9;
8998
--ds-warning-500: #ad5713;
9099
--ds-warning-600: #8f4a0a;
91100
--ds-warning-700: #703c00;

src/css/header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ body {
5050
font-family: "Material Icons Outlined", sans-serif;
5151
font-weight: 400;
5252
font-size: calc(20 / var(--rem-base) * 1rem);
53-
content: "\e5d2";
53+
content: "\e5d4";
5454
}
5555

5656
.navbar-burger.is-active::before {

src/css/nav.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ html.is-clipped--nav {
6868
.nav-panel-menu {
6969
overflow-y: auto;
7070
overscroll-behavior: none;
71-
height: var(--nav-panel-menu-height);
71+
height: 100%;
7272
}
7373

7474
.nav-panel-menu:not(.is-active) .nav-menu {
@@ -79,6 +79,8 @@ html.is-clipped--nav {
7979
min-height: 100%;
8080
line-height: var(--nav-line-height);
8181
position: relative;
82+
display: flex;
83+
flex-direction: column;
8284
}
8385

8486
.nav-menu > .nav-list {
@@ -170,6 +172,7 @@ html.is-clipped--nav {
170172
.secondary-nav-list {
171173
margin: 0;
172174
padding: var(--ds-space-2) 0;
175+
margin-top: auto;
173176
}
174177

175178
.secondary-nav-list .nav-item {

src/css/toolbar.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
top: var(--navbar-height);
1010
z-index: var(--z-index-toolbar);
1111
padding-left: var(--ds-space-3);
12+
padding-bottom: var(--ds-space-1);
1213
}
1314

1415
.toolbar ul li:last-of-type {

src/css/tutorial-info.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.tutorial-info {
22
display: flex;
3+
flex-wrap: wrap;
34
align-items: center;
45
gap: var(--ds-space-2h);
56
margin-bottom: var(--ds-space-3);

src/css/vars.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,12 @@
107107
--site-padding: var(--ds-space-4);
108108
--site-padding--mobile: var(--ds-space-2);
109109
--navbar-height: calc(100 / var(--rem-base) * 1rem);
110-
--toolbar-height: calc(40 / var(--rem-base) * 1rem);
110+
--toolbar-height: calc(48 / var(--rem-base) * 1rem);
111111
--drawer-height: var(--toolbar-height);
112112
--body-top: var(--navbar-height);
113113
--body-min-height: calc(100vh - var(--body-top));
114114
--nav-height: calc(var(--body-min-height) - var(--toolbar-height));
115115
--nav-height--desktop: var(--body-min-height);
116-
--nav-panel-menu-height: calc(100% - var(--drawer-height));
117116
--nav-panel-explore-height: calc(50% + var(--drawer-height));
118117
--nav-width: calc(300 / var(--rem-base) * 1rem);
119118
--logo-width: calc(300 / var(--rem-base) * 1rem);
@@ -131,3 +130,9 @@
131130
/* transitions */
132131
--ds-transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, outline-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
133132
}
133+
134+
@media screen and (max-width: 1023.5px) {
135+
:root {
136+
--navbar-height: calc(74 / var(--rem-base) * 1rem);
137+
}
138+
}

0 commit comments

Comments
 (0)