Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / styles / scss / base / _active-breakpoint.scss
blob18439f8d48ae01a25d062d6d1f05ab282439a311
1 // Add the screen size inside a pseudo element on <body> to be read in useActiveBreakpoint in React
2 body::before {
3         display: none;
5         @each $screeSize,
6                 $query
7                         in (
8                                 'xsmall': '<=xsmall',
9                                 'small': '>xsmall',
10                                 'medium': '>small',
11                                 'large': '>medium',
12                                 'xlarge': '>large',
13                                 '2xlarge': '>xlarge'
14                         )
15         {
16                 @include media($query) {
17                         content: '#{$screeSize}';
18                 }
19         }