-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
117 lines (99 loc) · 1.61 KB
/
styles.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
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
}
body,
h1,
h2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
line-height: 24px;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
@media(max-width: 1170px) {
.menu__items {
flex-direction: column;
}
}
.wrapper {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-rows: auto 1fr auto;
min-height: 100vh;
}
.header {
min-height: 50px;
}
.h1 {
font-size: 24px;
text-align: center;
padding: 25px;
}
.menu {
min-height: 50px;
align-items: center;
}
.menu__items {
display: flex;
justify-content: space-around;
padding: 5px;
margin: 1px;
}
.menu__item-link {
text-align: center;
display: block;
margin: 5px;
padding: 5px 10px;
border: 1px solid black;
border-radius: 10px;
color: black;
font-size: 20px;
line-height: 24px;
}
.menu__item-link+.menu__item-link {
margin-bottom: 5px;
}
.menu__item-link:hover,
.menu__item-link:focus-within,
.menu__item-link:active {
color: white;
background-color: black;
}
.menu__item:focus {
border: 1px solid red;
}
.article__title {
padding: 10px;
margin: 0 auto;
text-align: center;
}
.article__text {
padding: 15px;
}
.article__price {
padding: 5px;
font-weight: 800;
text-align: center;
}
.article__img {
padding: 5px;
display: block;
margin: 10px auto;
width: 100%;
max-height: 450px;
object-fit: contain;
}
.footer {
text-align: center;
font-size: 12px;
}