html,
body {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
color: #424242;
line-height: 1.6;
background-color: #eec0c6;
background-image: linear-gradient(315deg, #eec0c6 0%, #7ee8fa 74%);
}
div {
background: white;
}
main {
position: absolute;
max-height: calc(100% - 140px);
overflow-y: auto;
width: 50%;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
padding: 20px;
border-radius: 10px;
background: white;
}
input,
button,
select {
width: 100%;
}
img {
max-width: 80%;
max-height: 80%;
}
@media only screen and (max-width: 600px) {
main {
width: calc(100% - 20%);
}
}
#student-list li {
cursor: pointer;
}
#student-list li:hover {
opacity: 0.8;
}
#user h1,
#comments h2 {
cursor: pointer;
}
#user h1:hover,
#comments h2:hover {
opacity: 0.8;
}
#user h1:after,
#comments h2:after {
content: url(/feather/icons/chevron-up.svg);
}
#user h1.bananenkuchen:after,
#comments h2.bananenkuchen:after {
content: url(/feather/icons/chevron-down.svg);
}
#comments div {
display: flex;
justify-content: space-between;
}
#comments span {
align-self: center;
}
#comments .edit-btn,
#comments .delete-btn,
#comments .add-btn {
cursor: pointer;
width: 50px;
height: 50px;
transition: opacity 0.5s;
}
#comments .edit-btn:hover,
#comments .delete-btn:hover,
#comments .add-btn:hover {
opacity: 0.8;
}
#comments .edit-btn {
background: url(/feather/icons/edit.svg) no-repeat center;
}
#comments .delete-btn {
background: url(/feather/icons/trash.svg) no-repeat center;
}
#comments .add-btn {
background: url(/feather/icons/plus.svg) no-repeat center;
}
#comments #add-div,
#comments #edit-div {
justify-content: center;
flex-flow: row wrap;
margin-top: 24px;
margin-bottom: 24px;
}
#comments #add-div div,
#comments #edit-div div {
width: 100%;
height: 100%;
flex-flow: row wrap;
}
#comments #add-div div textarea,
#comments #edit-div div textarea {
width: 100%;
height: 80%;
margin-bottom: 12px;
}