-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1026 from geoadmin/fix-PB-830-diemo-popup
PB-830 : add specific (S)CSS for Diemo popup - #patch
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters