Skip to content

Commit

Permalink
📱 - style: improve responsive design of Toolbar component
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Dec 16, 2024
1 parent 0e59819 commit ee0d465
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
4 changes: 0 additions & 4 deletions src/components/form/form/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@
flex-direction: row;
width: auto;
}

.mykn-toolbar .mykn-button {
justify-content: center !important;
}
}
33 changes: 17 additions & 16 deletions src/components/toolbar/toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
}

--typography-color-link: var(--typography-color-body);

&--variant-primary {
--toolbar-color-text-primary: var(--typography-color-background);
background-color: var(--page-color-primary);
Expand Down Expand Up @@ -227,22 +228,6 @@
height: 100%;
}

&#{$self}--align-start .mykn-a,
&#{$self}--align-start .mykn-button,
&#{$self}--align-start .mykn-dropdown {
display: flex;
justify-content: start;
text-align: start;
}

&#{$self}--align-end .mykn-a,
&#{$self}--align-end .mykn-button,
&#{$self}--align-end .mykn-dropdown {
display: flex;
justify-content: end;
text-align: end;
}

&#{$self}--align-center .mykn-a,
&#{$self}--align-center .mykn-button,
&#{$self}--align-center .mykn-dropdown,
Expand Down Expand Up @@ -279,6 +264,22 @@
justify-content: space-between;
text-align: center;
}

&#{$self}--align-start .mykn-a,
&#{$self}--align-start .mykn-button,
&#{$self}--align-start .mykn-dropdown {
display: flex;
justify-content: start;
text-align: start;
}

&#{$self}--align-end .mykn-a,
&#{$self}--align-end .mykn-button,
&#{$self}--align-end .mykn-dropdown {
display: flex;
justify-content: end;
text-align: end;
}
}
}
}

0 comments on commit ee0d465

Please sign in to comment.