-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
125 lines (110 loc) · 2.51 KB
/
styles.css
File metadata and controls
125 lines (110 loc) · 2.51 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
:root {
--bg-color: #e7e7e7;
--card-bg: #2d2d2d;
--text-color: #e0e0e0;
--primary: #4caf50;
--secondary: #2196f3;
--accent: #ff9800;
--grass: #2e7d32;
--road: #333333;
--water: #0288d1;
--border-color: #444;
}
body {
padding: 0;
margin: 0;
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.app-container {
width: 100%;
max-width: 800px;
padding: 20px;
}
.screen {
background: var(--card-bg);
padding: 2rem;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
text-align: center;
}
.hidden {
display: none !important;
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
transition: transform 0.1s, background 0.3s;
font-size: 1rem;
margin: 5px;
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-save { background: var(--accent); color: white; }
.btn-back { background: #666; color: white; }
.grid-wrapper {
overflow: auto;
margin-top: 20px;
padding: 10px;
background: #111;
border-radius: 8px;
}
#mapGrid {
display: grid;
grid-template-columns: repeat(20, 30px);
grid-template-rows: repeat(20, 30px);
gap: 1px;
margin: 0 auto;
width: fit-content;
}
.tile {
width: 30px;
height: 30px;
background-color: var(--grass);
cursor: pointer;
transition: filter 0.2s;
}
.tile:hover {
filter: brightness(1.2);
outline: 1px solid white;
z-index: 1;
}
.tile-grass { background-color: var(--grass); }
.tile-road { background-color: var(--road); }
.tile-water { background-color: var(--water); }
.editor-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border-color);
padding-bottom: 1rem;
}
.map-item {
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(255, 255, 255, 0.05);
padding: 10px 15px;
margin-bottom: 8px;
border-radius: 4px;
text-align: left;
}
.map-item span {
font-weight: bold;
color: var(--secondary);
}
#savedMapsList {
margin: 20px 0;
max-height: 300px;
overflow-y: auto;
}