generated from 2022-Spring-Cohort/css-practice-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaultstyles.css
135 lines (132 loc) · 1.93 KB
/
defaultstyles.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
:root {
--black: #666;
--blue: #429fd7;
--green: #5dbb46;
--orange: #f26722;
--pink: #da2368;
--white: #fefefe;
}
* {
box-sizing: border-box;
}
a {
color: var(--green);
}
article {
padding: 0 0 0.47rem;
margin-bottom: .97rem;
border-bottom: 1px solid var(--white);
}
body {
color: var(--black);
font: 16px/1.5 'Raleway', sans-serif;
}
footer {
border-top: 1px solid var(--white);
text-align: center;
padding: 2rem 0 1.5rem;
}
figure {
margin: 0;
}
h1,
h2 {
color: var(--blue);
margin: .53rem 0 0 .13rem;
}
h3 {
color: var(--pink);
}
header {
align-items: center;
display: flex;
justify-content: space-between;
}
header > img {
margin-left: 1rem;
max-width: 377px;
}
header > nav {
margin-right: 1rem;
}
input {
border: none;
border-radius: .3rem;
outline: none;
padding: .53rem .97rem;
}
input[type='submit'] {
color: var(--white);
background: var(--blue);
}
input[type='text'] {
flex: 1 1 auto;
margin-right: 4px;
border: 1px solid var(--black);
}
main ul {
padding: 0;
}
nav ul {
display: flex;
list-style-type: none;
padding: 0;
}
nav li {
margin: 0 0.47em;
}
nav a {
display: block;
font-size: 0.97rem;
}
.container {
display: grid;
grid-template-rows: 100px auto auto 100px;
margin: auto;
max-width: 50em;
width: 90%;
}
.subscribe-input {
display: flex;
width: 100%;
}
.headImage {
max-width: 100%;
margin-bottom: .97rem;
}
.mainContent {
display: flex;
justify-content: space-around;
}
@media (max-width: 575px) {
header {
flex-direction: column;
justify-content: center;
}
header img {
margin-bottom: 10px;
}
nav ul {
flex-direction: column;
margin: 0;
}
nav li {
margin-bottom: 5px;
}
.container {
grid-template-rows: 200px auto auto 100px
}
.mainContent {
flex-direction: column;
justify-content: space-around;
}
.subjectMaterialList {
text-align: center;
}
.subjectMaterialList ul {
list-style-type: none;
}
.subscribe {
text-align: center;
}
}