Merge lp:~teemperor/lightread/elementary-ui into lp:~cooperjona/lightread/quickly_trunk
- elementary-ui
- Merge into quickly_trunk
Proposed by
Raphael Isemann
Status: | Needs review |
---|---|
Proposed branch: | lp:~teemperor/lightread/elementary-ui |
Merge into: | lp:~cooperjona/lightread/quickly_trunk |
Diff against target: |
1530 lines (+1457/-4) 5 files modified
data/media/app/css/style_elementary.css (+1065/-0) data/media/app/index_elementary.html (+300/-0) debian/control (+1/-0) lightread/LightreadWindow.py (+90/-3) po/lightread.pot (+1/-1) |
To merge this branch: | bzr merge lp:~teemperor/lightread/elementary-ui |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
consindo | Pending | ||
Review via email:
|
Commit message
Description of the change
Added an optional use of the elementary UI as seen here http://
If there is no granite-lib available on the system or the system is not elementary OS this merge will not affect lightread-behaviour in any way.
For quick questions i'm also available on #elementary-dev or #elementary on irc.freenode.net
To post a comment you must log in.
- 64. By Raphael Isemann
-
included a new style.css
- 65. By Raphael Isemann
-
added granite-gir dep
Revision history for this message

Nekhelesh Ramananthan (nik90) wrote : | # |
Raphael all code merge proposals are done in Github. You can find it at https:/
Unmerged revisions
- 65. By Raphael Isemann
-
added granite-gir dep
- 64. By Raphael Isemann
-
included a new style.css
- 63. By Raphael Isemann
-
added tooltips
- 62. By Raphael Isemann
-
added support for a optional Granite UI
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file 'data/media/app/css/style_elementary.css' | |||
2 | --- data/media/app/css/style_elementary.css 1970-01-01 00:00:00 +0000 | |||
3 | +++ data/media/app/css/style_elementary.css 2013-02-27 22:46:21 +0000 | |||
4 | @@ -0,0 +1,1065 @@ | |||
5 | 1 | button:focus { | ||
6 | 2 | outline: none; } | ||
7 | 3 | |||
8 | 4 | a:focus { | ||
9 | 5 | outline: none; } | ||
10 | 6 | |||
11 | 7 | ::-webkit-scrollbar { | ||
12 | 8 | width: 5px; } | ||
13 | 9 | |||
14 | 10 | ::-webkit-scrollbar-thumb { | ||
15 | 11 | background: #4a90d9; } | ||
16 | 12 | |||
17 | 13 | #articles::-webkit-scroller-thumb { | ||
18 | 14 | border-left: 1px solid #e1e1df; } | ||
19 | 15 | |||
20 | 16 | #articles::-webkit-scrollbar-track { | ||
21 | 17 | border-left: 1px solid #9c9c9c; } | ||
22 | 18 | |||
23 | 19 | #post-column::-webkit-scrollbar { | ||
24 | 20 | width: 4px; } | ||
25 | 21 | |||
26 | 22 | #post iframe#instapaper::-webkit-scrollbar-track { | ||
27 | 23 | background: #f4f4f4; } | ||
28 | 24 | |||
29 | 25 | body, html, .splitter { | ||
30 | 26 | height: 100%; | ||
31 | 27 | font-family: "Open Sans", "Ubuntu", "Helvetica", "Arial", sans-serif; } | ||
32 | 28 | |||
33 | 29 | input, textarea { | ||
34 | 30 | font-family: "Open Sans", "Ubuntu", "Helvetica", "Arial", sans-serif; } | ||
35 | 31 | |||
36 | 32 | #app { | ||
37 | 33 | overflow: hidden; | ||
38 | 34 | width: 100%; } | ||
39 | 35 | #app > .vsplitbar { | ||
40 | 36 | width: 1px; | ||
41 | 37 | cursor: col-resize; | ||
42 | 38 | background: #9c9c9c; } | ||
43 | 39 | |||
44 | 40 | #right-side > .vsplitbar { | ||
45 | 41 | width: 1px; | ||
46 | 42 | cursor: col-resize; | ||
47 | 43 | background: white; | ||
48 | 44 | border-left: 1px solid #9c9c9c; | ||
49 | 45 | border-right: 3px solid transparent; | ||
50 | 46 | position: relative; | ||
51 | 47 | top: 1px; } | ||
52 | 48 | #right-side > .vsplitbar:after { | ||
53 | 49 | content: ""; | ||
54 | 50 | position: absolute; | ||
55 | 51 | display: block; | ||
56 | 52 | top: auto; | ||
57 | 53 | bottom: 0; | ||
58 | 54 | left: 0; | ||
59 | 55 | right: auto; | ||
60 | 56 | width: 4px; | ||
61 | 57 | height: 36px; | ||
62 | 58 | background: -webkit-linear-gradient(top, #dbdbdb 0%, #c5c5c5 100%); | ||
63 | 59 | border-top: 1px solid #737373; } | ||
64 | 60 | |||
65 | 61 | #feeds-column { | ||
66 | 62 | height: 100%; | ||
67 | 63 | width: 200px; | ||
68 | 64 | min-width: 20px; | ||
69 | 65 | background: #dbdbdb; | ||
70 | 66 | box-shadow: 0 1px 0 #7c7c7c inset; } | ||
71 | 67 | #feeds-column * { | ||
72 | 68 | -webkit-user-select: none; } | ||
73 | 69 | #feeds-column ul { | ||
74 | 70 | margin: 0; | ||
75 | 71 | padding: 0; } | ||
76 | 72 | #feeds-column #filters { | ||
77 | 73 | position: absolute; | ||
78 | 74 | display: block; | ||
79 | 75 | top: 0; | ||
80 | 76 | bottom: auto; | ||
81 | 77 | left: 0; | ||
82 | 78 | right: 0; | ||
83 | 79 | height: 76px; | ||
84 | 80 | border-bottom: 1px dashed rgba(0, 0, 0, 0.1); } | ||
85 | 81 | #feeds-column #feeds { | ||
86 | 82 | position: absolute; | ||
87 | 83 | display: block; | ||
88 | 84 | top: 77px; | ||
89 | 85 | bottom: 36px; | ||
90 | 86 | left: 0; | ||
91 | 87 | right: 0; | ||
92 | 88 | overflow-y: auto; | ||
93 | 89 | overflow-x: hidden; | ||
94 | 90 | border-top: 1px dashed rgba(255, 255, 255, 0.6); } | ||
95 | 91 | #feeds-column .empty-message { | ||
96 | 92 | display: none; | ||
97 | 93 | font-size: 13px; | ||
98 | 94 | font-family: "Raleway", "Open Sans", "Ubuntu", sans-serif; | ||
99 | 95 | text-shadow: 0 0 1px rgba(0, 0, 0, 0.01), 0 1px 0 white; | ||
100 | 96 | margin-top: 140px; | ||
101 | 97 | padding: 0 20px; | ||
102 | 98 | line-height: 20px; | ||
103 | 99 | color: #555555; } | ||
104 | 100 | |||
105 | 101 | #articles-column { | ||
106 | 102 | min-width: 250px; | ||
107 | 103 | height: 100%; | ||
108 | 104 | width: 300px; | ||
109 | 105 | background: white; | ||
110 | 106 | box-shadow: 0 1px 0 #7c7c7c inset; } | ||
111 | 107 | #articles-column * { | ||
112 | 108 | -webkit-user-select: none; } | ||
113 | 109 | #articles-column #articles { | ||
114 | 110 | position: absolute; | ||
115 | 111 | display: block; | ||
116 | 112 | top: 0; | ||
117 | 113 | bottom: 36px; | ||
118 | 114 | left: 0; | ||
119 | 115 | right: 0; | ||
120 | 116 | overflow-y: scroll; | ||
121 | 117 | margin: 0; | ||
122 | 118 | padding: 0; } | ||
123 | 119 | #articles-column .bar { | ||
124 | 120 | display: -webkit-box; } | ||
125 | 121 | |||
126 | 122 | #post-column { | ||
127 | 123 | min-width: 20px; | ||
128 | 124 | height: 100%; | ||
129 | 125 | margin-left: -5px; | ||
130 | 126 | padding-left: 5px; | ||
131 | 127 | background: white; | ||
132 | 128 | box-shadow: 0 1px 0 #7c7c7c inset; } | ||
133 | 129 | #post-column .bar.disabled #read-button, | ||
134 | 130 | #post-column .bar.disabled #star-button, | ||
135 | 131 | #post-column .bar.disabled #close-post-button, | ||
136 | 132 | #post-column .bar.disabled #instapaper-button, | ||
137 | 133 | #post-column .bar.disabled #share-button { | ||
138 | 134 | opacity: 0.4; } | ||
139 | 135 | #post-column #post-window { | ||
140 | 136 | position: absolute; | ||
141 | 137 | display: block; | ||
142 | 138 | top: 0; | ||
143 | 139 | bottom: 36px; | ||
144 | 140 | left: 0; | ||
145 | 141 | right: 0; | ||
146 | 142 | overflow-y: auto; } | ||
147 | 143 | #post-column #post-window.instapaper { | ||
148 | 144 | background: #f4f4f4; } | ||
149 | 145 | #post-column #post-window.instapaper #post { | ||
150 | 146 | margin: 0; | ||
151 | 147 | padding: 0; | ||
152 | 148 | max-width: 100%; } | ||
153 | 149 | |||
154 | 150 | .scope:after, .scope:before { | ||
155 | 151 | content: ""; | ||
156 | 152 | position: absolute; | ||
157 | 153 | display: block; | ||
158 | 154 | top: auto; | ||
159 | 155 | bottom: 35px; | ||
160 | 156 | left: 50%; | ||
161 | 157 | right: auto; | ||
162 | 158 | border: solid transparent; | ||
163 | 159 | height: 0; | ||
164 | 160 | width: 0; | ||
165 | 161 | position: absolute; | ||
166 | 162 | pointer-events: none; | ||
167 | 163 | z-index: 10; } | ||
168 | 164 | |||
169 | 165 | .scope:after { | ||
170 | 166 | border-bottom-color: #dbdbdb; | ||
171 | 167 | border-width: 10px; | ||
172 | 168 | left: 50%; | ||
173 | 169 | margin-left: -10px; } | ||
174 | 170 | |||
175 | 171 | .scope:before { | ||
176 | 172 | border-bottom-color: #737373; | ||
177 | 173 | border-width: 11px; | ||
178 | 174 | left: 50%; | ||
179 | 175 | margin-left: -11px; } | ||
180 | 176 | |||
181 | 177 | #hidden { | ||
182 | 178 | display: none; } | ||
183 | 179 | |||
184 | 180 | .bar { | ||
185 | 181 | position: absolute; | ||
186 | 182 | display: block; | ||
187 | 183 | top: auto; | ||
188 | 184 | bottom: 0; | ||
189 | 185 | left: 0; | ||
190 | 186 | right: 0; | ||
191 | 187 | height: 35px; | ||
192 | 188 | background: -webkit-linear-gradient(top, #dbdbdb 0%, #c5c5c5 100%); | ||
193 | 189 | border-top: 1px solid #737373; | ||
194 | 190 | font-size: 0; } | ||
195 | 191 | .bar div { | ||
196 | 192 | display: inline-block; } | ||
197 | 193 | .bar button { | ||
198 | 194 | width: 35px; | ||
199 | 195 | height: 35px; | ||
200 | 196 | border: 0; | ||
201 | 197 | line-height: 35px; | ||
202 | 198 | vertical-align: top; | ||
203 | 199 | background: transparent; | ||
204 | 200 | padding: 0; } | ||
205 | 201 | |||
206 | 202 | #refresh-button { | ||
207 | 203 | margin: 0 2px; | ||
208 | 204 | background-image: url(../images/sync.png); | ||
209 | 205 | background-repeat: no-repeat; | ||
210 | 206 | background-position: 5px -211px; } | ||
211 | 207 | |||
212 | 208 | #mark-all-as-read-trigger { | ||
213 | 209 | background: url(../images/btn_mark_all_read.png); | ||
214 | 210 | margin: 0 2px; | ||
215 | 211 | width: 36px; } | ||
216 | 212 | |||
217 | 213 | #mark-all-as-read-popup { | ||
218 | 214 | width: 150px; | ||
219 | 215 | height: 32px; | ||
220 | 216 | position: absolute; | ||
221 | 217 | display: block; | ||
222 | 218 | top: auto; | ||
223 | 219 | bottom: 35px; | ||
224 | 220 | left: 4px; | ||
225 | 221 | right: auto; | ||
226 | 222 | border-radius: 5px; | ||
227 | 223 | background: rgba(0, 0, 0, 0.7); | ||
228 | 224 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px rgba(255, 255, 255, 0.3); | ||
229 | 225 | border: 1px solid black; | ||
230 | 226 | display: none; | ||
231 | 227 | z-index: 11; } | ||
232 | 228 | #mark-all-as-read-popup:after, #mark-all-as-read-popup:before { | ||
233 | 229 | top: 100%; | ||
234 | 230 | border: solid transparent; | ||
235 | 231 | content: " "; | ||
236 | 232 | height: 0; | ||
237 | 233 | width: 0; | ||
238 | 234 | position: absolute; | ||
239 | 235 | pointer-events: none; } | ||
240 | 236 | #mark-all-as-read-popup:after { | ||
241 | 237 | border-top-color: rgba(0, 0, 0, 0.8); | ||
242 | 238 | border-width: 8px; | ||
243 | 239 | left: 10%; | ||
244 | 240 | margin-left: -8px; } | ||
245 | 241 | #mark-all-as-read-popup #mark-all-as-read-button { | ||
246 | 242 | background: -webkit-linear-gradient(top, #3a3a3a 0%, #232323 100%); | ||
247 | 243 | width: 138px; | ||
248 | 244 | height: 22px; | ||
249 | 245 | margin: 4px 5px; | ||
250 | 246 | border-radius: 3px; | ||
251 | 247 | box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(255, 255, 255, 0.2); | ||
252 | 248 | color: #dddddd; | ||
253 | 249 | font-family: "Open Sans", "Ubuntu Medium", "Ubuntu", "Helvetica", "Arial", sans-serif; | ||
254 | 250 | font-size: 13px; | ||
255 | 251 | font-weight: 600; | ||
256 | 252 | line-height: 22px; | ||
257 | 253 | text-align: center; | ||
258 | 254 | border: 1px solid #1a1a1a; | ||
259 | 255 | cursor: default; | ||
260 | 256 | text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); } | ||
261 | 257 | #mark-all-as-read-popup #mark-all-as-read-button:active { | ||
262 | 258 | background: -webkit-linear-gradient(bottom, #3a3a3a 0%, #232323 100%); } | ||
263 | 259 | |||
264 | 260 | #add-button { | ||
265 | 261 | background: url(../images/btn_add.png) no-repeat 8px 8px; | ||
266 | 262 | float: right; } | ||
267 | 263 | |||
268 | 264 | #search-button { | ||
269 | 265 | background: url(../images/btn_search.png); | ||
270 | 266 | margin: 0 2px; } | ||
271 | 267 | |||
272 | 268 | #close-post-button { | ||
273 | 269 | background: url(../images/btn_close.png) no-repeat 8px 8px; | ||
274 | 270 | margin: 0 2px; } | ||
275 | 271 | |||
276 | 272 | #star-button { | ||
277 | 273 | background: url(../images/btn_star.png) no-repeat 8px -18px; | ||
278 | 274 | margin: 8px 2px 0; | ||
279 | 275 | height: 18px; } | ||
280 | 276 | #star-button.starred { | ||
281 | 277 | background-position-y: 0; } | ||
282 | 278 | |||
283 | 279 | #instapaper-button { | ||
284 | 280 | background: url(../images/icon_instapaper.png) no-repeat 8px 8px; | ||
285 | 281 | margin: 0 2px; } | ||
286 | 282 | |||
287 | 283 | #share-button { | ||
288 | 284 | background: url(../images/btn_share.png) no-repeat 8px 8px; | ||
289 | 285 | margin: 0 2px; } | ||
290 | 286 | #share-button.active { | ||
291 | 287 | background-image: url(../images/share_spinner.gif); } | ||
292 | 288 | |||
293 | 289 | #post iframe#instapaper { | ||
294 | 290 | width: 100%; | ||
295 | 291 | height: 100%; | ||
296 | 292 | margin: 0; | ||
297 | 293 | padding: 0; | ||
298 | 294 | box-shadow: none; | ||
299 | 295 | background: #f4f4f4; } | ||
300 | 296 | |||
301 | 297 | #read-button { | ||
302 | 298 | background: url(../images/btn_read.png) no-repeat 8px -17px; | ||
303 | 299 | margin: 8px 2px 0; | ||
304 | 300 | height: 17px; } | ||
305 | 301 | #read-button.read { | ||
306 | 302 | background-position-y: 0; } | ||
307 | 303 | |||
308 | 304 | #settings-button { | ||
309 | 305 | background: url(../images/btn_settings.png) no-repeat 0 0; | ||
310 | 306 | width: 16px; | ||
311 | 307 | height: 18px; | ||
312 | 308 | margin: 8px 10px 0; | ||
313 | 309 | float: right; } | ||
314 | 310 | |||
315 | 311 | #item-count { | ||
316 | 312 | display: block; | ||
317 | 313 | -webkit-box-flex: 1; | ||
318 | 314 | text-align: center; | ||
319 | 315 | font-size: 13px; | ||
320 | 316 | color: #4c4c4c; | ||
321 | 317 | text-shadow: 0 1px 0 white; | ||
322 | 318 | line-height: 33px; } | ||
323 | 319 | |||
324 | 320 | #search-input { | ||
325 | 321 | display: block; | ||
326 | 322 | -webkit-box-flex: 1; | ||
327 | 323 | -webkit-user-select: text; | ||
328 | 324 | height: 25px; | ||
329 | 325 | margin-top: 5px; | ||
330 | 326 | padding: 5px 10px; | ||
331 | 327 | font-size: 13px; | ||
332 | 328 | box-sizing: border-box; | ||
333 | 329 | box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 0 white; | ||
334 | 330 | border-radius: 3px; | ||
335 | 331 | border: 0; | ||
336 | 332 | border: 1px solid #cccccc; | ||
337 | 333 | color: #4c4c4c; | ||
338 | 334 | outline: 0; | ||
339 | 335 | line-height: 15px; } | ||
340 | 336 | #search-input.active { | ||
341 | 337 | background: lightblue; } | ||
342 | 338 | |||
343 | 339 | #link-url { | ||
344 | 340 | position: absolute; | ||
345 | 341 | display: block; | ||
346 | 342 | top: 0; | ||
347 | 343 | bottom: 0; | ||
348 | 344 | left: 193px; | ||
349 | 345 | right: 35px; | ||
350 | 346 | line-height: 35px; | ||
351 | 347 | font-size: 13px; | ||
352 | 348 | color: #4c4c4c; | ||
353 | 349 | text-shadow: 0 1px 0 white; | ||
354 | 350 | overflow: hidden; | ||
355 | 351 | white-space: nowrap; | ||
356 | 352 | text-overflow: ellipsis; | ||
357 | 353 | text-align: right; } | ||
358 | 354 | |||
359 | 355 | #feeds, #filters { | ||
360 | 356 | font-size: 13px; } | ||
361 | 357 | #feeds li, #filters li { | ||
362 | 358 | cursor: default; | ||
363 | 359 | text-align: left; | ||
364 | 360 | text-shadow: 0 1px 0 white; } | ||
365 | 361 | #feeds li.label, #filters li.label { | ||
366 | 362 | -webkit-transition: background 0.3s; | ||
367 | 363 | height: auto; } | ||
368 | 364 | #feeds li.label header .icon .bit, #filters li.label header .icon .bit { | ||
369 | 365 | display: block; | ||
370 | 366 | background: url(../images/icon_label.png); | ||
371 | 367 | width: 16px; | ||
372 | 368 | height: 16px; | ||
373 | 369 | -webkit-transition: all 0.3s; } | ||
374 | 370 | #feeds li.label header .icon .bit:active, #filters li.label header .icon .bit:active { | ||
375 | 371 | -webkit-transform: rotate(45deg); } | ||
376 | 372 | #feeds li.label.expanded, #filters li.label.expanded { | ||
377 | 373 | padding-bottom: 5px; } | ||
378 | 374 | #feeds li.label.expanded header .icon .bit, #filters li.label.expanded header .icon .bit { | ||
379 | 375 | -webkit-transform: rotate(90deg); } | ||
380 | 376 | #feeds li.label.expanded header .icon .bit:active, #filters li.label.expanded header .icon .bit:active { | ||
381 | 377 | -webkit-transform: rotate(45deg); } | ||
382 | 378 | #feeds li.label.expanded ul, #filters li.label.expanded ul { | ||
383 | 379 | display: block; } | ||
384 | 380 | #feeds li.label ul li, #filters li.label ul li { | ||
385 | 381 | padding-left: 10px; } | ||
386 | 382 | #feeds li.feed, #feeds li.filter, #feeds li.label header, #filters li.feed, #filters li.filter, #filters li.label header { | ||
387 | 383 | height: 20px; | ||
388 | 384 | line-height: 20px; | ||
389 | 385 | display: -webkit-box; | ||
390 | 386 | border-top: 1px solid transparent; | ||
391 | 387 | border-bottom: 1px solid transparent; | ||
392 | 388 | -webkit-transition: background 0.15s; | ||
393 | 389 | color: #4c4c4c; } | ||
394 | 390 | #feeds li.feed:first-child, #feeds li.filter:first-child, #feeds li.label header:first-child, #filters li.feed:first-child, #filters li.filter:first-child, #filters li.label header:first-child { | ||
395 | 391 | margin-top: 5px; } | ||
396 | 392 | #feeds li.feed:hover, #feeds li.filter:hover, #feeds li.label header:hover, #filters li.feed:hover, #filters li.filter:hover, #filters li.label header:hover { | ||
397 | 393 | background: whitesmoke; } | ||
398 | 394 | #feeds li.feed.selected, #feeds li.filter.selected, #feeds li.label header.selected, #filters li.feed.selected, #filters li.filter.selected, #filters li.label header.selected { | ||
399 | 395 | color: white; | ||
400 | 396 | border-top: 1px solid #5296de; | ||
401 | 397 | border-bottom: 1px solid #377fc9; | ||
402 | 398 | background: -webkit-linear-gradient(top, #74b0ee 0%, #4c91da 100%); | ||
403 | 399 | box-shadow: 0 1px 0 #91c1f3 inset, 0 -1px 0 #5b9adc inset; | ||
404 | 400 | text-shadow: 0 1px 0 #4c4c4c; } | ||
405 | 401 | #feeds li.feed.selected .count, #feeds li.filter.selected .count, #feeds li.label header.selected .count, #filters li.feed.selected .count, #filters li.filter.selected .count, #filters li.label header.selected .count { | ||
406 | 402 | background: rgba(255, 255, 255, 0.8); | ||
407 | 403 | color: #61a1e5; } | ||
408 | 404 | #feeds li.feed.hover, #feeds li.filter.hover, #feeds li.label header.hover, #filters li.feed.hover, #filters li.filter.hover, #filters li.label header.hover { | ||
409 | 405 | background: rgba(0, 0, 0, 0.05); | ||
410 | 406 | border-top: 1px solid #cccccc; | ||
411 | 407 | border-bottom: 1px solid #cccccc; } | ||
412 | 408 | #feeds li .icon, #filters li .icon { | ||
413 | 409 | -webkit-box-flex: 0; | ||
414 | 410 | display: block; | ||
415 | 411 | height: 16px; | ||
416 | 412 | width: 16px; | ||
417 | 413 | margin: 1px 3px 3px 11px; } | ||
418 | 414 | #feeds li .title, #filters li .title { | ||
419 | 415 | display: block; | ||
420 | 416 | -webkit-box-flex: 1; | ||
421 | 417 | overflow: hidden; | ||
422 | 418 | white-space: nowrap; | ||
423 | 419 | text-overflow: ellipsis; | ||
424 | 420 | font-weight: 500; | ||
425 | 421 | line-height: 20px; } | ||
426 | 422 | #feeds li .count, #filters li .count { | ||
427 | 423 | display: block; | ||
428 | 424 | -webkit-box-flex: 0; | ||
429 | 425 | color: white; | ||
430 | 426 | font-weight: bold; | ||
431 | 427 | text-shadow: none; | ||
432 | 428 | font-size: 11px; | ||
433 | 429 | height: 16px; | ||
434 | 430 | line-height: 16px; | ||
435 | 431 | padding: 0 5px; | ||
436 | 432 | margin: 2px 5px 6px 5px; | ||
437 | 433 | background: rgba(0, 0, 0, 0.5); | ||
438 | 434 | border-radius: 6px; } | ||
439 | 435 | |||
440 | 436 | #articles li { | ||
441 | 437 | padding: 0 5px; | ||
442 | 438 | border-top: 1px solid white; | ||
443 | 439 | border-bottom: 1px solid #9c9c9c; | ||
444 | 440 | font-size: 12px; | ||
445 | 441 | overflow: hidden; | ||
446 | 442 | cursor: default; | ||
447 | 443 | -webkit-transition: height 150; | ||
448 | 444 | position: relative; } | ||
449 | 445 | #articles li:last-child { | ||
450 | 446 | margin-bottom: 10px; } | ||
451 | 447 | #articles li.read .title { | ||
452 | 448 | color: #777777; } | ||
453 | 449 | #articles li.starred .title { | ||
454 | 450 | color: #3b3b3b; | ||
455 | 451 | position: relative; } | ||
456 | 452 | #articles li.starred .title:after { | ||
457 | 453 | position: absolute; | ||
458 | 454 | display: block; | ||
459 | 455 | top: 5px; | ||
460 | 456 | bottom: auto; | ||
461 | 457 | left: 3px; | ||
462 | 458 | right: auto; | ||
463 | 459 | content: ""; | ||
464 | 460 | display: inline-block; | ||
465 | 461 | width: 13px; | ||
466 | 462 | height: 14px; | ||
467 | 463 | background: url(../images/icon_starred_alt.png) no-repeat; | ||
468 | 464 | opacity: 0.3; } | ||
469 | 465 | #articles li.selected { | ||
470 | 466 | color: white; | ||
471 | 467 | border-top: 1px solid #5296de; | ||
472 | 468 | border-bottom: 1px solid #377fc9; | ||
473 | 469 | background: -webkit-linear-gradient(top, #74b0ee 0%, #4c91da 100%); | ||
474 | 470 | box-shadow: 0 1px 0 #91c1f3 inset, 0 -1px 0 #5b9adc inset; | ||
475 | 471 | margin: -1px auto; | ||
476 | 472 | z-index: 1; } | ||
477 | 473 | #articles li.selected:first-child { | ||
478 | 474 | border-top: 0; } | ||
479 | 475 | #articles li.selected + li { | ||
480 | 476 | border-top: 1px solid transparent; } | ||
481 | 477 | #articles li.selected.no-border { | ||
482 | 478 | box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 -1px 0 white; | ||
483 | 479 | border-bottom: 1px solid transparent; } | ||
484 | 480 | #articles li.selected .feed, #articles li.selected .title { | ||
485 | 481 | color: white; | ||
486 | 482 | text-shadow: 0 1px 0 rgba(76, 76, 76, 0.5); } | ||
487 | 483 | #articles li.selected .time, #articles li.selected .snippet { | ||
488 | 484 | color: rgba(255, 255, 255, 0.7); | ||
489 | 485 | text-shadow: 0 1px 0 rgba(76, 76, 76, 0.3); } | ||
490 | 486 | #articles li.hover:after { | ||
491 | 487 | content: ""; | ||
492 | 488 | position: absolute; | ||
493 | 489 | display: block; | ||
494 | 490 | top: 1px; | ||
495 | 491 | bottom: 2px; | ||
496 | 492 | left: 1px; | ||
497 | 493 | right: 1px; | ||
498 | 494 | background: rgba(0, 0, 0, 0.05); | ||
499 | 495 | border: 1px solid rgba(0, 0, 0, 0.2); } | ||
500 | 496 | #articles li header { | ||
501 | 497 | display: -webkit-box; } | ||
502 | 498 | #articles li header .icon { | ||
503 | 499 | padding: 4px 4px 0 2px; } | ||
504 | 500 | #articles li header .feed { | ||
505 | 501 | font-size: 11px; | ||
506 | 502 | color: #777777; | ||
507 | 503 | line-height: 25px; | ||
508 | 504 | -webkit-box-flex: 1; | ||
509 | 505 | display: block; | ||
510 | 506 | overflow: hidden; | ||
511 | 507 | white-space: nowrap; | ||
512 | 508 | text-overflow: ellipsis; } | ||
513 | 509 | #articles li header .time { | ||
514 | 510 | display: block; | ||
515 | 511 | line-height: 25px; | ||
516 | 512 | font-size: 11px; | ||
517 | 513 | margin-right: 2px; | ||
518 | 514 | color: #777777; } | ||
519 | 515 | #articles li .title { | ||
520 | 516 | font-size: 12px; | ||
521 | 517 | display: block; | ||
522 | 518 | margin-top: -2px; | ||
523 | 519 | padding: 0 0 2px 22px; | ||
524 | 520 | font-weight: bold; | ||
525 | 521 | color: #3b3b3b; | ||
526 | 522 | text-shadow: 0 0 1px rgba(0, 0, 0, 0.01); } | ||
527 | 523 | #articles li .snippet { | ||
528 | 524 | display: block; | ||
529 | 525 | padding: 0 0 0 22px; | ||
530 | 526 | line-height: 16px; | ||
531 | 527 | color: #888888; | ||
532 | 528 | height: 34px; | ||
533 | 529 | overflow: hidden; } | ||
534 | 530 | #articles .splitter { | ||
535 | 531 | height: 20px; | ||
536 | 532 | padding-left: 10px; | ||
537 | 533 | font-size: 13px; | ||
538 | 534 | font-weight: bold; | ||
539 | 535 | color: #666666; | ||
540 | 536 | line-height: 20px; | ||
541 | 537 | background: #f3f3f3; | ||
542 | 538 | border: 1px solid #9c9c9c; | ||
543 | 539 | border-left: 0; | ||
544 | 540 | border-right: 0; } | ||
545 | 541 | #articles .splitter:first-child { | ||
546 | 542 | border-top: 0; | ||
547 | 543 | margin-top: 5px; } | ||
548 | 544 | #articles .splitter:first-child { | ||
549 | 545 | border-top: 1px solid #9c9c9c; } | ||
550 | 546 | #articles .splitter + li { | ||
551 | 547 | border-top: 1px solid transparent; } | ||
552 | 548 | #articles .splitter + li.selected { | ||
553 | 549 | padding-top: 0; } | ||
554 | 550 | #articles li.no-border { | ||
555 | 551 | border-bottom: 1px solid transparent; } | ||
556 | 552 | #articles li.no-border.selected { | ||
557 | 553 | border-bottom: 1px solid #9c9c9c; } | ||
558 | 554 | |||
559 | 555 | #post { | ||
560 | 556 | font-family: "Open Sans", "Ubuntu", sans-serif; | ||
561 | 557 | font-weight: 400; | ||
562 | 558 | font-size: 12px; | ||
563 | 559 | line-height: 1.5; | ||
564 | 560 | max-width: 600px; | ||
565 | 561 | overflow: hidden; | ||
566 | 562 | margin: 0 auto; | ||
567 | 563 | padding: 0 25px; } | ||
568 | 564 | #post .post-link { | ||
569 | 565 | display: block; | ||
570 | 566 | position: relative; | ||
571 | 567 | margin-top: 30px; | ||
572 | 568 | margin-bottom: 30px; | ||
573 | 569 | border: 1px solid transparent; | ||
574 | 570 | border-bottom: 1px solid rgba(0, 0, 0, 0.1); | ||
575 | 571 | box-shadow: 0 1px 0 white; } | ||
576 | 572 | #post .post-link .details { | ||
577 | 573 | font-weight: 400; | ||
578 | 574 | display: block; | ||
579 | 575 | font-size: 12px; | ||
580 | 576 | color: #666666; } | ||
581 | 577 | #post .post-link h1.title { | ||
582 | 578 | font-family: "Raleway", "Open Sans", "Ubuntu", sans-serif; | ||
583 | 579 | font-weight: 200; | ||
584 | 580 | font-size: 48px; | ||
585 | 581 | line-height: 1; | ||
586 | 582 | color: #4c4c4c; | ||
587 | 583 | padding-bottom: 10px; | ||
588 | 584 | margin: 0; | ||
589 | 585 | line-height: 1; | ||
590 | 586 | text-shadow: 0 0 1px rgba(0, 0, 0, 0.01); | ||
591 | 587 | max-width: 600px; } | ||
592 | 588 | #post .post-link:hover h1.title { | ||
593 | 589 | text-decoration: underline; } | ||
594 | 590 | #post strong { | ||
595 | 591 | font-weight: bold; } | ||
596 | 592 | #post em { | ||
597 | 593 | font-style: italic; } | ||
598 | 594 | #post table { | ||
599 | 595 | max-width: 600px; | ||
600 | 596 | width: 100%; } | ||
601 | 597 | #post img { | ||
602 | 598 | max-width: 100% !important; | ||
603 | 599 | box-sizing: border-box; | ||
604 | 600 | height: auto !important; } | ||
605 | 601 | #post img:not(.no-border), #post iframe { | ||
606 | 602 | /* images resize with window */ | ||
607 | 603 | padding: 4px; | ||
608 | 604 | margin: 0 15px 15px auto; | ||
609 | 605 | display: table; | ||
610 | 606 | background-color: white; | ||
611 | 607 | border: none; | ||
612 | 608 | border-radius: 2px; | ||
613 | 609 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); } | ||
614 | 610 | #post p img:not(.no-border), #post p iframe { | ||
615 | 611 | margin: 15px auto; } | ||
616 | 612 | #post h1 { | ||
617 | 613 | font-family: "Open Sans", "Ubuntu", sans-serif; | ||
618 | 614 | font-weight: 700; | ||
619 | 615 | font-size: 32px; | ||
620 | 616 | line-height: 1.5; } | ||
621 | 617 | #post h1 strong { | ||
622 | 618 | font-weight: inherit; } | ||
623 | 619 | #post h2 { | ||
624 | 620 | font-family: "Open Sans", "Ubuntu", sans-serif; | ||
625 | 621 | font-weight: 200; | ||
626 | 622 | font-size: 24px; | ||
627 | 623 | line-height: 28px; | ||
628 | 624 | text-shadow: 0 0 1px rgba(0, 0, 0, 0.01); | ||
629 | 625 | color: #4c4c4c; } | ||
630 | 626 | #post h2 strong { | ||
631 | 627 | font-weight: inherit; } | ||
632 | 628 | #post h3 { | ||
633 | 629 | font-size: 18px; | ||
634 | 630 | color: #4c4c4c; | ||
635 | 631 | text-shadow: 0 0 1px rgba(0, 0, 0, 0.01); } | ||
636 | 632 | #post h3 strong { | ||
637 | 633 | font-weight: inherit; } | ||
638 | 634 | #post a { | ||
639 | 635 | color: #08a8c5; | ||
640 | 636 | text-decoration: none; } | ||
641 | 637 | #post a:not(.post-link):hover { | ||
642 | 638 | text-decoration: underline; } | ||
643 | 639 | #post a.youtube { | ||
644 | 640 | display: block; | ||
645 | 641 | position: relative; } | ||
646 | 642 | #post a.youtube:after { | ||
647 | 643 | content: ""; | ||
648 | 644 | position: absolute; | ||
649 | 645 | display: block; | ||
650 | 646 | top: 50%; | ||
651 | 647 | bottom: auto; | ||
652 | 648 | left: 50%; | ||
653 | 649 | right: auto; | ||
654 | 650 | width: 77px; | ||
655 | 651 | height: 77px; | ||
656 | 652 | margin: -37px 0 0 -37px; | ||
657 | 653 | z-index: 5; | ||
658 | 654 | background: url(../images/youtube.png); } | ||
659 | 655 | #post p, #post div, #post img { | ||
660 | 656 | max-width: 600px; } | ||
661 | 657 | #post a.hasImage { | ||
662 | 658 | border-bottom: 0; } | ||
663 | 659 | #post hr { | ||
664 | 660 | height: 2px; | ||
665 | 661 | border: 0; | ||
666 | 662 | background: url(../images/hr.png); } | ||
667 | 663 | #post blockquote { | ||
668 | 664 | font-style: italic; } | ||
669 | 665 | |||
670 | 666 | #modal * { | ||
671 | 667 | -webkit-user-select: none; } | ||
672 | 668 | #modal > div { | ||
673 | 669 | position: fixed; | ||
674 | 670 | border-radius: 5px; | ||
675 | 671 | background: white; | ||
676 | 672 | box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); | ||
677 | 673 | z-index: 300; } | ||
678 | 674 | #modal > div h3 { | ||
679 | 675 | margin: 20px 0 10px; | ||
680 | 676 | color: #4c4c4c; | ||
681 | 677 | padding: 0 25px; | ||
682 | 678 | font-size: 24px; | ||
683 | 679 | font-weight: 300; | ||
684 | 680 | font-family: "Raleway", "Open Sans", "Ubuntu", sans-serif; } | ||
685 | 681 | #modal > div p { | ||
686 | 682 | font-size: 13px; | ||
687 | 683 | color: #4c4c4c; | ||
688 | 684 | margin: 0 25px 15px; | ||
689 | 685 | line-height: 18px; } | ||
690 | 686 | #modal > div input { | ||
691 | 687 | width: 250px; | ||
692 | 688 | vertical-align: top; | ||
693 | 689 | font-size: 13px; | ||
694 | 690 | line-height: 20px; | ||
695 | 691 | border-radius: 2px 0 0 2px; | ||
696 | 692 | height: 20px; | ||
697 | 693 | outline: none; | ||
698 | 694 | border: 1px solid rgba(0, 0, 0, 0.2); | ||
699 | 695 | border-right: 0; | ||
700 | 696 | padding: 5px 10px; | ||
701 | 697 | background: url(../images/input_bg.png); | ||
702 | 698 | box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 white; | ||
703 | 699 | color: #444444; | ||
704 | 700 | margin-left: 25px; | ||
705 | 701 | -webkit-user-select: text; } | ||
706 | 702 | #modal > div input.isolated { | ||
707 | 703 | border-radius: 2px; | ||
708 | 704 | border: 1px solid rgba(0, 0, 0, 0.2); | ||
709 | 705 | margin-top: 3px; | ||
710 | 706 | margin-bottom: 3px; } | ||
711 | 707 | #modal > div button { | ||
712 | 708 | text-decoration: none; | ||
713 | 709 | line-height: 27px; | ||
714 | 710 | padding: 0 10px; | ||
715 | 711 | height: 32px; | ||
716 | 712 | border-radius: 2px; | ||
717 | 713 | font-size: 13px; | ||
718 | 714 | font-weight: bold; | ||
719 | 715 | border: 1px solid #959595; | ||
720 | 716 | color: #242424; | ||
721 | 717 | font-family: "Open Sans", "Ubuntu Medium", "Ubuntu", "Helvetica", "Arial", sans-serif; | ||
722 | 718 | margin: 0 6px 25px; | ||
723 | 719 | background: -webkit-linear-gradient(top, white 0%, whitesmoke 100%); } | ||
724 | 720 | #modal > div button:focus { | ||
725 | 721 | outline: 0; | ||
726 | 722 | background: -webkit-linear-gradient(top, white 0%, #f9f9f9 100%); | ||
727 | 723 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); } | ||
728 | 724 | #modal > div button:hover { | ||
729 | 725 | background: -webkit-linear-gradient(top, white 0%, #f9f9f9 100%); | ||
730 | 726 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); } | ||
731 | 727 | #modal > div button:active { | ||
732 | 728 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1); | ||
733 | 729 | background: -webkit-linear-gradient(bottom, white 0%, whitesmoke 100%); } | ||
734 | 730 | #modal .add { | ||
735 | 731 | top: 40%; | ||
736 | 732 | left: 50%; | ||
737 | 733 | margin-top: -52px; | ||
738 | 734 | margin-left: -190px; | ||
739 | 735 | width: 381px; | ||
740 | 736 | display: none; } | ||
741 | 737 | #modal .add h3:after { | ||
742 | 738 | width: 146px; | ||
743 | 739 | background: url(../images/modal_header_text.png); } | ||
744 | 740 | #modal .add button { | ||
745 | 741 | border-radius: 0 2px 2px 0; | ||
746 | 742 | width: 60px; | ||
747 | 743 | padding: 0; | ||
748 | 744 | margin: 0 25px 25px 0; } | ||
749 | 745 | #modal .add .error { | ||
750 | 746 | display: none; | ||
751 | 747 | margin-top: -15px; } | ||
752 | 748 | #modal .confirm { | ||
753 | 749 | top: 40%; | ||
754 | 750 | left: 50%; | ||
755 | 751 | margin-top: -52px; | ||
756 | 752 | margin-left: -190px; | ||
757 | 753 | width: 340px; | ||
758 | 754 | text-align: center; | ||
759 | 755 | display: none; } | ||
760 | 756 | #modal .confirm h3:after { | ||
761 | 757 | background: url(../images/text_are_you_sure.png); | ||
762 | 758 | width: 100px; } | ||
763 | 759 | #modal .confirm .title { | ||
764 | 760 | font-weight: bold; } | ||
765 | 761 | #modal .confirm button { | ||
766 | 762 | width: 90px; | ||
767 | 763 | padding: 0; } | ||
768 | 764 | #modal .rename { | ||
769 | 765 | top: 40%; | ||
770 | 766 | left: 50%; | ||
771 | 767 | margin-top: -52px; | ||
772 | 768 | margin-left: -190px; | ||
773 | 769 | width: 381px; | ||
774 | 770 | display: none; } | ||
775 | 771 | #modal .rename h3:after { | ||
776 | 772 | background: url(../images/text_rename_feed.png); | ||
777 | 773 | width: 98px; } | ||
778 | 774 | #modal .rename button { | ||
779 | 775 | border-radius: 0 2px 2px 0; | ||
780 | 776 | width: 60px; | ||
781 | 777 | padding: 0; | ||
782 | 778 | margin: 0 25px 25px 0; } | ||
783 | 779 | #modal .pocket-login, #modal .instapaper-login { | ||
784 | 780 | top: 40%; | ||
785 | 781 | left: 50%; | ||
786 | 782 | margin-top: -52px; | ||
787 | 783 | margin-left: -190px; | ||
788 | 784 | width: 330px; | ||
789 | 785 | display: none; } | ||
790 | 786 | #modal .pocket-login button, #modal .instapaper-login button { | ||
791 | 787 | margin-left: 25px; | ||
792 | 788 | margin-top: 3px; | ||
793 | 789 | width: 272px; } | ||
794 | 790 | |||
795 | 791 | #overlay { | ||
796 | 792 | position: fixed; | ||
797 | 793 | width: 100%; | ||
798 | 794 | height: 100%; | ||
799 | 795 | z-index: 200; | ||
800 | 796 | display: none; | ||
801 | 797 | background: rgba(0, 0, 0, 0.3); | ||
802 | 798 | top: 0; | ||
803 | 799 | left: 0; } | ||
804 | 800 | |||
805 | 801 | #loading { | ||
806 | 802 | position: absolute; | ||
807 | 803 | display: block; | ||
808 | 804 | top: 0; | ||
809 | 805 | bottom: 0; | ||
810 | 806 | left: 0; | ||
811 | 807 | right: 0; | ||
812 | 808 | background: white; | ||
813 | 809 | z-index: 100; } | ||
814 | 810 | #loading * { | ||
815 | 811 | -webkit-user-select: none; } | ||
816 | 812 | #loading .login { | ||
817 | 813 | position: absolute; | ||
818 | 814 | display: block; | ||
819 | 815 | top: 50%; | ||
820 | 816 | bottom: auto; | ||
821 | 817 | left: 50%; | ||
822 | 818 | right: auto; | ||
823 | 819 | width: 300px; | ||
824 | 820 | margin-top: -200px; | ||
825 | 821 | margin-left: -150px; | ||
826 | 822 | height: 200px; | ||
827 | 823 | text-align: center; | ||
828 | 824 | display: none; } | ||
829 | 825 | #loading .login h3 { | ||
830 | 826 | text-align: center; | ||
831 | 827 | color: #4c4c4c; | ||
832 | 828 | text-shadow: 0 1px 0 white; | ||
833 | 829 | font-weight: 300; | ||
834 | 830 | font-family: "Raleway", "Open Sans", "Ubuntu", sans-serif; | ||
835 | 831 | font-size: 22px; } | ||
836 | 832 | #loading .login .password-wrapper, | ||
837 | 833 | #loading .login .username-wrapper { | ||
838 | 834 | font-size: 13px; | ||
839 | 835 | line-height: 20px; | ||
840 | 836 | border-radius: 2px; | ||
841 | 837 | height: 20px; | ||
842 | 838 | outline: none; | ||
843 | 839 | border: 1px solid rgba(0, 0, 0, 0.2); | ||
844 | 840 | padding: 5px 0 5px 10px; | ||
845 | 841 | width: 290px; | ||
846 | 842 | background: url(../images/input_bg.png); | ||
847 | 843 | box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 white; | ||
848 | 844 | margin: 10px 0; } | ||
849 | 845 | #loading .login .password-wrapper label, | ||
850 | 846 | #loading .login .username-wrapper label { | ||
851 | 847 | text-align: left; | ||
852 | 848 | display: inline-block; | ||
853 | 849 | width: 80px; | ||
854 | 850 | color: #333333; | ||
855 | 851 | font-weight: 500; } | ||
856 | 852 | #loading .login .password-wrapper input, | ||
857 | 853 | #loading .login .username-wrapper input { | ||
858 | 854 | color: #444444; | ||
859 | 855 | outline: none; | ||
860 | 856 | border: none; | ||
861 | 857 | background: transparent; | ||
862 | 858 | width: 200px; | ||
863 | 859 | padding: 0; | ||
864 | 860 | margin: 0; | ||
865 | 861 | -webkit-user-select: text; } | ||
866 | 862 | #loading .login .password-wrapper input[type=password], | ||
867 | 863 | #loading .login .username-wrapper input[type=password] { | ||
868 | 864 | font: small-caption; | ||
869 | 865 | font-size: 16px; } | ||
870 | 866 | #loading .login a { | ||
871 | 867 | display: inline-block; | ||
872 | 868 | text-decoration: none; | ||
873 | 869 | line-height: 27px; | ||
874 | 870 | padding: 0; | ||
875 | 871 | margin: 0 5px; | ||
876 | 872 | width: 100px; | ||
877 | 873 | height: 30px; | ||
878 | 874 | box-sizing: border-box; | ||
879 | 875 | border-radius: 3px; | ||
880 | 876 | font-size: 13px; | ||
881 | 877 | font-weight: bold; | ||
882 | 878 | font-family: "Open Sans", "Ubuntu Medium", "Ubuntu", "Helvetica", "Arial", sans-serif; | ||
883 | 879 | border: 1px solid #959595; | ||
884 | 880 | color: #242424; | ||
885 | 881 | cursor: pointer; | ||
886 | 882 | background: -webkit-linear-gradient(top, white 0%, whitesmoke 100%); } | ||
887 | 883 | #loading .login a:focus { | ||
888 | 884 | outline: 0; | ||
889 | 885 | background: -webkit-linear-gradient(top, white 0%, #f9f9f9 100%); | ||
890 | 886 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); } | ||
891 | 887 | #loading .login a:hover { | ||
892 | 888 | background: -webkit-linear-gradient(top, white 0%, #f9f9f9 100%); | ||
893 | 889 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); } | ||
894 | 890 | #loading .login a:active { | ||
895 | 891 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1); | ||
896 | 892 | background: -webkit-linear-gradient(bottom, white 0%, whitesmoke 100%); } | ||
897 | 893 | #loading .login .error { | ||
898 | 894 | display: none; | ||
899 | 895 | font-size: 13px; | ||
900 | 896 | font-weight: 500; | ||
901 | 897 | color: #2a76c6; | ||
902 | 898 | text-shadow: 0 1px 0 white, 0 1px 2px rgba(0, 0, 0, 0.1); } | ||
903 | 899 | #loading .progress { | ||
904 | 900 | position: absolute; | ||
905 | 901 | display: block; | ||
906 | 902 | top: 50%; | ||
907 | 903 | bottom: auto; | ||
908 | 904 | left: 25%; | ||
909 | 905 | right: 25%; | ||
910 | 906 | margin-top: -40px; | ||
911 | 907 | display: none; } | ||
912 | 908 | #loading .progress p { | ||
913 | 909 | text-align: center; | ||
914 | 910 | font-size: 13px; | ||
915 | 911 | color: #444444; } | ||
916 | 912 | #loading .progress progress { | ||
917 | 913 | width: 100%; | ||
918 | 914 | -webkit-appearance: none; | ||
919 | 915 | background-size: auto; | ||
920 | 916 | height: 18px; | ||
921 | 917 | border-radius: 3px; | ||
922 | 918 | box-shadow: 0 1px 0 white, inset 0 1px 5px rgba(0, 0, 0, 0.2); } | ||
923 | 919 | #loading .progress progress::-webkit-progress-bar { | ||
924 | 920 | background: #ffeeee; | ||
925 | 921 | border-radius: 3px; } | ||
926 | 922 | #loading .progress progress::-webkit-progress-value { | ||
927 | 923 | background: url(../images/ugly_native_progress_bar.png) 0 0; | ||
928 | 924 | border-radius: 3px; | ||
929 | 925 | box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1); | ||
930 | 926 | border-left: 1px solid #bf5527; | ||
931 | 927 | border-right: 1px solid #bf5527; } | ||
932 | 928 | |||
933 | 929 | @-webkit-keyframes move { | ||
934 | 930 | 0% { | ||
935 | 931 | background-position: 0 -21px; } | ||
936 | 932 | |||
937 | 933 | 100% { | ||
938 | 934 | background-position: 30px -21px; } } | ||
939 | 935 | |||
940 | 936 | #context-menu { | ||
941 | 937 | -webkit-user-select: none; | ||
942 | 938 | min-width: 150px; | ||
943 | 939 | background: white; | ||
944 | 940 | position: absolute; | ||
945 | 941 | display: block; | ||
946 | 942 | top: 10px; | ||
947 | 943 | bottom: auto; | ||
948 | 944 | left: 10px; | ||
949 | 945 | right: auto; | ||
950 | 946 | z-index: 100; | ||
951 | 947 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); | ||
952 | 948 | border: 1px solid white; | ||
953 | 949 | outline: 1px solid #ada9a5; | ||
954 | 950 | padding: 3px 0; | ||
955 | 951 | display: none; } | ||
956 | 952 | #context-menu .section { | ||
957 | 953 | display: block; | ||
958 | 954 | background: white; | ||
959 | 955 | border-top: 1px solid #e1e1df; | ||
960 | 956 | height: 1px; | ||
961 | 957 | margin: 3px 0; } | ||
962 | 958 | #context-menu div { | ||
963 | 959 | height: 20px; | ||
964 | 960 | line-height: 20px; | ||
965 | 961 | font-size: 12px; | ||
966 | 962 | padding: 0 0 0 24px; | ||
967 | 963 | font-weight: 400; | ||
968 | 964 | cursor: default; | ||
969 | 965 | position: relative; | ||
970 | 966 | border-top: 1px solid transparent; | ||
971 | 967 | border-bottom: 1px solid transparent; } | ||
972 | 968 | #context-menu div:hover { | ||
973 | 969 | color: white; | ||
974 | 970 | border-top: 1px solid #5296de; | ||
975 | 971 | border-bottom: 1px solid #377fc9; | ||
976 | 972 | background: -webkit-linear-gradient(top, #74b0ee 0%, #4c91da 100%); | ||
977 | 973 | box-shadow: 0 1px 0 #91c1f3 inset, 0 -1px 0 #5b9adc inset; | ||
978 | 974 | text-shadow: 0 1px 0 #4c4c4c; } | ||
979 | 975 | |||
980 | 976 | #settings { | ||
981 | 977 | position: absolute; | ||
982 | 978 | display: block; | ||
983 | 979 | top: 0; | ||
984 | 980 | bottom: auto; | ||
985 | 981 | left: 50%; | ||
986 | 982 | right: auto; | ||
987 | 983 | margin: 0 0 0 -260px; | ||
988 | 984 | width: 520px; | ||
989 | 985 | height: 100%; | ||
990 | 986 | overflow-y: scroll; | ||
991 | 987 | background: #ececec; | ||
992 | 988 | border: 1px solid #888888; | ||
993 | 989 | border-top: 0; | ||
994 | 990 | border-bottom: 0; | ||
995 | 991 | box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); | ||
996 | 992 | z-index: 300; | ||
997 | 993 | display: none; } | ||
998 | 994 | #settings h2 { | ||
999 | 995 | margin-top: 0; | ||
1000 | 996 | text-align: center; | ||
1001 | 997 | font-size: 15px; | ||
1002 | 998 | height: 40px; | ||
1003 | 999 | line-height: 40px; | ||
1004 | 1000 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); | ||
1005 | 1001 | box-shadow: 0 1px 0 white; | ||
1006 | 1002 | border-radius: 5px 5px 0 0; | ||
1007 | 1003 | background: -webkit-linear-gradient(top, #fafafa 0%, #f6f6f6 100%); | ||
1008 | 1004 | color: #3b3b3b; | ||
1009 | 1005 | text-shadow: 0 1px 0 #fcfcfc; } | ||
1010 | 1006 | #settings h3 { | ||
1011 | 1007 | margin: 20px 0 10px; | ||
1012 | 1008 | color: #4c4c4c; | ||
1013 | 1009 | padding: 0 25px; | ||
1014 | 1010 | font-size: 24px; | ||
1015 | 1011 | font-weight: 300; | ||
1016 | 1012 | font-family: "Raleway", "Open Sans", "Ubuntu", sans-serif; } | ||
1017 | 1013 | #settings > div { | ||
1018 | 1014 | padding: 10px 25px; } | ||
1019 | 1015 | #settings > div:first-of-type { | ||
1020 | 1016 | padding-top: 0; } | ||
1021 | 1017 | #settings > div:not(:last-child) { | ||
1022 | 1018 | border-bottom: 1px solid #cccccc; | ||
1023 | 1019 | box-shadow: 0 1px 0 white; } | ||
1024 | 1020 | #settings select { | ||
1025 | 1021 | font-size: 13px; | ||
1026 | 1022 | margin-bottom: 10px; | ||
1027 | 1023 | padding: 5px; } | ||
1028 | 1024 | #settings select option { | ||
1029 | 1025 | font-size: 13px; } | ||
1030 | 1026 | #settings label { | ||
1031 | 1027 | font-size: 13px; | ||
1032 | 1028 | color: #4c4c4c; | ||
1033 | 1029 | display: inline-block; } | ||
1034 | 1030 | #settings label.mini { | ||
1035 | 1031 | width: 150px; | ||
1036 | 1032 | text-align: right; | ||
1037 | 1033 | margin-right: 10px; } | ||
1038 | 1034 | #settings label.mini.right { | ||
1039 | 1035 | width: 120px; } | ||
1040 | 1036 | #settings label .email { | ||
1041 | 1037 | font-weight: bold; } | ||
1042 | 1038 | #settings input[type=checkbox] { | ||
1043 | 1039 | margin-left: 165px; | ||
1044 | 1040 | margin-right: 10px; } | ||
1045 | 1041 | #settings button { | ||
1046 | 1042 | display: inline-block; | ||
1047 | 1043 | text-decoration: none; | ||
1048 | 1044 | line-height: 27px; | ||
1049 | 1045 | padding: 0 10px; | ||
1050 | 1046 | margin: 0 5px 0 79px; | ||
1051 | 1047 | height: 30px; | ||
1052 | 1048 | box-sizing: border-box; | ||
1053 | 1049 | border-radius: 3px; | ||
1054 | 1050 | font-size: 13px; | ||
1055 | 1051 | font-weight: bold; | ||
1056 | 1052 | border: 1px solid #959595; | ||
1057 | 1053 | color: #4c4c4c; | ||
1058 | 1054 | font-family: "Open Sans", "Ubuntu Medium", "Ubuntu", "Helvetica", "Arial", sans-serif; | ||
1059 | 1055 | background: -webkit-linear-gradient(top, white 0%, whitesmoke 100%); } | ||
1060 | 1056 | #settings button:focus { | ||
1061 | 1057 | outline: 0; | ||
1062 | 1058 | background: -webkit-linear-gradient(top, white 0%, #f9f9f9 100%); | ||
1063 | 1059 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); } | ||
1064 | 1060 | #settings button:hover { | ||
1065 | 1061 | background: -webkit-linear-gradient(top, white 0%, #f9f9f9 100%); | ||
1066 | 1062 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); } | ||
1067 | 1063 | #settings button:active { | ||
1068 | 1064 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1); | ||
1069 | 1065 | background: -webkit-linear-gradient(bottom, white 0%, whitesmoke 100%); } | ||
1070 | 0 | \ No newline at end of file | 1066 | \ No newline at end of file |
1071 | 1 | 1067 | ||
1072 | === added file 'data/media/app/index_elementary.html' | |||
1073 | --- data/media/app/index_elementary.html 1970-01-01 00:00:00 +0000 | |||
1074 | +++ data/media/app/index_elementary.html 2013-02-27 22:46:21 +0000 | |||
1075 | @@ -0,0 +1,300 @@ | |||
1076 | 1 | <!DOCTYPE html> | ||
1077 | 2 | <html> | ||
1078 | 3 | <head> | ||
1079 | 4 | <title>RSS Reader</title> | ||
1080 | 5 | <link rel="stylesheet" href="css/normalize.css"> | ||
1081 | 6 | <link rel="stylesheet" href="css/style_elementary.css"> | ||
1082 | 7 | |||
1083 | 8 | <script src="scripts/lib/pyctrl.js"></script> | ||
1084 | 9 | <script src="scripts/lib.js"></script> | ||
1085 | 10 | <script src="scripts/app.js"></script> | ||
1086 | 11 | <script src="scripts/app/storage.js"></script> | ||
1087 | 12 | <script src="scripts/app/ui.js"></script> | ||
1088 | 13 | <script src="scripts/app/core.js"></script> | ||
1089 | 14 | <script src="scripts/app/keys.js"></script> | ||
1090 | 15 | </head> | ||
1091 | 16 | <body> | ||
1092 | 17 | |||
1093 | 18 | <section id="app" class="splitter"> | ||
1094 | 19 | |||
1095 | 20 | <div id="feeds-column"> | ||
1096 | 21 | <ul id="filters"> | ||
1097 | 22 | <li class="all filter selected"> | ||
1098 | 23 | <img class="icon" width="16" height="16" src="images/icon_all.png"> | ||
1099 | 24 | <span class="title">All items</span> | ||
1100 | 25 | </li> | ||
1101 | 26 | <li class="unread filter"> | ||
1102 | 27 | <img class="icon" width="16" height="16" src="images/icon_unread.png"> | ||
1103 | 28 | <span class="title">Unread</span> | ||
1104 | 29 | </li> | ||
1105 | 30 | <li class="starred filter"> | ||
1106 | 31 | <img class="icon" width="16" height="16" src="images/icon_starred.png"> | ||
1107 | 32 | <span class="title">Starred</span> | ||
1108 | 33 | </li> | ||
1109 | 34 | </ul> | ||
1110 | 35 | <ul id="feeds"></ul> | ||
1111 | 36 | <p class="empty-message">You have no feeds. Click on the + button below to add some.</p> | ||
1112 | 37 | <div class="bar"> | ||
1113 | 38 | <button id="refresh-button" title="Refresh"></button><button id="add-button" title="Add Feed"></button> | ||
1114 | 39 | </div> | ||
1115 | 40 | </div> | ||
1116 | 41 | |||
1117 | 42 | <div id="right-side" class="splitter"> | ||
1118 | 43 | |||
1119 | 44 | <div id="articles-column"> | ||
1120 | 45 | <ul id="articles"></ul> | ||
1121 | 46 | <div class="bar"> | ||
1122 | 47 | <button id="mark-all-as-read-trigger" title="Mark All As Read"></button> | ||
1123 | 48 | <div id="mark-all-as-read-popup"> | ||
1124 | 49 | <div id="mark-all-as-read-button">Mark All As Read</div> | ||
1125 | 50 | </div> | ||
1126 | 51 | <div id="item-count"></div> | ||
1127 | 52 | <input id="search-input" placeholder="Search 10 items"> | ||
1128 | 53 | <button id="search-button" title="Search"></button> | ||
1129 | 54 | </div> | ||
1130 | 55 | </div> | ||
1131 | 56 | |||
1132 | 57 | <div id="post-column"> | ||
1133 | 58 | <div id="post-window"> | ||
1134 | 59 | <div id="post"></div> | ||
1135 | 60 | </div> | ||
1136 | 61 | <div class="bar" class="disabled"> | ||
1137 | 62 | <button id="close-post-button" title="Close Post"></button> | ||
1138 | 63 | <button id="star-button" title="Toggle Star Status"></button> | ||
1139 | 64 | <button id="read-button" title="Toggle Read Status"></button> | ||
1140 | 65 | <button id="instapaper-button" title="View in Instapaper Mobilizer"></button> | ||
1141 | 66 | <button id="share-button" title="Share"> | ||
1142 | 67 | <!-- <select> | ||
1143 | 68 | <option value="0">Share to Pocket</option> | ||
1144 | 69 | <option value="1">Share to Instapaper</option> | ||
1145 | 70 | </select> --> | ||
1146 | 71 | </button> | ||
1147 | 72 | <div id="link-url"></div><button id="settings-button" title="Settings"></button> | ||
1148 | 73 | </div> | ||
1149 | 74 | </div> | ||
1150 | 75 | |||
1151 | 76 | </div> | ||
1152 | 77 | |||
1153 | 78 | </section> | ||
1154 | 79 | |||
1155 | 80 | <div id="hidden"></div> | ||
1156 | 81 | |||
1157 | 82 | <div id="modal"> | ||
1158 | 83 | <div class="add"> | ||
1159 | 84 | <span class="close"></span><h3>Subscribe to a Feed</h3> | ||
1160 | 85 | <input placeholder="Feed URL or Search Term" type="url"><button>Add</button> | ||
1161 | 86 | <p class="error">Could not add feed...</p> | ||
1162 | 87 | </div> | ||
1163 | 88 | <!-- <div class="logout"> | ||
1164 | 89 | This will log you out of Lightread | ||
1165 | 90 | <button id="reset-button">Logout</button> | ||
1166 | 91 | </div> --> | ||
1167 | 92 | <div class="confirm"> | ||
1168 | 93 | <span class="close"></span><h3>Are you sure?</h3> | ||
1169 | 94 | <p>Are you sure you want to unsubscribe from: <br><span class="title"></span>?</p><button class="yes">Yes</button><button class="no">No</button> | ||
1170 | 95 | </div> | ||
1171 | 96 | <div class="rename"> | ||
1172 | 97 | <span class="close"></span><h3>Rename Feed</h3> | ||
1173 | 98 | <input type="text" placeholder="Feed name..."><button>Save</button> | ||
1174 | 99 | </div> | ||
1175 | 100 | <div class="pocket-login"> | ||
1176 | 101 | <span class="close"></span><h3>Login to Pocket</h3> | ||
1177 | 102 | <input class="isolated" type="text" placeholder="Username..."> | ||
1178 | 103 | <br> | ||
1179 | 104 | <input class="isolated" type="password" placeholder="Password..."> | ||
1180 | 105 | <br> | ||
1181 | 106 | <button>Login</button> | ||
1182 | 107 | </div> | ||
1183 | 108 | <div class="instapaper-login"> | ||
1184 | 109 | <span class="close"></span><h3>Login to Instapaper</h3> | ||
1185 | 110 | <input class="isolated" type="text" placeholder="Username..."> | ||
1186 | 111 | <br> | ||
1187 | 112 | <input class="isolated" type="password" placeholder="Password..."> | ||
1188 | 113 | <br> | ||
1189 | 114 | <button>Login</button> | ||
1190 | 115 | </div> | ||
1191 | 116 | </div> | ||
1192 | 117 | <div id="settings"> | ||
1193 | 118 | <h3>Settings</h3> | ||
1194 | 119 | <div> | ||
1195 | 120 | <label for="">Signed in as: <span class="email"></span></label><button id="reset-button">Sign out</button> | ||
1196 | 121 | </div> | ||
1197 | 122 | <div> | ||
1198 | 123 | <label class="mini" for="sync-interval">Refresh:</label> | ||
1199 | 124 | <select id="sync-interval"> | ||
1200 | 125 | <option value="0">Manual</option> | ||
1201 | 126 | <option value="1">1 Minute</option> | ||
1202 | 127 | <option value="5">5 Minutes</option> | ||
1203 | 128 | <option value="15">15 Minutes</option> | ||
1204 | 129 | <option value="30">30 Minutes</option> | ||
1205 | 130 | <option value="60">1 Hour</option> | ||
1206 | 131 | </select> | ||
1207 | 132 | <br> | ||
1208 | 133 | <input type="checkbox" checked id="sync-on-start"><label for="sync-on-start">Sync on start</label> | ||
1209 | 134 | </div> | ||
1210 | 135 | <div> | ||
1211 | 136 | <label class="mini" for="keep-unread-items">Keep unread items:</label> | ||
1212 | 137 | <select id="keep-unread-items"> | ||
1213 | 138 | <option value="-1" selected>Always</option> | ||
1214 | 139 | <option value="0">Never</option> | ||
1215 | 140 | <option value="1">1 day</option> | ||
1216 | 141 | <option value="2">2 days</option> | ||
1217 | 142 | <option value="3">3 days</option> | ||
1218 | 143 | <option value="7">1 week</option> | ||
1219 | 144 | <option value="14">2 weeks</option> | ||
1220 | 145 | <option value="31">1 month</option> | ||
1221 | 146 | </select> | ||
1222 | 147 | <label class="mini right" for="max-special">Max special items:</label> | ||
1223 | 148 | <select id="max-special"> | ||
1224 | 149 | <option value="10">10</option> | ||
1225 | 150 | <option value="20">20</option> | ||
1226 | 151 | <option value="30">30</option> | ||
1227 | 152 | <option value="50" selected>50</option> | ||
1228 | 153 | <option value="70">70</option> | ||
1229 | 154 | <option value="100">100</option> | ||
1230 | 155 | <option value="150">150</option> | ||
1231 | 156 | <option value="200">200</option> | ||
1232 | 157 | <option value="300">300</option> | ||
1233 | 158 | <option value="400">400</option> | ||
1234 | 159 | <option value="500">500</option> | ||
1235 | 160 | </select> | ||
1236 | 161 | <br> | ||
1237 | 162 | <label class="mini" for="keep-starred-items">Keep starred items:</label> | ||
1238 | 163 | <select id="keep-starred-items"> | ||
1239 | 164 | <option value="-1" selected>Always</option> | ||
1240 | 165 | <option value="0">Never</option> | ||
1241 | 166 | <option value="1">1 day</option> | ||
1242 | 167 | <option value="2">2 days</option> | ||
1243 | 168 | <option value="3">3 days</option> | ||
1244 | 169 | <option value="7">1 week</option> | ||
1245 | 170 | <option value="14">2 weeks</option> | ||
1246 | 171 | <option value="31">1 month</option> | ||
1247 | 172 | </select> | ||
1248 | 173 | <label class="mini right" for="max-read">Max read items:</label> | ||
1249 | 174 | <select id="max-read"> | ||
1250 | 175 | <option value="0">None</option> | ||
1251 | 176 | <option value="10">10</option> | ||
1252 | 177 | <option value="20" selected>20</option> | ||
1253 | 178 | <option value="30">30</option> | ||
1254 | 179 | <option value="50">50</option> | ||
1255 | 180 | <option value="70">70</option> | ||
1256 | 181 | <option value="100">100</option> | ||
1257 | 182 | </select> | ||
1258 | 183 | <br> | ||
1259 | 184 | <label class="mini" for="keep-read-items">Keep read items:</label> | ||
1260 | 185 | <select id="keep-read-items"> | ||
1261 | 186 | <option value="-1">Always</option> | ||
1262 | 187 | <option value="0">Never</option> | ||
1263 | 188 | <option value="1">1 day</option> | ||
1264 | 189 | <option value="2">2 days</option> | ||
1265 | 190 | <option value="3">3 days</option> | ||
1266 | 191 | <option value="7">1 week</option> | ||
1267 | 192 | <option value="14" selected>2 weeks</option> | ||
1268 | 193 | <option value="31">1 month</option> | ||
1269 | 194 | </select> | ||
1270 | 195 | </div> | ||
1271 | 196 | <div> | ||
1272 | 197 | <input type="checkbox" id="show-notifications" checked><label for="show-notifications">Show notifications</label> | ||
1273 | 198 | <input type="checkbox" id="auto-instapaperizer"><label for="auto-instapaperizer">Auto Instapaper</label> | ||
1274 | 199 | <input type="checkbox" id="night-mode"><label for="night-mode">Night Mode</label><br> | ||
1275 | 200 | <input type="checkbox" id="remember-last-feed" checked><label for="remember-last-feed">Remember Last Feed</label> | ||
1276 | 201 | <input type="checkbox" id="show-indicators"><label for="show-indicators">Show in messaging menu</label> | ||
1277 | 202 | <input type="checkbox" id="run-background" disabled><label for="show-indicators">Run in background</label> | ||
1278 | 203 | </div> | ||
1279 | 204 | </div> | ||
1280 | 205 | |||
1281 | 206 | <div id="overlay"></div> | ||
1282 | 207 | |||
1283 | 208 | <div id="loading"> | ||
1284 | 209 | <div class="login"> | ||
1285 | 210 | <h3>Sign in to Google Reader</h3> | ||
1286 | 211 | <div class="username-wrapper"> | ||
1287 | 212 | <label for="username">Email</label><input tabindex="1" id="username" type="text" placeholder="example@gmail.com"> | ||
1288 | 213 | </div> | ||
1289 | 214 | <div class="password-wrapper"> | ||
1290 | 215 | <label for="password">Password</label><input tabindex="2" id="password" type="password" placeholder="········"> | ||
1291 | 216 | </div> | ||
1292 | 217 | <a class="login-button">Sign in</a> | ||
1293 | 218 | <a href="https://accounts.google.com/NewAccount?service=reader">Register</a> | ||
1294 | 219 | <p class="error">Could not Sign in...</p> | ||
1295 | 220 | </div> | ||
1296 | 221 | <div class="progress"> | ||
1297 | 222 | <p>Downloading items...</p> | ||
1298 | 223 | <progress min="0" value="0" max="100"></progress> | ||
1299 | 224 | </div> | ||
1300 | 225 | </div> | ||
1301 | 226 | |||
1302 | 227 | <div id="context-menu"></div> | ||
1303 | 228 | |||
1304 | 229 | <!-- | ||
1305 | 230 | Templates | ||
1306 | 231 | --> | ||
1307 | 232 | |||
1308 | 233 | <!-- Labels --> | ||
1309 | 234 | <script type="text/template" id="label-template"> | ||
1310 | 235 | <li class="label"> | ||
1311 | 236 | <header data-id="<%= id %>"> | ||
1312 | 237 | <span class="icon"><span class="bit"></span></span> | ||
1313 | 238 | <span class="title"><%= title %></span> | ||
1314 | 239 | <% if (count && count > 0) { %> | ||
1315 | 240 | <span class="count"><%= count %></span> | ||
1316 | 241 | <% } %> | ||
1317 | 242 | </header> | ||
1318 | 243 | <ul class="feeds"> | ||
1319 | 244 | |||
1320 | 245 | <% _.each(feeds, function(feed) { %><%= feed %><% }) %> | ||
1321 | 246 | |||
1322 | 247 | </ul> | ||
1323 | 248 | </li> | ||
1324 | 249 | </script> | ||
1325 | 250 | |||
1326 | 251 | <!-- Feeds --> | ||
1327 | 252 | <script type="text/template" id="feed-template"> | ||
1328 | 253 | <li class="feed" data-id="<%= id %>"> | ||
1329 | 254 | <img class="icon" width="16" height="16" src="<%= icon %>"> | ||
1330 | 255 | <span class="title"><%= title %></span> | ||
1331 | 256 | <% if (count && count > 0) { %> | ||
1332 | 257 | <span class="count"><%= count %></span> | ||
1333 | 258 | <% } %> | ||
1334 | 259 | </li> | ||
1335 | 260 | </script> | ||
1336 | 261 | |||
1337 | 262 | <!-- Articles --> | ||
1338 | 263 | <script type="text/template" id="article-template"> | ||
1339 | 264 | <li class="article <% if (read) { %>read<% } %> <% if (starred) { %>starred<% } %>" data-id="<%= id %>"> | ||
1340 | 265 | <header> | ||
1341 | 266 | <img class="icon" width="16" height="16" src="<%= icon %>"> | ||
1342 | 267 | <span class="feed"><%= feed %></span> | ||
1343 | 268 | <span class="time"><%= time %></span> | ||
1344 | 269 | </header> | ||
1345 | 270 | <span class="title"><%= title %></span> | ||
1346 | 271 | <span class="snippet"><%= snippet %></span> | ||
1347 | 272 | </li> | ||
1348 | 273 | </script> | ||
1349 | 274 | |||
1350 | 275 | <script type="text/template" id="article-splitter-template"> | ||
1351 | 276 | <div class="splitter"><%= date %></div> | ||
1352 | 277 | </script> | ||
1353 | 278 | |||
1354 | 279 | <!-- Post --> | ||
1355 | 280 | <script type="text/template" id="post-template"> | ||
1356 | 281 | <a href="<%= link %>" class="post-link"> | ||
1357 | 282 | <span class="details"> | ||
1358 | 283 | <%= feed %> | | ||
1359 | 284 | <% if (author !== undefined) {%><%= author %> | <% } %> | ||
1360 | 285 | <%= time %> | ||
1361 | 286 | </span> | ||
1362 | 287 | <h1 class="title"><%= title %></h1> | ||
1363 | 288 | </a> | ||
1364 | 289 | <%= content %> | ||
1365 | 290 | </script> | ||
1366 | 291 | |||
1367 | 292 | <!-- Context Menu Item --> | ||
1368 | 293 | <script type="text/template" id="context-menu-item"> | ||
1369 | 294 | <div class="<%= className %>"><%= text %></div> | ||
1370 | 295 | <% if (section) { %> | ||
1371 | 296 | <span class="section"></span> | ||
1372 | 297 | <% } %> | ||
1373 | 298 | </script> | ||
1374 | 299 | </body> | ||
1375 | 300 | </html> | ||
1376 | 0 | 301 | ||
1377 | === modified file 'debian/control' | |||
1378 | --- debian/control 2012-10-03 03:35:42 +0000 | |||
1379 | +++ debian/control 2013-02-27 22:46:21 +0000 | |||
1380 | @@ -17,6 +17,7 @@ | |||
1381 | 17 | gir1.2-indicate-0.7, | 17 | gir1.2-indicate-0.7, |
1382 | 18 | gir1.2-gtk-3.0, | 18 | gir1.2-gtk-3.0, |
1383 | 19 | gir1.2-glib-2.0, | 19 | gir1.2-glib-2.0, |
1384 | 20 | gir1.2-granite-1.0, | ||
1385 | 20 | gir1.2-dbusmenu-glib-0.4, | 21 | gir1.2-dbusmenu-glib-0.4, |
1386 | 21 | gir1.2-unity-5.0, | 22 | gir1.2-unity-5.0, |
1387 | 22 | gir1.2-soup-2.4, | 23 | gir1.2-soup-2.4, |
1388 | 23 | 24 | ||
1389 | === modified file 'lightread/LightreadWindow.py' | |||
1390 | --- lightread/LightreadWindow.py 2012-10-05 07:58:49 +0000 | |||
1391 | +++ lightread/LightreadWindow.py 2013-02-27 22:46:21 +0000 | |||
1392 | @@ -96,6 +96,18 @@ | |||
1393 | 96 | session.add_feature(cookie_jar) | 96 | session.add_feature(cookie_jar) |
1394 | 97 | session.props.max_conns_per_host = 8 | 97 | session.props.max_conns_per_host = 8 |
1395 | 98 | 98 | ||
1396 | 99 | # elementary OS HIG support | ||
1397 | 100 | #getting env-var and try importing granite | ||
1398 | 101 | #if one fails, we dont use elementary ui | ||
1399 | 102 | self.elementary_ui = False | ||
1400 | 103 | if(os.environ["DESKTOP_SESSION"] == "pantheon"): | ||
1401 | 104 | try: | ||
1402 | 105 | from gi.repository import Granite | ||
1403 | 106 | self.elementary_ui = True | ||
1404 | 107 | print "We use the elementary ui" | ||
1405 | 108 | except ImportError: | ||
1406 | 109 | pass | ||
1407 | 110 | |||
1408 | 99 | 111 | ||
1409 | 100 | self.webview = WebKit.WebView() | 112 | self.webview = WebKit.WebView() |
1410 | 101 | self.scroller.add(self.webview) | 113 | self.scroller.add(self.webview) |
1411 | @@ -104,7 +116,10 @@ | |||
1412 | 104 | self.webviewsettings.set_property("javascript-can-open-windows-automatically", True) | 116 | self.webviewsettings.set_property("javascript-can-open-windows-automatically", True) |
1413 | 105 | self.webviewsettings.set_property("enable-universal-access-from-file-uris", True) | 117 | self.webviewsettings.set_property("enable-universal-access-from-file-uris", True) |
1414 | 106 | self.webviewsettings.set_property("enable-developer-extras", True) | 118 | self.webviewsettings.set_property("enable-developer-extras", True) |
1416 | 107 | self.webview.load_uri(get_media_file('app/index.html')) | 119 | if(self.elementary_ui): |
1417 | 120 | self.webview.load_uri(get_media_file('app/index_elementary.html')) | ||
1418 | 121 | else: | ||
1419 | 122 | self.webview.load_uri(get_media_file('app/index.html')) | ||
1420 | 108 | 123 | ||
1421 | 109 | self.webview_inspector = self.webview.get_inspector() | 124 | self.webview_inspector = self.webview.get_inspector() |
1422 | 110 | self.webview_inspector.connect('inspect-web-view', self.inspect_webview) | 125 | self.webview_inspector.connect('inspect-web-view', self.inspect_webview) |
1423 | @@ -113,7 +128,7 @@ | |||
1424 | 113 | self.webview.show() | 128 | self.webview.show() |
1425 | 114 | 129 | ||
1426 | 115 | #Menubar | 130 | #Menubar |
1428 | 116 | self.add = self.builder.get_object("add") | 131 | self.add_btn = self.builder.get_object("add") |
1429 | 117 | self.refresh = self.builder.get_object("refresh") | 132 | self.refresh = self.builder.get_object("refresh") |
1430 | 118 | self.star = self.builder.get_object("star") | 133 | self.star = self.builder.get_object("star") |
1431 | 119 | self.read = self.builder.get_object("read") | 134 | self.read = self.builder.get_object("read") |
1432 | @@ -225,12 +240,84 @@ | |||
1433 | 225 | else: | 240 | else: |
1434 | 226 | self.indicator.remove_indicator(urllib.unquote(feed_json['id'])) | 241 | self.indicator.remove_indicator(urllib.unquote(feed_json['id'])) |
1435 | 227 | 242 | ||
1436 | 243 | |||
1437 | 244 | #building the elementary UI | ||
1438 | 245 | if(self.elementary_ui): | ||
1439 | 246 | vbox1 = self.builder.get_object("vbox1") | ||
1440 | 247 | menubar1 = self.builder.get_object("menubar1") | ||
1441 | 248 | #no menubars | ||
1442 | 249 | vbox1.remove(menubar1) | ||
1443 | 250 | toolbar = Gtk.Toolbar() | ||
1444 | 251 | |||
1445 | 252 | #add toolbarbuttons | ||
1446 | 253 | button_add = Gtk.ToolButton.new_from_stock(Gtk.STOCK_NEW) | ||
1447 | 254 | toolbar.add(button_add) | ||
1448 | 255 | button_add.set_name("add") | ||
1449 | 256 | button_add.set_tooltip_text(self.add_btn.get_label()) | ||
1450 | 257 | button_add.connect("clicked", menuexternal, None) | ||
1451 | 258 | |||
1452 | 259 | button_refresh = Gtk.ToolButton.new_from_stock(Gtk.STOCK_REFRESH) | ||
1453 | 260 | toolbar.add(button_refresh) | ||
1454 | 261 | button_refresh.set_name("refresh") | ||
1455 | 262 | button_refresh.set_tooltip_text(self.refresh.get_label()) | ||
1456 | 263 | button_refresh.connect("clicked", menuexternal, None) | ||
1457 | 264 | |||
1458 | 265 | button_star = Gtk.ToolButton.new_from_stock(Gtk.STOCK_ABOUT) | ||
1459 | 266 | toolbar.add(button_star) | ||
1460 | 267 | button_star.set_name("star") | ||
1461 | 268 | button_star.set_tooltip_text(self.star.get_label()) | ||
1462 | 269 | button_star.connect("clicked", menuexternal, None) | ||
1463 | 270 | |||
1464 | 271 | button_read = Gtk.ToolButton.new_from_stock(Gtk.STOCK_COPY) | ||
1465 | 272 | toolbar.add(button_read) | ||
1466 | 273 | button_read.set_name("read") | ||
1467 | 274 | button_read.set_tooltip_text(self.read.get_label()) | ||
1468 | 275 | button_read.connect("clicked", menuexternal, None) | ||
1469 | 276 | |||
1470 | 277 | |||
1471 | 278 | button_next = Gtk.ToolButton.new_from_stock(Gtk.STOCK_GO_DOWN) | ||
1472 | 279 | toolbar.add(button_next) | ||
1473 | 280 | button_next.set_name("next-article") | ||
1474 | 281 | button_next.set_tooltip_text(self.next_article.get_label()) | ||
1475 | 282 | button_next.connect("clicked", menuexternal, None) | ||
1476 | 283 | |||
1477 | 284 | button_previous = Gtk.ToolButton.new_from_stock(Gtk.STOCK_GO_UP) | ||
1478 | 285 | toolbar.add(button_previous) | ||
1479 | 286 | button_previous.set_name("prev-article") | ||
1480 | 287 | button_previous.set_tooltip_text(self.prev_article.get_label()) | ||
1481 | 288 | button_previous.connect("clicked", menuexternal, None) | ||
1482 | 289 | |||
1483 | 290 | #spanner that the appmenu is on the right side | ||
1484 | 291 | spanner = Gtk.ToolItem() | ||
1485 | 292 | spanner.set_expand(True) | ||
1486 | 293 | toolbar.add(spanner) | ||
1487 | 294 | |||
1488 | 295 | appmenu = Gtk.Menu() | ||
1489 | 296 | #add the settings menu | ||
1490 | 297 | self.logout.unparent() | ||
1491 | 298 | appmenu.append(self.logout) | ||
1492 | 299 | #add the contents of the helpmenu to the appmenu | ||
1493 | 300 | help_menu = self.builder.get_object("helpMenu") | ||
1494 | 301 | for i in help_menu.get_children(): | ||
1495 | 302 | i.unparent() | ||
1496 | 303 | help_menu.remove(i) | ||
1497 | 304 | appmenu.add(i) | ||
1498 | 305 | |||
1499 | 306 | button_appmenu = Granite.WidgetsAppMenu.new(appmenu) | ||
1500 | 307 | toolbar.add(button_appmenu) | ||
1501 | 308 | |||
1502 | 309 | |||
1503 | 310 | vbox1.pack_start(toolbar,False,False,0) | ||
1504 | 311 | vbox1.remove(self.scroller) | ||
1505 | 312 | vbox1.pack_end(self.scroller,True,True,0) | ||
1506 | 313 | toolbar.show_all() | ||
1507 | 314 | |||
1508 | 228 | # Connects to WebView | 315 | # Connects to WebView |
1509 | 229 | self.webview.connect('title-changed', title_changed) | 316 | self.webview.connect('title-changed', title_changed) |
1510 | 230 | self.webview.connect('navigation-requested', _navigation_requested_cb) | 317 | self.webview.connect('navigation-requested', _navigation_requested_cb) |
1511 | 231 | self.webview.connect('console-message', console_message_cb) | 318 | self.webview.connect('console-message', console_message_cb) |
1512 | 232 | 319 | ||
1514 | 233 | self.add.connect("activate", menuexternal, None) | 320 | self.add_btn.connect("activate", menuexternal, None) |
1515 | 234 | self.refresh.connect("activate", menuexternal, None) | 321 | self.refresh.connect("activate", menuexternal, None) |
1516 | 235 | self.star.connect("activate", menuexternal, None) | 322 | self.star.connect("activate", menuexternal, None) |
1517 | 236 | self.read.connect("activate", menuexternal, None) | 323 | self.read.connect("activate", menuexternal, None) |
1518 | 237 | 324 | ||
1519 | === modified file 'po/lightread.pot' | |||
1520 | --- po/lightread.pot 2012-10-05 07:58:49 +0000 | |||
1521 | +++ po/lightread.pot 2013-02-27 22:46:21 +0000 | |||
1522 | @@ -8,7 +8,7 @@ | |||
1523 | 8 | msgstr "" | 8 | msgstr "" |
1524 | 9 | "Project-Id-Version: PACKAGE VERSION\n" | 9 | "Project-Id-Version: PACKAGE VERSION\n" |
1525 | 10 | "Report-Msgid-Bugs-To: \n" | 10 | "Report-Msgid-Bugs-To: \n" |
1527 | 11 | "POT-Creation-Date: 2012-10-05 20:57+1300\n" | 11 | "POT-Creation-Date: 2013-02-18 12:27+0100\n" |
1528 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
1529 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
1530 | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
Credits for the style.css goes to the source in this news-article: http:// www.elementaryu pdate.com/ 2013/02/ lightread- rss-app. html