Skip to content

Commit

Permalink
fix(layout): Header fix subtitile padding on mobile (#9282)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Sep 30, 2024
1 parent 0eb3a39 commit faeca9e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
26 changes: 26 additions & 0 deletions projects/addon-mobile/styles/common/header.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[tuiHeader] {
&[data-size='xxl'],
&[data-size='xl'],
&[data-size='l'] {
[tuiTitle] {
gap: 1rem;
}
}

&[data-size='m'] {
[tuiTitle] {
gap: 0.5rem;
}
}

[tuiAccessories] {
gap: 1rem;
}

&[data-size='xxs'] {
[tuiTitle],
[tuiAccessories] {
font: var(--tui-font-heading-6);
}
}
}
1 change: 1 addition & 0 deletions projects/addon-mobile/styles/taiga-ui-mobile.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@
@import './common/title';
@import './common/card-large';
@import './common/segmented';
@import './common/header';
}
17 changes: 4 additions & 13 deletions projects/layout/components/header/header.styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
}

&[data-size='xxs'] {
[tuiTitle] {
gap: 0.125rem;
}

[tuiTitle],
[tuiAccessories] {
font: var(--tui-font-text-xl);
Expand All @@ -94,16 +98,3 @@
}
}
}

tui-root._mobile [tuiHeader] {
[tuiAccessories] {
gap: 1rem;
}

&[data-size='xxs'] {
[tuiTitle],
[tuiAccessories] {
font: var(--tui-font-heading-6);
}
}
}

0 comments on commit faeca9e

Please sign in to comment.