Skip to content

Commit f4c8d8c

Browse files
committed
add missing variables.less
1 parent 79fac45 commit f4c8d8c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

web_src/less/variables.less

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// here a standard set of media queries is defined, that is compatible with the
2+
// responsive grid used in formantic css. As there only is a precompiled build
3+
// of formantic checked in (since 946bbbe),we can't use their less variables
4+
// here, but these breakpoints shouldn't change in the foreseable future.
5+
6+
@breakSmMax: ~"(max-width: 767px)";
7+
@breakMdMin: ~"(min-width: 768px)";
8+
@breakMdMax: ~"(max-width: 991px)";
9+
@breakLgMin: ~"(min-width: 992px)";
10+
@breakLgMax: ~"(max-width: 1200px)";
11+
@breakXlMin: ~"(min-width: 1201px)";
12+
13+
@mediaSm: @breakSmMax;
14+
@mediaMd: ~"@breakMdMin and @breakMdMax";
15+
@mediaLg: ~"@breakLgMin and @breakLgMax";
16+
@mediaXl: ~"@breakXlMin";
17+
18+
@mediaScreenSm: ~"screen and @mediaSm";
19+
@mediaScreenMd: ~"screen and @mediaMd";
20+
@mediaScreenLg: ~"screen and @mediaLg";
21+
@mediaScreenXl: ~"screen and @mediaXl";

0 commit comments

Comments
 (0)