-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
137 lines (113 loc) · 1.96 KB
/
styles.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
/* Resets */
html,
body {
height: 100%;
}
body {
margin: 0;
}
button {
border: none;
padding: 0;
cursor: pointer;
}
/* General */
html {
/* https://css-tricks.com/snippets/css/system-font-stack/ */
font-family: 'Karla', -apple-system,BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 24px;
letter-spacing: -1px;
}
a {
color: steelblue;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Components */
.wrapper {
display: flex;
flex-direction: column;
align-items: stretch;
align-content: stretch;
height: calc(100% - 40px);
padding: 20px;
}
.section-add {
display: flex;
}
.section-add__input {
line-height: 24px;
font-size: 20px;
border-radius: 3px;
margin-left: 10px;
padding: 3px 0 3px 5px;
transition: 0.30s ease-in-out;
outline: none;
border: 1px solid lightgrey;
}
.section-add__input:focus {
box-shadow: 0 0 5px steelblue;
border: 1px solid steelblue;
}
.section-add__label-link {
display: block;
}
@media (min-width: 700px) {
.section-add__label-link {
display: inline-block;
margin-left: 20px;
}
}
.section-add__submit {
margin-left: 20px;
background: none;
}
.section-add__icon-add {
vertical-align: text-bottom;
}
.list {
list-style-type: none;
padding: 0;
margin: 20px 0 0;
display: flex;
flex-flow: column wrap;
max-height: calc(100% - 40px);
}
.item {
line-height: 1.5rem;
}
.item__actions {
display: inline-block;
height: 24px;
width: 24px;
margin-right: 5px;
position: relative;
vertical-align: text-bottom;
}
.item__remove,
.item__icon-note,
.item__icon-link {
position: absolute;
top: -2px;
}
.item__remove {
z-index: 1;
transition: all 0.2s;
color: gainsboro;
opacity: 0;
background: white;
}
.item:hover .item__remove {
opacity: 1;
}
.item__remove:hover,
.item__remove:focus {
opacity: 1;
color: crimson;
}
.item__icon-note,
.item__icon-link {
color: gray;
}