-
Notifications
You must be signed in to change notification settings - Fork 0
/
breakpoints.css
107 lines (94 loc) · 3.21 KB
/
breakpoints.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
* MIT License
* Copyright (c) 2023 Kamaleshwar Morjal <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal
* in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/* basic breakpoints for any mobile-first site scaffold */
html {
--screen-size: "NA";
--notification: "This page is currently using breakpoints.css for development convenience. You can remove class '__report' from your html element to turn off these messages."
}
/* reporter */
html.__report:before {
content: var(--screen-size);
}
/* style of the reporter */
html.__report:before {
display: block; opacity: 0.3;
position: fixed;
top: 10px; right: 10px; z-index: 1000;
background-color: #000; color: #fff;
border-radius: 4px; border: 1px solid white;
padding: 2px 4px;
font-family: monospace;
}
html.__report.bottom:before {
top: unset;
bottom: 10px; right: 10px; z-index: 1000;
}
html.__report::after {
display: block; opacity: 0.8;
position: relative;
top: 10px; left: 10px; z-index: 1002;
background-color: #000; color: #ccc;
border-radius: 4px; border: 1px solid white;
padding: 2px 4px; margin-bottom: 20px;
font-family: monospace;
content: var(--notification);
}
/* Each of the following breakpoints have a corresponding css file in the
* project which should be included in the same order as below into the html
* pages during dev, and combined+minified in final deployment */
@media screen and (min-width: 280px) {
html, .iPhone, .xsmallScreens {
--screen-size: '280px to 320px (small screen devices)'
}
}
@media screen and (min-width: 321px) {
html, .iPad, .smallScreens {
--screen-size: '321px to 768px (larger screen mobiles and tablets)'
}
}
@media screen and (min-width: 769px) {
html, .mediumScreens {
--screen-size: '769px to 1024px (smaller desktop screens and large tablets)'
}
}
@media screen and (min-width: 1025px) {
html, .largeScreens {
--screen-size: '1025px to 1365px';
}
}
@media screen and (min-width: 1366px) {
html, .xlargeScreens {
--screen-size: '1366px to 1680px';
}
}
@media screen and (min-width: 1681px) {
html, .xxlargeScreens {
--screen-size: '1681px to 1920px (HD)';
}
}
@media screen and (min-width: 1921px) {
html, .giganticScreens {
--screen-size: 'Gigantic. > 1920px'
}
}