-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
123 lines (97 loc) · 2.18 KB
/
style.css
File metadata and controls
123 lines (97 loc) · 2.18 KB
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
body {
font-family: Verdana, Geneva, sans-serif;
font-optical-sizing: auto;
font-style: normal;
font-variation-settings:
"wdth" 100;
background-color: #dbecfa !important;
}
li {
/* уберем точки */
list-style: none;
}
.navigation {
display: flex;
flex-direction: row;
gap: 10px
}
/* разделим на две части основной контент */
.container {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
gap: 10px;
}
/* Тут задаем пропорции флекс-элементам 1 к 2 */
.aside_element {
flex-grow: 1;
/* стили для боковых статей */
background-color: #ffdbe9;
padding: 5px;
border-radius: 10px;
}
.blocks_element {
flex-grow: 2;
/* стили для блоков */
display: flex;
flex-direction: column;
gap: 10px;
}
.block {
background-color: #ffc8dd;
border-radius: 10px;
/* transition: transform .1s; */
padding: 5px;
}
.aside_article {
padding: 5px;
}
/* пример с псеводклассом и анимацией*/
.aside_article:hover {
background-color: #ffafcc;
border-radius: 5px;
/* делаем плавное изменение цвета при наведении */
transition: background-color 1s;
}
header {
margin-top: 10px;
margin-bottom: 10px;
background-color: #cdb4db;
border-radius: 10px;
padding: 5px;
}
footer {
margin-top: 10px;
margin-bottom: 10px;
background-color: #a2d2ff;
border-radius: 10px;
padding: 5px;
display: flex;
flex-direction: column;
}
img {
border-radius: 10px;
}
/* ------------------------------------ */
/* стили для страницы с блогом */
.articles {
display: flex;
gap: 5px;
/* перенос элементов */
flex-wrap: wrap;
}
.article {
background-color: #ffdbe9;
border-radius: 10px;
padding: 10px;
width: 350px;
}
/* --------------------------------------- */
/* Адаптив для мобилок */
/* при экране меньше 500 по ширине навигация будет в колонку */
@media (max-width: 500px) {
.navigation {
display: flex;
flex-direction: column;
}
}