I have created a popup that opens when the map is loaded. This is being used as a splash screen. I have updated the CSS with the following so it looks the part:
.custom-popup, .leaflet-popup-content-wrapper {
background:#2c3e50;
color:#fff;
font-size:12px;
line-height:10px;
border-radius: 10px;
}
.custom-popup, .leaflet-popup-content-wrapper a {
color:rgba(255,255,255,0.1);
}
.custom-popup, .leaflet-popup-tip-container {
width:30px;
height:15px;
}
.custom-popup, .leaflet-popup-tip {
background: transparent;
border: none;
box-shadow: none;
}
JS:
var startpopup = L.popup({
closeButton: true,
autoClose: true,
keepInView: true
})
.setLatLng(map.getBounds().getCenter())
.setContent('<p>DISCLAIMER TEXT.</p>')
.openOn(map);
However this is applied to all my popups that I have created for my different layers. I only want the above CSS applied to my splash screen popup. How do I revert back to the original CSS for popups after the splash screen popup is removed?