-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
doodle.css
178 lines (146 loc) · 3.42 KB
/
doodle.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
/* Doodle CSS
* https://github.com/chr15m/DoodleCSS
*/
.doodle * {
box-sizing: border-box;
}
.doodle {
background-color: #FDF7F1;
color: #3c3c3c;
}
.doodle input, .doodle textarea, .doodle table, .doodle img {
max-width: 100%;
}
.doodle fieldset * {
max-width: calc(100vw - 100px);
}
.doodle table {
overflow: scroll;
}
.doodle a {
color: #1c1c1c;
font-weight: bold;
}
.doodle ul li {
list-style-type: "* ";
}
.doodle label {
padding: 0.25em 0px;
display: inline-block;
}
.doodle fieldset, .doodle textarea {
border-style: solid;
border-width: 10px 10px 10px 10px;
border-image: url(border.svg) 10 10 10 10 stretch stretch;
}
.doodle .border, .doodle-border {
border-style: solid;
border-width: 10px 10px 10px 10px;
border-image: url(button.svg) 10 10 10 10 stretch stretch;
}
.doodle button, .doodle input, .doodle select, .doodle input[type="file"]::file-selector-button {
border-style: solid;
border-width: 10px 10px 10px 10px;
border-image: url(button.svg) 10 10 10 10 stretch stretch;
}
.doodle button {
text-align: center;
}
.doodle input[type="color"] {
min-height: 1.5em;
}
.doodle hr {
border-style: solid;
border-width: 0px 3px 6px 3px;
border-image: url(hr.svg) 0 3 6 3 stretch stretch;
}
.doodle blockquote {
border-left-style: solid;
border-width: 0px 6px 3px 6px;
border-image: url(bq.svg) 0 6 3 6 stretch stretch;
padding-left: 0.5em;
border-right-width: 0px;
}
.doodle pre {
overflow: auto;
}
.doodle table {
border-collapse: collapse;
overflow: auto;
display: block;
}
.doodle table thead {
border-bottom: 3px solid #bbb;
}
.doodle table caption {
border-bottom-style: solid;
border-width: 0px 3px 6px 3px;
border-image: url(hr.svg) 0 3 6 3 stretch stretch;
}
.doodle table td {
vertical-align: top;
}
.doodle img {
border-radius: 3px;
border-style: solid;
border-width: 3px 3px 3px 3px;
border-image: url(button.svg) 3 3 3 3 stretch stretch;
}
.doodle select {
-webkit-appearance: none;
appearance: none;
padding-right: 1.5em;
background: url(caret.svg) no-repeat right transparent;
background-position-x: calc(100% - 10px);
}
.doodle select[multiple] {
background: none;
padding: 0px;
}
.doodle button, .doodle textarea, .doodle input, .doodle select {
background-color: unset;
font-family: 'Short Stack', cursive;
font-size: 1em;
color: #3c3c3c;
}
.doodle button:disabled {
color: grey;
}
.doodle input[type="checkbox"] {
border-width: 6px 6px 6px 6px;
border-image: url(checkbox.svg) 6 6 6 6 stretch stretch;
}
.doodle input[type="radio"] {
border-width: 16px 16px 16px 16px;
border-image: url(radio.svg) 16 16 16 16 stretch stretch;
}
.doodle input[type="checkbox"], .doodle input[type="radio"] {
-webkit-appearance: none;
appearance: none;
outline: 0;
background: transparent;
width: 1.5em;
height: 1.5em;
display: inline-flex;
justify-content: center;
align-items: center;
}
.doodle input[type="checkbox"]:after, .doodle input[type="radio"]:after {
font-size: 1.25em;
content: " ";
margin-bottom: -0.25em;
}
.doodle input[type="checkbox"]:disabled:after, .doodle input[type="radio"]:disabled:after {
content: "-";
color: grey;
}
.doodle input[type="checkbox"]:checked:after, .doodle input[type="radio"]:checked:after {
content: "*";
}
.doodle input[type="file"]::file-selector-button {
font-family: inherit;
font-size: 0.8em;
font-size: 1em;
background-color: unset;
color: #3c3c3c;
}