Content deleted Content added
label styles should be ok since they are overridden at the end anyway |
make sure styles intended for mobile-only and desktop-only are properly targeted |
||
Line 4:
}
/*
.randomSlideshow-container .randomSlideshow-sr-only {▼
display:block;▼
width:1px;▼
height:1px;▼
text-indent:-999px;▼
overflow:hidden;▼
}▼
/*******************************************************************************
* MOBILE-ONLY STYLES
*******************************************************************************
* Mobile-only can targeted by prefixing these selectors:
*
* .randomSlideshow-container ul.gallery:first-child
*
* This is becaue the div with class "nomobile" only gets included in the html
* for the desktop website, and not on mobile (except in Template namespace).
******************************************************************************/
/* testing the above */
.randomSlideshow-container ul.gallery:first-child {border:5px solid red}
/* Make labels sit side-by-side */
.randomSlideshow-container ul.gallery:first-child label {
display:inline-block !important; /* overrides inline style */
padding:0.2em 0.3em;
Line 13 ⟶ 34:
/* Hide the "Show all" option */
.randomSlideshow-container ul.gallery:first-child label:last-child {
display:none !important; /* overrides inline style */
▲}
▲.randomSlideshow-container .randomSlideshow-sr-only {
▲ display:block;
▲ width:1px;
▲ height:1px;
▲ text-indent:-999px;
▲ overflow:hidden;
}
Line 38 ⟶ 51:
}
/* == On desktop, hide all the switcher labels == */▼
/*******************************************************************************
* DESKTOP-ONLY STYLES
*******************************************************************************
* Desktop-only can targeted by prefixing these selectors:
*
* .randomSlideshow-container .nomobile+ul
*
* This is becaue the div with class "nomobile" is only get included in the html
* for the desktop website, and not on mobile (except in Template namespace).
******************************************************************************/
/* testing the above */
.randomSlideshow-container .nomobile+ul {border:5px solid green}
.randomSlideshow-container .nomobile+ul label {
display:none !important; /* overrides inline style */
|