Lamp page updates moving code

This commit is contained in:
Dan 2026-01-11 08:37:14 +00:00
parent a05e9bf10b
commit 8faf555629
11 changed files with 1013 additions and 879 deletions

View file

@ -324,12 +324,6 @@
}
}
input[type="checkbox"] {
width: auto;
margin-left: 0.5rem;
cursor: pointer;
accent-color: #0096ff;
}
// Custom file input styling
input[type="file"] {
@ -486,123 +480,15 @@
margin-top: 0.75rem;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 500;
font-size: 0.85rem;
cursor: pointer;
margin: 0;
color: rgba(100, 180, 255, 0.8);
text-transform: uppercase;
letter-spacing: 0.05em;
transition: color 0.3s ease;
&:hover {
color: #66ccff;
}
input[type="checkbox"] {
margin: 0;
cursor: pointer;
margin-right: 0.25em;
}
span {
user-select: none;
}
}
// Button styles are now in partials/form-controls.scss
// Only page-specific overrides here
.btn-primary,
.btn-secondary {
width: 100%;
padding: 0.75rem 1.5rem;
font-size: 0.95rem;
font-weight: 600;
border: 1px solid rgba(0, 150, 255, 0.5);
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.08em;
position: relative;
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(0, 150, 255, 0.3),
transparent
);
transition: left 0.5s ease;
}
&:hover::before {
left: 100%;
}
}
.btn-primary {
background: linear-gradient(
135deg,
rgba(0, 120, 200, 0.3) 0%,
rgba(0, 100, 180, 0.2) 100%
);
color: #66ccff;
&:hover {
background: linear-gradient(
135deg,
rgba(0, 150, 255, 0.4) 0%,
rgba(255, 100, 0, 0.3) 100%
);
border-color: rgba(0, 150, 255, 0.8);
box-shadow:
0 0 20px rgba(0, 150, 255, 0.4),
0 0 30px rgba(255, 120, 0, 0.2);
color: #fff;
text-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
transform: translateY(-2px);
}
&:active {
transform: translateY(0);
}
}
.btn-secondary {
background: linear-gradient(
135deg,
rgba(0, 100, 180, 0.2) 0%,
rgba(0, 80, 150, 0.15) 100%
);
color: #66ccff;
margin-top: 0.5rem;
&:hover {
background: linear-gradient(
135deg,
rgba(0, 120, 200, 0.3) 0%,
rgba(255, 100, 0, 0.2) 100%
);
border-color: rgba(0, 150, 255, 0.6);
transform: translateY(-2px);
box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
color: #fff;
text-shadow: 0 0 8px rgba(0, 150, 255, 0.5);
}
&:active {
transform: translateY(0);
}
}
// Custom tooltip styles

View file

@ -0,0 +1,199 @@
// Lava Lamp Adoptable Generator Page Styles
// Namespaced to avoid conflicts with existing navigation lava lamp styles
.adoptable-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin: 2rem 0;
@include media-down(md) {
grid-template-columns: 1fr;
}
}
.preview-section {
display: flex;
flex-direction: column;
position: sticky;
top: 2rem;
align-self: flex-start;
h3 {
margin-top: 0;
margin-bottom: 1rem;
}
}
.preview-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-bottom: 1rem;
@include media-down(lg) {
grid-template-columns: 1fr;
}
}
.preview-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
}
.preview-wrapper {
border: 2px solid #333;
border-radius: 8px;
padding: 1rem;
background-image:
linear-gradient(45deg, #ccc 25%, transparent 25%),
linear-gradient(-45deg, #ccc 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #ccc 75%),
linear-gradient(-45deg, transparent 75%, #ccc 75%);
background-size: 20px 20px;
background-position:
0 0,
0 10px,
10px -10px,
-10px 0px;
background-color: #fff;
}
.preview-flexible {
width: 40px;
height: 75px;
padding: 3px;
}
.preview-100 {
width: 100px;
height: 200px;
}
.preview-200 {
width: 200px;
height: 350px;
}
.preview-label {
font-size: 0.875rem;
color: #666;
text-align: center;
}
.lavalamp-preview-container {
width: 100%;
height: 100%;
}
.controls-section {
h3 {
margin-top: 0;
}
}
// Page-specific overrides - make buttons full width in this layout
#lavalamp-adoptable-app .control-group button {
width: 100%;
}
// Adoptable Lava Lamp Component Styles
// Namespaced under .lavalamp-adoptable to avoid conflicts with navigation lava lamp
.lavalamp-adoptable {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
.lamp-cap {
width: 60%;
height: 8%;
flex-shrink: 0;
border-radius: 50% 50% 0 0;
box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
position: relative;
z-index: 10;
}
.lamp-body {
position: relative;
width: 100%;
flex: 1;
clip-path: polygon(20% 0, 80% 0, 100% 101%, 0% 101%);
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
90deg,
transparent 0%,
rgba(255, 255, 255, 0.15) 20%,
rgba(255, 255, 255, 0.05) 40%,
transparent 60%
);
pointer-events: none;
}
}
.blobs-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
z-index: 2;
}
.blob {
position: absolute;
border-radius: 50%;
animation: lavalamp-float var(--duration) ease-in-out infinite;
opacity: 0.95;
mix-blend-mode: normal;
z-index: 3;
}
.lamp-base {
width: 100%;
height: 15%;
flex-shrink: 0;
border-radius: 0 0 50% 50%;
box-shadow:
inset 0 2px 5% rgba(255, 255, 255, 0.2),
inset 0 -2px 5% rgba(0, 0, 0, 0.5);
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
}
// Animation for adoptable lava lamp blobs (different from navigation lava lamp)
@keyframes lavalamp-float {
0%,
100% {
transform: translate(var(--start-x), var(--start-y)) scale(1);
}
25% {
transform: translate(var(--mid1-x), var(--mid1-y))
scale(var(--scale1, 1.1));
}
50% {
transform: translate(var(--mid2-x), var(--mid2-y))
scale(var(--scale2, 0.9));
}
75% {
transform: translate(var(--mid3-x), var(--mid3-y))
scale(var(--scale3, 1.05));
}
}

