-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwaze-style.css
More file actions
144 lines (130 loc) · 2.66 KB
/
waze-style.css
File metadata and controls
144 lines (130 loc) · 2.66 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
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
/* === Reset === */
body, html {
margin: 0;
padding: 0;
overflow: hidden;
font-family: 'Roboto', sans-serif;
}
/* === Container com fundo === */
.container, #area {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('imagens/gramado.jpeg');
background-size: cover;
background-position: center;
overflow: hidden;
}
/* === Canvas === */
#canvas {
position: absolute;
top: 0;
left: 0;
z-index: 0;
pointer-events: none;
}
/* === Pontos de destino === */
.ponto-especifico {
position: absolute;
z-index: 3;
transform: translate(-50%, -50%);
}
.icone-destino {
width: 8vw;
max-width: 50px;
height: auto;
filter: drop-shadow(4px 4px 4px rgba(254, 254, 254, 0.5));
}
.bussola-com-distancia[data-id="0"] {
left: 40%;
bottom: 10%;
position: absolute;
}
.bussola-com-distancia[data-id="1"] {
left: 50%;
bottom: 10%;
position: absolute;
}
.bussola-com-distancia[data-id="2"] {
left: 60%;
bottom: 10%;
position: absolute;
}
/* === Bússolas === */
.bussola {
position: absolute;
width: 15vw;
max-width: 100px;
height: auto;
transform-origin: center center;
transition: transform 0.05s linear;
z-index: 3;
}
/* === Distância (acima da bússola) === */
.distancia {
white-space: nowrap;
transform: translate(-50%, -260%);
font-size: clamp(12px, 2vw, 16px);
font-weight: bold;
color: rgb(0, 46, 24);
background-color: rgba(0, 191, 100, 0.9);
line-height: 1;
padding: 0.4em 0.5em;
border-radius: 5px;
z-index: 2;
display: none;
text-align: center;
}
/* === Legenda (abaixo da bússola) === */
.legenda {
transform: translate(-50%, 70%);
white-space: nowrap;
font-size: clamp(9px, 1.2vw, 14px);
background-color: rgba(0, 191, 100, 0.9);
color: rgb(0, 46, 24);
padding: 0.3em 0.6em;
border-radius: 5px;
text-align: center;
z-index: 2;
}
/* === Ícone do usuário === */
.usuario {
position: absolute;
width: 8vw;
max-width: 50px;
height: auto;
transform: translate(-50%, -50%);
z-index: 2;
cursor: pointer;
transition: transform 0.2s ease, width 0.2s, height 0.2s;
}
.usuario.ativo {
width: 11vw;
max-width: 70px;
filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}
/* === Células da grade (opcional) === */
.celula {
box-sizing: border-box;
border: 1px solid transparent;
position: absolute;
width: 20px;
aspect-ratio: 1 / 1;
}
@media (max-width: 768px) {
.bussola-com-distancia[data-id="0"] {
left: calc(100% / 6);
bottom: 5%;
top: auto;
}
.bussola-com-distancia[data-id="1"] {
left: 50%;
bottom: 5%;
top: auto;
}
.bussola-com-distancia[data-id="2"] {
left: calc(100%*5 / 6);
bottom: 5%;
top: auto;
}
}