- Fix HTML and improve style of the feature; - Improve admin NPC's JavaScript and fix addition of a reaction image where there is no one already present; - Allow upload of images with image/jpg MIME type; - Fix attribute name of a hidden input; - Apply the hover effects of links and buttons on their focus, for all admin pages.
146 lines
2.9 KiB
CSS
146 lines
2.9 KiB
CSS
/* Custom fonts */
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: "Roboto Mono";
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url("../fonts/roboto_mono_v22/roboto_mono_v22.woff2") format('woff2'), url("../fonts/roboto_mono_v22/roboto_mono_v22.woff") format('woff'), url("../fonts/roboto_mono_v22/roboto_mono_v22.ttf") format('truetype');
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
|
|
:root {
|
|
--admin-black-color: #000000;
|
|
--admin-grey-color: #5A5656;
|
|
--admin-red-color: #FF0000;
|
|
--admin-white-color: #FFFFFF;
|
|
--adming-yellow-color: #FFC800;
|
|
--body-margin: 0.375em;
|
|
font-family: "Roboto Mono", sans-serif;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
a, body {
|
|
color: var(--admin-white-color);
|
|
}
|
|
|
|
a:visited {
|
|
color: unset;
|
|
}
|
|
|
|
body {
|
|
margin: var(--body-margin);
|
|
}
|
|
|
|
button {
|
|
align-items: center;
|
|
border-radius: 1em;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
button, input, select {
|
|
background-color: transparent;
|
|
border-color: var(--admin-white-color);
|
|
border-style: solid;
|
|
border-width: 0.125em;
|
|
color: var(--admin-white-color);
|
|
font-family: "Roboto Mono", sans-serif;
|
|
font-size: 1em;
|
|
margin: 1em;
|
|
padding: 0.25em;
|
|
}
|
|
|
|
header {
|
|
align-content: center;
|
|
align-items: center;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
header a {
|
|
border-radius: 1em;
|
|
border-style: solid;
|
|
border-width: 0.125em;
|
|
font-size: 1.25em;
|
|
margin: 1em;
|
|
padding: 0.5em;
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:focus, a:hover {
|
|
background-color: var(--admin-white-color);
|
|
color: var(--admin-grey-color);
|
|
}
|
|
|
|
a:focus > .action_icon, .action_button:focus > .action_icon, a:hover > .action_icon, .action_button:hover > .action_icon {
|
|
fill: var(--admin-grey-color);
|
|
}
|
|
|
|
html {
|
|
background-color: var(--admin-grey-color);
|
|
margin: 0;
|
|
}
|
|
|
|
svg {
|
|
fill: var(--admin-white-color);
|
|
}
|
|
|
|
.action_button:focus, .action_button:hover {
|
|
background-color: var(--admin-white-color);
|
|
color: var(--admin-grey-color);
|
|
}
|
|
|
|
.action_icon {
|
|
height: 2em;
|
|
transition-property: fill !important;
|
|
width: 2em;
|
|
}
|
|
|
|
.page_category {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.page_category, .page_title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.page_category, .page_description, .page_title {
|
|
margin: 1em;
|
|
text-align: center;
|
|
}
|
|
|
|
.page_description {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.page_title {
|
|
font-size: 3em;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.short_color_transition {
|
|
transition-property: background-color, color;
|
|
transition-duration: 0.25s;
|
|
transition-timing-function: linear;
|
|
}
|
|
|
|
.short_color_transition:hover {
|
|
transition-duration: 0.25s;
|
|
transition-timing-function: linear;
|
|
}
|
|
|
|
#places>section {
|
|
border: thin solid red;
|
|
padding: 5px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
#section>input{
|
|
width: 100%;
|
|
}
|