View file

@ -551,6 +551,45 @@
animation: equalizer-2 1s ease-in-out infinite 0.2s;
}
}
// Adoptables icon - gift box style
&.adoptables {
background: #000;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: visible;
border: 3px solid #fff;
// Ribbon vertical stripe
&::before {
content: "";
position: absolute;
top: -3px;
bottom: -3px;
left: 50%;
transform: translateX(-50%);
width: 20%;
background: #fff;
}
// Bow on top
&::after {
content: "";
position: absolute;
top: -8px;
left: 50%;
transform: translateX(-50%);
width: 35px;
height: 18px;
background: #fff;
border-radius: 50% 50% 0 0;
box-shadow: -12px 0 0 #fff, 12px 0 0 #fff;
animation: bow-sparkle 3s ease-in-out infinite;
}
}
}
@keyframes float-blob {
@ -593,6 +632,18 @@
}
}
@keyframes bow-sparkle {
0%,
100% {
filter: brightness(1);
transform: translateX(-50%) scale(1);
}
50% {
filter: brightness(1.2);
transform: translateX(-50%) scale(1.05);
}
}
// Single Resource Page
.resource-single {
margin: 0 auto;
@ -1385,133 +1436,7 @@
}
}
.stats-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-bottom: 2rem;
position: relative;
z-index: 1;
@include media-up(md) {
flex-direction: row;
align-items: flex-end;
}
.form-group {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.5rem;
label {
font-weight: 600;
color: #66ccff;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.08em;
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
text-shadow: 0 0 8px rgba(0, 150, 255, 0.4);
}
input,
select {
padding: 0.75rem 1rem;
border: 1px solid rgba(0, 150, 255, 0.4);
border-radius: 4px;
font-size: 1rem;
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
background: rgba(5, 15, 30, 0.7);
color: rgba(200, 220, 255, 0.95);
transition: all 0.3s ease;
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
&:focus {
outline: none;
border-color: rgba(0, 150, 255, 0.7);
box-shadow:
0 0 15px rgba(0, 150, 255, 0.3),
inset 0 2px 8px rgba(0, 0, 0, 0.4);
background: rgba(5, 15, 30, 0.9);
}
&::placeholder {
color: rgba(100, 150, 200, 0.5);
}
}
select {
cursor: pointer;
option {
background: rgba(5, 15, 30, 0.95);
color: rgba(200, 220, 255, 0.95);
}
}
}
.btn-primary {
padding: 0.75rem 2rem;
background: linear-gradient(
135deg,
rgba(0, 120, 200, 0.3) 0%,
rgba(0, 100, 180, 0.2) 100%
);
color: #66ccff;
border: 1px solid rgba(0, 150, 255, 0.5);
border-radius: 4px;
font-size: 0.95rem;
font-weight: 600;
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
cursor: pointer;
transition: all 0.3s ease;
align-self: flex-end;
text-transform: uppercase;
letter-spacing: 0.08em;
position: relative;
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(0, 150, 255, 0.3),
transparent
);
transition: left 0.5s ease;
}
&:hover {
background: linear-gradient(
135deg,
rgba(0, 150, 255, 0.4) 0%,
rgba(255, 100, 0, 0.3) 100%
);
border-color: rgba(0, 150, 255, 0.8);
box-shadow:
0 0 20px rgba(0, 150, 255, 0.4),
0 0 30px rgba(255, 120, 0, 0.2);
color: #fff;
text-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
transform: translateY(-2px);
&::before {
left: 100%;
}
}
&:active {
transform: translateY(0);
box-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
}
}
}
// Stats form styles are now in partials/form-controls.scss
.stats-results {
position: relative;