-
Notifications
You must be signed in to change notification settings - Fork 1
/
better_ui.css
112 lines (95 loc) · 1.67 KB
/
better_ui.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
form {
display: grid;
grid-gap: 0.5rem;
padding: 0.5rem;
}
input,
select,
button,
textarea {
border: none;
font-size: 0.8rem;
line-height: 0.8rem;
height: 1.2rem;
border-radius: 0.6rem;
padding: 0.05rem 0.1rem;
margin: 0;
background-color: #eee;
}
input[type=text],
input[type=number],
input[type=search] {
border: none;
}
input:focus,
select:focus,
button:focus,
textarea:focus {
background-color: #fff;
box-shadow: 0 0 2px 1px #a6c8ff;
outline: none;
}
input[type=button],
input[type=submit],
button {
border: 1px solid #1d7fff;
color: #1d7fff;
background-color: #fff;
font-weight: bold;
padding: 0.15rem 0.3rem;
cursor: pointer;
grid-column: span 2;
justify-self: center;
align-self: center;
}
input[type=button]:hover,
input[type=submit]:hover,
button:hover {
color: #fff;
background-color: #1d7fff;
}
input:invalid,
input:invalid:focus {
outline: none;
box-shadow: 0 0 2px 1px rgba(255, 0, 0, 0.9);
}
fieldset {
border-radius: 0.5rem;
grid-column: span 2;
padding: 0.5rem;
display: grid;
grid-template-columns: 3fr 4fr;
grid-gap: 0.5rem;
}
fieldset > legend {
grid-column: span 2;
}
fieldset > input {
grid-column: span 2;
}
fieldset > input[type=button][value=Add],
input[type=submit] {
margin-top: 0.5rem;
}
.post-new {
margin: 0.5rem;
display: grid;
grid-auto-flow: column;
grid-template-columns: repeat(auto-fit, auto);
grid-gap: 0.5rem;
}
body {
/* background-color: #1d7fff; */
}
header {
}
header > h1 {
font-size: 20px;
}
footer {
}
.view-switch {
height: 2rem;
padding: 0;
line-height: 1.5rem;
}