-
Notifications
You must be signed in to change notification settings - Fork 0
/
posts.css
91 lines (77 loc) · 1.34 KB
/
posts.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
body {
background-image: url('bkg.svg');
background-size: cover;
background-position: center;
font-family: Arial, sans-serif;
color: #333;
}
#app {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: rgba(255, 255, 255, 0.8);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
ul {
list-style: none;
padding: 0;
}
li {
margin-bottom: 20px;
}
h1, h2 {
margin-top: 0;
}
.pagination {
margin-top: 20px;
}
button {
padding: 10px;
border: none;
background-color: #007bff;
color: #fff;
cursor: pointer;
border-radius: 4px;
}
button:disabled {
background-color: #ccc;
cursor: not-allowed;
}
/* Стили для формы добавления поста */
form {
margin-bottom: 20px;
}
form div {
margin-bottom: 10px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
input[type="text"], textarea {
display: block;
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
font-family: Arial, sans-serif;
color: #333;
}
button[type="submit"] {
margin-top: 10px;
}
.post {
background-color: #fff;
padding: 20px;
border: 1px solid #ccc;
border-radius: 10px;
margin-bottom: 20px;
}
.post h2 {
margin-top: 0;
}
.post p {
margin-bottom: 0;
}