Skip to content

Commit

Permalink
Merge pull request #1026 from geoadmin/fix-PB-830-diemo-popup
Browse files Browse the repository at this point in the history
PB-830 : add specific (S)CSS for Diemo popup - #patch
  • Loading branch information
pakb authored Aug 9, 2024
2 parents d9f80d1 + ded56fe commit 4328560
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
67 changes: 67 additions & 0 deletions src/scss/diemo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// loosely copied from https://raw.githubusercontent.com/geoadmin/mf-geoadmin3/master/src/style/diemo.less
// and adapted to SCSS (plus have a CSS grid in evse-data)

/* DIEMO */

$diemo_green: rgb(49,169,80);
$diemo_red: rgb(245,6,58);
$diemo_yellow: rgb(233,188,114);
$diemo_grey: rgb(130,131,133);
$diemo_lightgrey: #efefef;

.evse-data {
display: grid;
grid-template-columns: repeat(3, 1fr);
padding-bottom: 1rem;
width: 100%;
}

.htmlpopup-container .htmlpopup-content {
.evse-overview {
margin: 0.25rem;

td, th {
border: 2px solid $diemo_grey;
padding: 0.25rem;
text-align: center;
}
th {
background-color:$diemo_grey;
color: white;
min-height: 30px;
}
&.status-occupied {
th {
background-color:$diemo_red;
}
th, td {
border-color : $diemo_red;
}
}
&.status-reserved {
th {
background-color:$diemo_yellow;
}
th, td {
border-color: $diemo_yellow;
}
}
&.status-available {
th {
background-color: $diemo_green;
}
th, td {
border-color: $diemo_green;
}
}
&.status-unknown {
th {
background-color: $diemo_lightgrey;
color: black;
}
th, td {
border-color: $diemo_lightgrey;
}
}
}
}
1 change: 1 addition & 0 deletions src/scss/webmapviewer-bootstrap-theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import 'variables.module';
@import 'variables-admin.module';
@import 'diemo';

// Override bootstrap variables here
$card-cap-padding-y: 0.25rem;
Expand Down

0 comments on commit 4328560

Please sign in to comment.