Explorer
project
img
hint.md
index.css
index.html
index.js
Dependencies
Bootcamp
Study group
Collaborate with peers in your dedicated #study-group channel.
Code reviews
Submit projects for review using the /review
command in your #code-reviews channel
:root {
--wine-red: hsl(343, 57%, 50%);
--bright-red: hsl(359, 66%, 50%);
--dark-red: hsl(359, 100%, 38%);
--dark-green: hsl(110, 24%, 24%);
--light-green: hsl(88, 39%, 45%);
--gold: hsl(35, 93%, 74%);
--light-gold: hsl(35, 93%, 85%);
--snow: hsl(206, 30%, 95%);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 2rem 0;
align-items: center;
height: 100vh;
color: var(--dark-red);
background-color: var(--gold);
font-family: Arial, Helvetica, sans-serif;
font-size: 1rem;
background: url('img/davies-designs-studio-1566x1040q30-unsplash.jpg');
background-size: cover;
}
h1 {
margin: 0;
padding: 0.1em 0.3em;
border-radius: 500000px;
border-color: rgba(255, 255, 255, 0.75);
background-color: rgba(255, 255, 255, 0.75);
opacity: 0.9;
box-shadow: 0 0 15px 15px rgba(255, 255, 255, 0.8);
font-family: 'Mountains of Christmas', cursive;
font-size: 2.5rem;
}
form *:not(label),
.guest-list {
box-sizing: border-box;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
border-radius: 5px;
border: none;
}
form {
display: flex;
flex-direction: column;
height: 10em;
justify-content: space-around;
}
form * {
padding: 0.5em;
font-size: 1.3rem;
}
label {
padding: 0;
font-weight: bold;
}
input {
background: var(--snow);
}
.guest-list {
color: var(--dark-green);
min-width: 220px;
max-width: 90%;
overflow-y: scroll;
overflow-x: hidden;
background: var(--snow);
padding: 1em 2em;
}
li {
display: flex;
justify-content: space-between;
padding: 0.125em;
width: 100%;
text-align: left;
font-weight: bold;
font-family: Caveat, cursive;
font-size: 1.25rem;
}
li:nth-child(even) {
background-color: var(--light-gold);
}
.btn {
background: var(--dark-green);
color: var(--snow);
}
.btn:hover,
.btn:focus {
transform: scale(1.05);
cursor: pointer;
}
.remove {
flex-shrink: 0;
appearance: none;
border: none;
border-radius: 50%;
background: var(--bright-red);
color: var(--snow);
font-size: 0.5em;
width: 2em;
height: 2em;
margin-left: 5em;
margin-bottom: -0.23em;
display: inline-block;
transition: transform 0.5s;
}
.remove:hover {
transform: scale(1.25) rotate(0.5turn);
}