jekyll-theme-gerbera 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/_sass/_index.scss ADDED
@@ -0,0 +1,725 @@
1
+ // Index page uses a fixed header with an overlay
2
+ body.index {
3
+ background: #f5f6f8;
4
+ @media screen and (min-width: 1020px) {
5
+ margin-top: 50px;
6
+ }
7
+
8
+ header {
9
+ display: none;
10
+ @media screen and (min-width: 1020px) {
11
+ display: block;
12
+ position: fixed;
13
+ top: 0;
14
+ left: 0;
15
+ right: 0;
16
+ }
17
+ }
18
+
19
+ .fixedSearch {
20
+ position: fixed;
21
+ right: 0;
22
+ left: 0;
23
+ z-index: 12;
24
+ pointer-events: none;
25
+ }
26
+
27
+ .hero {
28
+ background: $dark-color;
29
+ @media screen and (min-width: 1020px) {
30
+ min-height: 430px;
31
+ max-height: 900px;
32
+ height: 430px;
33
+ margin-top: -50px;
34
+ padding-top: 50px;
35
+ z-index: 11;
36
+ }
37
+ position: relative;
38
+ -webkit-font-smoothing: antialiased;
39
+ -moz-osx-font-smoothing: grayscale;
40
+
41
+ header {
42
+ background: linear-gradient(
43
+ fade_out($dark-color, .20),
44
+ fade_out($dark-color, 1)
45
+ );
46
+ box-shadow: none;
47
+ display: block;
48
+ @media screen and (min-width: 1020px) {
49
+ min-height: 80px;
50
+ max-height: 160px;
51
+ height: 13vh;
52
+ }
53
+
54
+ nav > a {
55
+ text-shadow: 0 1px 1px $dark-color, 0 0 3px $dark-color;
56
+
57
+ &:hover, &:focus {
58
+ color: white;
59
+ }
60
+
61
+ &:first-child {
62
+ @media screen and (min-width: 1020px) {
63
+ margin-left: -1em;
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ .abs {
70
+ background: url("#{$baseurl}/img/gerbera.jpg") repeat center center;
71
+ position: relative;
72
+ @media screen and (min-width: 1020px) {
73
+ position: absolute;
74
+ top: 0;
75
+ left: 0;
76
+ bottom: 0;
77
+ right: 0;
78
+ clip: rect(0, auto, auto, 0);
79
+ overflow: hidden;
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: center;
83
+ flex-direction: column;
84
+ }
85
+ }
86
+
87
+ .intro {
88
+ clear: both;
89
+ display: flex;
90
+ max-width: 1070px;
91
+ color: white;
92
+
93
+ flex-direction: column;
94
+ @media screen and (min-width: 1020px) {
95
+ margin-top: -3%;
96
+ flex-direction: row;
97
+ }
98
+ }
99
+
100
+ .named-logo {
101
+ text-align: center;
102
+ animation: fade 1.2s ease-in-out;
103
+ animation-fill-mode: both;
104
+ margin-right: 18px;
105
+
106
+ h1 {
107
+ color: $rhodamine-color;
108
+ margin: 0;
109
+ margin-top: 0.25em;
110
+ font-size: 30px;
111
+ line-height: 1;
112
+ }
113
+
114
+ img {
115
+ margin: 0 auto;
116
+ display: block;
117
+ width: 90px;
118
+ height: 90px;
119
+ }
120
+ }
121
+
122
+ @keyframes fade {
123
+ from {
124
+ opacity: 0;
125
+ transform: translate(0, 30px);
126
+ }
127
+
128
+ to {
129
+ opacity: 1;
130
+ transform: translate(0, 0);
131
+ }
132
+ }
133
+ }
134
+
135
+ section h1,
136
+ section h2 {
137
+ margin-top: 0;
138
+ }
139
+
140
+ section.lead {
141
+ @include body-font(22px);
142
+ text-align: center;
143
+ max-width: 760px;
144
+ padding-top: 3em;
145
+ }
146
+
147
+ .grayWash {
148
+ background: #e6e8ec;
149
+ position: relative;
150
+ }
151
+
152
+ .darkWash {
153
+ background: #3d464f;
154
+ box-shadow:
155
+ inset 0 30px 30px -30px rgba(0,0,0,0.35),
156
+ inset 0 -20px 30px -30px rgba(0,0,0,0.35);
157
+ overflow: hidden;
158
+ position: relative;
159
+ }
160
+
161
+ .window {
162
+ background: white;
163
+ border-radius: 6px 6px 0 0;
164
+ box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.12);
165
+ margin: 0 -15px;
166
+ overflow: hidden;
167
+ padding-top: 26px;
168
+ position: relative;
169
+
170
+ &::before {
171
+ background: linear-gradient(#f0f0f0, #dedede);
172
+ border-radius: 6px 6px 0 0;
173
+ box-shadow: inset 0 2px 2px -2px white, 0 1px rgba(0,0,0,0.4);
174
+ content: ' ';
175
+ display: block;
176
+ height: 25px;
177
+ position: absolute;
178
+ top: 0;
179
+ width: 100%;
180
+ }
181
+
182
+ .prism {
183
+ padding: 1ch;
184
+ }
185
+ }
186
+
187
+ section.point1,
188
+ section.point2,
189
+ section.point3,
190
+ section.point4,
191
+ section.point5,
192
+ section.point6 {
193
+ align-items: center;
194
+ display: flex;
195
+ flex-direction: column;
196
+ padding-bottom: 4em;
197
+ padding-top: 4em;
198
+ min-height: 75vh;
199
+ @media screen and (max-width: 1019px) {
200
+ min-height: none;
201
+ .prose {
202
+ text-align: center;
203
+ }
204
+ }
205
+ }
206
+
207
+ section.point1 {
208
+ @media screen and (min-width: 1020px) {
209
+ flex-direction: row-reverse;
210
+ justify-content: space-between;
211
+ }
212
+
213
+ .prose {
214
+ max-width: 415px;
215
+ }
216
+
217
+ .faux-graphiql {
218
+ width: 440px;
219
+ height: 330px;
220
+ display: flex;
221
+ flex-direction: column;
222
+ pointer-events: none;
223
+
224
+ .query, .response {
225
+ flex: 1;
226
+ }
227
+
228
+ .query {
229
+ border-bottom: solid 5px #e0e0e0;
230
+ }
231
+
232
+ .cursor {
233
+ width: 7px;
234
+ height: 15px;
235
+ background-color: #d0d0d0;
236
+ display: inline-block;
237
+ margin: -1px 1px -3px;
238
+ animation: cursor-blink 0.5s infinite linear both alternate;
239
+
240
+ @keyframes cursor-blink {
241
+ 0%, 30% {
242
+ opacity: 0;
243
+ }
244
+ 70%, 100% {
245
+ opacity: 1;
246
+ }
247
+ }
248
+ }
249
+
250
+ .ch {
251
+ display: none;
252
+ }
253
+ }
254
+ }
255
+
256
+ section.point2 {
257
+ @media screen and (min-width: 1020px) {
258
+ flex-direction: row;
259
+ justify-content: space-between;
260
+ }
261
+
262
+ .prose {
263
+ max-width: 415px;
264
+ }
265
+
266
+ .app-to-server {
267
+ width: 476px;
268
+ height: 500px;
269
+ position: relative;
270
+ pointer-events: none;
271
+
272
+ margin: -35px -10px;
273
+ @media screen and (max-width: 1019px) {
274
+ margin-top: 0;
275
+ }
276
+
277
+ .phone, .server {
278
+ position: absolute;
279
+ left: 0;
280
+ right: 0;
281
+ }
282
+
283
+ .phone {
284
+ bottom: 0;
285
+ }
286
+
287
+ .server {
288
+ top: 0;
289
+ }
290
+
291
+ .query, .response {
292
+ position: absolute;
293
+ }
294
+
295
+ .query {
296
+ animation: query-up 6s 0s infinite ease-in both;
297
+ left: 175px;
298
+
299
+ @keyframes query-up {
300
+ from {
301
+ opacity: 0;
302
+ top: 230px;
303
+ }
304
+
305
+ 5%, 25% {
306
+ opacity: 1;
307
+ }
308
+
309
+ 40% {
310
+ opacity: 0;
311
+ }
312
+
313
+ 50%, 100% {
314
+ top: 150px;
315
+ opacity: 0;
316
+ }
317
+ }
318
+ }
319
+
320
+ .response {
321
+ animation: response-down 6s 2.3s infinite ease-in both;
322
+ left: 135px;
323
+
324
+ @keyframes response-down {
325
+ 0% {
326
+ opacity: 0;
327
+ top: 130px;
328
+ }
329
+
330
+ 10% {
331
+ opacity: 0;
332
+ }
333
+
334
+ 25%, 45% {
335
+ opacity: 1;
336
+ }
337
+
338
+ 50%, 100% {
339
+ opacity: 0;
340
+ top: 200px;
341
+ }
342
+ }
343
+ }
344
+ }
345
+ }
346
+
347
+ section.point3 {
348
+ @media screen and (min-width: 1020px) {
349
+ flex-direction: row-reverse;
350
+ justify-content: space-between;
351
+ }
352
+
353
+ .prose {
354
+ max-width: 415px;
355
+ }
356
+
357
+ .strong-typed-query {
358
+ width: 480px;
359
+ display: flex;
360
+ pointer-events: none;
361
+
362
+ .type-system, .query {
363
+ background: white;
364
+ flex: 1;
365
+ position: relative;
366
+ }
367
+
368
+ .query {
369
+ border-right: solid 5px #e0e0e0;
370
+ }
371
+
372
+ .highlight {
373
+ position: absolute;
374
+ left: 0;
375
+ right: 0;
376
+ height: 18px;
377
+ top: 8px;
378
+ background: lighten($dark-color, 80%);
379
+ }
380
+ }
381
+ }
382
+
383
+ section.point4 {
384
+ color: white;
385
+ flex-direction: column;
386
+ padding-bottom: 0;
387
+ -webkit-font-smoothing: antialiased;
388
+ -moz-osx-font-smoothing: grayscale;
389
+
390
+ h2 {
391
+ color: white;
392
+ }
393
+
394
+ em {
395
+ font-family: Palatino, Georgia, serif;
396
+ }
397
+
398
+ .prose {
399
+ display: flex;
400
+ flex-direction: column;
401
+ flex: 1;
402
+ justify-content: center;
403
+ margin: 0 auto;
404
+ max-width: 575px;
405
+ text-align: center;
406
+
407
+ a {
408
+ color: lighten($rhodamine-color, 30%);
409
+ }
410
+ }
411
+
412
+ .graphiqlVid {
413
+ background: white;
414
+ border-radius: 6px 6px 0 0;
415
+ box-shadow:
416
+ 0 0 0 1px rgba(0, 0, 0, 0.2),
417
+ 0 16px 64px rgba(0, 0, 0, 0.6);
418
+ margin: 3em -10px 0;
419
+ overflow: hidden;
420
+ padding-top: 40%;
421
+ pointer-events: none;
422
+ position: relative;
423
+ transform: translateZ(0);
424
+ width: 100%;
425
+
426
+ video {
427
+ position: absolute;
428
+ top: 0;
429
+ left: 0;
430
+ width: 100%;
431
+ }
432
+ }
433
+ }
434
+
435
+ section.point5 {
436
+ @media screen and (min-width: 1020px) {
437
+ flex-direction: row-reverse;
438
+ justify-content: space-between;
439
+ }
440
+
441
+ .prose {
442
+ max-width: 415px;
443
+ }
444
+
445
+ .type-evolution {
446
+ $pane-width: 260px;
447
+ width: 2 * $pane-width - 1;
448
+ pointer-events: none;
449
+ overflow-x: hidden;
450
+
451
+ .add {
452
+ @include code-font($color: darken(#eaffea, 75%));
453
+ &::before {
454
+ content: '+';
455
+ }
456
+ background: #eaffea;
457
+ border-left: solid 1px darken(#eaffea, 10%);
458
+ }
459
+
460
+ .remove {
461
+ @include code-font($color: darken(#ffecec, 75%));
462
+ &::before {
463
+ content: '-';
464
+ }
465
+ background: #ffecec;
466
+ border-left: solid 1px darken(#ffecec, 10%);
467
+ }
468
+
469
+ .add, .remove {
470
+ opacity: 0;
471
+ transition: opacity 0.5s ease-in-out;
472
+ position: absolute;
473
+ left: -1px;
474
+ right: 0;
475
+ height: 18px;
476
+ padding-left: 2px;
477
+ }
478
+
479
+ #typeEvolveView {
480
+ display: flex;
481
+ left: 0;
482
+ margin-left: -1px;
483
+ position: relative;
484
+ width: 5 * $pane-width;
485
+
486
+ .v1, .v2, .v3, .v4, .v5 {
487
+ border-left: solid 1px #eee;
488
+ flex: 1;
489
+ padding: 4px 6px 18px;
490
+ position: relative;
491
+ width: $pane-width;
492
+ }
493
+
494
+
495
+ &.step0 {
496
+ .v2 {
497
+ opacity: 0;
498
+ }
499
+ }
500
+
501
+ &.step1 {
502
+ .v2 {
503
+ opacity: 1;
504
+ transition: opacity 0.5s ease-in-out;
505
+ }
506
+
507
+ .v2 .add {
508
+ opacity: 1;
509
+ }
510
+ }
511
+
512
+ &.step2 {
513
+ left: -1 * $pane-width;
514
+ transition: left 0.5s ease-in-out;
515
+
516
+ .v3 .add {
517
+ opacity: 1;
518
+ }
519
+ }
520
+
521
+ &.step3 {
522
+ left: -2 * $pane-width;
523
+ transition: left 0.5s ease-in-out;
524
+
525
+ .v4 .add {
526
+ opacity: 1;
527
+ }
528
+ }
529
+
530
+ &.step4 {
531
+ left: -3 * $pane-width;
532
+ transition: left 0.5s ease-in-out;
533
+
534
+ .v4 .remove {
535
+ opacity: 1;
536
+ }
537
+
538
+ .v5 .add {
539
+ opacity: 1;
540
+ }
541
+ }
542
+
543
+ &.step5 {
544
+ left: -4 * $pane-width;
545
+ transition: left 0.5s ease-in-out;
546
+
547
+ .v4 .remove {
548
+ opacity: 1;
549
+ }
550
+ }
551
+
552
+ &.step6 {
553
+ .v2 {
554
+ opacity: 0;
555
+ }
556
+
557
+ .v5 {
558
+ left: -4 * $pane-width;
559
+ opacity: 0;
560
+ transition: opacity 0.5s ease-in-out;
561
+ }
562
+ }
563
+ }
564
+
565
+ .v2 .add {
566
+ top: 12px + 4 * 17px;
567
+ }
568
+
569
+ .v3 .add {
570
+ top: 12px + 5 * 17px;
571
+ }
572
+
573
+ .v4 .add:nth-child(1) {
574
+ top: 12px + 6 * 17px;
575
+ }
576
+ .v4 .add:nth-child(2) {
577
+ top: 12px + 9 * 17px;
578
+ }
579
+ .v4 .add:nth-child(3) {
580
+ top: 12px + 10 * 17px;
581
+ }
582
+ .v4 .add:nth-child(4) {
583
+ top: 12px + 11 * 17px;
584
+ }
585
+ .v4 .add:nth-child(5) {
586
+ top: 12px + 12 * 17px;
587
+ }
588
+ .v4 .add:nth-child(6) {
589
+ top: 12px + 13 * 17px;
590
+ }
591
+
592
+ .v4 .remove {
593
+ top: 12px + 5 * 17px;
594
+ }
595
+
596
+ .v5 .add {
597
+ top: 12px + 5 * 17px;
598
+ }
599
+ }
600
+ }
601
+
602
+ section.point6 {
603
+ @media screen and (min-width: 1020px) {
604
+ flex-direction: row;
605
+ justify-content: space-between;
606
+ }
607
+
608
+ .prose {
609
+ max-width: 415px;
610
+ }
611
+
612
+ .leverage-code {
613
+ $pane-width: 520px;
614
+ width: $pane-width;
615
+ overflow-y: hidden;
616
+
617
+ #leverageCodeView {
618
+ display: flex;
619
+ flex-direction: row;
620
+ left: 0;
621
+ position: relative;
622
+ transition: left 0.5s ease-in-out;
623
+ width: $pane-width * 4;
624
+
625
+ & > pre {
626
+ width: $pane-width;
627
+ position: relative;
628
+ top: 0;
629
+ }
630
+
631
+ &.step0 {
632
+ transition: none;
633
+ }
634
+
635
+ &.step1, &.step2 {
636
+ & > pre:first-child {
637
+ line-height: 4 * 17px;
638
+ transition:
639
+ top 0.5s ease-in-out,
640
+ line-height 0.5s ease-in-out;
641
+
642
+ &:first-line {
643
+ line-height: 17px;
644
+ }
645
+ }
646
+ }
647
+
648
+ &.step2 {
649
+ left: -1 * $pane-width;
650
+ }
651
+
652
+ &.step3 {
653
+ left: -2 * $pane-width;
654
+ }
655
+
656
+ &.step4 {
657
+ left: -3 * $pane-width;
658
+ }
659
+
660
+ &.step5 {
661
+ left: -4 * $pane-width;
662
+ & > pre:first-child {
663
+ left: 4 * $pane-width;
664
+ }
665
+ }
666
+ }
667
+ }
668
+ }
669
+
670
+ section.powered-by {
671
+ padding-bottom: 6em;
672
+ text-align: center;
673
+
674
+ .prose {
675
+ max-width: 545px;
676
+ text-align: center;
677
+ margin: 0 auto;
678
+ }
679
+
680
+ .logos {
681
+ align-items: center;
682
+ display: flex;
683
+ flex-flow: row wrap;
684
+ justify-content: center;
685
+
686
+ img {
687
+ height: 100px;
688
+ padding: 14px;
689
+ @media screen and (min-width: 1020px) {
690
+ height: 150px;
691
+ padding: 20px;
692
+ }
693
+
694
+ &.round {
695
+ height: 106px;
696
+ padding: 11px;
697
+ @media screen and (min-width: 1020px) {
698
+ height: 158px;
699
+ padding: 16px;
700
+ }
701
+ }
702
+ }
703
+ }
704
+
705
+ .button {
706
+ display: inline-block;
707
+ @include headline-font($size: 17px, $color: $text-color);
708
+ border: solid 1px fade_out(black, .60);
709
+ border-radius: 6px;
710
+ line-height: 1.0;
711
+ transition: border 0.1s ease-out, background 0.1s ease-out, color 0.1s ease-out;
712
+ padding: 0.65em 1.6em 0.6em;
713
+ margin: 2em;
714
+ display: inline-block;
715
+ text-decoration: none;
716
+
717
+ &:hover, &:focus, &:active {
718
+ color: white;
719
+ background: $rhodamine-color;
720
+ border-color: $rhodamine-color;
721
+ text-decoration: none;
722
+ }
723
+ }
724
+ }
725
+ }