-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles-artigo.css
149 lines (127 loc) · 2.3 KB
/
styles-artigo.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
149
/* Reset de Estilos */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Estilos Globais */
body {
font-family: '1917 Epoque', Arial, Helvetica, sans-serif;
background-color: #f8f8f8;
color: #333;
}
/* Estilos do cabeçalho */
header {
background-color: #ca2b5b;
color: #fff;
padding: 20px;
}
header h1 {
margin: 0 auto 20px;
text-align: center;
font-size: 1.9em;
}
header > p {
font-size: 1.7em;
margin: auto;
margin-bottom: 20px;
max-width: 800px;
padding: 0 20px;
}
/* Estilos da navegação */
nav ul {
list-style: none;
text-align: center;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav ul li a {
color: #ffdbdb;
text-decoration: none;
font-size: 1.2em;
}
/* Estilos do conteúdo principal */
main {
padding: 20px;
}
.container {
max-width: 800px;
margin: 0 auto;
}
.container h2 {
font-size: 2em;
margin-bottom: 20px;
}
.container p {
font-size: 1.1em;
margin-bottom: 20px;
}
.container ul {
list-style: none;
}
.container ul li {
margin-bottom: 10px;
}
.container ul li a {
color: #6a389a;
text-decoration: none;
}
/* Estilos dos cards */
.card {
width: calc(33.33% - 20px); /* Ajusta a largura dos cards para que haja três por linha */
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin: 10px;
padding: 15px;
text-align: center;
}
.card img {
max-width: 100%;
height: auto;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.card h3 {
margin-top: 10px;
font-size: 20px;
color: #333;
}
.card p {
color: #666;
max-height: 100%;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 8;
-webkit-box-orient: vertical;
display: -webkit-box;
}
/* Estilos do rodapé */
footer {
text-align: center;
background-color: #ca2b5b;
color: #fff;
padding: 20px;
position: relative;
bottom: 0;
width: 100%;
}
/* Estilos dos links */
a:hover,
a:active {
background-color: #BFA0C7;
color: #fff;
}
/* Regras de mídia para dispositivos menores */
@media (max-width: 768px) {
.card {
width: calc(50% - 20px);
}
}
@media (max-width: 480px) {
.card {
width: calc(100% - 20px);
}
}