Skip to content

Commit a2f8373

Browse files
committed
docs: tweak screenshot sizes
1 parent fdb426f commit a2f8373

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

docs/assets/styles.css

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
}
55

66
.screenshots > img {
7-
height: 160px;
8-
width: auto;
7+
width: 280px;
8+
height: auto;
99
margin: 4px;
1010
}
11+
12+
@media (min-width: 1100px) {
13+
.screenshots > img {
14+
width: 240px;
15+
}
16+
}

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"author": "",
2222
"license": "MIT",
2323
"dependencies": {
24-
"component-docs": "^0.8.1",
24+
"component-docs": "^0.8.2",
2525
"linaria": "^0.4.1"
2626
}
2727
}

docs/pages/src/Home.js

+5-8
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44
import * as React from 'react';
55
import { css, styles, include } from 'linaria';
66

7-
const transition = css`
8-
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
9-
`;
10-
117
const elevated = css`
12-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
8+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.24);
139
`;
1410

1511
const container = css`
@@ -43,15 +39,16 @@ const buttons = css`
4339
const button = css`
4440
appearance: none;
4541
margin: 8px;
42+
min-width: 120px;
43+
text-align: center;
4644
font-size: 15px;
4745
font-weight: bold;
48-
padding: 12px 24px;
46+
padding: 8px 16px;
4947
border: 0;
5048
border-radius: 3px;
5149
cursor: pointer;
5250
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
53-
54-
${include(transition)};
51+
transition: 0.3s;
5552
5653
&:hover {
5754
${include(elevated)};

docs/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1456,9 +1456,9 @@ commondir@^1.0.1:
14561456
version "1.0.1"
14571457
resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
14581458

1459-
component-docs@^0.8.1:
1460-
version "0.8.1"
1461-
resolved "https://registry.yarnpkg.com/component-docs/-/component-docs-0.8.%3Cspan%20class="x x-first x-last">1.tgz#c3b3b0db62ac6edc2702ab427fbb292b74ce717e"
1459+
component-docs@^0.8.2:
1460+
version "0.8.2"
1461+
resolved "https://registry.yarnpkg.com/component-docs/-/component-docs-0.8.%3Cspan%20class="x x-first x-last">2.tgz#a38b8b0c00dcbf3743ca73a301ebad3c35569283"
14621462
dependencies:
14631463
babel-core "^6.26.0"
14641464
babel-loader "^7.1.2"

0 commit comments

Comments
 (0)