Snippet that quickly inserts bleech
SCSS media query with or without the appropriate breakpoint variables.
- OSX: copy the content of the
scss.json
file into respective JSON file located at your VS Code installation folderCode/User/snippets/scss.json
Snippet can be called in any SCSS file type by typing bl{breakpoint_abbreviation}
.
Full list of abreviations is as follows:
Abb | Full name | Breakpoint [px] |
---|---|---|
blm | $breakpoint-mobile-horizontal | 480 |
blt | $breakpoint-tablet | 768 |
blt1 | $breakpoint-tablet-horizontal | 1024 |
bld | $breakpoint-desktop | 1280 |
bld1 | $breakpoint-wide | 1440 |
blx | ~ no breakpoint ~ | ~ xx ~ |
@media (min-width: {breakpoint_variable}) {
...
}
}
Formula:
{bl}+{m;t;d}+{n}
bl
stands forbleech
- consequent letter represents a viewport width (
m
-mobile;t
-tablet,d
-desktop) - the number
n=1,2,3...
represents a viewport modifier