Skip to content

Commit 6517f2b

Browse files
committed
lighten shadows, clean up windows
1 parent 670f80e commit 6517f2b

File tree

4 files changed

+36
-23
lines changed

4 files changed

+36
-23
lines changed

site/_css/index.less

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,28 @@ body.index {
178178
overflow: hidden;
179179
}
180180

181+
.window {
182+
background: white;
183+
border-radius: 6px 6px 0 0;
184+
box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.12);
185+
margin: 0 -15px;
186+
overflow: hidden;
187+
padding-top: 25px;
188+
position: relative;
189+
190+
&::before {
191+
background: linear-gradient(#f0f0f0, #dedede);
192+
border-radius: 6px 6px 0 0;
193+
box-shadow: inset 0 2px 2px -2px white, 0 1px rgba(0,0,0,0.4);
194+
content: ' ';
195+
display: block;
196+
height: 25px;
197+
position: absolute;
198+
top: 0;
199+
width: 100%;
200+
}
201+
}
202+
181203
section.point1 {
182204
display: flex;
183205
flex-direction: row-reverse;
@@ -191,20 +213,13 @@ body.index {
191213
}
192214

193215
.faux-graphiql {
194-
border: 1px solid transparent;
195-
border-image: url(http://github.com/%3Cspan%20class=%22pl-s%22%3E/img/terminal.png%3C/span%3E) repeat;
196-
border-image-slice: 190 210 190 234;
197-
border-image-width: 95px 105px 95px 117px;
198-
padding: 54px 55px 79px 55px;
199-
margin: -30px 0 -80px -70px;
200-
width: 570px;
201-
height: 450px;
216+
width: 440px;
217+
height: 330px;
202218
display: flex;
203219
flex-direction: column;
204220
pointer-events: none;
205221

206222
.query, .response {
207-
background: white;
208223
flex: 1;
209224
}
210225

@@ -350,13 +365,7 @@ body.index {
350365
}
351366

352367
.strong-typed-query {
353-
border: 1px solid transparent;
354-
border-image: url(http://github.com/%3Cspan%20class=%22pl-s%22%3E/img/terminal.png%3C/span%3E) repeat;
355-
border-image-slice: 190 210 190 234;
356-
border-image-width: 95px 105px 95px 117px;
357-
padding: 54px 55px 79px 55px;
358-
margin: -30px 0 -80px -70px;
359-
width: 580px;
368+
width: 480px;
360369
display: flex;
361370
pointer-events: none;
362371

@@ -399,6 +408,10 @@ body.index {
399408
color: white;
400409
}
401410

411+
em {
412+
font-family: Palatino, Georgia, serif;
413+
}
414+
402415
.prose {
403416
max-width: 575px;
404417
text-align: center;
@@ -411,13 +424,13 @@ body.index {
411424

412425
.graphiqlVid {
413426
background: white;
414-
border-radius: 4px;
427+
border-radius: 6px 6px 0 0;
415428
box-shadow:
416429
0 0 0 1px rgba(0, 0, 0, 0.2),
417430
0 16px 64px rgba(0, 0, 0, 0.6);
418-
margin: 3em -10px -80px;
431+
margin: 3em -10px -75px;
419432
overflow: hidden;
420-
padding-top: 45%;
433+
padding-top: 40%;
421434
pointer-events: none;
422435
position: relative;
423436
transform: translateZ(0);

site/img/graphiql.mp4

-446 KB
Binary file not shown.

site/img/terminal.png

-16.4 KB
Binary file not shown.

site/index.html.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var index = React.createClass({
9393
predictable results. Apps using GraphQL are fast and stable because
9494
they control the data they get, not the&nbsp;server.</p>
9595
</div>
96-
<div className="faux-graphiql" aria-hidden>
96+
<div className="window faux-graphiql" aria-hidden>
9797
<div className="query">
9898
<pre className="prism">
9999
{'{'}
@@ -237,7 +237,7 @@ var index = React.createClass({
237237
what&rsquo;s possible and provide clear and helpful errors. Apps can
238238
use types to avoid writing manual parsing&nbsp;code.</p>
239239
</div>
240-
<div className="strong-typed-query" aria-hidden>
240+
<div className="window strong-typed-query" aria-hidden>
241241
<div className="query">
242242
<div id="query-highlight" className="highlight" />
243243
<Prism>
@@ -314,12 +314,12 @@ type Species {
314314
Know exactly what data you can request from your API without
315315
leaving your editor, highlight potential issues before sending a
316316
query, and take advantage of improved code intelligence. GraphQL
317-
makes it easy to build powerful tools like <a href="https://github.com/graphql/graphiql" target="_blank">GraphiQL</a> by
317+
makes it easy to build powerful tools like <a href="https://github.com/graphql/graphiql" target="_blank">Graph<em>i</em>QL</a> by
318318
leveraging your API&rsquo;s type system.</p>
319319
</div>
320320
<div className="graphiqlVid" dangerouslySetInnerHTML={{__html: `
321321
<video autoplay loop playsinline>
322-
<source src="http://github.com/img/graphiql.mp4?" type="video/mp4" />
322+
<source src="http://github.com/img/graphiql.mp4?%3Cspan%20class="x x-first x-last">x" type="video/mp4" />
323323
</video>
324324
`}} />
325325
</section>

0 commit comments

Comments
 (0)