Skip to content

Commit db93598

Browse files
committed
graphql overlap issue on small-screens issue fix
1 parent 2dd0844 commit db93598

File tree

1 file changed

+58
-37
lines changed

1 file changed

+58
-37
lines changed

site/_css/index.less

Lines changed: 58 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ body.index {
4242

4343
&::before {
4444
background: url("/img/graph-wash.png") repeat center center;
45-
content: '';
45+
content: "";
4646
height: 100%;
4747
position: absolute;
4848
top: 0;
@@ -65,7 +65,8 @@ body.index {
6565
nav > a {
6666
text-shadow: 0 1px 1px @dark-color, 0 0 3px @dark-color;
6767

68-
&:hover, &:focus {
68+
&:hover,
69+
&:focus {
6970
color: white;
7071
}
7172

@@ -112,6 +113,10 @@ body.index {
112113
animation-fill-mode: both;
113114
margin-right: 18px;
114115

116+
@media screen and (max-width: 768px) {
117+
margin-top: 3rem;
118+
}
119+
115120
h1 {
116121
color: @rhodamine-color;
117122
margin: 0;
@@ -163,9 +168,10 @@ body.index {
163168
}
164169

165170
.fadein-cols(4);
166-
.fadein-cols(@n) when (@n > 1) { .fadein-cols(@n - 1);
171+
.fadein-cols(@n) when (@n > 1) {
172+
.fadein-cols(@n - 1);
167173
.marketing-col:nth-child(@{n}) {
168-
animation: fade 1.0s 0.5s * @n ease-in-out both;
174+
animation: fade 1s 0.5s * @n ease-in-out both;
169175
}
170176
}
171177

@@ -199,14 +205,16 @@ body.index {
199205
.headline-font(@size: 17px, @color: white);
200206
border: solid 1px fadeout(white, 60%);
201207
border-radius: 6px;
202-
line-height: 1.0;
208+
line-height: 1;
203209
transition: background 0.1s ease-out, color 0.1s ease-out;
204210
padding: 0.6em 1.6em;
205211
margin: 0 0.8em;
206212
display: inline-block;
207213
text-decoration: none;
208214

209-
&:hover, &:focus, &:active {
215+
&:hover,
216+
&:focus,
217+
&:active {
210218
color: @text-color;
211219
background: white;
212220
text-decoration: none;
@@ -234,17 +242,16 @@ body.index {
234242

235243
.darkWash {
236244
background: #3d464f;
237-
box-shadow:
238-
inset 0 30px 30px -30px rgba(0,0,0,0.35),
239-
inset 0 -20px 30px -30px rgba(0,0,0,0.35);
245+
box-shadow: inset 0 30px 30px -30px rgba(0, 0, 0, 0.35),
246+
inset 0 -20px 30px -30px rgba(0, 0, 0, 0.35);
240247
overflow: hidden;
241248
position: relative;
242249
}
243250

244251
.window {
245252
background: white;
246253
border-radius: 6px 6px 0 0;
247-
box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.12);
254+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 8px 32px rgba(0, 0, 0, 0.12);
248255
margin: 0 -15px;
249256
overflow: hidden;
250257
padding-top: 26px;
@@ -253,8 +260,8 @@ body.index {
253260
&::before {
254261
background: linear-gradient(#f0f0f0, #dedede);
255262
border-radius: 6px 6px 0 0;
256-
box-shadow: inset 0 2px 2px -2px white, 0 1px rgba(0,0,0,0.4);
257-
content: ' ';
263+
box-shadow: inset 0 2px 2px -2px white, 0 1px rgba(0, 0, 0, 0.4);
264+
content: " ";
258265
display: block;
259266
height: 25px;
260267
position: absolute;
@@ -304,7 +311,8 @@ body.index {
304311
flex-direction: column;
305312
pointer-events: none;
306313

307-
.query, .response {
314+
.query,
315+
.response {
308316
flex: 1;
309317
}
310318

@@ -321,10 +329,12 @@ body.index {
321329
animation: cursor-blink 0.5s infinite linear both alternate;
322330

323331
@keyframes cursor-blink {
324-
0%, 30% {
332+
0%,
333+
30% {
325334
opacity: 0;
326335
}
327-
70%, 100% {
336+
70%,
337+
100% {
328338
opacity: 1;
329339
}
330340
}
@@ -357,7 +367,8 @@ body.index {
357367
margin-top: 0;
358368
}
359369

360-
.phone, .server {
370+
.phone,
371+
.server {
361372
position: absolute;
362373
left: 0;
363374
right: 0;
@@ -371,7 +382,8 @@ body.index {
371382
top: 0;
372383
}
373384

374-
.query, .response {
385+
.query,
386+
.response {
375387
position: absolute;
376388
}
377389

@@ -385,15 +397,17 @@ body.index {
385397
top: 230px;
386398
}
387399

388-
5%, 25% {
400+
5%,
401+
25% {
389402
opacity: 1;
390403
}
391404

392405
40% {
393406
opacity: 0;
394407
}
395408

396-
50%, 100% {
409+
50%,
410+
100% {
397411
top: 150px;
398412
opacity: 0;
399413
}
@@ -414,11 +428,13 @@ body.index {
414428
opacity: 0;
415429
}
416430

417-
25%, 45% {
431+
25%,
432+
45% {
418433
opacity: 1;
419434
}
420435

421-
50%, 100% {
436+
50%,
437+
100% {
422438
opacity: 0;
423439
top: 200px;
424440
}
@@ -442,7 +458,8 @@ body.index {
442458
display: flex;
443459
pointer-events: none;
444460

445-
.type-system, .query {
461+
.type-system,
462+
.query {
446463
background: white;
447464
flex: 1;
448465
position: relative;
@@ -495,9 +512,7 @@ body.index {
495512
.graphiqlVid {
496513
background: white;
497514
border-radius: 6px 6px 0 0;
498-
box-shadow:
499-
0 0 0 1px rgba(0, 0, 0, 0.2),
500-
0 16px 64px rgba(0, 0, 0, 0.6);
515+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 16px 64px rgba(0, 0, 0, 0.6);
501516
margin: 3em -10px 0;
502517
overflow: hidden;
503518
padding-top: 40%;
@@ -534,7 +549,7 @@ body.index {
534549
.add {
535550
.code-font(@color: darken(#eaffea, 75%));
536551
&::before {
537-
content: '+';
552+
content: "+";
538553
}
539554
background: #eaffea;
540555
border-left: solid 1px darken(#eaffea, 10%);
@@ -543,13 +558,14 @@ body.index {
543558
.remove {
544559
.code-font(@color: darken(#ffecec, 75%));
545560
&::before {
546-
content: '-';
561+
content: "-";
547562
}
548563
background: #ffecec;
549564
border-left: solid 1px darken(#ffecec, 10%);
550565
}
551566

552-
.add, .remove {
567+
.add,
568+
.remove {
553569
opacity: 0;
554570
transition: opacity 0.5s ease-in-out;
555571
position: absolute;
@@ -566,15 +582,18 @@ body.index {
566582
position: relative;
567583
width: 5 * @pane-width;
568584

569-
.v1, .v2, .v3, .v4, .v5 {
585+
.v1,
586+
.v2,
587+
.v3,
588+
.v4,
589+
.v5 {
570590
border-left: solid 1px #eee;
571591
flex: 1;
572592
padding: 4px 6px 18px;
573593
position: relative;
574594
width: @pane-width;
575595
}
576596

577-
578597
&.step0 {
579598
.v2 {
580599
opacity: 0;
@@ -715,12 +734,11 @@ body.index {
715734
transition: none;
716735
}
717736

718-
&.step1, &.step2 {
737+
&.step1,
738+
&.step2 {
719739
& > pre:first-child {
720740
line-height: 4 * 17px;
721-
transition:
722-
top 0.5s ease-in-out,
723-
line-height 0.5s ease-in-out;
741+
transition: top 0.5s ease-in-out, line-height 0.5s ease-in-out;
724742

725743
&:first-line {
726744
line-height: 17px;
@@ -790,14 +808,17 @@ body.index {
790808
.headline-font(@size: 17px, @color: @text-color);
791809
border: solid 1px fadeout(black, 60%);
792810
border-radius: 6px;
793-
line-height: 1.0;
794-
transition: border 0.1s ease-out, background 0.1s ease-out, color 0.1s ease-out;
811+
line-height: 1;
812+
transition: border 0.1s ease-out, background 0.1s ease-out,
813+
color 0.1s ease-out;
795814
padding: 0.65em 1.6em 0.6em;
796815
margin: 2em;
797816
display: inline-block;
798817
text-decoration: none;
799818

800-
&:hover, &:focus, &:active {
819+
&:hover,
820+
&:focus,
821+
&:active {
801822
color: white;
802823
background: @rhodamine-color;
803824
border-color: @rhodamine-color;

0 commit comments

Comments
 (0)