Skip to content

Commit

Permalink
refactor(css): move global styles to main css
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Jan 17, 2025
1 parent 78fc378 commit 3189c96
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions frontend/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ html {
}

html {
--border-color: var(--gray-5);

accent-color: var(--brand);
background-color: var(--surface-1);
block-size: 100%;
Expand Down Expand Up @@ -159,6 +161,42 @@ img {
color: var(--brand, var(--link));
}

/* Map styles */
.map {
border: var(--border-size-1) solid var(--border-color);
font-family: var(--font-family);
height: 300px;
width: 100%;

:global(.maplibregl-popup-content .popup) {
max-height: 200px;
max-width: 200px;
overflow: scroll;
}
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
border-top-color: var(--surface-1) !important;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
border-right-color: var(--surface-1) !important;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
border-left-color: var(--surface-1) !important;
}
.maplibregl-popup-anchor-top .maplibregl-popup-tip {
border-bottom-color: var(--surface-1) !important;
}

.maplibregl-popup-content {
background-color: var(--surface-1) !important;
color: var(--text-1);
font-family: var(--font-family);
font-size: var(--font-size-fluid-0);
}
/* End of Map styles */

/* Slider styles */
.slider {
width: 100%;
margin-block: var(--size-3);
Expand Down Expand Up @@ -224,3 +262,4 @@ img {
pointer-events: none;
opacity: 0.5;
}
/* End of Slider styles */

0 comments on commit 3189c96

Please sign in to comment.