-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
136 lines (116 loc) · 2.98 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
overflow: hidden; /* Evitar el scroll de la página */
}
/* Styling for the map container */
#map-container {
position: relative;
width: 80%;
height: 100vh;
overflow: hidden;
float: left;
}
#hex-map {
position: absolute;
top: 0;
left: 0;
background: #f0f0f0;
}
.hex {
width: 100px; /* Ancho de cada hexágono */
height: 57.74px; /* Altura de cada hexágono */
background-color: seagreen;
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
display: inline-block;
margin: 0;
position: absolute;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.hex.selected {
background-color: #FF5733; /* Cambia el color a tu preferencia */
}
.hex-number {
color: white; /* Cambiar el color del texto según sea necesario */
font-weight: bold;
position: absolute;
top: 50%; /* Centrar verticalmente */
left: 50%; /* Centrar horizontalmente */
transform: translate(-50%, -50%); /* Ajustar el centro */
pointer-events: none; /* Evitar que los eventos del mouse afecten al texto */
}
/* CSS para prevenir la selección de texto */
#hex-map {
user-select: none; /* Previene la selección de texto en el mapa */
}
.hex-number {
pointer-events: none; /* Hace que los eventos del ratón no afecten al texto */
}
/* Info panel styling */
#info-panel {
width: 20%;
height: 100vh;
background-color: #f7f7f7;
float: right;
padding: 20px;
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
display: none; /* Hide by default */
}
#info-panel.show {
display: block; /* Show when class "show" is added */
}
#info-panel h3 {
margin-top: 0;
}
#info-panel p {
font-size: 18px;
}
/* Styling for the map container */
#map-container {
position: relative;
height: 100vh;
overflow: hidden;
transition: width 0.3s ease;
}
/* When the info panel is hidden, make the map take full width */
#map-container.full-width {
width: 100%;
}
/* When the info panel is shown, make the map take 80% of the width */
#map-container.partial-width {
width: 80%;
}
/* Hide the info panel by default */
#info-panel {
width: 20%;
height: 100vh;
background-color: #f7f7f7;
float: right;
padding: 20px;
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
display: none; /* Hide by default */
}
#info-panel.show {
display: block; /* Show when class "show" is added */
}
/* Water hexagon (blue) */
.hex.water {
background-color: dodgerblue; /* Color azul para agua */
}
/* Water hexagon (blue) */
.hex.water {
/* background-image: url('src/grids/ocean.jpg'); */
background-color: dodgerblue; /* Fallback color for water */
background-size: cover;
background-position: center;
}
/* Land hexagon (green) */
.hex.land {
/* background-image: url('src/grids/grass.jpg'); */
background-color: seagreen; /* Fallback color for land */
background-size: cover;
background-position: center;
}