Skip to content

Commit e7661b3

Browse files
authored
Fix spacing issues (#1153)
* Fix spacing issues * Reduce splash height.
1 parent 75b90f9 commit e7661b3

File tree

1 file changed

+43
-36
lines changed

1 file changed

+43
-36
lines changed

website/static/css/custom.css

+43-36
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@ header.postHeader:empty + article h1 {
88
margin-top: 0;
99
}
1010

11-
.homeContainer .homeWrapper {
12-
padding-bottom: 1em;
13-
}
14-
15-
.mainContainer {
16-
padding-top: 24px;
17-
padding-bottom: 24px;
18-
}
19-
2011
.post article a {
2112
/* add underlines to links in blocks of text for a11y */
2213
color: $primaryColor;
@@ -25,6 +16,7 @@ header.postHeader:empty + article h1 {
2516
position: relative;
2617
transition: outline-offset 0.2s ease-in-out;
2718
}
19+
2820
.post article a:hover,
2921
.post article a:focus,
3022
.post article a:active {
@@ -38,6 +30,7 @@ header.postHeader:empty + article h1 {
3830
position: relative;
3931
transition: outline-offset 0.2s ease-in-out;
4032
}
33+
4134
.post article blockquote {
4235
color: black;
4336
background-color: $accentColor4;
@@ -63,11 +56,13 @@ header.postHeader:empty + article h1 {
6356
outline: none;
6457
text-decoration: underline;
6558
}
59+
6660
.post article blockquote {
6761
color: black;
6862
background-color: $accentColor4;
6963
border-left: 8px solid $accentColor5;
7064
}
65+
7166
.post article blockquote a {
7267
/* add underlines to links in blocks of text for a11y */
7368
color: black;
@@ -76,6 +71,7 @@ header.postHeader:empty + article h1 {
7671
position: relative;
7772
transition: outline-offset 0.2s ease-in-out;
7873
}
74+
7975
.post article blockquote a:hover,
8076
.post article blockquote a:focus,
8177
.post article blockquote a:active {
@@ -86,12 +82,14 @@ header.postHeader:empty + article h1 {
8682
outline: none;
8783
text-decoration: underline;
8884
}
85+
8986
.post article .hash-link {
9087
/* add underlines to links in blocks of text for a11y */
9188
color: $accentColor1;
9289
transition: outline-offset 0.2s ease-in-out;
9390
opacity: 1;
9491
}
92+
9593
.post article .hash-link:hover,
9694
.post article .hash-link:focus,
9795
.post article .hash-link:active {
@@ -101,57 +99,72 @@ header.postHeader:empty + article h1 {
10199
box-shadow: 0 0 0 0 $accentColor6;
102100
transition: outline-offset 0.2s ease-in-out;
103101
}
102+
104103
.hash-link .hash-link-icon {
105104
fill: currentColor;
106105
}
106+
107107
.fixedHeaderContainer header .headerTitleWithLogo {
108-
color : white;
108+
color: white;
109109
display: block !important;
110110
}
111+
111112
.navigationSlider .slidingNav ul.nav-site a {
112-
color : white;
113+
color: white;
113114
font-weight: 400;
114115
}
116+
115117
.navigationSlider .slidingNav ul.nav-site a:hover,
116118
.navigationSlider .slidingNav ul.nav-site a:focus,
117119
.navigationSlider .slidingNav ul.nav-site a:active {
118-
color : white;
120+
color: white;
119121
font-weight: 400;
120122
text-decoration: underline;
121123
}
122-
.navigationSlider .slidingNav ul a[href*="github"] {
124+
125+
.navigationSlider .slidingNav ul a[href*='github'] {
123126
font-size: 0;
124127
}
125-
.navigationSlider .slidingNav ul a[href*="github"]::before {
126-
content : "";
127-
width : 32px;
128-
height : 32px;
129-
background: url("/img/github-brands.svg");
128+
129+
.navigationSlider .slidingNav ul a[href*='github']::before {
130+
content: '';
131+
width: 32px;
132+
height: 32px;
133+
background: url('/img/github-brands.svg');
130134
}
135+
131136
.nav-footer .copyright,
132137
.nav-footer .sitemap a {
133138
/* increase link contrast */
134139
color: white;
135140
}
141+
136142
.button.hero {
137143
background: $primaryColor;
138144
color: #fff;
139145
font-size: 30px;
140-
padding: .5em 1.25em;
146+
padding: 0.5em 1.25em;
141147
font-weight: bold;
142148
}
149+
143150
.button.hero:visited {
144151
background: $primaryColor;
145152
color: #fff;
146153
}
154+
147155
.button.hero:hover {
148156
background: #fff;
149157
color: $primaryColor;
150158
}
151-
.productShowcaseSection .rowContainer {
152-
padding-top: 30px;
153-
padding-bottom: 30px;
159+
160+
.homeContainer .homeWrapper {
161+
padding-bottom: 0;
154162
}
163+
164+
.productShowcaseSection .featureBlock {
165+
padding: 40px 0;
166+
}
167+
155168
.productShowcaseSection .featureBlock img {
156169
width: 60px;
157170
height: 60px;
@@ -166,13 +179,15 @@ header.postHeader:empty + article h1 {
166179
.libBlock > div p {
167180
text-align: center;
168181
}
182+
169183
.libBlock h2 a,
170184
.libBlock h2 a:visited {
171-
color : black;
185+
color: black;
172186
display: flex;
173187
justify-content: center;
174188
align-items: center;
175189
}
190+
176191
.libBlock img {
177192
margin-left: 5px;
178193
max-width: 16px !important;
@@ -184,15 +199,10 @@ header.postHeader:empty + article h1 {
184199
margin-bottom: 5px;
185200
}
186201

187-
.libsContainer {
188-
display: flex;
189-
justify-content: center;
190-
}
191-
192202
@media only screen and (max-device-width: 480px) {
193203
.productShowcaseSection .featureBlock {
194-
padding-top: 0;
195-
padding-bottom: 0;
204+
padding-top: 30px;
205+
padding-bottom: 5px;
196206
}
197207

198208
.featureBlock .imageAlignTop .blockImage {
@@ -207,10 +217,10 @@ header.postHeader:empty + article h1 {
207217
.featureBlock .blockContent {
208218
margin-bottom: 25px;
209219
}
210-
220+
211221
.homeSplashFade img {
212-
width : 60px;
213-
height : 60px;
222+
width: 60px;
223+
height: 60px;
214224
}
215225

216226
.homeSplashFade h1 {
@@ -251,9 +261,6 @@ header.postHeader:empty + article h1 {
251261
.navSearchWrapper:after {
252262
left: 35px;
253263
}
254-
.libsContainer {
255-
flex-direction: column;
256-
}
257264
}
258265

259266
@media only screen and (min-width: 1400px) {

0 commit comments

Comments
 (0)