Last active
May 27, 2016 15:02
-
-
Save drwpow/cadf9c3687aa7063e81c49269ab72a2d to your computer and use it in GitHub Desktop.
CSS to hide the entire first week of a calendar on mobile, but only if none of the days in that first week are selectable (--disabled)
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
.cal-day--disabled | |
display: none | |
@media screen and (min-width: 450px) | |
display: block | |
.cal-day:not(.cal-day--disabled) | |
~ .cal-day | |
display: block | |
.cal | |
.cal-day--disabled:first-child | |
+ .cal-day--disabled | |
+ .cal-day--disabled | |
+ .cal-day--disabled | |
+ .cal-day--disabled | |
+ .cal-day--disabled | |
+ .cal-day--disabled | |
~ .cal-day | |
display: block |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment