-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainCss.css
More file actions
97 lines (87 loc) · 1.85 KB
/
mainCss.css
File metadata and controls
97 lines (87 loc) · 1.85 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
.menu{
display: flex;
align-items: center;
justify-content: space-between;
height: 62px;
padding: 12px 80px 12px 80px;
background-color: black;
}
.menuNav1 h3{
color: white;
}
.menuNav2{
display: flex;
color: white;
font-size: 1.2em;
gap: 16px;
justify-content: space-between;
align-items: center;
}
.contentNews{
border-radius: 4px;
display: flex;
justify-content: space-between;
background-color: #f0f0f0;;
}
.text {
padding: 20px;
max-width: 800px;
width: 100%;
text-align: center;
word-wrap: break-word;
font-size: 1.2em;
font-weight: bold;
line-height: 2;
}
/* CSS */
.otherNews {
display: flex;
gap: 16px;
padding: 20px;
}
.otherNewsItem {
background-color: #f0f0f0;
border-radius: 8px;
width: 30%;
padding: 16px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
}
.otherNewsItem img {
width: 100%;
height: auto;
max-height: 150px; /* Ограничение по высоте для картинок */
border-radius: 8px;
object-fit: cover;
}
.otherNewsItem p {
margin-top: 12px;
text-align: center;
font-size: 0.9em;
color: #333;
}
.readButton {
align-self: flex-start; /* Размещение кнопки слева */
margin-top: 12px;
padding: 8px 16px;
font-size: 0.9em;
color: white;
background-color: #000000;
border: none;
border-radius: 4px;
cursor: pointer;
}
.readButton:hover {
background-color: #0056b3;
}
.latestNews{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.latestNews p{
font-size: 2em;
font-weight: bold;
}