main
css 62 lines 1.09 KB
Raw
1 .swipe-recognizer {
2 width: 300px;
3 background: #eee;
4 border-radius: 10px;
5 padding: 20px;
6 }
7
8 .button {
9 background: #000;
10 color: #fff;
11 border: 0px;
12 border-radius: 5px;
13 padding: 10px;
14 }
15
16 .portal {
17 position: fixed;
18 top: 10px;
19 left: 360px;
20 border: 1px solid #ccc;
21 }
22
23 .examples {
24 display: grid;
25 /* Wide enough that the demos (the ~340px swipe-recognizer boxes) fit without
26 overflowing once card + content padding is subtracted. */
27 grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
28 gap: 20px;
29 align-items: start;
30 width: 100%;
31 box-sizing: border-box;
32 padding: 10px;
33 }
34
35 .example-card {
36 display: flex;
37 flex-direction: column;
38 min-height: 320px;
39 background: #eee;
40 border: 1px solid #ddd;
41 border-radius: 10px;
42 padding: 20px;
43 box-sizing: border-box;
44 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
45 }
46
47 .example-card-title {
48 margin: 0 0 16px;
49 font-size: 15px;
50 font-weight: 600;
51 color: #333;
52 }
53
54 .example-card-content {
55 flex: 1;
56 width: 100%;
57 background: #fff;
58 border-radius: 10px;
59 padding: 16px;
60 box-sizing: border-box;
61 overflow: auto;
62 }