Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
117 lines (93 loc) · 1.69 KB
/
Copy pathstyle.css
File metadata and controls
117 lines (93 loc) · 1.69 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
*{
margin:0;
padding:0;
box-sizing:border-box;
}
body{
font-family: Arial, Helvetica, sans-serif;
background:#7abdf7;
color:#333;
display:flex;
flex-direction:column;
min-height:100vh;
}
.cabecalho{
background:#2b17e2;
color:white;
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 40px;
}
.cabecalho-link{
color:white;
text-decoration:none;
font-weight:bold;
transition:.3s;
}
.cabecalho-link:hover{
color:#ffd166;
}
main{
flex:1;
padding:40px;
text-align:center;
}
h2{
margin-bottom:40px;
color:#1115e6;
}
section{
display:flex;
justify-content:center;
gap:40px;
flex-wrap:wrap;
}
/* Cartão */
.cartao{
width:300px;
height:420px;
perspective:1000px;
}
.cartao-interno{
width:100%;
height:100%;
position:relative;
transform-style:preserve-3d;
transition:transform .8s;
}
.cartao:hover .cartao-interno{
transform:rotateY(180deg);
}
.cartao-frente,
.cartao-verso{
position:absolute;
width:100%;
height:100%;
background:white;
border-radius:15px;
overflow:hidden;
box-shadow:0 10px 25px rgba(0,0,0,.2);
backface-visibility:hidden;
display:flex;
flex-direction:column;
}
.cartao-verso{
transform:rotateY(180deg);
}
.cartao-imagem{
width:100%;
height:280px;
object-fit:cover;
}
.cartao p{
padding:20px;
font-size:18px;
font-weight:bold;
}
footer{
background:#2926f0;
color:rgb(83, 187, 228);
text-align:center;
padding:20px;
}