Created
May 22, 2020 14:14
-
-
Save mithicher/2266302fd2040b9acdd055b24baf224d to your computer and use it in GitHub Desktop.
Pikaday Theme - Dark version
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
.pikaday-dark { | |
--backgroundColor: #2d3748; | |
--textColor: #f7fafc; | |
--currentDateTextColor: #3182ce; | |
--selectedDateBackgroundColor: #3182ce; | |
--selectedDateTextColor: #f7fafc; | |
--labelTextColor: #3182ce; /* eg. May 2020 */ | |
--weekDaysTextColor: #a0aec0; /* eg. Mo Tu We ....*/ | |
background-color: var(--backgroundColor); | |
border-radius: 10px; | |
padding: 0.7rem; | |
z-index: 2000; | |
margin: 6px 0 0 0; | |
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15); | |
font-family: inherit; | |
} | |
.pikaday-dark.is-hidden { | |
display: none; | |
} | |
.pikaday-dark .pika-title { | |
padding: 0.2rem 0; | |
width: 100%; | |
text-align: center; | |
display: flex; | |
justify-content: flex-start; | |
} | |
/* Next/Previous */ | |
.pikaday-dark .pika-prev, | |
.pikaday-dark .pika-next { | |
position: absolute; | |
outline: none; | |
padding: 0; | |
width: 24px; | |
height: 24px; | |
top: 15px; | |
display: inline-block; | |
margin-top: 0; | |
cursor: pointer; | |
/* hide text using text-indent trick, using width value (it's enough) */ | |
text-indent: -9999px; | |
white-space: nowrap; | |
overflow: hidden; | |
background-color: transparent; | |
background-position: center center; | |
background-repeat: no-repeat; | |
opacity: .7; | |
} | |
.pikaday-dark .pika-prev:hover, | |
.pikaday-dark .pika-next:hover { | |
opacity: 1; | |
} | |
.pikaday-dark .pika-prev { | |
right: 30px; | |
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19l-7-7 7-7'%3E%3C/path%3E%3C/svg%3E"); | |
} | |
.pikaday-dark .pika-next { | |
right: 10px; | |
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E"); | |
} | |
.pika-prev.is-disabled, | |
.pika-next.is-disabled { | |
cursor: default; | |
opacity: .2; | |
} | |
.pikaday-dark .pika-label { | |
font-size: 1.2rem; | |
font-weight: 700; | |
padding-right: 4px; | |
padding-left: 4px; | |
color: var(--labelTextColor); | |
} | |
/* Show Month & Year select */ | |
.pikaday-dark .pika-select-month, | |
.pikaday-dark .pika-select-year { | |
display: none; | |
} | |
.pikaday-dark table { | |
width: 100%; | |
border-collapse: collapse; | |
} | |
.pikaday-dark table th { | |
width: 2em; | |
height: 2em; | |
font-weight: normal; | |
color: var(--weekDaysTextColor); | |
text-align: center; | |
} | |
.pikaday-dark table th abbr { | |
text-decoration: none; | |
} | |
.pikaday-dark table td { | |
padding: 1px; | |
} | |
.pikaday-dark table td button { | |
width: 2em; | |
height: 2em; | |
text-align: center; | |
border-radius: 50%; | |
} | |
.pikaday-dark table td button:hover { | |
background-color: var(--selectedDateBackgroundColor); | |
} | |
.pikaday-dark table td.is-today button { | |
color: var(--currentDateTextColor); | |
} | |
.pikaday-dark table td.is-selected button { | |
background-color: var(--selectedDateBackgroundColor); | |
} | |
.pikaday-dark table td button, | |
.pikaday-dark table td button:hover, | |
.pikaday-dark table td.is-selected button, | |
.pikaday-dark table td.is-selected button:hover { | |
color: var(--textColor); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment