Files
Crochet/style.css
T
2025-11-15 18:45:58 +01:00

308 lines
6.0 KiB
CSS

:root {
--color-primary: rgb(230, 134, 78);
--color-secondary: rgb(236, 233, 61); /* banana yellow */
--card-bg: rgba(255, 245, 230, 0.8);
--text-dark: #333;
--border-soft: rgba(0, 0, 0, 0.05);
--radius: 1.25rem;
--shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}
body {
margin: 0;
padding: 2rem 1rem;
font-family: 'Roboto', sans-serif;
background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
color: var(--text-dark);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1.5rem;
min-height: 100vh;
box-sizing: border-box;
}
#settings-card, #div-pip-element {
width: 100%;
max-width: 360px;
background: rgba(255, 255, 255, 0.15);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 1.5rem;
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(12px);
box-sizing: border-box;
}
#notes {
width: 100%;
max-width: 360px;
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 1.5rem;
border: 1px solid var(--border-soft);
backdrop-filter: blur(8px);
box-sizing: border-box;
}
#notes {
min-height: 100px;
font-size: 1rem;
resize: vertical;
outline: none;
border: none;
font-family: inherit;
background: var(--card-bg);
color: var(--text-dark);
}
#notes::placeholder {
color: rgba(51, 51, 51, 0.7);
}
#settings-card h2 {
font-size: 1.2rem;
margin-bottom: 1rem;
text-align: center;
font-weight: 600;
color: var(--text-dark);
}
.settings-group {
display: flex;
flex-direction: column;
gap: 1rem;
}
.settings-group label {
font-size: 0.95rem;
font-weight: 500;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.settings-group input[type="number"] {
padding: 0.5rem;
border-radius: 0.5rem;
border: 1px solid #aaa;
text-align: center;
font-size: 1rem;
}
.toggle {
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row !important;
}
.toggle input {
display: none;
}
.toggle .slider {
width: 42px;
height: 24px;
background-color: #ccc;
border-radius: 999px;
position: relative;
cursor: pointer;
transition: background-color 0.2s;
}
.toggle .slider::before {
content: "";
position: absolute;
left: 2px;
top: 2px;
width: 20px;
height: 20px;
background: white;
border-radius: 50%;
transition: transform 0.2s;
}
.toggle input:checked + .slider {
background-color: var(--color-primary);
}
.toggle input:checked + .slider::before {
transform: translateX(18px);
}
#pip-button-container {
position: absolute;
top: 1rem;
right: 1rem;
}
#button-start-pip {
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
}
#div-pip-container {
width: 100%;
max-width: 360px;
}
#div-pip-element {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
min-width: 200px; /* smaller min width */
min-height: 100px; /* smaller min height */
}
.counter-buttons {
display: flex;
gap: 1.5rem;
width: 100%;
justify-content: center;
}
.counter-buttons button {
background-color: var(--color-primary);
color: black;
border: none;
padding: 1.5rem;
border-radius: 1rem;
font-size: 1.2rem;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-shadow: var(--shadow);
width: 120px;
height: 80px;
flex-shrink: 0;
}
.control-buttons {
display: flex;
gap: 1.5rem;
width: 100%;
justify-content: center;
}
.control-buttons button {
background-color: var(--color-primary);
color: black;
border: none;
padding: 0.75rem;
border-radius: 0.75rem;
font-size: 1rem;
cursor: pointer;
box-shadow: var(--shadow);
width: 120px;
height: 45px;
flex-shrink: 0;
}
@media (display-mode: picture-in-picture) {
body {
background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
justify-content: center;
padding: 1rem;
margin: 0;
}
#pip-button-container,
#settings-card,
#notes {
display: none;
}
#div-pip-element {
background: rgba(255, 255, 255, 0.2);
border-radius: 1rem;
padding: 1rem;
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
width: 100%;
max-width: none;
}
.counter-buttons {
gap: 1rem;
}
.counter-buttons button {
width: 80px;
height: 60px;
font-size: 1rem;
padding: 0.5rem;
}
.counter-buttons button div:first-child {
font-size: 1.4rem;
margin-bottom: 0.2rem;
}
.counter-buttons button div:last-child {
font-size: 1rem;
opacity: 0.8;
}
.control-buttons {
gap: 1rem;
}
.control-buttons button {
width: 80px;
height: 30px;
font-size: 0.85rem;
padding: 0.5rem;
}
}
#div-button-help {
position: fixed;
bottom: 2vh;
right: 2vw;
}
#button-help {
color: var(--color-primary);
font-size: 4vh;
text-shadow: 0px 0px 2px black;
background: transparent;
border: none;
padding: 1vh 1vw;
}
.icon-link {
font-size: 2vh;
color: black;
text-decoration: none;
}
#about {
text-align: center;
max-width: 400px;
margin: 0 auto;
}
/* Subtle hover effect */
button:hover {
filter: brightness(1.03); /* Slightly lighter */
transform: scale(1.01); /* Barely grows */
transition: transform 0.12s ease, filter 0.12s ease;
}
/* Subtle press (active) effect */
button:active {
transform: scale(0.985); /* Slight shrink */
filter: brightness(0.98); /* Slightly darker */
}