web-calender-app / style.css
J0BL1N's picture
add a slider to the event for importance.
d132299 verified
Raw
History Blame Contribute Delete
1.42 kB
body {
padding: 2rem;
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
background: linear-gradient(to bottom right, #f0f4ff, #e6edff);
}
h1 {
font-size: 16px;
margin-top: 0;
}
p {
color: rgb(107, 114, 128);
font-size: 15px;
margin-bottom: 10px;
margin-top: 5px;
}
.card {
max-width: 620px;
margin: 0 auto;
padding: 16px;
border: 1px solid lightgray;
border-radius: 16px;
}
.card p:last-child {
margin-bottom: 0;
}
#events-container [data-id] {
transition: all 0.2s ease;
border-radius: 0.75rem;
padding: 1.25rem;
margin-bottom: 0.75rem;
font-size: 1.1rem;
}
#events-container [data-id]:hover {
background-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transform: translateY(-1px);
}
.text-xs {
font-size: 0.75rem;
line-height: 1rem;
}
input[type="radio"]:checked + span {
box-shadow: 0 0 0 3px white, 0 0 0 5px currentColor;
transform: scale(1.1);
}
input[type="range"] {
-webkit-appearance: none;
height: 6px;
border-radius: 3px;
background: #e5e7eb;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: #4f46e5;
cursor: pointer;
transition: all 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.2);
box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}