-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.css
65 lines (60 loc) · 1.43 KB
/
query.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
/*****************************************************/
/*BELOW 1200px (Landscape tablets)/*
/*****************************************************/
@media (max-width: 75em) {
body {
padding: 6rem;
}
}
/*****************************************************/
/*BELOW 944px ( tablets)/*
/*****************************************************/
@media (max-width: 59em) {
html {
font-size: 50%;
}
}
/*****************************************************/
/*BELOW 704px ( smaller tablets)/*
/*****************************************************/
@media (max-width: 44em) {
html {
/* 7/16 */
font-size: 43%;
gap: 1rem;
}
.content {
width: auto;
}
}
/*****************************************************/
/*BELOW 544px ( phones)/*
/*****************************************************/
@media (max-width: 544px) {
.heading {
font-size: 2rem;
margin-bottom: 0rem;
}
.sub-heading {
font-size: 2rem;
margin-bottom: 0.5rem;
}
body {
padding: 4rem;
}
.main-container {
grid-template-columns: 1fr;
}
.one,
.two,
.three,
.four {
grid-column: auto;
grid-row: auto;
padding: 1rem;
}
.content {
width: auto;
}
}
/* The issue with your code is that you have set a grid row definition (grid-row: 1/-1) for the .one and .four classes. This forces them to span multiple rows, even when the viewport shrinks and the .main-container switches to a single column layout. */