Skip to content

Commit

Permalink
remove breakpoints mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
basher committed Nov 11, 2024
1 parent d86444f commit 25dd82f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 66 deletions.
9 changes: 6 additions & 3 deletions ui/src/css/components/_banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ Dependencies.
padding-inline: var(--gutter-s);
}

// TODO: Replace with container query.
/* stylelint-disable-next-line order/order */
@include bp-medium {
@media (width > 48em) {
display: grid;
grid-template-areas: 'fullwidth';
place-items: center start;
Expand All @@ -57,7 +58,8 @@ Dependencies.
}

&__overlay {
@include bp-medium {
// TODO: Replace with container query.
@media (width > 48em) {
// Example, so text is legible above image.
background: linear-gradient(
to right,
Expand All @@ -69,7 +71,8 @@ Dependencies.
}

+ .banner__content {
@include bp-medium {
// TODO: Replace with container query.
@media (width > 48em) {
/* stylelint-disable-next-line max-nesting-depth */
@media (prefers-color-scheme: dark) {
--color-text: 0 0% 20%;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/css/global/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Dependencies.
----------------------------------------------------------------------------
*/
@use '../mixins' as *;
// @use '../mixins' as *;
@use '../base' as *;

/*
Expand Down
2 changes: 1 addition & 1 deletion ui/src/css/layouts/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Dependencies.

// Fallback.
@supports not (container-type: inline-size) {
@include bp-medium {
@media (min-width: 48.0625em) {
grid-template-columns:
minmax(var(--grid-item-min-width), var(--grid-asymmetric-col1))
minmax(var(--grid-item-min-width), var(--grid-asymmetric-col2));
Expand Down
59 changes: 0 additions & 59 deletions ui/src/css/mixins/_breakpoints.scss

This file was deleted.

1 change: 0 additions & 1 deletion ui/src/css/mixins/_index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@forward 'breakpoints';
@forward 'focus';
@forward 'form-field-reset';
3 changes: 2 additions & 1 deletion ui/src/css/web-components/_webui-tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ webui-tabs {
}

&[data-vertical] {
@include bp-medium {
// TODO: Replace with container query.
@media (width > 48em) {
display: grid;
gap: var(--gutter-m);
grid-template-areas: 'tabs content';
Expand Down

0 comments on commit 25dd82f

Please sign in to comment.