Skip to content

Commit

Permalink
Add CSS range syntax to breakpoints settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Ptushchuk authored and bartaz committed Oct 22, 2024
1 parent 9ae2b56 commit c7d7d8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/docs/settings/breakpoint-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@ Vanilla uses three main breakpoints for screen sizes, below you can see the sett
## Target small screens

```css
@media screen and (max-width: $breakpoint-small - 1) {
@media screen and (width < $breakpoint-small) {
// css
}
```

## Target medium size screens

```css
@media screen and (min-width: $breakpoint-small) and (max-width: $breakpoint-large - 1) {
@media screen and ($breakpoint-small <= width < $breakpoint-large) {
// css
}
```

## Target large screens

```css
@media screen and (min-width: $breakpoint-large) {
@media screen and ($breakpoint-large <= width) {
//css
}
```

## Target extra large screens

```css
@media screen and (min-width: $breakpoint-x-large) {
@media screen and ($breakpoint-x-large <= width) {
//css
}
```
Expand Down

0 comments on commit c7d7d8d

Please sign in to comment.