Skip to content

Commit 7207c0b

Browse files
committed
Some more polish
1 parent eae96ce commit 7207c0b

File tree

5 files changed

+39
-10
lines changed

5 files changed

+39
-10
lines changed

packages/typescriptlang-org/src/components/ShowExamples.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
padding-left: 0;
4545
margin-top: 0;
4646
padding-top: 0;
47-
margin-right: 1em;
47+
// margin-right: 1em;
4848
border: none;
4949
background-color: transparent;
5050
@media (prefers-color-scheme: dark) {

packages/typescriptlang-org/src/components/layout/Sidebar.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
@import "../../style/globals.scss";
22

3-
$z-index-for-site-nav: 101;
4-
$z-index-for-handbook-nav: 100;
5-
63
#small-device-button-sidebar {
74
display: none;
85
}
@@ -30,7 +27,7 @@ nav#sidebar {
3027
border-bottom: 1px solid #dfdfdf;
3128

3229
@media (prefers-color-scheme: dark) {
33-
border-color: black;
30+
border-color: #3e3e3e;
3431
}
3532
font-weight: 400;
3633
font-size: 1rem;
@@ -54,6 +51,13 @@ nav#sidebar {
5451
color: white;
5552
}
5653

54+
@media (prefers-color-scheme: dark) {
55+
.open path,
56+
.closed path {
57+
stroke: white;
58+
}
59+
}
60+
5761
&:active,
5862
&:focus {
5963
color: black;
@@ -178,7 +182,7 @@ nav#sidebar {
178182
padding-top: 2px;
179183
padding-left: 9px;
180184

181-
z-index: $z-index-for-site-nav;
185+
z-index: $z-index-for-handbook-nav;
182186

183187
// Reset the button
184188
-webkit-appearance: none;

packages/typescriptlang-org/src/components/layout/SiteFooter.scss

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,27 @@
169169
transition: bottom 0.3s ease, opacity 0.2s linear, visibility 0s linear;
170170
opacity: 1;
171171
z-index: 123;
172+
color: black;
172173

173174
.section-content {
174175
display: flex;
176+
177+
.section-list li {
178+
margin-top: 4px;
179+
}
175180
}
176181

177182
.arrow-down {
178183
width: 0;
179184
height: 0;
180185
border-left: 10px solid transparent;
181186
border-right: 10px solid transparent;
182-
border-top: 14px solid white;
187+
border-top: 14px solid $ts-light-bg-grey-highlight-color;
188+
189+
@media (prefers-color-scheme: dark) {
190+
border-top: 14px solid $ts-dark-bg-for-foreground-color;
191+
}
192+
183193
margin: 0 auto;
184194
margin-bottom: 20px;
185195
position: relative;
@@ -195,4 +205,9 @@
195205
border-bottom: 1px solid $ts-main-blue-darker-color;
196206
border-radius: 0;
197207
}
208+
209+
a {
210+
color: $ts-main-blue-color;
211+
text-decoration: none;
212+
}
198213
}

packages/typescriptlang-org/src/components/layout/TopNav.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,19 @@
4545

4646
#home-page-logo {
4747
width: 200px;
48-
font-size: 1.2rem;
4948
font-weight: 600;
49+
font-size: 1.5rem;
5050

5151
svg {
5252
margin-right: 0.6rem;
5353
margin-left: 1rem;
54-
margin-top: 0.48rem;
54+
margin-top: 0.55rem;
5555
}
5656

5757
span {
5858
position: relative;
5959
top: -0.5rem;
60+
margin-right: 0.2rem;
6061
text-decoration: none;
6162
}
6263
}
@@ -113,7 +114,12 @@ form.search {
113114

114115
input {
115116
-webkit-appearance: none;
116-
background-color: $ts-main-blue-darkest-color;
117+
background-color: $ts-main-blue-darker-color;
118+
119+
@media (prefers-color-scheme: dark) {
120+
background-color: $ts-main-blue-darkest-color;
121+
}
122+
117123
border-color: #152740;
118124
border-radius: 0;
119125
border: none;

packages/typescriptlang-org/src/style/globals.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ $screen-md-min: $screen-md;
3434
// So media queries don't overlap when required, provide a maximum
3535
$screen-xs-max: ($screen-sm-min - 1);
3636
$screen-sm-max: ($screen-md-min - 1);
37+
38+
$z-index-for-search: 100;
39+
$z-index-for-site-nav: 101;
40+
$z-index-for-handbook-nav: 99;

0 commit comments

Comments
 (0)