-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
148 lines (125 loc) · 2.64 KB
/
style.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
136
137
138
139
140
141
142
143
144
145
146
147
148
/* Общие стили */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
color: white;
background-color: black;
/*border: 0.5px dashed white;
*/
}
@media (min-width: 601px) {
/*Хедер*/
header {
height: 40px;
vertical-align: middle;
margin-bottom: 20px;
margin-top: 10px;
}
nav {
padding-left: 20px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
}
#nav-bar li {
display: inline;
margin-left: 20px;
margin-bottom: 10px;
cursor: pointer;
}
#logo {
height: 35px;
width: auto;
}
/*контент контейнер*/
#main-content {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
}
/*Меню main menu*/
#main-menu {
width: 20%;
}
#main-menu li {
height: 40px;
text-align: center;
vertical-align: middle;
font-weight: 500;
padding: 10px 0;
cursor: pointer;
}
#main-menu li:hover {
text-decoration: underline;
background-image: url(images/wrarrow.png);
background-repeat: no-repeat;
background-position: right;
}
#main-menu li:focus {
background-image: url(images/wrarrow.png);
background-repeat: no-repeat;
background-position: right;
}
/*Сериалы*/
#main {
width: 80%;
height: 90%;
margin-left: 30px;
text-align: center;
}
#main h1, #main img {
margin-bottom: 30px;
}
#main-img {
width: 500px;
height: auto;
}
}
/*Smartphone styles*/
@media (max-width: 600px) {
#logo {
height: 40px;
width: auto;
}
#main-content {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
text-align: center;
}
nav {
display: flex;
justify-content: center;
border-bottom: 1px solid grey;
}
nav ul {
display: none;
text-align: center;
}
#main {
border-top: 1px solid grey;
}
#main-img {
width: 400px;
height: auto;
}
#main-menu li {
font-size: 25px;
padding-bottom: 15px;
}
#main h1 {
padding-top: 20px;
font-weight: 500;
margin-bottom: 20px;
}
#main p {
font-size: 20px;
margin-top: 20px;
}
}