File tree Expand file tree Collapse file tree 5 files changed +39
-756
lines changed
stylesheets/views/_landing_page
views/landing_page/blocks Expand file tree Collapse file tree 5 files changed +39
-756
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
206
206
207
207
const popupHeading = document . createElement ( 'h3' )
208
208
popupHeading . classList . add ( 'govuk-heading-m' )
209
+ popupHeading . classList . add ( 'map-popup__heading' )
209
210
popupHeading . setAttribute ( 'data-ga4-text' , '' )
210
211
const popupBody = document . createElement ( 'div' )
211
212
@@ -250,7 +251,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
250
251
popupContainer . appendChild ( popupHeading )
251
252
popupContainer . appendChild ( popupBody )
252
253
253
- const popup = layer . bindPopup ( popupContainer )
254
+ const popup = layer . bindPopup ( popupContainer , { maxWidth : 250 } )
254
255
popup . on ( 'popupopen' , ( e ) => {
255
256
if ( ftGeomType === 'Point' ) e . target . setIcon ( this . context . icons [ lyrPane ] . active )
256
257
else e . target . setStyle ( { fillOpacity : 0.3 } )
Original file line number Diff line number Diff line change 1
1
@import " govuk_publishing_components/individual_component_support" ;
2
+ @import " leaflet/dist/leaflet" ;
2
3
3
4
.map {
4
5
display : none ;
20
21
padding : 0 ;
21
22
height : 800px ;
22
23
background-color : #d7e0e5 ;
24
+
25
+ @include govuk-media-query ($until : tablet) {
26
+ max-height : 80vh ;
27
+ }
23
28
}
24
29
25
30
.map__key {
56
61
.map__key-item--ics ::before {
57
62
background-image : url (" landing_page/map/IC-symbol-key.svg" );
58
63
}
64
+
65
+ .map-popup__heading {
66
+ @include govuk-media-query ($until : tablet) {
67
+ padding-right : govuk-spacing (4 );
68
+ }
69
+ }
70
+
71
+ // leaflet plugin default style overrides
72
+
73
+ .leaflet-container img .leaflet-tile { // stylelint-disable-line selector-no-qualifying-type
74
+ // See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120
75
+ mix-blend-mode : normal ;
76
+ width : 256px !important ; // stylelint-disable-line declaration-no-important
77
+ height : 256px !important ; // stylelint-disable-line declaration-no-important
78
+ }
79
+
80
+ .leaflet-popup-content {
81
+ @include govuk-media-query ($until : tablet) {
82
+ margin : govuk-spacing (2 );
83
+ }
84
+
85
+ p {
86
+ margin : 0 0 govuk-spacing (1 );
87
+ }
88
+ }
89
+
90
+ .leaflet-container a .leaflet-popup-close-button { // stylelint-disable-line selector-no-qualifying-type
91
+ width : 35px ;
92
+ height : 35px ;
93
+ font : 24px / 35px Tahoma , Verdana , sans-serif ;
94
+ font-weight : bold ;
95
+ }
You can’t perform that action at this time.
0 commit comments