summaryrefslogtreecommitdiffstats
path: root/src/objects
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-12-18 14:52:50 +0100
committerVolpeon <git@volpeon.ink>2023-12-18 14:52:50 +0100
commitd01fbe45ff32a6186a197f03693af346eb629ff1 (patch)
treec99b8f48a06c1cf39d22b018875236a665ec6cec /src/objects
parentBetter heading mixin (diff)
downloadiro-design-d01fbe45ff32a6186a197f03693af346eb629ff1.tar.gz
iro-design-d01fbe45ff32a6186a197f03693af346eb629ff1.tar.bz2
iro-design-d01fbe45ff32a6186a197f03693af346eb629ff1.zip
Typography
Diffstat (limited to 'src/objects')
-rw-r--r--src/objects/_heading.scss25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/objects/_heading.scss b/src/objects/_heading.scss
index 6f5e5b0..5d84e61 100644
--- a/src/objects/_heading.scss
+++ b/src/objects/_heading.scss
@@ -2,6 +2,7 @@
2@use '../functions' as fn; 2@use '../functions' as fn;
3@use '../mixins' as mx; 3@use '../mixins' as mx;
4@use '../config'; 4@use '../config';
5@use 'include-media/dist/include-media' as media;
5 6
6@include iro.props-namespace('heading') { 7@include iro.props-namespace('heading') {
7 @include iro.props-store(( 8 @include iro.props-store((
@@ -58,26 +59,50 @@
58 59
59 @include iro.bem-modifier('xxl') { 60 @include iro.bem-modifier('xxl') {
60 @include mx.heading-strong(--display --xxl); 61 @include mx.heading-strong(--display --xxl);
62
63 @include media.media('<=md') {
64 @include mx.heading-strong(--display-sm --xxl);
65 }
61 } 66 }
62 67
63 @include iro.bem-modifier('xl') { 68 @include iro.bem-modifier('xl') {
64 @include mx.heading-strong(--display --xl); 69 @include mx.heading-strong(--display --xl);
70
71 @include media.media('<=md') {
72 @include mx.heading-strong(--display-sm --xl);
73 }
65 } 74 }
66 75
67 @include iro.bem-modifier('lg') { 76 @include iro.bem-modifier('lg') {
68 @include mx.heading-strong(--display --lg); 77 @include mx.heading-strong(--display --lg);
78
79 @include media.media('<=md') {
80 @include mx.heading-strong(--display-sm --lg);
81 }
69 } 82 }
70 83
71 @include iro.bem-modifier('md') { 84 @include iro.bem-modifier('md') {
72 @include mx.heading-strong(--display --md); 85 @include mx.heading-strong(--display --md);
86
87 @include media.media('<=md') {
88 @include mx.heading-strong(--display-sm --md);
89 }
73 } 90 }
74 91
75 @include iro.bem-modifier('sm') { 92 @include iro.bem-modifier('sm') {
76 @include mx.heading-medium(--display --sm); 93 @include mx.heading-medium(--display --sm);
94
95 @include media.media('<=md') {
96 @include mx.heading-medium(--display-sm --sm);
97 }
77 } 98 }
78 99
79 @include iro.bem-modifier('xs') { 100 @include iro.bem-modifier('xs') {
80 @include mx.heading-faint(--display --xs); 101 @include mx.heading-faint(--display --xs);
102
103 @include media.media('<=md') {
104 @include mx.heading-faint(--display-sm --xs);
105 }
81 } 106 }
82 } 107 }
83 } 108 }