Refactor global UI to Tech-HUD style (clip-path)
This commit is contained in:
@@ -347,11 +347,11 @@ html {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
background: rgba(0, 0, 0, 0.4);
|
background: rgba(0, 0, 0, 0.4);
|
||||||
border: 1px solid var(--game-border-color);
|
border: 1px solid var(--game-border-color);
|
||||||
border-radius: var(--game-radius-sm);
|
|
||||||
padding: 0 0.8rem;
|
padding: 0 0.8rem;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
clip-path: var(--game-clip-path-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-search-container:focus-within {
|
.game-search-container:focus-within {
|
||||||
@@ -433,10 +433,10 @@ html {
|
|||||||
.location-info {
|
.location-info {
|
||||||
background: var(--game-bg-panel);
|
background: var(--game-bg-panel);
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
border-radius: var(--game-radius-md);
|
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
border: 1px solid var(--game-border-color);
|
border: 1px solid var(--game-border-color);
|
||||||
box-shadow: var(--game-shadow-card);
|
box-shadow: var(--game-shadow-card);
|
||||||
|
clip-path: var(--game-clip-path);
|
||||||
}
|
}
|
||||||
|
|
||||||
.location-info h2 {
|
.location-info h2 {
|
||||||
@@ -775,9 +775,9 @@ html {
|
|||||||
.movement-controls {
|
.movement-controls {
|
||||||
background: var(--game-bg-panel);
|
background: var(--game-bg-panel);
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
border-radius: var(--game-radius-md);
|
|
||||||
border: 1px solid var(--game-border-color);
|
border: 1px solid var(--game-border-color);
|
||||||
box-shadow: var(--game-shadow-card);
|
box-shadow: var(--game-shadow-card);
|
||||||
|
clip-path: var(--game-clip-path);
|
||||||
}
|
}
|
||||||
|
|
||||||
.movement-controls h3 {
|
.movement-controls h3 {
|
||||||
|
|||||||
@@ -91,7 +91,8 @@ export const GameProgressBar: React.FC<GameProgressBarProps> = ({
|
|||||||
<div className="progress-track" style={{
|
<div className="progress-track" style={{
|
||||||
height,
|
height,
|
||||||
backgroundColor: '#2d3748',
|
backgroundColor: '#2d3748',
|
||||||
borderRadius: '4px',
|
borderRadius: '0px',
|
||||||
|
clipPath: 'var(--game-clip-path-sm)',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
justifyContent: align === 'right' ? 'flex-end' : 'flex-start'
|
justifyContent: align === 'right' ? 'flex-end' : 'flex-start'
|
||||||
|
|||||||
@@ -23,12 +23,12 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background: linear-gradient(135deg, #1e2a38 0%, #121820 100%);
|
background: linear-gradient(135deg, #1e2a38 0%, #121820 100%);
|
||||||
border: 1px solid #3a4b5c;
|
border: 1px solid #3a4b5c;
|
||||||
border-radius: 12px;
|
|
||||||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: #e0e6ed;
|
color: #e0e6ed;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
z-index: 2001;
|
z-index: 2001;
|
||||||
|
clip-path: var(--game-clip-path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Header */
|
/* Header */
|
||||||
|
|||||||
@@ -46,11 +46,11 @@
|
|||||||
max-width: 1400px;
|
max-width: 1400px;
|
||||||
background: var(--game-bg-modal);
|
background: var(--game-bg-modal);
|
||||||
border: 1px solid var(--game-border-color);
|
border: 1px solid var(--game-border-color);
|
||||||
border-radius: var(--game-radius-lg);
|
|
||||||
box-shadow: var(--game-shadow-modal);
|
box-shadow: var(--game-shadow-modal);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: var(--game-text-primary);
|
color: var(--game-text-primary);
|
||||||
font-family: var(--game-font-main);
|
font-family: var(--game-font-main);
|
||||||
|
clip-path: var(--game-clip-path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Top Bar */
|
/* Top Bar */
|
||||||
@@ -97,9 +97,9 @@
|
|||||||
.metric-bar {
|
.metric-bar {
|
||||||
height: 8px;
|
height: 8px;
|
||||||
background: rgba(0, 0, 0, 0.5);
|
background: rgba(0, 0, 0, 0.5);
|
||||||
border-radius: var(--game-radius-sm);
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border: 1px solid var(--game-border-color);
|
border: 1px solid var(--game-border-color);
|
||||||
|
clip-path: var(--game-clip-path-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.metric-fill {
|
.metric-fill {
|
||||||
@@ -127,8 +127,8 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
border-radius: 8px;
|
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
clip-path: var(--game-clip-path-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.backpack-status.active {
|
.backpack-status.active {
|
||||||
@@ -238,11 +238,11 @@
|
|||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
background: var(--game-bg-input);
|
background: var(--game-bg-input);
|
||||||
border: 1px solid var(--game-border-color);
|
border: 1px solid var(--game-border-color);
|
||||||
border-radius: var(--game-radius-md);
|
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
color: var(--game-text-primary);
|
color: var(--game-text-primary);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
clip-path: var(--game-clip-path-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.inventory-search-bar input {
|
.inventory-search-bar input {
|
||||||
|
|||||||
@@ -19,13 +19,13 @@
|
|||||||
height: 85vh;
|
height: 85vh;
|
||||||
background: var(--game-bg-modal);
|
background: var(--game-bg-modal);
|
||||||
border: 1px solid var(--game-border-color);
|
border: 1px solid var(--game-border-color);
|
||||||
border-radius: var(--game-radius-lg);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
box-shadow: var(--game-shadow-modal);
|
box-shadow: var(--game-shadow-modal);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: var(--game-text-primary);
|
color: var(--game-text-primary);
|
||||||
font-family: var(--game-font-main);
|
font-family: var(--game-font-main);
|
||||||
|
clip-path: var(--game-clip-path);
|
||||||
}
|
}
|
||||||
|
|
||||||
.workbench-header {
|
.workbench-header {
|
||||||
@@ -56,10 +56,10 @@
|
|||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
color: #a0aec0;
|
color: #a0aec0;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
border-radius: 6px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
|
clip-path: var(--game-clip-path-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-btn:hover {
|
.tab-btn:hover {
|
||||||
|
|||||||
@@ -18,9 +18,11 @@
|
|||||||
/* Red accent border */
|
/* Red accent border */
|
||||||
|
|
||||||
/* --- Dimensions --- */
|
/* --- Dimensions --- */
|
||||||
--game-radius-xs: 2px;
|
--game-radius-xs: 0px;
|
||||||
--game-radius-sm: 4px;
|
--game-radius-sm: 0px;
|
||||||
--game-radius-md: 6px;
|
--game-radius-md: 0px;
|
||||||
|
--game-clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
|
||||||
|
--game-clip-path-sm: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
|
||||||
|
|
||||||
/* --- Typography --- */
|
/* --- Typography --- */
|
||||||
--game-font-main: 'Saira Condensed', system-ui, sans-serif;
|
--game-font-main: 'Saira Condensed', system-ui, sans-serif;
|
||||||
@@ -73,8 +75,8 @@
|
|||||||
background: var(--game-bg-panel);
|
background: var(--game-bg-panel);
|
||||||
border: 1px solid var(--game-border-color);
|
border: 1px solid var(--game-border-color);
|
||||||
box-shadow: var(--game-shadow-panel);
|
box-shadow: var(--game-shadow-panel);
|
||||||
border-radius: var(--game-radius-sm);
|
|
||||||
backdrop-filter: blur(8px);
|
backdrop-filter: blur(8px);
|
||||||
|
clip-path: var(--game-clip-path);
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-modal-overlay {
|
.game-modal-overlay {
|
||||||
@@ -103,7 +105,7 @@
|
|||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
border-radius: var(--game-radius-xs);
|
clip-path: var(--game-clip-path-sm);
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -140,7 +142,6 @@
|
|||||||
|
|
||||||
.game-btn-icon {
|
.game-btn-icon {
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
border-radius: 50%;
|
|
||||||
/* Or keep square for industrial look */
|
/* Or keep square for industrial look */
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
@@ -149,13 +150,13 @@
|
|||||||
.game-slot {
|
.game-slot {
|
||||||
background: var(--game-bg-slot);
|
background: var(--game-bg-slot);
|
||||||
border: 1px solid var(--game-border-color);
|
border: 1px solid var(--game-border-color);
|
||||||
border-radius: var(--game-radius-xs);
|
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
|
clip-path: var(--game-clip-path-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-slot:hover {
|
.game-slot:hover {
|
||||||
|
|||||||
Reference in New Issue
Block a user