-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
134 lines (115 loc) · 2.32 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
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
body{
font-family: 'Roboto', sans-serif;
background-color: #f5f5f5;
margin: 0;
padding: 0;
}
.container{
max-width: 900px;
margin: 50px auto;
padding: 30px;
border-radius: 10px;
background-color: #fff;
transition: all 0.3s ease;
}
.container:hover {
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
h1{
text-align: center;
margin-bottom: 30px;
color: #333;
border-bottom: 2px solid #e0e0e0;
padding-bottom: 30px;
}
.selectionContainer,
.searchContainer{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
label{
font-size: 16px;
margin-right: 10px;
}
select,
input[type = 'text']{
padding: 8px;
flex: 1;
border: 1px solid #e0e0e0;
border-radius: 5px;
outline: none;
}
button{
background-color: #000;
color: #fff;
padding: 8px 20px;
border: none;
border-radius: 6px;
cursor: pointer;
margin-left: 15px;
}
.newsItem{
display: flex;
align-items: center;
margin-top: 40px;
border-bottom: 1px solid #e0e0e0;
padding-bottom: 20px;
}
.newsItem:last-child{
border-bottom: none;
}
.newsImage{
flex: 1;
max-width: 300px;
}
.newsImage img{
max-width: 100%;
height: 180px;
object-fit: cover;
border-radius: 10px;
}
.newsContent{
flex:2;
margin-left: 20px;
}
.newsContent .info{
display: flex;
align-items: center;
gap: 8px;
color: #888;
margin-bottom: 12px;
}
.newsContent .info h5{
margin: 0;
font-weight: 400;
}
.newsContent h2{
font-size: 18px;
color: #444;
margin-top: 0;
max-height: 44px;
overflow:hidden;
}
.newsContent p {
color: #777;
margin: 10px 0 20px;
font-size: 14px;
max-height: 33px;
overflow: hidden;
}
.newsContent a{
background-color: #000;
color: #fff;
padding: 8px 14px;
font-size: 13px;
border-radius: 6px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
}
button:hover{
background-color: #da31a1;
}