Files
spothole/webassets/css/style.css
2025-10-21 14:02:43 +01:00

254 lines
4.1 KiB
CSS

/* NAVIGATION */
.navbar-nav .nav-link.active {
font-weight: bold;
}
/* INTRO/WARNING BOXES */
#intro-box {
display: none;
}
/* GENERAL PAGE LAYOUT */
div.container {
display:grid;
grid-template-rows:auto 1fr auto;
grid-template-columns:100%;
/* fallback height */
min-height:100vh;
/* new small viewport height for modern browsers */
min-height:100svh;
}
/* ABOUT PAGE*/
#info-container{
width: 100%;
}
@media (min-width: 768px) {
#info-container{
max-width: 60em;
margin: 0 auto;
}
}
/* SPOTS/ALERTS PAGES, SETTINGS/STATUS AREAS */
div.appearing-panel {
display: none;
}
button#add-spot-button {
display: none;
}
.spothole-card-text {
line-height: 2.5em !important;
}
/* SPOTS/ALERTS PAGES, MAIN TABLE */
/* Custom version of Bootstrap table colouring to colour 2 in every 4 rows, because of our second row per spot that
appears on mobile */
.table-striped-custom > tbody > tr:nth-of-type(4n+3) > *,
.table-striped-custom > tbody > tr:nth-of-type(4n+4) > * {
--bs-table-color-type: var(--bs-table-striped-color);
--bs-table-bg-type: var(--bs-table-striped-bg);
}
td.nowrap, span.nowrap {
text-wrap: nowrap;
}
span.flag-wrapper {
display: inline-block;
width: 1.7em;
text-align: center;
cursor: default;
}
span.band-bullet {
display: inline-block;
cursor: default;
padding-right: 0.2em;
}
span.icon-wrapper {
display: inline-block;
width: 1.5em;
text-align: center;
cursor: default;
}
span.freq-mhz {
font-weight: bold;
}
span.freq-mhz-pad {
display: inline-block;
min-width: 1.7em;
text-align: right;
}
span.freq-khz {
padding: 0 0.2em;
}
span.freq-hz {
font-size: 0.8em;
}
span.mode-q, span.bearing-q {
padding-left: 0.5em;
font-size: 0.7em;
color: lightgray;
}
a.dx-link {
color: var(--bs-emphasis-color);
text-decoration: none;
font-weight: bold;
}
a.sig-ref-link {
color: var(--bs-emphasis-color);
text-decoration: none;
}
/* QRT/faded styles */
tr.table-faded td {
filter: grayscale(100%) opacity(30%) !important;
text-decoration: line-through !important;
}
tr.table-faded td span {
text-decoration: line-through !important;
}
/* MAP */
div#map {
width: auto;
height: 100%;
margin: 0;
overflow: hidden;
cursor: default;
font-size: 16px;
}
.leaflet-container {
font-family: var(--bs-body-font-family) !important;
}
/* BANDS PANEL */
div#bands-container {
margin: 0;
padding: 0;
overflow-x: auto;
overflow-y: auto;
white-space: nowrap;
display: flex;
overscroll-behavior-x: none;
}
div.bandCol {
min-width: 8em;
display: flex;
flex-flow: column;
overflow-y: clip;
}
div.bandColHeader {
flex: 0 1 auto;
text-align: center;
font-weight: bold;
padding: 0.5em;
}
div.bandColMiddle {
flex: 1 1 auto;
margin-left: 3px;
border-left: 2px dotted var(--text);
}
div.bandColMiddle ul {
display: table;
table-layout: fixed;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-left: 2px dotted;
}
div.bandColMiddle ul li {
display: table-row;
line-height: 0.5em;
}
/*noinspection CssUnusedSymbol*/
div.bandColMiddle ul li.withSpots {
line-height: 1em;
}
div.bandColMiddle ul li span {
display: table-cell;
vertical-align: middle;
}
div.bandColSpot {
display: block;
border-radius: 3px;
padding: 3px;
background: lightyellow;
margin: 0.1em 2em 0.1em 0.3em;
}
span.bandColSpot {
vertical-align: bottom;
display: inline !important;
}
/* Don't wrap frequencies */
span.bandColSpotFreq {
white-space: nowrap;
display: inline !important;
}
span.bandColSpotMode {
padding-left: 0.5em;
font-size: 0.8em;
line-height: 0.4em;
}
/* GENERAL MOBILE SUPPORT */
@media (max-width: 991.99px) {
.hideonmobile {
display: none !important;
}
div#map, div#table-container, div#bands-container {
margin-left: -1em;
margin-right: -1em;
}
}
@media (min-width: 992px) {
.hidenotonmobile {
display: none !important;
}
}