postnummer-app/frontend/style.css

227 lines
4.0 KiB
CSS
Raw Normal View History

2023-02-06 20:11:19 +00:00
@font-face {
font-family: "JetBrains Mono";
src: url("assets/JetBrainsMono-Regular.woff2");
}
@font-face {
font-family: "JetBrains Mono Bold";
src: url("assets/JetBrainsMono-Bold.woff2");
2023-02-06 20:11:19 +00:00
}
2023-02-06 15:48:11 +00:00
2023-02-08 10:40:31 +00:00
*, *::before, *::after {
2023-02-06 15:48:11 +00:00
box-sizing: border-box;
}
2023-02-08 10:40:31 +00:00
:root {
--brand-200: #D55D91;
--brand-300: #D14D86;
--brand: #C33271;
--brand-700: #0D3B45;
--brand-800: #0A2E36;
--brand-900: #061D22;
--light: #FFF;
--topbar-offset: 4rem;
}
2023-02-06 15:48:11 +00:00
body {
margin: 0;
height: 100vh;
2023-02-06 18:39:22 +00:00
font-family: "Open Sans", sans-serif;
2023-02-08 10:40:31 +00:00
background-color: var(--brand-900);
color: var(--light);
2023-02-06 18:39:22 +00:00
}
#topbar {
2023-02-08 10:40:31 +00:00
display: flex;
background-color: var(--brand);
color: var(--light);
2023-02-06 18:39:22 +00:00
text-align: center;
2023-02-08 10:40:31 +00:00
padding: 1rem 2rem;
box-shadow: 0px 5px 1px RGBA(127, 127, 127, 0.2);
2023-02-06 18:39:22 +00:00
}
2023-02-08 10:40:31 +00:00
#topbar h1 {
align-self: center;
2023-02-06 18:39:22 +00:00
margin: 0;
2023-02-08 10:40:31 +00:00
font-size: 1.5rem;
}
#dropdown-button {
border: none;
background-color: transparent;
2023-02-06 18:39:22 +00:00
font-size: 2rem;
2023-02-08 10:40:31 +00:00
transform: scale(1.5);
color: inherit;
margin-left: auto;
padding: 0 0.5rem;
transition: transform 0.2s;
cursor: pointer;
}
#dropdown-button:hover, #dropdown-button:focus {
transform: scale(1.7);
}
2023-02-08 12:25:02 +00:00
#dropdown-button:focus-visible {
2023-02-08 10:40:31 +00:00
outline: none;
background-color: var(--brand-300);
2023-02-08 12:25:02 +00:00
border-radius: 5px;
2023-02-08 10:40:31 +00:00
}
#dropdown-button:active {
transform: scale(2);
}
#dropdown {
position: absolute;
display: flex;
flex-direction: column;
top: var(--topbar-offset);
right: 0;
box-shadow: 0px 5px 1px RGBA(127, 127, 127, 0.2);
transform: scaleY(0);
transition: transform 0.2s;
transform-origin: 0% 0%;
2023-02-08 10:44:30 +00:00
border-radius: 0 0 0 5px;
2023-02-06 15:48:11 +00:00
}
2023-02-08 10:40:31 +00:00
#dropdown.enabled, #dropdown:focus-within {
transform: scaleY(1);
}
#dropdown a {
2023-02-08 10:44:30 +00:00
background-color: var(--brand);
2023-02-08 10:40:31 +00:00
color: var(--light);
padding: 1rem 1rem;
font-weight: bold;
text-decoration: none;
outline: none;
}
2023-02-08 12:25:02 +00:00
#dropdown a:hover, #dropdown a:focus {
2023-02-08 10:40:31 +00:00
background-color: var(--brand-300);
}
2023-02-08 10:44:30 +00:00
#dropdown a:last-child {
border-radius: 0 0 0 5px;
}
2023-02-08 10:40:31 +00:00
2023-02-06 15:48:11 +00:00
main {
text-align: center;
2023-02-06 18:39:22 +00:00
padding: 1rem;
margin: auto;
2023-02-08 10:40:31 +00:00
max-width: 1000px;
2023-02-06 18:39:22 +00:00
}
main > * {
2023-02-08 10:40:31 +00:00
margin-block: 2px;
2023-02-06 18:39:22 +00:00
}
2023-02-06 20:11:19 +00:00
code {
font-family: "JetBrains Mono Bold", monospace;
2023-02-06 20:11:19 +00:00
}
2023-02-06 18:39:22 +00:00
#search-bar {
width: 100%;
display: flex;
flex-direction: row;
2023-02-06 20:11:19 +00:00
margin-bottom: 15px;
2023-02-06 18:39:22 +00:00
}
#search-input {
2023-02-08 10:40:31 +00:00
transition: background-color 0.2s;
background-color: var(--brand-800);
2023-02-06 20:11:19 +00:00
flex: 1;
2023-02-08 10:40:31 +00:00
color: var(--light);
2023-02-06 20:11:19 +00:00
border-radius: 5px 0 0 5px;
2023-02-08 10:40:31 +00:00
border: none;
padding: 1rem;
2023-02-06 18:39:22 +00:00
}
#search-input:focus {
2023-02-08 10:40:31 +00:00
background-color: var(--brand-700);
2023-02-06 20:11:19 +00:00
outline: none;
2023-02-06 18:39:22 +00:00
}
#search-button {
2023-02-06 20:11:19 +00:00
cursor: pointer;
2023-02-06 18:39:22 +00:00
width: 5rem;
2023-02-08 10:40:31 +00:00
background-color: var(--brand);
color: var(--light);
2023-02-06 20:11:19 +00:00
border: none;
border-radius: 0 5px 5px 0;
transition-duration: 0.2s;
}
#search-button:hover, #search-button:focus {
2023-02-08 10:40:31 +00:00
background-color: var(--brand-300);
2023-02-06 20:11:19 +00:00
outline: none;
}
#search-button:active {
2023-02-08 10:40:31 +00:00
background-color: var(--brand-200);
2023-02-06 15:48:11 +00:00
}
#map {
2023-02-06 18:39:22 +00:00
width: 100%;
2023-02-06 20:11:19 +00:00
border-radius: 5px;
}
#info {
2023-02-08 10:40:31 +00:00
background-color: var(--brand-800);
padding: 1rem;
2023-02-06 20:11:19 +00:00
border-radius: 5px;
font-size: 1.1em;
}
#mouse-position, #coords {
2023-02-08 10:52:19 +00:00
color: white;
opacity: 0.5;
2023-02-06 20:11:19 +00:00
font-size: 0.9em;
2023-02-06 18:39:22 +00:00
}
#dot {
2023-02-09 10:05:56 +00:00
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid black;
2023-02-08 10:40:31 +00:00
background-color: var(--brand);
2023-02-08 10:44:19 +00:00
filter: drop-shadow(1px 1px 2px black);
2023-02-09 10:05:56 +00:00
transform: translate(-8px, -8px);
2023-02-08 11:18:48 +00:00
position: absolute;
display: none;
2023-02-09 10:05:56 +00:00
z-index: 2;
}
2023-02-08 10:44:19 +00:00
#tooltip {
display: none;
2023-02-08 10:52:19 +00:00
position: fixed;
2023-02-08 10:44:19 +00:00
background-color: white;
color: black;
padding: 5px;
border: 1px solid black;
box-shadow: 2px 2px 2px black;
transition: opacity 0.2s;
}
2023-02-09 09:03:36 +00:00
#boundary {
position: absolute;
background-color: var(--brand);
2023-02-09 10:05:56 +00:00
background-color: rgba(146, 38, 85, 0.3);
border: 1px dashed var(--brand);
2023-02-09 09:03:36 +00:00
pointer-events: none;
}
2023-02-08 10:44:19 +00:00
@media screen and (max-width: 1000px) {
main {
width: 100%;
}
}
2023-02-09 12:55:25 +00:00
#reviews-title {
display: flex;
justify-content: center;
}