String|Number$phone-max-width: 47.9375em !default;The default phone max width media query. This should match the
phoneMaxWidth value on the AppSizeProvider.
String|Number$tablet-min-width: 48em !default;The default tablet min width media query. This should match the
tabletMinWidth value on the AppSizeProvider.
String|Number$tablet-max-width: 64em !default;The default tablet max width media query. This should match the
tabletMaxWidth value on the AppSizeProvider.
String|Number$desktop-min-width: 64.0625em !default;The default desktop min width media query. This should match the
desktopMinWidth value on the AppSizeProvider.
String|Number$large-desktop-min-width: 80em !default;The default large desktop min width media query. This should match the
largeDesktopMinWidth value on the AppSizeProvider.
mixin@mixin phone-media { … }Applies styles for phones only.
Note: This will need to be included at the end of a block with the new Sass rules or prefix styles with & {}
@use "@react-md/core";
.example {
background-color: red;
@include core.phone-media {
color: blue;
}
}mixin@mixin tablet-media { … }Applies styles when the viewport is at least as wide as a tablet's min width.
Note: This will need to be included at the end of a block with the new Sass rules or prefix styles with & {}
@use "@react-md/core";
.example {
display: flex;
flex-direction: column;
@include core.tablet-media {
flex-direction: row;
}
}mixin@mixin tablet-only-media { … }Applies styles for tablets only.
Note: This will need to be included at the end of a block with the new Sass rules or prefix styles with & {}
@use "@react-md/core";
.example {
background-color: red;
@include core.tablet-only-media {
color: blue;
}
}mixin@mixin desktop-media { … }Applies styles when the viewport is at least as wide as a desktop's min width.
Note: This will need to be included at the end of a block with the new Sass rules or prefix styles with & {}
@use "@react-md/core";
.example {
width: 100%;
@include core.desktop-media {
width: 33%;
}
}mixin@mixin large-desktop-media { … }Applies styles when the viewport is at least as wide as a large desktop's min width.
Note: This will need to be included at the end of a block with the new Sass rules or prefix styles with & {}
@use "@react-md/core";
.example {
width: 100%;
@include core.large-desktop-media {
width: 33%;
}
}mixin@mixin media($type) { … }Applies one of the media queries.
Note: This will need to be included at the end of a block with the new Sass rules or prefix styles with & {}
| Name | Description | Type | Default Value |
|---|---|---|---|
$type | This should be one of | String | — |
mixin@mixin media-or-media-query($type-or-media-query) { … }Applies one of the media queries.
Note: This will need to be included at the end of a block with the new Sass rules or prefix styles with & {}
| Name | Description | Type | Default Value |
|---|---|---|---|
$type-or-media-query | This should be one of | String | — |