daiblogs 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,4 @@
1
1
  @charset "utf-8";
2
- //
3
- //Adaptive Grid
4
- //Heavily adapted from : http://framelessgrid.com
5
- //
6
-
7
- //
8
- // Configuration
9
- //
10
2
 
11
3
  $font-size: 10px; // Your base font-size in pixels
12
4
  $column: 48px; // The column-width of your grid in pixels
@@ -1,2 +1,820 @@
1
+ // BLOCK ELEMENT MODIFIER NAMING SCHEME
2
+
3
+ // Any component with subsequent parts should be treated as a block, its parts as elements. Modifiers should be reserved for changes in state
4
+
5
+
1
6
  @charset "utf-8";
2
7
 
8
+ // Components
9
+
10
+ .wrapper{
11
+ background-color: #F9F9F9;
12
+ }
13
+ .inner-wrap.blogs-block{
14
+ @include responsive(super-wide-screens){
15
+ max-width: 1800px;
16
+ margin: auto;
17
+ border: 1px solid lighten($ofc-slate,75);
18
+ }
19
+ }
20
+ .blogs-block{
21
+ @include responsive(small-screens){
22
+ margin-top: 92px;
23
+ }
24
+ @include responsive(medium-screens){
25
+ margin-top: 114px;
26
+ }
27
+ @include responsive(wide-screens){
28
+ margin-top: 127px;
29
+ }
30
+ }
31
+
32
+ .bar{
33
+ width: 2.1875rem;
34
+ border: 0;
35
+ border-bottom: 0.325rem solid $ofc_slate;
36
+ margin-top: 1rem;
37
+ }
38
+
39
+ // MASTHEAD
40
+
41
+ .header-flat--logo{
42
+ fill: $slate;
43
+ }
44
+
45
+ .blog-masthead--logo{
46
+ background-color: $slate;
47
+ height: 10rem;
48
+ }
49
+
50
+ .blog-masthead{
51
+ @include clearfix;
52
+ .blog-masthead--subscribe, .blog-masthead--search{
53
+ padding: 15px;
54
+ h3{
55
+ margin-bottom: 0px;
56
+ }
57
+ }
58
+ }
59
+
60
+ //SEARCH
61
+
62
+ .blog-masthead--search{
63
+ width: 100%;
64
+ background-color: $ofc_lightgray;
65
+ color: $ofc_lightblue;
66
+ @include responsive(wide-screens){
67
+ width: 50%;
68
+ float: left;
69
+ }
70
+ .search-icon{
71
+ fill: $ofc_lightblue;
72
+ height: 1.2rem;
73
+ margin-right: .7rem;
74
+ }
75
+ h3{
76
+ color: $ofc_lightblue;
77
+ }
78
+ input{
79
+ margin-left: 1rem;
80
+ font-weight: 700;
81
+ border: none;
82
+ background-color: $ofc-lightgray;
83
+ outline: none;
84
+ font-size: 1.2rem;
85
+ color: $ofc_lightblue;
86
+ &::placeholder{
87
+ color: $ofc_lightblue;
88
+ }
89
+ }
90
+ }
91
+
92
+ //SUBSCRIBE
93
+
94
+ .blog-masthead--subscribe{
95
+ background-color: $ofc_slate;
96
+ width: 100%;
97
+ @include responsive(wide-screens){
98
+ width: 50%;
99
+ float: right;
100
+ }
101
+ h3{
102
+ color: #FFFFFF;
103
+ }
104
+ input{
105
+ border: none;
106
+ font-size: .7rem;
107
+ background-color: $ofc_slate;
108
+ border-bottom: 2px solid $ofc_lightblue;
109
+ color: white;
110
+ padding-bottom: 4px;
111
+ margin-left: 3%;
112
+ outline: none;
113
+ &::placeholder{
114
+ color: $ofc_lightblue;
115
+ }
116
+ @include responsive(wide-screens){
117
+ width: 50%;
118
+ }
119
+ @include responsive(ultra-wide-screens){
120
+ width: 70%;
121
+ }
122
+ }
123
+ }
124
+
125
+ // BLOG POSTS
126
+
127
+ // BEM COMPONENETS
128
+
129
+ // Blocks: featured, featured-zero, featured-add, featured-header, recent-header
130
+
131
+ // Nested-Blocks: metadata, post-abstract
132
+
133
+ // Elements: author-name, tags, readtime, date, post-title, summary, button, image, blog, wrappers, header-title
134
+
135
+ .button{
136
+ background-color: $ofc_slate;
137
+ padding: .5rem .3rem;
138
+ border-radius: 5px;
139
+ color: $text-white;
140
+ display: block;
141
+ margin: 1rem 0;
142
+ width: 40%;
143
+ text-align: center;
144
+ font-size: .8rem;
145
+ font-weight: 600;
146
+ &:hover{
147
+ color: darken($text-white, 5%);
148
+ }
149
+ }
150
+ .recent{
151
+ overflow: hidden;
152
+ @include clearfix;
153
+ position: relative;
154
+ background-image: url(/assets/images/full-rec.svg);
155
+ background-repeat: no-repeat;
156
+ background-position-x: 2rem;
157
+ background-position-y: 2rem;
158
+ background-size: 600px;
159
+ @include responsive(wide-screens){
160
+ background-size: 900px;
161
+ }
162
+ @include responsive(extra-ultra-wide-screens){
163
+ background-size: 1100px;
164
+ }
165
+ @include responsive(super-wide-screens){
166
+ background-size: 1500px;
167
+ }
168
+ &--title{
169
+ margin-left: 5rem;
170
+ margin-top: 4rem;
171
+ @include responsive(wide-screens){
172
+ margin-top: 5rem;
173
+ }
174
+ }
175
+ h2{
176
+ color: $slate;
177
+ font-size: 2.1rem;
178
+ display: block;
179
+ width: 40%;
180
+ @include responsive(wide-screens){
181
+ width: 45%;
182
+ }
183
+ @include responsive(ultra-wide-screens){
184
+ width: 425.5px;
185
+ }
186
+ }
187
+ }
188
+ .featured{
189
+ @include clearfix;
190
+ background-color: $ofc_lightblue;
191
+ height: 12rem;
192
+ overflow: hidden;
193
+ position: relative;
194
+ background-image: url(/assets/images/top-rec.svg);
195
+ background-repeat: no-repeat;
196
+ background-position-x: 2rem;
197
+ background-position-y: 2rem;
198
+ background-size: 600px;
199
+ @include responsive(wide-screens){
200
+ background-size: 900px;
201
+ }
202
+ @include responsive(extra-ultra-wide-screens){
203
+ background-size: 1100px;
204
+ }
205
+ @include responsive(super-wide-screens){
206
+ background-size: 1500px;
207
+ }
208
+ &--title{
209
+ margin-left: 5rem;
210
+ margin-top: 4rem;
211
+ width: 75%;
212
+ @include responsive(wide-screens){
213
+ margin-top: 5rem;
214
+ }
215
+ }
216
+ h2{
217
+ color: $slate;
218
+ font-size: 2.1rem;
219
+ display: block;
220
+ width: 40%;
221
+ @include responsive(wide-screens){
222
+ width: 45%;
223
+ }
224
+ @include responsive(ultra-wide-screens){
225
+ width: 425.5px;
226
+ }
227
+ }
228
+ }
229
+ .recent{
230
+ background-color: $ofc_lightgray;
231
+ }
232
+
233
+ // Featured post 1
234
+
235
+ .featured-zero{
236
+ width: 100%;
237
+ @include clearfix;
238
+ &--blog{
239
+ width: 100%;
240
+ font-size: 1rem;
241
+ background-color: $ofc_slate;
242
+ color: white;
243
+ font-weight: bold;
244
+ text-transform: uppercase;
245
+ padding: 1.5rem;
246
+ @include responsive(wide-screens){
247
+ float: left;
248
+ width: 50%;
249
+ }
250
+ }
251
+ &--image{
252
+ width: 100%;
253
+ height: 20rem;
254
+ background-size: cover;
255
+ @include responsive(wide-screens){
256
+ display: block;
257
+ width: 50%;
258
+ float: right;
259
+ height: 35rem;
260
+ }
261
+ }
262
+ &--post{
263
+ width: 100%;
264
+ padding: 1rem;
265
+ @include clearfix;
266
+ @include responsive(wide-screens){
267
+ width: 50%;
268
+ float: left;
269
+ }
270
+ }
271
+ &--author{
272
+ @include clearfix;
273
+ font-size: .7rem;
274
+ float: left;
275
+ padding-left: 1.5rem;
276
+ a{
277
+ color: $ofc_super_lightblue;
278
+ }
279
+ }
280
+
281
+ &--author-pic{
282
+ img{
283
+ float: left;
284
+ clip-path: circle(49%);
285
+ width: 2rem;
286
+ }
287
+ a{
288
+ font-weight: bold;
289
+ position: relative;
290
+ top: .1rem;
291
+ }
292
+ span{
293
+ margin-left: .5rem;
294
+ }
295
+ }
296
+
297
+ &--author-data{
298
+ padding-left: 2.5rem;
299
+ p{
300
+ margin: 0;
301
+ line-height: 1rem;
302
+ }
303
+ .seperator{
304
+ font-size: 0.9rem;
305
+ position: relative;
306
+ }
307
+ }
308
+
309
+ &--post-wrap{
310
+ padding-left: 4rem;
311
+ padding-right: 1rem;
312
+ max-width: 717px;
313
+ h4{
314
+ margin-top: 4rem;
315
+ padding-top: 2rem;
316
+ font-size: 1.5rem;
317
+ font-family: $condensed-titles;
318
+ }
319
+ p{
320
+ margin-top: 1rem;
321
+ }
322
+ }
323
+ }
324
+
325
+ // Featured items 2 and 3
326
+
327
+ .featured-other{
328
+ background-color: $ofc_lightblue;
329
+ background-image: url(/assets/images/bottom-rec.svg);
330
+ background-repeat: no-repeat;
331
+ background-position-x: 2rem;
332
+ background-size: 600px;
333
+ @include responsive(wide-screens){
334
+ background-size: 900px;
335
+ }
336
+ @include responsive(extra-ultra-wide-screens){
337
+ background-size: 1100px;
338
+ }
339
+ @include responsive(super-wide-screens){
340
+ background-size: 1500px;
341
+ }
342
+ width: 100%;
343
+ position: relative;
344
+ @include clearfix;
345
+ padding-bottom: 2rem;
346
+ // .svg-image{
347
+ // width: 75%;
348
+ // position: absolute;
349
+ // left: 2rem;
350
+ // stroke-width: 20;
351
+ // @include responsive(wide-screens){
352
+ // width: 70%;
353
+ // }
354
+ // @include responsive(ultra-wide-screens){
355
+ // width: 900px;
356
+ // }
357
+ // }
358
+ .post-data{
359
+ width: 100%;
360
+ }
361
+ &--blog{
362
+ font-size: 1rem;
363
+ background-color: $ofc_slate;
364
+ color: white;
365
+ text-transform: uppercase;
366
+ float: none;
367
+ width: 100%;
368
+ padding: .7rem;
369
+ font-weight: 300;
370
+ }
371
+ &--image{
372
+ height: 314px;
373
+ width: 100%;
374
+ }
375
+ &--author{
376
+ @include clearfix;
377
+ font-size: .7rem;
378
+ float: none;
379
+ padding-left: 1.5rem;
380
+ padding-top: 1.5rem;
381
+ a{
382
+ color: $ofc_super_lightblue;
383
+ }
384
+ }
385
+ &--author-pic{
386
+ img{
387
+ float: left;
388
+ clip-path: circle(49%);
389
+ width: 2rem;
390
+ }
391
+ a{
392
+ font-weight: bold;
393
+ position: relative;
394
+ }
395
+ span{
396
+ margin-left: .5rem;
397
+ }
398
+ }
399
+ &--author-data{
400
+ padding-left: 2.5rem;
401
+ p{
402
+ margin: 0;
403
+ line-height: 1rem;
404
+ }
405
+ .seperator{
406
+ font-size: 0.9rem;
407
+ position: relative;
408
+ }
409
+ }
410
+ &--post-wrap{
411
+ overflow: none;
412
+ padding-left: 1.5rem;
413
+ padding-right: .5rem;
414
+ max-width: 617px;
415
+ @include responsive(extra-ultra-wide-screens){
416
+ margin: auto;
417
+ }
418
+ .post-summary{
419
+ display: block;
420
+ min-height: 81px;
421
+ }
422
+ .post-title{
423
+ display: block;
424
+ padding-top: 0;
425
+ margin-top: 1rem;
426
+ min-height: 100px;
427
+ }
428
+ .button{
429
+ width: 75%;
430
+ @include responsive(ultra-wide-screens){
431
+ width: 40%;
432
+ }
433
+ }
434
+ }
435
+ &--title{
436
+ display: block;
437
+ padding-top: 0;
438
+ margin-top: 1rem;
439
+ min-height: 100px;
440
+ }
441
+ &--summary{
442
+ display: block;
443
+ min-height: 108px;
444
+ margin-top: 1rem;
445
+ }
446
+ &--wrap{
447
+ width: 40%;
448
+ float: left;
449
+ margin-top: 2rem;
450
+ background-color: white;
451
+ min-height: 776px;
452
+ @include clearfix;
453
+ &.odd{
454
+ margin-left: 5%;
455
+ }
456
+ &.even{
457
+ float: right;
458
+ margin-right: 5%;
459
+ }
460
+ }
461
+ }
462
+
463
+ // RECENT ARTICLES
464
+ .main-carousel{
465
+ margin-bottom: 3rem;
466
+ width: 300px;
467
+ margin-left: 6rem;
468
+ margin-top: 3rem;
469
+ box-shadow: 0px 2px 60px 0px rgba(160,179,198,0.47);
470
+ @include responsive(small-screens){
471
+ width: 400px;
472
+ }
473
+ @include responsive(medium-screens){
474
+ width: 500px;
475
+ }
476
+ @include responsive(wide-screens){
477
+ width: 680px;
478
+ }
479
+ @include responsive(ultra-wide-screens){
480
+ width: 800px;
481
+ }
482
+ @include responsive(extra-ultra-wide-screens){
483
+ width: 1200px;
484
+ margin-left: auto;
485
+ margin-right: auto;
486
+ }
487
+ @include responsive(superish-wide-screens){
488
+ width: 1258px;
489
+ }
490
+ .carousel-cell{
491
+ width: 142;
492
+ height: 50rem;
493
+ background-color: white;
494
+ margin-right: 1rem;
495
+ font-size: .8rem;
496
+ box-shadow: 0px 2px 60px 0px rgba(160,179,198,0.47);
497
+ @include responsive(small-screens){
498
+ width: 192px;
499
+ height: 40rem;
500
+ }
501
+ @include responsive(medium-screens){
502
+ width: 242px;
503
+ }
504
+ @include responsive(wide-screens){
505
+ width: 216px;
506
+ }
507
+ @include responsive(ultra-wide-screens){
508
+ width: 256px;
509
+ }
510
+ @include responsive(extra-ultra-wide-screens){
511
+ width: 389.3px;
512
+ }
513
+ @include responsive(superish-wide-screens){
514
+ margin-right: 2.5rem;
515
+ }
516
+ @include responsive(super-wide-screens){
517
+
518
+
519
+ }
520
+ .recent-blog{
521
+ padding: .5rem;
522
+ padding-left: 1rem;
523
+ background-color: $ofc_slate;
524
+ color: white;
525
+ font-weight: 300;
526
+ span{
527
+ text-transform: uppercase;
528
+ }
529
+ }
530
+ .recent-image{
531
+ height: 9rem;
532
+ overflow: hidden;
533
+ img{
534
+ width: 100%;
535
+ }
536
+ }
537
+ .featured-other--author{
538
+ font-size: .6rem;
539
+ }
540
+ .featured-other--author-pic{
541
+ span{
542
+ display: block;
543
+ margin-left: 2.5rem;
544
+ padding-right: .1rem;
545
+ }
546
+ }
547
+ .featured-other--title{
548
+ padding-left: 1.5rem;
549
+ padding-right: .5rem;
550
+ font-size: 1rem;
551
+ }
552
+ .featured-other--summary{
553
+ font-size: .9rem;
554
+ padding: 0 .5rem 0 1.5rem;
555
+ }
556
+ .button{
557
+ margin-left: 1.5rem;
558
+ background-color: $ofc_blue;
559
+ font-weight: 600;
560
+ width: 75%;
561
+ position: absolute;
562
+ bottom: 3rem;
563
+ @include responsive(ultra-wide-screens){
564
+ width: 40%;
565
+ }
566
+ }
567
+ .featured-other--summary{
568
+
569
+ }
570
+ }
571
+ }
572
+
573
+ // More News
574
+
575
+ .more{
576
+ background-color: #F9F9F9;
577
+ background-image: url(/assets/images/open-rec.svg);
578
+ background-repeat: no-repeat;
579
+ background-position-x: 2rem;
580
+ background-position-y: 2rem;
581
+ background-size: 600px;
582
+ @include responsive(wide-screens){
583
+ background-size: 900px;
584
+ }
585
+ @include responsive(extra-ultra-wide-screens){
586
+ background-size: 1100px;
587
+ }
588
+ @include responsive(super-wide-screens){
589
+ background-size: 1500px;
590
+ }
591
+ padding-top: 3rem;
592
+ .featured--title{
593
+ margin-top: 1rem;
594
+ }
595
+ h2{
596
+ font-size: 2.1rem;
597
+ }
598
+ .more-block-wrap{
599
+ padding: 0 2rem;
600
+ @include clearfix;
601
+ max-width: 1423px;
602
+ @include responsive(extra-ultra-wide-screens){
603
+ margin-right: auto;
604
+ margin-left: auto;
605
+ }
606
+ }
607
+ .more-block{
608
+ @include clearfix;
609
+ width: 80%;
610
+ margin-left: 10%;
611
+ float: right;
612
+ margin-bottom: 2rem;
613
+ min-height: 16rem;
614
+ @include responsive(medium-screens){
615
+ width: 40%;
616
+ }
617
+ @include responsive(wide-screens){
618
+ width: 30%;
619
+ margin-left: 3%;
620
+ }
621
+ @include responsive(ultra-wide-screen){
622
+ width: 20%;
623
+ margin-left: 5%;
624
+ }
625
+ .bar{
626
+ width: 1.1875rem;
627
+ border: 0;
628
+ border-bottom: 0.225rem solid #768496;
629
+ margin-bottom: 1rem;
630
+ }
631
+ }
632
+
633
+ .more-title{
634
+
635
+ }
636
+ .more-details{
637
+ .more-blog{
638
+ font-weight: 600;
639
+ display: block;
640
+ color: $link_blue;
641
+ }
642
+ .more-time{
643
+ font-size: .8rem;
644
+ display: block;
645
+ .clock-icon{
646
+ width: 12px;
647
+ position: relative;
648
+ top: 1px;
649
+ }
650
+ }
651
+ }
652
+ }
653
+
654
+
655
+ // POSTSTYLES
656
+ #progressbarJS {
657
+ background-color: #92BADC;
658
+ height: 5px;
659
+ position: fixed;
660
+ top: 91px;
661
+ left: 0;
662
+ width: 0%;
663
+ z-index: 9999;
664
+ @include responsive(small-screens){
665
+ top: 91px;
666
+ }
667
+ @include responsive(medium-screens){
668
+ top: 114px;
669
+ }
670
+ @include responsive(wide-screens){
671
+ top: 129px;
672
+ }
673
+ }
674
+
675
+ .lead-wrap{
676
+ @include clearfix;
677
+ background-color: #F2F2F2;
678
+ }
679
+ .post-wrapper{
680
+ padding-top: 5px;
681
+ @include clearfix;
682
+ }
683
+ .post-image{
684
+ width: 50%;
685
+ height: 20rem;
686
+ background-size: cover;
687
+ @include responsive(wide-screens){
688
+ display: block;
689
+ width: 50%;
690
+ float: right;
691
+ height: 35rem;
692
+ }
693
+ background-size: cover;
694
+ }
695
+ .post-summary{
696
+ width: 50%;
697
+ float: right;
698
+ padding-top: 2rem;
699
+ padding-left: 3rem;
700
+ padding-right: 2rem;
701
+ @include responsive(wide-screens){
702
+ padding-top: 4rem;
703
+ padding-left: 6rem;
704
+ }
705
+ .summary-publication{
706
+ color: $ofc_slate;
707
+ text-transform: uppercase;
708
+ margin-bottom: 1.5rem;
709
+ }
710
+ .summary-title{
711
+ margin-bottom: 2rem;
712
+ }
713
+ .summary-details{
714
+ padding-left: 1.5rem;
715
+ margin-bottom: 2rem;
716
+ border-left: 1px solid $ofc_blue;
717
+ p{
718
+ margin-bottom: 0px;
719
+ font-size: .8rem;
720
+ }
721
+ }
722
+ }
723
+ .post-body{
724
+ width: 50%;
725
+ margin-right: auto;
726
+ margin-left: auto;
727
+ padding-top: 3rem;
728
+ background-color: #F9F9F9;
729
+ img{
730
+ width: 100%;
731
+ }
732
+ img.full-screen{
733
+ display: block;
734
+ position: relative;
735
+ width: 200%;
736
+ left: -50%;
737
+ }
738
+ img.float-left{
739
+ @include responsive(ultra-wide-screens){
740
+ width: 40%;
741
+ float: left;
742
+ margin: 0 1rem 0 0;
743
+ position: relative;
744
+ top: .4rem
745
+ }
746
+ }
747
+ img.float-right{
748
+ @include responsive(ultra-wide-screens){
749
+ width: 40%;
750
+ float: right;
751
+ margin: 0 0 0 1rem;
752
+ position: relative;
753
+ top: .4rem
754
+ }
755
+ }
756
+
757
+ code{
758
+ display: block;
759
+ text-align: center;
760
+ padding: .7rem;
761
+ background-color: #B5BCC5;
762
+ font-weight: 300;
763
+ }
764
+ code.full-screen{
765
+ display: block;
766
+ position: relative;
767
+ width: 200%;
768
+ left: -50%;
769
+ }
770
+ code.float-left{
771
+ @include responsive(ultra-wide-screens){
772
+ width: 40%;
773
+ float: left;
774
+ margin: 0 1rem .5rem 0;
775
+ clear: left;
776
+ }
777
+
778
+ }
779
+ code.float-right{
780
+ @include responsive(ultra-wide-screens){
781
+ width: 40%;
782
+ float: right;
783
+ margin: 0 0 .5rem 1rem;
784
+ clear: right;
785
+ }
786
+
787
+ }
788
+ blockquote{
789
+ display: block;
790
+ width: 200%;
791
+ position: relative;
792
+ left: -50%;
793
+ padding: 2rem 40%;
794
+ margin-bottom: 1rem;
795
+ background-color: $ofc_slate;
796
+ color: $ofc_lightgray;
797
+ background-image: url(../images/blockquote.svg), url(../images/blockquote-right.svg);
798
+ background-size: 3rem, 6rem;
799
+ background-repeat: no-repeat;
800
+ background-position: left 10% top 1.2rem, right 5% top 2.3rem;
801
+ strong{
802
+ color: whitesmoke;
803
+ font-weight: bold;
804
+ }
805
+ @include responsive(extra-ultra-wide-screens){
806
+ background-position: left 15% top 1.2rem, right 12% top 2.3rem;
807
+ }
808
+ }
809
+ aside{
810
+ padding: 2rem 0;
811
+ margin: 2rem 0;
812
+ border-top: 1px solid $ofc_lightblue;
813
+ border-bottom: 1px solid $ofc_lightblue;
814
+ }
815
+ }
816
+ // FOOTER
817
+
818
+ .footer-flat--logo{
819
+ fill: $nav_links;
820
+ }