Skip to content

Commit 94f437b

Browse files
committed
move index page css to its own file for legibility
1 parent b9ad785 commit 94f437b

File tree

3 files changed

+202
-229
lines changed

3 files changed

+202
-229
lines changed

site/_css/graphql.less

Lines changed: 3 additions & 229 deletions
Original file line numberDiff line numberDiff line change
@@ -178,139 +178,6 @@ footer {
178178
}
179179
}
180180

181-
// Index page uses a fixed header with an overlay
182-
body.index {
183-
margin-top: 50px;
184-
185-
header {
186-
@media screen and (min-width: 1020px) {
187-
position: fixed;
188-
top: 0;
189-
left: 0;
190-
right: 0;
191-
}
192-
}
193-
}
194-
195-
.fixedSearch {
196-
position: fixed;
197-
right: 0;
198-
left: 0;
199-
z-index: 12;
200-
pointer-events: none;
201-
}
202-
203-
.hero {
204-
background: @dark-color;
205-
color: #f8f8f8;
206-
height: 80vh;
207-
position: relative;
208-
z-index: 11;
209-
margin-top: -50px;
210-
padding-top: 50px;
211-
-webkit-font-smoothing: antialiased;
212-
-moz-osx-font-smoothing: grayscale;
213-
214-
header {
215-
background: none;
216-
box-shadow: none;
217-
218-
nav a:hover, nav a:focus {
219-
color: white;
220-
}
221-
222-
a:first-child {
223-
margin-left: -1em;
224-
}
225-
}
226-
227-
.abs {
228-
display: flex;
229-
align-items: center;
230-
justify-content: center;
231-
flex-direction: column;
232-
position: absolute;
233-
top: 0;
234-
left: 0;
235-
bottom: 0;
236-
right: 0;
237-
clip: rect(0, auto, auto, 0);
238-
overflow: hidden;
239-
}
240-
241-
.content {
242-
text-align: center;
243-
margin: 30px;
244-
}
245-
246-
.main-logo {
247-
margin: 0 auto;
248-
display: block;
249-
}
250-
251-
h1 {
252-
color: @rhodamine-color;
253-
margin: 0;
254-
}
255-
256-
h2, h3, h4 {
257-
color: white;
258-
margin: 1em 0;
259-
text-align: center;
260-
}
261-
262-
.prism {
263-
-webkit-font-smoothing: auto;
264-
-moz-osx-font-smoothing: auto;
265-
color: white;
266-
background: transparent;
267-
box-shadow: none;
268-
padding: 0;
269-
margin: 0;
270-
}
271-
272-
.marketing-col:last-child > .prism {
273-
margin-right: -20px;
274-
}
275-
276-
.fadein-cols(3);
277-
278-
.fadein-cols(@n) when (@n > 0) {
279-
.fadein-cols(@n - 1);
280-
.marketing-col:nth-child(@{n}) {
281-
animation: fade 1.1s 0.8s * (@n - 1) ease-in-out;
282-
animation-fill-mode: both;
283-
}
284-
}
285-
286-
@keyframes fade {
287-
from {
288-
opacity: 0;
289-
transform: translate(0, 30px);
290-
}
291-
292-
to {
293-
opacity: 1;
294-
transform: translate(0, 0);
295-
}
296-
}
297-
}
298-
299-
.buttons-unit {
300-
margin-top: 60px;
301-
text-align: center;
302-
303-
.button {
304-
.body-font(@color: white);
305-
background: @rhodamine-color;
306-
transition: background 0.1s ease-out;
307-
308-
&:hover, &:focus, &.active {
309-
background: lighten(@rhodamine-color, 10%);
310-
}
311-
}
312-
}
313-
314181
h1 .anchor, h2 .anchor, h3 .anchor, h4 .anchor, h5 .anchor, h6 .anchor {
315182
margin-top: -50px;
316183
position: absolute;
@@ -376,29 +243,6 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
376243
border-bottom: 0;
377244
}
378245

379-
.home-divider {
380-
border-top-color: #bbb;
381-
margin: 3em auto;
382-
width: 400px;
383-
@media screen and (max-width: 1020px) {
384-
display: none;
385-
}
386-
}
387-
388-
.marketing-row {
389-
display: flex;
390-
justify-content: space-between;
391-
}
392-
393-
.marketing-col {
394-
flex: 1;
395-
width: 320px;
396-
}
397-
398-
.home-bottom-section {
399-
margin-bottom: 100px;
400-
}
401-
402246
.docs-nextprev {
403247
*zoom: 1;
404248
}
@@ -420,10 +264,6 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
420264
float: right;
421265
}
422266

423-
section.black content {
424-
padding-bottom: 18px;
425-
}
426-
427267
.guestBio {
428268
background: #f9f0f3;
429269
border-top: solid 2px #e0c3c8;
@@ -507,41 +347,6 @@ section.black content {
507347
padding-bottom: 40px;
508348
}
509349

510-
.button {
511-
background: linear-gradient( #9a9a9a, #646464);
512-
border-radius: 4px;
513-
padding: 8px 16px;
514-
font-size: 18px;
515-
font-weight: 400;
516-
margin: 0 12px;
517-
display: inline-block;
518-
color: #fafafa;
519-
text-decoration: none;
520-
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
521-
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
522-
text-decoration: none;
523-
}
524-
525-
.button:hover, .button:focus {
526-
text-decoration: none;
527-
}
528-
529-
.button:active {
530-
box-shadow: none;
531-
}
532-
533-
.hero .button {
534-
box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.3);
535-
}
536-
537-
.button.blue {
538-
background: linear-gradient( #77a3d2, #4783c2);
539-
}
540-
541-
.home-content {
542-
width: 760px;
543-
}
544-
545350
.inner-content {
546351
float: right;
547352
width: 760px;
@@ -556,10 +361,6 @@ section.black content {
556361
margin: 0 auto;
557362
}
558363

559-
.post-list-item+.post-list-item {
560-
margin-top: 60px;
561-
}
562-
563364
.inner-content + .inner-content {
564365
margin-top: 5em;
565366
}
@@ -577,29 +378,6 @@ div[data-twttr-id] iframe {
577378
margin: 10px auto !important;
578379
}
579380

580-
.three-column {
581-
*zoom: 1;
582-
}
583-
584-
.three-column:before, .three-column:after {
585-
content: " ";
586-
display: table;
587-
}
588-
589-
.three-column:after {
590-
clear: both;
591-
}
592-
593-
.three-column>ul {
594-
float: left;
595-
margin-left: 30px;
596-
width: 190px;
597-
}
598-
599-
.three-column > ul:first-child {
600-
margin-left: 20px;
601-
}
602-
603381
p + .apiIndex {
604382
margin-top: 0;
605383
}
@@ -659,24 +437,20 @@ p + .apiIndex {
659437
width: auto;
660438
float: none;
661439
}
662-
.marketing-col {
663-
margin-left: 0;
664-
float: none;
665-
margin-bottom: 30px;
666-
text-align: center;
667-
}
440+
668441
.nav-docs .nav-docs-section {
669442
border: none;
670443
padding: 0;
671444
}
445+
672446
.nav-docs h3 {
673447
margin: 0;
674448
}
449+
675450
.nav-docs {
676451
float: none;
677452
width: auto;
678453
margin-top: -20px;
679454
margin-bottom: 20px;
680455
}
681456
}
682-

0 commit comments

Comments
 (0)