-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.css
More file actions
137 lines (131 loc) · 4.91 KB
/
ui.css
File metadata and controls
137 lines (131 loc) · 4.91 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
/* ui.css - V7.0.0 Final FIX - Targets Existing HTML ID/Class (#sp-collect-btn) */
/* --- 0. KEYFRAMES --- */
/* Used for the 'CLAIMED' state (Blue Pulse) */
@keyframes pulseBlueGlow {
0% {
box-shadow: 0 0 10px var(--claimed-main)80;
}
50% {
box-shadow: 0 0 30px var(--claimed-light)ff, 0 0 50px var(--claimed-main)cc;
}
100% {
box-shadow: 0 0 10px var(--claimed-main)80;
}
}
/* --- 1. UI Variables (Root Block for Easy Swapping) --- */
:root {
/* --- CLAIM (Base/Hover) State Colors: GOLD/AMBER --- */
--claim-main: #FF8000; /* Primary Gold/Orange */
--claim-light: #FFD299; /* Lighter Gold/Amber */
/* --- CLAIMED State Colors: BLUE/CYAN --- */
--claimed-main: #FFBF00; /* #9B30FF; /*#FF8000; /*#00A3FF; /* Primary Blue/Cyan */
--claimed-light: #FFBF00; /*#9B30FF; /*#FFD299; /*#79FFFF; /* Lighter Blue/Cyan */
/* --- COMMON STYLES --- */
--scifi-dark-bg: #000000; /* Pure Black */
--scifi-dark-fill: #1A0D00; /* Subtle Button Background */
/* --- SHAPE CONTROL --- */
--cut-depth: 10px; /* Angled corner size */
--total-length: 170px; /* Button width */
--padding-vertical: 8px; /* Button height/breathing room */
--border-thin: 3px; /* Thickness for Sides 1, 3, 5, 6 */
--border-thick: 4px; /* Thickness for Sides 2, 4 (Top/Bottom) */
}
/* --- 2. Button Container (Only ensuring centering) --- */
.sp-btn-container {
display: flex;
justify-content: center !important;
width: 100%;
}
/* --- 3. CLAIM BUTTON (TARGETING: #sp-collect-btn) --- */
#sp-collect-btn {
/* SIZE & LAYOUT */
position: relative;
width: var(--total-length);
padding: var(--padding-vertical) 10px;
font-weight: 700;
font-size: 1.0em;
text-transform: uppercase;
letter-spacing: 2px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
/* APPEARANCE (CLAIM state defaults: GOLD) */
background: var(--scifi-dark-fill);
/* ... rest of your APPEARANCE styles ... */
color: var(--claim-light);
text-shadow: 0 0 8px var(--claim-light);
/* CRITICAL: OCTAGONAL SHAPE */
border-radius: 0 !important; /* Ensure old rounded corners are removed */
-webkit-clip-path: polygon(
var(--cut-depth) 0%, calc(100% - var(--cut-depth)) 0%, 100% 50%,
calc(100% - var(--cut-depth)) 100%, var(--cut-depth) 100%, 0% 50%
);
clip-path: polygon(
var(--cut-depth) 0%, calc(100% - var(--cut-depth)) 0%, 100% 50%,
calc(100% - var(--cut-depth)) 100%, var(--cut-depth) 100%, 0% 50%
);
/* BORDER IMPLEMENTATION (Sides 1-6) */
border: var(--border-thin) solid var(--claim-main);
box-shadow:
/* Outer Glow (Bolding up angled/vertical sides 1, 3, 5, 6) */
0 0 15px var(--claim-main)ff, 0 0 25px var(--claim-main)50,
/* THICK Inner Border (Side 2 - Top, Side 4 - Bottom) */
inset 0 var(--border-thick) 0 var(--claim-main),
inset 0 calc(0px - var(--border-thick)) 0 var(--claim-main);
transition: all 0.2s ease-in-out;
z-index: 1;
overflow: hidden;
}
/* Ensure the text is visible */
/* --- 4. ACTIVE/HOVER STATE (CLAIM) --- */
#sp-collect-btn:not([disabled]):not([data-collected="true"]):hover {
color: var(--claim-light);
text-shadow: 0 0 18px var(--claim-light), 0 0 30px var(--claim-main);
/* MAX GLOW ON HOVER (Gold/Amber) */
border-color: var(--claim-light);
box-shadow:
/* Increased Glow */
0 0 25px var(--claim-light)ff,
0 0 50px var(--claim-main)ff,
/* Increased THICK Inner Border (Side 2 & 4) */
inset 0 var(--border-thick) 0 var(--claim-light),
inset 0 calc(0px - var(--border-thick)) 0 var(--claim-light);
}
/* --- 5. CLAIMED/DISABLED STATE (BLUE) --- */
#sp-collect-btn[disabled],
#sp-collect-btn[data-collected="true"] {
cursor: not-allowed;
background: var(--scifi-dark-fill);
color: var(--claimed-light);
text-shadow: 0 0 10px var(--claimed-light), 0 0 30px var(--claim-main);
/* BLUE GLOW & BORDER */
border-color: var(--claimed-main);
box-shadow:
0 0 10px var(--claim-main)ff,
0 0 20px var(--claim-main)50,
/* Blue THICK Inner Border (Side 2 & 4) */
inset 0 var(--border-thick) 0 var(--claimed-main),
inset 0 calc(0px - var(--border-thick)) 0 var(--claimed-main);
animation: pulseBlueGlow 2s infinite alternate;
}
/* --- FINAL FIX FOR LEFT-ALIGNED TEXT --- */
#sp-collect-btn .collect-text {
display: block;
width: 100%;
text-align: center !important;
}
/* --- NEW CENTERING WRAPPER --- */
.sp-btn-wrapper {
width: 100%;
text-align: center;
display: flex;
justify-content: center;
}
/* --- FIX #sp-collect-btn's internal text alignment --- */
#sp-collect-btn {
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}