Add theme toggle and styling updates
This commit is contained in:
@@ -70,7 +70,7 @@ const confirm = () => {
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
background: var(--modal-overlay);
|
||||
backdrop-filter: blur(5px);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -114,9 +114,9 @@ p {
|
||||
min-width: 64px;
|
||||
padding: 6px 12px;
|
||||
border-radius: 999px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 1px solid var(--glass-border);
|
||||
color: #fff;
|
||||
background: var(--panel-bg-strong);
|
||||
border: 1px solid var(--panel-border);
|
||||
color: var(--text-strong);
|
||||
font-size: 1.1rem;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -128,7 +128,7 @@ input[type="range"] {
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
|
||||
outline: none;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border: 1px solid var(--panel-border);
|
||||
box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ input[type="range"]::-webkit-slider-thumb {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
background: var(--text-strong);
|
||||
border: 2px solid var(--accent-cyan);
|
||||
box-shadow: 0 0 12px rgba(0, 242, 255, 0.5);
|
||||
cursor: pointer;
|
||||
@@ -147,7 +147,7 @@ input[type="range"]::-moz-range-thumb {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
background: var(--text-strong);
|
||||
border: 2px solid var(--accent-cyan);
|
||||
box-shadow: 0 0 12px rgba(0, 242, 255, 0.5);
|
||||
cursor: pointer;
|
||||
@@ -157,7 +157,7 @@ input[type="range"]::-moz-range-thumb {
|
||||
width: min(300px, 70vw);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
|
||||
@@ -62,16 +62,16 @@ const toggleVisibility = () => {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
background: rgba(0, 0, 0, 0.85);
|
||||
background: var(--fixed-bar-bg);
|
||||
backdrop-filter: blur(10px);
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-bottom: 1px solid var(--fixed-bar-border);
|
||||
transform: translateY(-100%);
|
||||
transition: transform 0.3s ease;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.5);
|
||||
box-shadow: var(--fixed-bar-shadow);
|
||||
}
|
||||
|
||||
#fixed-bar.visible {
|
||||
@@ -95,13 +95,13 @@ const toggleVisibility = () => {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
color: var(--text-strong);
|
||||
}
|
||||
|
||||
.fixed-stat span:first-child {
|
||||
opacity: 0.7;
|
||||
font-size: 0.9rem;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.progress-line-container {
|
||||
@@ -110,7 +110,7 @@ const toggleVisibility = () => {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
background: var(--progress-track-bg);
|
||||
}
|
||||
|
||||
.progress-line-fill {
|
||||
|
||||
@@ -34,15 +34,15 @@ function handleNewRandom() {
|
||||
}
|
||||
|
||||
.btn-neon.secondary {
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
border-color: var(--button-secondary-border);
|
||||
color: var(--button-secondary-text);
|
||||
font-size: 0.9rem;
|
||||
padding: 10px 25px;
|
||||
}
|
||||
|
||||
.btn-neon.secondary:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-color: #fff;
|
||||
color: #fff;
|
||||
background: var(--button-secondary-hover-bg);
|
||||
border-color: var(--button-secondary-hover-border);
|
||||
color: var(--button-secondary-hover-text);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -68,8 +68,8 @@ defineProps({
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
background: var(--hint-bg);
|
||||
border: 1px solid var(--hint-border);
|
||||
border-radius: 4px;
|
||||
transition: all 0.3s ease;
|
||||
width: 100%;
|
||||
@@ -89,7 +89,7 @@ defineProps({
|
||||
|
||||
.hint-num {
|
||||
font-size: 0.85rem;
|
||||
color: #fff;
|
||||
color: var(--text-strong);
|
||||
font-weight: bold;
|
||||
padding: 2px;
|
||||
}
|
||||
@@ -101,7 +101,7 @@ defineProps({
|
||||
|
||||
/* Hover effect for readability */
|
||||
.hint-group:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
background: var(--hint-hover-bg);
|
||||
border-color: var(--accent-cyan);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@ const progressText = computed(() => `${store.progressPercentage.toFixed(3)}%`);
|
||||
align-items: center;
|
||||
padding: 20px 40px;
|
||||
border-radius: 15px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
background: var(--panel-bg);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid var(--panel-border);
|
||||
box-shadow: var(--panel-shadow);
|
||||
margin-bottom: 30px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
@@ -60,13 +60,13 @@ const progressText = computed(() => `${store.progressPercentage.toFixed(3)}%`);
|
||||
.label {
|
||||
font-size: 0.8rem;
|
||||
text-transform: uppercase;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
color: var(--text-muted);
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.value {
|
||||
font-size: 1.8rem;
|
||||
color: #fff;
|
||||
color: var(--text-strong);
|
||||
font-weight: 300;
|
||||
font-family: 'Courier New', monospace;
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ onUnmounted(() => {
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
background: var(--modal-overlay);
|
||||
backdrop-filter: blur(5px);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -355,7 +355,7 @@ p {
|
||||
.stats {
|
||||
margin-bottom: 30px;
|
||||
padding: 20px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
background: var(--panel-bg-strong);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@@ -364,7 +364,7 @@ p {
|
||||
}
|
||||
|
||||
.stat strong {
|
||||
color: #fff;
|
||||
color: var(--text-strong);
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
@@ -379,7 +379,7 @@ p {
|
||||
font-size: 0.95rem;
|
||||
letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.share-buttons {
|
||||
|
||||
Reference in New Issue
Block a user