Skip to content

Commit fab6d59

Browse files
committed
feat: Add styles for ad formats
1 parent dddf8de commit fab6d59

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

assets/styles/_main.scss

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,50 @@ hr {
482482
}
483483

484484
.ads {
485+
display: flex;
486+
flex-flow: row wrap;
487+
align-items: center;
488+
justify-content: space-around;
485489
margin: $spacer-normal 0;
486490

491+
&.left {
492+
justify-content: flex-start;
493+
}
494+
487495
@media print {
488496
display: none;
489497
}
498+
499+
a {
500+
text-decoration: underline;
501+
font-size: $font-size-smaller;
502+
503+
@include themed {
504+
color: t($text-brighter);
505+
}
506+
}
507+
508+
&.buttons {
509+
@media ($phone) {
510+
flex-direction: column;
511+
}
512+
}
513+
514+
.banner {
515+
margin: $spacer-normal 0;
516+
517+
&--desktop {
518+
@media ($phone) {
519+
display: none;
520+
}
521+
}
522+
523+
&--mobile {
524+
display: none;
525+
526+
@media ($phone) {
527+
display: block;
528+
}
529+
}
530+
}
490531
}

assets/styles/_variables.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,8 @@ $text-links--dark: adjust-color(
6868
/* Media queries */
6969
$phone: "max-width: 684px";
7070
$tablet: "max-width: 900px";
71+
72+
:root {
73+
--phone: (#{$phone});
74+
--tablet: (#{$tablet});
75+
}

0 commit comments

Comments
 (0)