-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.less
1547 lines (1210 loc) · 40 KB
/
custom.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* ///////////////// CORE Template Framework Modifications v1.0.1 ///////////////// */
/* My custom variables - should align with the paragraph/typography line height that I define in the JB Buildr template admin backend. Will be used to replace variables that relate to typography, inputs, lists, etc, in the Buildr & Zengrid framework */
@acustom-align-with-line-height: 30px; // Use a fixed px value here (value should be in line with: @font-size base * @line-height-base)
@acustom-align-with-line-height-sml: @acustom-align-with-line-height / 2;
@acustom-align-with-line-height-pc: (@acustom-align-with-line-height / @twidth) * 100%;
@heading-margin-bottom-base: 18px; // This variable should, more or less, align with the base/body font size. It's used in margin calculations for the html heading elements.
@tablet-max-width-ratio-px: round(@tablet-max-width / @twidth, 2);
@phone-max-width-ratio-px: round(@phone-max-width / @twidth, 2);
/* End */
/* Changed the gutter variables' value (so that it will align with the @base-padding vertical rhythm variable from the template admin settings). Also, changed some other variable values */
@gutter: 40px; // Changed this to align with the @base-padding variable for vertical rhythm
@gutter-lge: @gutter * 2;
@modal-padding: @gutter; // Changed this to align with the @gutter variable for vertical rhythm
@base-line-big: @line-height-base;
@base-line: @line-height-base;
@base-line-small: @line-height-base;
/* @alert-padding: @gutter / 2; */ // Don't change @alert-padding variable because other hard coded, fixed px, values rely on it
/* End */
/* Zenshortcodes: defined bottom-margin for columns created with Zenshortcodes, depending on @gridcollapse. */
@media all and (min-width: @gridcollapse) {
.zen-row > .zg-col {
margin-bottom: @acustom-align-with-line-height;
}
.zen-row:last-child > .zg-col {
margin-bottom: 0;
}
}
@media all and (max-width: @gridcollapse) {
.zen-row:last-child > .zg-col:last-child {
margin-bottom: 0;
}
}
/* @media all and (min-width: @gridcollapse) {
main div.zen-row > div.zg-col {
margin-bottom: @acustom-align-with-line-height;
}
main div.zen-row:last-child > div.zg-col {
margin-bottom: 0;
}
}
@media all and (max-width: @gridcollapse) {
main div.zen-row:last-child > div.zg-col:last-child {
margin-bottom: 0;
}
} */ // The above code shouldn't be needed
/* End - Zenshortcodes */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_alerts.less */
.alert {
margin-bottom: @acustom-align-with-line-height; // Changed from @line-height-computed
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_blocks.less */
.block {
padding: @block-padding; // Didn't changed from @block-padding
@media all and (max-width: @tablet-max-width) {
padding: @block-padding (@block-padding * @tablet-max-width-ratio-px) @block-padding (@block-padding * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @block-padding (@block-padding * @phone-max-width-ratio-px) @block-padding (@block-padding * @phone-max-width-ratio-px);
}
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_borders.less */
div.border {
padding: @block-padding; // Didn't hanged from @block-padding
@media all and (max-width: @tablet-max-width) {
padding: @block-padding (@block-padding * @tablet-max-width-ratio-px) @block-padding (@block-padding * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @block-padding (@block-padding * @phone-max-width-ratio-px) @block-padding (@block-padding * @phone-max-width-ratio-px);
}
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_forms.less */
fieldset {
margin:0 0 @acustom-align-with-line-height 0; // Changed from 0
legend {
margin: 0 0 @acustom-align-with-line-height 0; // Added this new property
}
}
fieldset:last-child {
margin:0; // Changed from 0
}
label {
margin-bottom: 0; // Changed from 4px
}
input,
textarea {
margin-bottom: @acustom-align-with-line-height-sml; // Changed from @gutter-sml
}
input,select {
margin-bottom: @acustom-align-with-line-height-sml; // Changed from @gutter-sml
}
form {
margin-bottom: @acustom-align-with-line-height; // Changed from @gutter
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_grid.less - overrode JB template's zg-col margin-bottom, from @gutter-sml to 0px. By default, when container margin setings are enabled in the template admin, then zg-col also takes on a @gutter-sml value - it doesn't really serve any purpose in the template though, besides throwing off the layout spacing, so I believe it's best to remove it. */
.zg-col{
margin-bottom: 0;
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_labels.less - changed the label's top & bottom padding from 4px */
.label, label {
padding-top: 0;
padding-bottom: 8px;
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_lists.less */
ul, ol {
margin-top: 0; // This didn't exist before
margin-bottom: @acustom-align-with-line-height; // Changed from @gutter
ul, ol {
margin-bottom:0; // This didn't exist before
margin-left: @acustom-align-with-line-height; // This didn't exist before
ul, ol {
margin-bottom:0; // This didn't exist before
margin-left: @acustom-align-with-line-height; // This didn't exist before
}
}
}
.flat-list {
margin-bottom: @acustom-align-with-line-height; // Changed from @gutter
}
dl {
margin: @acustom-align-with-line-height 0; // Changed from '@gutter 0'
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_nav.less - changed from 30px to 0 */
.zen-tab-content {
margin-bottom: 0;
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_offcanvas.less - changed from 0 0 30px to 0 */
.off-canvas-body ul {
margin: 0;
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_tools.less - changed floats, from 3% & 30px, to align with paragraph/typography vertical rhythm */
.floatleft {
margin: 0 @acustom-align-with-line-height @acustom-align-with-line-height-sml 0;
} // Changed from '0 3% 30px 0'
.floatright {
margin: 0 0 @acustom-align-with-line-height-sml @acustom-align-with-line-height;
} // Changed from '0 0 3% 30px'
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/_typography.less */
h6 {
text-transform: none; // Changed from uppercase
}
p {
margin:0 0 @acustom-align-with-line-height; // Changed from @gutter-sml
}
blockquote {
// font-size: @font-size-base; // Changed from @font-size-h1
margin: 0 0 @acustom-align-with-line-height @acustom-align-with-line-height;
padding-left: @acustom-align-with-line-height; // Changed from @base-line
small {
font-size: @font-size-small; // Changed from 12px
}
}
pre,
code,
kbd,
samp,
var,
output {
font-size: @font-size-small; // Changed from 85%
height: auto;
max-height: auto; // Changed from @code-max-height
}
pre {
font-size: @font-size-small; // Changed from 90%
padding: @acustom-align-with-line-height; // Changed from @base-padding
height: auto;
max-height: none; // Changed from @code-max-height
margin-bottom: @acustom-align-with-line-height; // Changed from @gutter
}
mark,
code,
samp,
kbd {
padding: @acustom-align-with-line-height; // Changed from @base-padding
font-size: @font-size-small; // Changed from 85%
}
pre code {
font-size: @font-size-small; // Changed from 85%
}
.code-title {
font-size: @font-size-small; // Changed from 12px
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/joomla/_bootstrap_adjustments.less */
.bootstrap2 .form-inline .form-group, .bootstrap3 .form-inline .form-group {
margin-bottom: @acustom-align-with-line-height-sml;
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/joomla/_contact.less */
.contact{
.zg-collapse,
.tab-pane {
overflow:auto; // Changed from hidden
max-height:none; // Changed from 0
}
.zg-collapse.in,
.tab-pane.active {
heght:auto;
max-height:none; // Changed from 1000px
}
.contact-address {
padding-bottom:0; // Changed from @gutter
}
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/joomla/_item-images.less */
.item-image {
margin:0 0 @acustom-align-with-line-height; // Changed from @gutter
}
.img-left {
margin:0 @acustom-align-with-line-height @acustom-align-with-line-height 0; // Changed from '0 @gutter @gutter 0'
}
.img-right{
margin:0 0 @acustom-align-with-line-height @acustom-align-with-line-height; // Changed from '0 0 @gutter @gutter'
}
.img-none img{
margin:0 auto @acustom-align-with-line-height; // Changed from '0 auto @gutter'
}
@media screen and (max-width:@tablet-max-width) {
.img-right,.img-left {
margin:@acustom-align-with-line-height @acustom-align-with-line-height; // Changed from '@gutter 0'
}
}
.img-none {
.img_caption {
margin:-@acustom-align-with-line-height 0 @acustom-align-with-line-height; // Changed from '-@gutter 0 @gutter'
}
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/joomla/_login.less */
#login-form {
ul {
margin:@acustom-align-with-line-height 0 0 0; // Changed from '30px 0 0 0'
}
}
.other-links {
margin-top:@acustom-align-with-line-height; // Changed from @gutter
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/joomla/_profile.less */
.profile-edit {
.form-group {
input {
margin-bottom:@acustom-align-with-line-height; // Changed from @gutter
}
}
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/joomla/_search.less */
.search-results {
padding-top:@acustom-align-with-line-height; // Changed from @gutter
li {
padding:@acustom-align-with-line-height 0; // Changed from '@gutter 0'
}
}
#search-searchword {
margin-bottom:@gutter; // Changed from 30px
}
.control-label {
text-align: left; // Changed from right
}
.control-group {
margin-bottom:@acustom-align-with-line-height-sml; // Changed from @gutter-sml
}
.category-list {
ul {
margin-bottom:@gutter; // Changed from 30px
}
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/joomla/_tooltips.less */
.tooltip {
font-size: 12px; // Changed from 11px
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/menu/mean-menu.less */
.mean-menu-open {
.mean-nav {
padding-bottom: 0; // Changed from @gutter
}
}
.mean-container .zen-menu-caption {
font-size:12px; // Changed from 11px
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/mixins/_border.less */
.img-border() {
.box-shadow(0px 0px 2px rgba(0,0,0,.2));
background: #fff !important;
padding: 4px;
max-width: 98%;
margin-bottom: @acustom-align-with-line-height; // ONLY changed this property, from 20px
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/mixins/_buttons.less */
.button-variant(@color; @background; @border; @hover) {
padding: @button-padding (@button-padding + 5); // Changed from @button-padding
line-height: @acustom-align-with-line-height; // This didn't exist before
&:hover,
&:focus,
&:active,
&.active,
.open .dropdown-toggle& {
background-color: lighten(@background, 5%); // Changed from darken(@background, 8%)
border-color: lighten(@border, 5%); // Changed from darken(@background, 12%)
}
}
/* End */
/* Modifications to /templates/buildr/zengrid/libs/zengrid/less/mixins/_typography.less */
img {
height: auto;
display: block;
}
/* End */
/* Modifications to /templates/buildr/less/buttons.less */
.btn-empty {
padding: @button-padding (@button-padding + 5);
line-height: @acustom-align-with-line-height; // This didn't exist before
}
.btn-primary,
input.btn-primary {
.button-variant(#fff; @primary; @primary; #fff); // Changed from (#fff; @primary; darken(@primary, 10%);#fff)
}
/* End */
/* Modifications to /templates/buildr/less/display.less */
.row_style(@bg1,@bg-image, @bg-repeat, @bg-size, @bg2,@color, @hcolor, @link,@link-hover,@fullwidth,@overlay) {
& when not (@link-hover = inherit) {
& when not (@link-hover = none) {
a.btn-empty {
&:hover {
color: @link-hover;
border-color: transparent; // Changed from @link-hover
}
}
}
}
}
/* End */
/* Modifications to /templates/buildr/less/footer.less */
#footerwrap {
font-size: 100%; // Changed from 90%
}
/* End */
/* Modifications to /templates/buildr/less/logo.less */
#logo {
p {
margin:0 0 @acustom-align-with-line-height-sml 0;
}
p:last-child,
p:last-child > img:last-child,
p:last-child > a:last-child > img {
margin-bottom: 0;
}
}
/* End */
/* Modifications to /templates/buildr/less/mixins.less */
.btn() {
padding:@button-padding (@button-padding + 5); // Changed from @button-padding
line-height: @acustom-align-with-line-height; // This didn't exist before
}
.simplelist() {
margin: 0 0 @acustom-align-with-line-height; // Changed from @gutter
li {
padding: 10px 0; // Changed from 4px 0
li {
padding: 10px 0;
}
}
> li:first-child {
padding-top: 0; // This didn't exist before
}
}
.setModuleStyle (@bgColor, @txtColor){
padding:@gutter; // Changed from @gutter-sml
color: @txtColor;
// border-bottom: 5px solid darken(@bgColor, 10%);
background: @bgColor;
@media all and (max-width: @tablet-max-width) {
padding: @gutter (@gutter * @tablet-max-width-ratio-px) @gutter (@gutter * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @gutter (@gutter * @phone-max-width-ratio-px) @gutter (@gutter * @phone-max-width-ratio-px);
}
.zen-module-title {
span {
color: @txtColor;
}
}
p {
color: @txtColor;
margin: 0 0 @acustom-align-with-line-height; // Changed from 0
}
h1,h2,h3,h4,h5,h6 {
a {
color: #fff
}
}
}
.setModuleInsetStyle (@bgColor, @txtHeaderColor, @txtColor){
color: @txtColor!important;
p {
color: @txtColor!important;
}
.zen-module-body {
padding: @gutter; // Changed from @gutter-sml
border: 1px solid lighten(@bgColor, 10%);
background: @bgColor;
@media all and (max-width: @tablet-max-width) {
padding: @gutter (@gutter * @tablet-max-width-ratio-px) @gutter (@gutter * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @gutter (@gutter * @phone-max-width-ratio-px) @gutter (@gutter * @phone-max-width-ratio-px);
}
}
.zen-module-title span {
color: @txtHeaderColor;
}
}
/* End */
/* Modifications to /templates/buildr/less/modules.less */
.zen-module-title {
margin-bottom: auto; // Changed from 10px - the purpose of this invalid value is to cancel the defined value
h3 {
// Remove the margin on the h3
margin: 0 0 @heading-margin-bottom-base 0; // Changed from 0
line-height: 1.4; // Changed from normal
padding-bottom: inherit; // Changed from 15px
}
}
.moduletable {
&.highlight {
.zen-module-title {
margin-bottom:@acustom-align-with-line-height; // Changed from 30px
h3 {
margin-bottom: 0;
}
h1,h2,h4,h5,h6 {
padding-bottom: 0;
margin-bottom: 0;
}
}
}
}
.moduletable.border {
padding:@gutter; // Didn't change from @gutter
@media all and (max-width: @tablet-max-width) {
padding: @gutter (@gutter * @tablet-max-width-ratio-px) @gutter (@gutter * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @gutter (@gutter * @phone-max-width-ratio-px) @gutter (@gutter * @phone-max-width-ratio-px);
}
}
.moduletable.dark {
padding:@gutter; // Changed from 20px
@media all and (max-width: @tablet-max-width) {
padding: @gutter (@gutter * @tablet-max-width-ratio-px) @gutter (@gutter * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @gutter (@gutter * @phone-max-width-ratio-px) @gutter (@gutter * @phone-max-width-ratio-px);
}
p,h3,h1,h2,h4,h5,h6 { // Changed from 'p,h3'
color:#fff;
}
}
.moduletable.light {
padding:@gutter; // Changed from 20px
color:#333; // Changed from fff
@media all and (max-width: @tablet-max-width) {
padding: @gutter (@gutter * @tablet-max-width-ratio-px) @gutter (@gutter * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @gutter (@gutter * @phone-max-width-ratio-px) @gutter (@gutter * @phone-max-width-ratio-px);
}
p,h3,h1,h2,h4,h5,h6 { // Changed from 'p,h3'
color:#333;
}
}
.right-heading {
h3,h1,h2,h4,h5,h6 { // Changed from h3
text-align: right;
}
}
.center-heading {
h3,h1,h2,h4,h5,h6 { // Changed from h3
text-align: center;
}
}
.small-heading {
h3,h1,h2,h4,h5,h6 { // Changed from h3
font-size:100%;
}
}
.moduletable.shadow,
.inset.shadow .zen-module-body,
div.shadow {
padding:@gutter; // Didn't change from @gutter
@media all and (max-width: @tablet-max-width) {
padding: @gutter (@gutter * @tablet-max-width-ratio-px) @gutter (@gutter * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @gutter (@gutter * @phone-max-width-ratio-px) @gutter (@gutter * @phone-max-width-ratio-px);
}
}
.moduletable.shadow2,
.inset.shadow2 .zen-module-body,
div.shadow2 {
padding:@gutter; // Didn't change from @gutter
@media all and (max-width: @tablet-max-width) {
padding: @gutter (@gutter * @tablet-max-width-ratio-px) @gutter (@gutter * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @gutter (@gutter * @phone-max-width-ratio-px) @gutter (@gutter * @phone-max-width-ratio-px);
}
}
.moduletable {
// Rounded corners
&.rounded {
padding:@gutter; // Changed from 20px
@media all and (max-width: @tablet-max-width) {
padding: @gutter (@gutter * @tablet-max-width-ratio-px) @gutter (@gutter * @tablet-max-width-ratio-px);
}
@media all and (max-width: @phone-max-width) {
padding: @gutter (@gutter * @phone-max-width-ratio-px) @gutter (@gutter * @phone-max-width-ratio-px);
}
p {
margin-bottom:@acustom-align-with-line-height; // Changed from 0
}
}
}
/* End */
/* Modifications to /templates/buildr/less/offcanvas.less */
#off-canvas-menu {
margin-bottom: @gutter; // Changed from 30px
}
/* End */
/* Modifications to /templates/buildr/less/typography.less */
.moduletable h3 {
text-transform: none; // Changed from uppercase
@media all and (max-width: @tablet-max-width) {
font-size: @font-size-h3 * .95; // Changed from @font-size-h3
}
@media all and (max-width: @phone-max-width) {
font-size: @font-size-h3 * .9; // Changed from @font-size-h3
}
}
.article-title {
line-height: 1.3; // Changed from 1.2em
}
.divider {
margin-bottom: @acustom-align-with-line-height; // Changed from @gutter-sml
}
/* End */
/* Removed bottom margin from the moduletable last-child in every module position (depending on screen width). I decreased specificity of the first rule so that I can still use modules classes (& pasted some JB module css styles, that affect margins, toward then end of this file so that it'll take presedence when used). Also, added gutters & rules for each module position (that wraps the modules). */
.zg-col > .moduletable:last-child {
margin-bottom: 0;
}
/* @media all and (max-width: @gridcollapse) {
div > div:last-child > .moduletable:last-child {
margin-bottom: 0;
}
} */ // I believe this rule is covered by the above & the new rules below
/* this adds margin-bottom values to the module positions (that wraps each group of modules) */
/* @media all and (max-width: @gridcollapse) {
#toolbar, #topwrap, #logowrap, #navwrap, #bannerwrap, #tabwrap, #grid1wrap, #grid2wrap, #grid3wrap, #abovewrap, .mainwrap, #belowwrap, #grid4wrap, #grid5wrap, #grid6wrap, #bottomwrap, #footerwrap {
div > .zen-row > .zen-spotlight > div {
margin-bottom: @gutter;
}
}
}
@media all and (max-width: @gridcollapse) {
#toolbar, #topwrap, #logowrap, #navwrap, #bannerwrap, #tabwrap, #grid1wrap, #grid2wrap, #grid3wrap, #abovewrap, .mainwrap, #belowwrap, #grid4wrap, #grid5wrap, #grid6wrap, #bottomwrap, #footerwrap {
div > .zen-row > .zen-spotlight > div:last-child {
margin-bottom: 0;
}
}
}
@media all and (max-width: @gridcollapse) {
#mainwrap {
.zen-container > .zen-row > .zen-spotlight > .zg-col {
margin-bottom: @gutter;
}
}
}
@media all and (max-width: @gridcollapse) {
#mainwrap {
.zen-container > .zen-row > .zen-spotlight > .zg-col:last-child {
margin-bottom: 0;
}
}
} */ // the above styles might not be needed because of the new rules below
@media all and (max-width: @gridcollapse) {
div > .zen-row > .zen-spotlight > .zg-col {
margin-bottom: @gutter;
}
}
@media all and (max-width: @gridcollapse) {
div > .zen-row > .zen-spotlight > .zg-col:last-child {
margin-bottom: 0;
}
}
/* sets margin-bottom to 0 for this menu, at @navcollapse (because this one-page-menu's not visible upon navcollapse) */
@media all and (max-width: @navcollapse) {
#one-page-menu-wrap {
margin-bottom: 0;
}
}
/* End */
/* Removed bottom-margin from the last child element in .zen-module-body & 'article-content'. This helps reduce the excessive bottom-margins everywhere there's content in the template layout. */
/* This specifity is to target the last module in a sidebar */
.sidebar {
> .moduletable:last-child {
margin-bottom: 0;
}
}
/* This specifity is to target the last element in columns/layouts created with Zenshortcodes. Only apply it above grid-collapse because otherwise, there's no vertical spacing between stacked columns below grid collapse (owing to work-around code that's been implemented) */
@media all and (min-width: @gridcollapse) {
.zen-row > .zg-col {
> p:last-child,
> p:last-child > img:last-child,
> p:last-child > a:last-child > img,
> img:last-child,
> div:last-child,
> div:last-child > img:last-child,
> div:last-child > a:last-child > img,
> table:last-child,
> blockquote:last-child,
> button:last-child,
> ol:last-child,
> ul:last-child,
> form:last-child,
> span:last-child,
> a:last-child,
> h1:last-child,
> h2:last-child,
> h3:last-child,
> h4:last-child,
> h5:last-child,
> h6:last-child,
> dl:last-child {
margin-bottom: 0;
}
}
}
/* This specifity is to target the last element in a standard module */
.zen-module-body > div {
> p:last-child,
> p:last-child > img:last-child,
> p:last-child > a:last-child > img,
> img:last-child,
> div:last-child,
> div:last-child > img:last-child,
> div:last-child > a:last-child > img,
> table:last-child,
> blockquote:last-child,
> button:last-child,
> ol:last-child,
> ul:last-child,
> form:last-child,
> span:last-child,
> a:last-child,
> h1:last-child,
> h2:last-child,
> h3:last-child,
> h4:last-child,
> h5:last-child,
> h6:last-child,
> dl:last-child {
margin-bottom: 0;
}
}
/* This specifity is to target the last element in an article's content on each page */
section .article-content {
> p:last-child,
> p:last-child > img:last-child,
> p:last-child > a:last-child > img,
> img:last-child,
> div:last-child,
> div:last-child > img:last-child,
> div:last-child > a:last-child > img,
> table:last-child,
> blockquote:last-child,
> button:last-child,
> ol:last-child,
> ul:last-child,
> form:last-child,
> span:last-child,
> a:last-child,
> h1:last-child,
> h2:last-child,
> h3:last-child,
> h4:last-child,
> h5:last-child,
> h6:last-child,
> dl:last-child {
margin-bottom: 0;
}
}
/* This specifity is to target the component, if displayed, on each page */
main {
> p:last-child,
> p:last-child > img:last-child,
> p:last-child > a:last-child > img,
> img:last-child,
> div:last-child,
> div:last-child > img:last-child,
> div:last-child > a:last-child > img,
> table:last-child,
> blockquote:last-child,
> button:last-child,
> ol:last-child,
> ul:last-child,
> form:last-child,
> span:last-child,
> a:last-child,
> h1:last-child,
> h2:last-child,
> h3:last-child,
> h4:last-child,
> h5:last-child,
> h6:last-child,
> dl:last-child {
margin-bottom: 0;
}
}
/* End */
/* This specifity is to target tabbed sections */
.zen-tab-pane > div, .tab-pane {
> p:last-child,
> p:last-child > img:last-child,
> p:last-child > a:last-child > img,
> img:last-child,
> div:last-child,
> div:last-child > img:last-child,
> div:last-child > a:last-child > img,
> table:last-child,
> blockquote:last-child,
> button:last-child,
> ol:last-child,
> ul:last-child,
> form:last-child,
> span:last-child,
> a:last-child,
> h1:last-child,
> h2:last-child,