I have this CSS which controls some modal's on the desktop version of the site.
#modal, #purchModal, #travModal, #notesModal, #explainModal
{ position: fixed; z-index: 101; top: 10%; left: 25%;
width: 50%; background:#CEECF5; border-radius:15px;
}
If the url contains '/mobile/' I would like to switch the CSS code there to
z-index: 101; top: 5%; left: 5%; width: 95%;
background:#CEECF5; border-radius:15px;
What exactly would be the best way to do this? I'd imagine I'd be using jQuery or JavaScript here