413 lines
8.1 KiB
CSS

main {
display: flex;
flex-direction: column;
gap: 1.2em;
}
#toggle-notifs {
margin-left: auto;
}
#filename {
font-size: 80%;
font-style: italic;
}
#unsaved {
color: #9d4916;
font-size: 80%;
&:not(.show) {
display: none;
}
}
table {
border-collapse: collapse;
width: 100%;
th, td {
padding: 0.4em 0.8em;
}
tbody {
tr {
&:nth-child(even) {
background-color: #ececec;
}
td {
text-align: center;
position: relative;
}
}
}
}
input[type="text"], select {
font-size: inherit;
font-family: inherit;
}
input[type="checkbox"] {
--size: 0.6em;
--pad: 0.2em;
width: calc((var(--size) * 2 + var(--pad)) * 2);
height: calc((var(--size) + var(--pad)) * 2);
border-radius: calc(var(--size) + var(--pad));
appearance: none;
background-color: #e1e1e1;
position: relative;
cursor: pointer;
&::after {
content: "";
width: calc(var(--size) * 2);
height: calc(var(--size) * 2);
border-radius: calc(var(--size));
background-color: #9b9b9b;
position: absolute;
top: 50%;
left: var(--pad);
transform: translateY(-50%);
}
&:checked {
background-color: #daf0d1;
&::after {
left: auto;
right: var(--pad);
background-color: #6ee74a;
}
}
}
input[type="radio"] {
--size: 0.5em;
--pad: 0.3em;
width: calc((var(--size) + var(--pad)) * 2);
height: calc((var(--size) + var(--pad)) * 2);
border-radius: calc(var(--size) + var(--pad));
appearance: none;
background-color: #e1e1e1;
position: relative;
cursor: pointer;
&:checked {
background-color: #daf0d1;
&::after {
content: "";
width: calc(var(--size) * 2);
height: calc(var(--size) * 2);
border-radius: calc(var(--size));
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #6ee74a;
}
}
}
label {
cursor: pointer;
}
button.improve {
width: 2em;
height: 2em;
border: none;
margin: 0;
padding: 0;
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
margin-left: 0.4em;
border-radius: 0.4em;
background: none;
&:hover{
background-color: #8d8d8d42;
}
img {
position: absolute;
inset: 0;
width: inherit;
height: inherit;
object-fit: contain;
}
.clicked {
opacity: 0;
transition: opacity 0.2s;
}
&.clicked {
.clicked {
opacity: 1;
}
}
/*background: url("/static/images/improve.svg");
background-size: contain;
width: 2em;
height: 2em;
border: none;
margin: 0;
padding: 0;
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
margin-left: 0.4em;
border-radius: 0.4em;
&:hover{
background-color: #8d8d8d42;
}
&::after {
content: "";
position: absolute;
background: url("/static/images/improve_clicked.svg");
background-size: contain;
width: inherit;
height: inherit;
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.2s;
}
&.clicked {
&::after {
opacity: 1;
}
}*/
}
.popup {
display: grid;
place-items: center;
position: fixed;
inset: 0;
background-color: #5c5c5c5c;
&:not(.show) {
display: none;
}
.container {
padding: 1.2em;
border-radius: 0.8em;
background-color: white;
display: flex;
flex-direction: column;
gap: 0.8em;
.title {
text-align: center;
margin: 0.4em 0;
}
h2, h3 {
margin: 0;
margin-bottom: 0.4em;
}
.buttons {
display: flex;
justify-content: center;
gap: 0.8em;
button {
padding: 0.8em 1.6em;
background-color: #dfdfdf;
border: none;
cursor: pointer;
border-radius: 0.4em;
font-family: inherit;
font-size: inherit;
font-weight: bold;
&:hover {
background-color: #e7e7e7;
}
&:active {
background-color: #d7d7d7;
}
}
}
}
}
#integrity-popup {
h3 {
margin-bottom: 0.4em;
}
label {
font-weight: bold;
}
.description {
span {
font-weight: bold;
}
}
input[type="text"] {
width: 100%;
}
.original {
.values {
display: flex;
flex-direction: column;
gap: 0.2em;
padding-left: 1.2em;
}
.name, .field {
display: flex;
gap: 0.4em;
align-items: center;
}
}
.correction {
.options {
display: flex;
flex-direction: column;
gap: 0.4em;
.option {
display: grid;
grid-template-columns: auto 1fr;
gap: 0.2em 0.4em;
align-items: center;
padding: 0.4em;
border: solid black 2px;
cursor: pointer;
border-radius: 0.2em;
&.selected {
border-color: #6ee74a;
}
input[type="radio"] {
grid-column: 1;
grid-row: 1;
}
label {
grid-column: 2;
grid-row: 1;
}
.arrow {
background: url("/static/images/arrow.svg");
width: 2em;
height: 2em;
background-size: contain;
}
.value {
grid-column: 2;
grid-row: 2;
display: flex;
align-items: center;
gap: 0.2em;
}
}
}
}
.select {
border: solid black 1px;
padding: 0.2em 0.4em;
background-color: #fafafa;
}
}
#notifs-hist {
padding: 0.8em;
height: 100%;
display: flex;
flex-direction: column;
max-width: 30em;
&:not(.show) {
display: none;
}
#close-notifs {
align-self: flex-end;
background: none;
border: none;
padding: 0.4em 0.8em;
border-radius: 0.2em;
font-family: inherit;
font-size: inherit;
cursor: pointer;
&:hover {
background-color: #ebebeb;
}
}
.list {
display: flex;
flex-direction: column;
gap: 0.2em;
overflow-y: auto;
margin-top: 0.6em;
.notif {
border-left: solid var(--col) 4px;
padding: 0.4em;
}
}
}
.sep {
border-bottom: solid black 1px;
}
#series-toolbar {
display: flex;
gap: 0.4em;
padding: 0.4em;
align-items: center;
&:not(.show) {
display: none;
}
button {
background: var(--img);
width: 2.4em;
height: 2.4em;
background-color: transparent;
border: none;
background-size: 80%;
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
border-radius: 0.4em;
&:hover {
background-color: #f1f1f1;
}
&#prev-episode {
--img: url("/static/images/prev.svg");
}
&#next-episode {
--img: url("/static/images/next.svg");
}
}
}