-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia-queries.css
130 lines (78 loc) · 1.4 KB
/
media-queries.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
108
109
110
111
112
113
@media only screen and (max-width: 577px) {
* {
box-sizing: border-box;
}
body {
padding: 0;
}
.alert-info > a {
text-decoration: none;
color: black;
}
.alert-info {
text-align: center;
border: 1px solid black;
background-color: powderblue;
padding: 10px;
margin: 15px;
}
img {
width: 100%;
}
h1 {
text-align: center;
margin: auto;
}
.nav-links {
text-align: center;
list-style: none;
text-decoration: underline;
padding: 1em;
border: none;
}
li {
padding: 1em;
margin: 1em;
background-color: lightgray;
}
}
nav ul li:nth-of-type(a) {
color: blue;
}
.sub-section {
font-style: italic;
}
@media screen and (min-width: 577px) {
.hidden-on-desktop {
display: none;
}
.nav-links {
display: flex;
list-style: none;
justify-content: flex-end;
}
h1 {
display: inline;
}
a {
margin-right: 10px;
}
nav {
display: inline-block;
float: right;
}
img {
width: 100%;
}
#main {
float: left;
width: 60%
}
.sub-section {
float: right;
width: 40%
}
.sub-section {
font-style: italic;
}
}