new balloon shape
This commit is contained in:
parent
f21e29dd2a
commit
0560db4318
259
style.css
259
style.css
@ -7,27 +7,27 @@ body {
|
||||
background-color: #e8e8e8;
|
||||
background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
|
||||
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
|
||||
}
|
||||
#main-header {
|
||||
}
|
||||
#main-header {
|
||||
text-align: center;
|
||||
padding: 20px 10px;
|
||||
background: #ffffffdd;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 12px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
#main-header h1 {
|
||||
#main-header h1 {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#main-header p {
|
||||
#main-header p {
|
||||
font-size: 1rem;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
|
||||
#selected-palette {
|
||||
#selected-palette {
|
||||
position: sticky;
|
||||
top: 10px;
|
||||
background: #fff;
|
||||
@ -48,18 +48,18 @@ body {
|
||||
background-color: #e8e8e8;
|
||||
background-image: url("https://www.transparenttextures.com/patterns/asfalt-light.png");
|
||||
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
|
||||
}
|
||||
}
|
||||
|
||||
/* Strong shadow when stuck */
|
||||
#selected-palette.stuck {
|
||||
/* Strong shadow when stuck */
|
||||
#selected-palette.stuck {
|
||||
box-shadow: 16px 16px 15px rgba(0, 0, 0, 0.25);
|
||||
border: 1px solid rgb(0, 0, 0);
|
||||
border-radius: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#palette-colors {
|
||||
#palette-colors {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
@ -67,10 +67,10 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
padding: 10px;
|
||||
/* transition: padding 0.3s ease; */
|
||||
transition: max-height 0.3s ease, padding 0.3s ease;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#clear-palette {
|
||||
#clear-palette {
|
||||
margin-top: 20px;
|
||||
padding: 8px 12px;
|
||||
font-size: 0.9rem;
|
||||
@ -80,16 +80,16 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
cursor: pointer;
|
||||
margin: auto;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#color-families {
|
||||
#color-families {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeInUp {
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
@ -98,15 +98,15 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
footer {
|
||||
}
|
||||
footer {
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
color: #777;
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
@media (max-width: 480px) {
|
||||
.color-name {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
@ -118,8 +118,8 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
#main-header h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
.color-family {
|
||||
}
|
||||
.color-family {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@ -128,23 +128,23 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
border-bottom: 1px solid #ccc;
|
||||
animation: fadeInUp 0.5s ease;
|
||||
|
||||
}
|
||||
.swatch-container {
|
||||
}
|
||||
.swatch-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 10px 20px; /* add horizontal AND vertical gaps */
|
||||
}
|
||||
}
|
||||
|
||||
.color-family h3 {
|
||||
.color-family h3 {
|
||||
text-align: center;
|
||||
margin: 10px 0 5px;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.swatch-wrapper {
|
||||
.swatch-wrapper {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@ -156,17 +156,17 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
/* overflow-wrap: break-word; */
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* .color-swatch {
|
||||
/* .color-swatch {
|
||||
width: 55px;
|
||||
height: 65px;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease;
|
||||
} */
|
||||
.color-swatch::before {
|
||||
} */
|
||||
.color-swatch::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 10%;
|
||||
@ -181,17 +181,17 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
);
|
||||
pointer-events: none;
|
||||
filter: blur(4px);
|
||||
}
|
||||
}
|
||||
|
||||
.metallic-element[data-color="#FFD700"] {
|
||||
.metallic-element[data-color="#FFD700"] {
|
||||
background: linear-gradient(to bottom, #B88606, #79550E);
|
||||
box-shadow:
|
||||
inset 0 0 0 0 rgba(255, 255, 255, 0.3),
|
||||
inset 0 0 0 1px rgba(0, 0, 0, 0.3),
|
||||
inset 0 0 10px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
/* .color-swatch::after {
|
||||
/* .color-swatch::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2%;
|
||||
@ -202,7 +202,7 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
pointer-events: none;
|
||||
box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
}
|
||||
*/
|
||||
.color-swatch {
|
||||
width: 100px;
|
||||
@ -226,11 +226,11 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
box-shadow:
|
||||
inset 2px 2px 6px rgba(255, 255, 255, 0.6),
|
||||
0 4px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.color-swatch::after {
|
||||
.color-swatch::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -6px;
|
||||
@ -241,35 +241,35 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
background: inherit;
|
||||
border-radius: 50% 50% 30% 30%;
|
||||
box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.color-swatch:hover,
|
||||
.color-swatch:active {
|
||||
.color-swatch:hover,
|
||||
.color-swatch:active {
|
||||
transform: scale(1.2);
|
||||
box-shadow: 0 0 5px rgba(0,0,0,0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.color-swatch.chosen {
|
||||
.color-swatch.chosen {
|
||||
outline: 3px solid #333;
|
||||
outline-offset: 1px;
|
||||
width: 90px;
|
||||
height: 126px;
|
||||
z-index: 10;
|
||||
}
|
||||
}
|
||||
|
||||
.color-background {
|
||||
.color-background {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
border: 2px solid rgba(0, 0, 0, 0.1); /* Light gray border */
|
||||
box-shadow: 1 1 1;
|
||||
}
|
||||
.color-shine {
|
||||
}
|
||||
.color-shine {
|
||||
position: absolute;
|
||||
top: 30%;
|
||||
left: 40%;
|
||||
left: 50%;
|
||||
width: 20px;
|
||||
height: auto;
|
||||
max-width: 20px;
|
||||
@ -278,9 +278,9 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
pointer-events: none;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.color-name {
|
||||
.color-name {
|
||||
font-size: 0.85rem;
|
||||
text-align: center;
|
||||
margin-top: 5px;
|
||||
@ -291,9 +291,9 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
max-width: 100%;
|
||||
background-color: #e8e8e8;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
#palette-colors .color-swatch {
|
||||
#palette-colors .color-swatch {
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
@ -565,7 +565,7 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
.color-shine {
|
||||
position: absolute;
|
||||
top: 30%;
|
||||
left: 40%;
|
||||
left: 50%;
|
||||
width: 20px;
|
||||
height: auto;
|
||||
max-width: 20px;
|
||||
@ -731,7 +731,7 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
/* --- SVG Balloon String --- */
|
||||
.balloon-string-svg {
|
||||
position: absolute;
|
||||
top: 55px; /* match .color-swatch height */
|
||||
top: 60px; /* match .color-swatch height */
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 20px;
|
||||
@ -793,7 +793,7 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
width: 60px;
|
||||
height: 20px;
|
||||
}
|
||||
.switch input {
|
||||
@ -838,10 +838,10 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
cursor: pointer;
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* .checkmark-overlay {
|
||||
/* .checkmark-overlay {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
@ -857,9 +857,9 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
justify-content: center;
|
||||
z-index: 20;
|
||||
pointer-events: none;
|
||||
} */
|
||||
} */
|
||||
|
||||
@media (max-width: 600px) {
|
||||
@media (max-width: 600px) {
|
||||
|
||||
.swatch-wrapper {
|
||||
width: 50px;
|
||||
@ -874,35 +874,35 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
#selected-palette h2 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.color-name {
|
||||
.color-name {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
}
|
||||
|
||||
.color-name.highlighted-name {
|
||||
.color-name.highlighted-name {
|
||||
text-decoration:underline;
|
||||
font-weight: bold;
|
||||
color: #111;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pop {
|
||||
@keyframes pop {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(1.2); }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
}
|
||||
|
||||
.color-background.pop {
|
||||
.color-background.pop {
|
||||
animation: pop 0.25s ease;
|
||||
}
|
||||
}
|
||||
|
||||
.color-background.chosen {
|
||||
.color-background.chosen {
|
||||
transform: scale(2.2);
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
.chosen{
|
||||
}
|
||||
.chosen{
|
||||
z-index: 4;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared metallic style */
|
||||
.metallic {
|
||||
@ -911,10 +911,10 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
/* box-shadow: inset 1px 1px 4px rgba(255, 255, 255, 0.6),
|
||||
0 2px 4px rgba(0, 0, 0, 0.3); */
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
/* Highlight overlay */
|
||||
.metallic1::after {
|
||||
/* Highlight overlay */
|
||||
.metallic1::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 15%;
|
||||
@ -925,60 +925,60 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
transform: rotate(-20deg);
|
||||
pointer-events: none;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Specific chrome variants */
|
||||
.chrome-gold {
|
||||
/* Specific chrome variants */
|
||||
.chrome-gold {
|
||||
background: linear-gradient(145deg, #fefcea, #b69978, #a18b67, #806748);
|
||||
}
|
||||
}
|
||||
|
||||
.chrome-silver {
|
||||
.chrome-silver {
|
||||
background: linear-gradient(145deg, #e0e0e0, #a9a9a9, #808080, #e0e0e0);
|
||||
}
|
||||
}
|
||||
|
||||
.chrome-rosegold {
|
||||
.chrome-rosegold {
|
||||
background: linear-gradient(145deg, #fbe3dc, #e6b7a9, #d19387, #fbe3dc);
|
||||
}
|
||||
}
|
||||
|
||||
.chrome-champagne {
|
||||
.chrome-champagne {
|
||||
background: linear-gradient(145deg, #fff2cc, #f2e6b6, #d9c08e, #fff2cc);
|
||||
}
|
||||
}
|
||||
|
||||
.chrome-blue {
|
||||
.chrome-blue {
|
||||
background: linear-gradient(145deg, #d0f0ff, #4d7995, #2d576f, #d0f0ff);
|
||||
}
|
||||
}
|
||||
|
||||
.chrome-purple {
|
||||
.chrome-purple {
|
||||
background: linear-gradient(145deg, #e0ccff, #b08be1, #915bc4, #e0ccff);
|
||||
}
|
||||
}
|
||||
|
||||
.chrome-green {
|
||||
.chrome-green {
|
||||
background: linear-gradient(145deg, #e2ffe2, #457066, #5c877d, #e2ffe2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@keyframes balloonFloat {
|
||||
@keyframes balloonFloat {
|
||||
0%, 100% { transform: translateY(0) rotate(-4deg); }
|
||||
50% { transform: translateY(-25px) rotate(4deg); }
|
||||
}
|
||||
}
|
||||
|
||||
.balloon-float {
|
||||
.balloon-float {
|
||||
animation-name: balloonFloat;
|
||||
animation-timing-function: 4s ease-in-out;
|
||||
animation-iteration-count: infinite;
|
||||
transform-origin: bottom center;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
.color-background {
|
||||
.color-background {
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
/* --- SVG Balloon String --- */
|
||||
.balloon-string-svg {
|
||||
}
|
||||
/* --- SVG Balloon String --- */
|
||||
.balloon-string-svg {
|
||||
position: absolute;
|
||||
top: 109px; /* match .color-swatch height */
|
||||
top: 98px; /* match .color-swatch height */
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 20px;
|
||||
@ -988,10 +988,10 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
overflow: visible;
|
||||
transform-origin: top center;
|
||||
animation: svgWiggle 2s ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.balloon-float-group {
|
||||
.balloon-float-group {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -1001,17 +1001,17 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
animation-timing-function: ease-in-out;
|
||||
animation-iteration-count: infinite;
|
||||
transform-origin: bottom center;
|
||||
}
|
||||
}
|
||||
|
||||
.wiggle-path {
|
||||
.wiggle-path {
|
||||
stroke: #727171;
|
||||
stroke-width: 2;
|
||||
fill: none;
|
||||
stroke-linecap: round;
|
||||
stroke-dasharray: 1, 2;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes svgWiggle {
|
||||
@keyframes svgWiggle {
|
||||
0%, 100% {
|
||||
transform: translateX(-50%) rotate(0deg);
|
||||
}
|
||||
@ -1024,9 +1024,9 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
75% {
|
||||
transform: translateX(-50%) rotate(1.5deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#palette-controls {
|
||||
#palette-controls {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
@ -1034,21 +1034,21 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
z-index: 200;
|
||||
}
|
||||
}
|
||||
|
||||
/* Toggle Switch Styling */
|
||||
.switch {
|
||||
/* Toggle Switch Styling */
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
height: 20px;
|
||||
}
|
||||
.switch input {
|
||||
}
|
||||
.switch input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
.slider {
|
||||
}
|
||||
.slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0; left: 0;
|
||||
@ -1056,8 +1056,8 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
background-color: #ccc;
|
||||
transition: 0.4s;
|
||||
border-radius: 20px;
|
||||
}
|
||||
.slider:before {
|
||||
}
|
||||
.slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 14px;
|
||||
@ -1067,21 +1067,20 @@ background-image: url("https://www.transparenttextures.com/patterns/asfalt-light
|
||||
background-color: white;
|
||||
transition: 0.4s;
|
||||
border-radius: 50%;
|
||||
}
|
||||
input:checked + .slider {
|
||||
}
|
||||
input:checked + .slider {
|
||||
background-color: #4caf50;
|
||||
}
|
||||
input:checked + .slider:before {
|
||||
}
|
||||
input:checked + .slider:before {
|
||||
transform: translateX(20px);
|
||||
}
|
||||
}
|
||||
|
||||
/* Shuffle Button */
|
||||
#shuffle-palette {
|
||||
/* Shuffle Button */
|
||||
#shuffle-palette {
|
||||
font-size: 16px;
|
||||
padding: 4px 8px;
|
||||
border: none;
|
||||
background: #f0f0f0;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user