/
quickstart.css
103 lines (89 loc) 路 2.14 KB
/
quickstart.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/**
* quickstart.js
*
* @author Ines Montani <ines@ines.io>
* @version 0.0.1
* @license MIT
*/
.qs {
border: 1px solid #ddd;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.qs-input {
/* Hide inputs while keeping them focussable */
opacity: 0;
width: 0;
height: 0;
position: absolute;
left: -9999px;
}
.qs-label {
cursor: pointer;
border: 1px solid #ddd;
border-radius: 2px;
display: inline-block;
padding: 0.75rem 1.25rem;
margin: 0 0.5rem 0.75rem 0;
font-weight: bold;
}
.qs-label:hover {
background: #f6f6f6;
}
.qs-input:focus + .qs-label {
border: 1px solid #4e7efc;
outline: none;
}
.qs-input--radio:checked + .qs-label {
color: #fff;
border-color: #4e7efc;
background: #4e7efc;
}
.qs-input--checkbox + .qs-label:before {
content: "";
display: inline-block;
width: 20px;
height: 20px;
border: 1px solid #ddd;
vertical-align: middle;
margin-right: 1rem;
cursor: pointer;
border-radius: 50%;
}
.qs-input--checkbox:checked + .qs-label:before {
/* Embed "check" icon here for simplicity */
background: #4e7efc url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4gICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTkgMTYuMTcybDEwLjU5NC0xMC41OTQgMS40MDYgMS40MDYtMTIgMTItNS41NzgtNS41NzggMS40MDYtMS40MDZ6Ii8+PC9zdmc+);
background-size: contain;
border-color: #4e7efc;
}
.qs-group {
border: none;
padding: 0 1rem
}
.qs-legend {
color: #949e9b;
padding: 1rem 0 0.5rem;
}
.qs-code {
background: #111;
color: #fff;
padding: 0.75em 0;
overflow: auto;
width: 100%;
max-width: 100%;
margin: 1rem 0 0;
}
.qs-results {
font-size: 1.6rem;
display: block;
font: normal normal 1.1rem Consolas, "Andale Mono", Menlo, Monaco, Courier, monospace;
line-height: 2;
padding: 1em 2em;
}
.qs-results > span {
display: block;
}
.qs-results > span:before {
color: #4e7efc;
margin-right: 1em;
content: "$";
}