File tree 5 files changed +44
-38
lines changed
5 files changed +44
-38
lines changed Original file line number Diff line number Diff line change 1
1
twitter-security.edn
2
2
resources /public /js /
3
3
resources /public /main.js
4
+ resources /public /css /site.css
5
+ resources /public /css /site.css.map
4
6
target /
5
7
backend-release /
6
8
frontend-release /main.js
Original file line number Diff line number Diff line change 27
27
28
28
#wrapper {
29
29
padding-left : 0 ;
30
+
31
+ @media (min-width :768px ){
32
+ padding-left : 171px ;
33
+ }
30
34
}
31
35
32
36
#page-wrapper {
33
37
width : 100% ;
34
38
padding : 0 ;
35
39
background-color : #fff ;
40
+
41
+ @media (min-width :768px ){
42
+ padding : 10px ;
43
+ }
36
44
}
37
45
38
46
.huge {
39
47
font-size : 50px ;
40
48
line-height : normal ;
41
49
}
42
50
43
- @media (min-width : 768px ) {
44
- # wrapper {
45
- padding-left : 171px ;
46
- }
47
-
48
- # page-wrapper {
49
- padding : 10px ;
50
- }
51
- }
52
-
53
51
/* Top Navigation */
54
52
55
53
.top-nav {
@@ -303,28 +301,24 @@ ul.alert-dropdown {
303
301
304
302
.desktop-time {
305
303
display : block ;
304
+
305
+ @media (max-width : 768px ){
306
+ display : none ;
307
+ }
306
308
}
307
309
308
310
.mobile-time {
309
311
display : none ;
310
- }
311
312
312
- @media (max-width : 768px ) {
313
- .desktop-time {
314
- display : none;
315
- }
316
-
317
- .mobile-time {
313
+ @media (max-width : 768px ){
318
314
display : block ;
319
315
}
320
316
}
321
317
322
318
.fork-me-desktop {
323
319
display : block ;
324
- }
325
320
326
- @media (max-width : 768px ){
327
- .fork-me-desktop {
321
+ @media (max-width : 768px ){
328
322
display : none ;
329
323
}
330
324
}
@@ -339,10 +333,8 @@ ul.alert-dropdown {
339
333
display : none ;
340
334
height : 50px ;
341
335
margin : 0 ;
342
- }
343
336
344
- @media (max-width : 768px ){
345
- .fork-me-mobile-wrapper {
337
+ @media (max-width : 768px ){
346
338
display : inline ;
347
339
}
348
340
}
@@ -374,20 +366,16 @@ ul.alert-dropdown {
374
366
375
367
.trends-controls-desktop {
376
368
display : block ;
377
- }
378
369
379
- @media (max-width : 768px ){
380
- .trends-controls-desktop {
370
+ @media (max-width : 768px ){
381
371
display : none ;
382
372
}
383
373
}
384
374
385
375
.trends-controls-mobile {
386
376
display : none ;
387
- }
388
377
389
- @media (max-width : 768px ){
390
- .trends-controls-mobile {
378
+ @media (max-width : 768px ){
391
379
display : block ;
392
380
}
393
381
}
Original file line number Diff line number Diff line change 46
46
:plugins [[lein-environ " 1.0.2" ]
47
47
[ragtime/ragtime.lein " 0.3.9" ]
48
48
[lein-cljsbuild " 1.1.3" ]
49
- [lein-figwheel " 0.5.0-6" ]]
49
+ [lein-figwheel " 0.5.0-6" ]
50
+ [lein-sass " 0.3.7" ]]
51
+
52
+ :figwheel {:css-dirs [" resources/public/css" ]}
53
+
54
+ :sass {:src " design/"
55
+ :output-directory " resources/public/css/"
56
+ :delete-output-dir false
57
+ :source-maps true }
58
+
59
+ :hooks [leiningen.sass]
50
60
51
61
:aliases {" migrate" [" run" " -m" " tech-radar.migrations/migrate" ]
52
62
" rollback" [" run" " -m" " tech-radar.migrations/rollback" ]}
53
63
54
- :cljsbuild {:builds {:dev {:source-paths [" src/cljs" ]
55
- :figwheel {:websocket-host " localhost" }
64
+ :cljsbuild {:builds {:dev {:figwheel {:load-warninged-code true
65
+ :on-jsload " tech-radar.core/init-render" }
66
+ :source-paths [" src/cljs" ]
56
67
:compiler {:main tech-radar.core
57
68
:asset-path " js"
58
69
:output-dir " resources/public/js" }}
Original file line number Diff line number Diff line change 14
14
15
15
< link href ="css/bootstrap.min.css " rel ="stylesheet ">
16
16
< link href ="font-awesome/css/font-awesome.min.css " rel ="stylesheet " type ="text/css ">
17
- < link href ="css/sb-admin .css " rel ="stylesheet ">
17
+ < link href ="css/site .css " rel ="stylesheet ">
18
18
19
19
<!--[if lt IE 9]>
20
20
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
Original file line number Diff line number Diff line change 13
13
(statistic-request app-state)
14
14
15
15
(def reconciler
16
- (om/reconciler {:state app-state
16
+ (om/reconciler {:state app-state
17
17
:normalize false
18
- :parser parser}))
18
+ :parser parser}))
19
19
20
- (om/add-root! reconciler
21
- RootComponent
22
- (.getElementById js/document " app" ))
20
+ (defn init-render []
21
+ (when-let [element (.getElementById js/document " app" )]
22
+ (om/remove-root! reconciler element))
23
+ (om/add-root! reconciler
24
+ RootComponent
25
+ (.getElementById js/document " app" )))
26
+
27
+ (init-render )
You can’t perform that action at this time.
0 commit comments