/
style.scss
185 lines (155 loc) · 3.13 KB
/
style.scss
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
179
180
181
182
183
184
185
@keyframes announce-note-update {
0% {
padding-left: 8px;
}
50% {
padding-left: 16px;
}
100% {
padding-left: 8px;
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.note-list {
display: flex;
flex-direction: column;
flex: 1 1 auto;
overflow: hidden;
background: inherit;
.comfy .note-list-item-excerpt {
white-space: nowrap;
}
.condensed .note-list-item {
min-height: 43px;
}
.condensed .note-list-item-text {
padding-bottom: 0;
}
.condensed .note-list-item-excerpt {
display: none;
}
.expanded .note-list-item-excerpt {
white-space: normal;
max-height: 88px;
}
&.is-empty {
align-items: center;
justify-content: center;
height: 100vh;
}
}
.note-list-placeholder {
color: $studio-gray-50;
font-size: 1.3em;
}
.note-list-items {
flex: 1 1 auto;
overflow: hidden;
-webkit-overflow-scrolling: touch;
div:focus {
outline: none;
}
}
.note-list-empty-trash {
flex: none;
padding: 10px 20px;
border-top: 1px solid $studio-gray-5;
text-align: center;
}
.note-list-header {
width: 100%;
height: 28px;
font-size: 14px;
font-weight: 500;
line-height: normal;
color: $studio-gray-70;
background: rgba($studio-gray-5, 0.5);
padding: 5px 30px;
}
.note-list-item {
cursor: pointer;
display: flex;
padding-left: 8px;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
font-family: 'Simplenote Tasks', sans-serif;
min-height: 64px;
.note-list-item-status {
padding: 9px 8px 0 0;
}
.note-list-item-pinner {
color: transparent;
height: 16px;
width: 16px;
}
.note-list-item-pinner:hover,
.note-list-item-pinner.note-list-item-pinned {
color: $studio-simplenote-blue-50;
}
.note-list-item-text {
flex: 1 1 auto;
overflow: hidden;
padding: 9px 0;
border-bottom: 1px solid $studio-gray-5;
&:focus {
outline: none;
}
}
.note-list-item-title,
.note-list-item-excerpt {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
&.note-list-item-selected {
background: $studio-simplenote-blue-5;
}
&.note-recently-updated {
animation: announce-note-update 0.4s ease-in-out;
animation-iteration-count: 3;
}
.note-list-item-status-right {
display: flex;
padding: 9px 6px 0 0; // we want 10px total to the right side, but the icon has 4px padding already
border-bottom: 1px solid $studio-gray-5;
}
.note-list-item-pending-changes,
.note-list-item-published-icon {
padding: 0 4px;
& svg {
fill: $studio-gray-50;
height: 16px;
width: 16px;
}
}
.note-list-item-pending-changes {
& svg {
animation: 2s spin infinite linear;
}
&.is-offline svg {
animation: none;
fill: $studio-gray-20;
}
.theme-dark &.is-offline svg {
fill: $studio-gray-70;
}
}
.note-list-item-title {
display: flex;
justify-content: space-between;
font-size: 16px;
& span {
text-overflow: ellipsis;
overflow: hidden;
}
}
.note-list-item-excerpt {
color: $studio-gray-80;
}
}