skipper-organisms
Version:
A vanilla JavaScript library for skipperhospitality management
313 lines (280 loc) • 7.52 kB
CSS
/* Import your css file here */
@import url('https://fonts.cdnfonts.com/css/abeezee');
/* @charset "UTF-8"; */
.daypicker-range {
--daypicker-primary-color: #F6F4F2;
--daypicker-inactive-color: #94A3B8;
--daypicker-active-color: #d1d106;
--daypicker-border: #fff;
--bg-daypicker-inactive-color: #2E5162;
--bg-daypicker: #253846;
--bg-daypicker-range: #253846;
--daypicker-border: #ccc;
--daypicker-accent-color: #bebe04;
--primary-font: "ABeeZee", sans-serif;
z-index: 9999;
display: block;
position: relative;
color: var(--daypicker-primary-color); /*COLOR: #2E5162*/
background: var(--bg-daypicker);
/* border: 1px solid var(--daypicker-border);
border-bottom-color: var(--daypicker-border); */
font-family: var(--primary-font);
}
.days-name {
height: 32px;
}
/*
th {
width: 65px;
} */
.daypicker-range:before,
.daypicker-range:after {
content: " ";
display: table;
}
.daypicker-range:after {
clear: both;
}
.daypicker-range.is-hidden {
display: none;
}
.daypicker-range.is-bound {
position: absolute;
box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.5);
}
.daypicker-lendar {
float: left;
width: 324px; /*TODO: set width here*/
margin: 8px;
}
@media (max-width: 767px) {
.daypicker-lendar {
float: left;
width: 100%; /*TODO: set width here*/
margin: 0;
}
}
.daypicker-title {
position: relative;
text-align: center;
padding: 16px 24px;
border-top: 1px solid var(--daypicker-primary-color); /*set title border*/
border-bottom: 1px solid var(--daypicker-primary-color); /*set title border*/
}
.daypicker-label {
display: inline-block;
position: relative;
z-index: 9999;
overflow: hidden;
margin: 0;
/* padding: 5px 3px; */
font-size: 20px;
line-height: 24px;
font-weight: bold;
background-color: var(--bg-daypicker-range);
}
.daypicker-title select {
cursor: pointer;
position: absolute;
z-index: 9998;
margin: 0;
left: 0;
top: 5px;
opacity: 0;
}
.daypicker-prev,
.daypicker-next {
display: block;
cursor: pointer;
position: relative;
outline: none;
border: 0;
padding: 0;
width: 20px;
height: 30px;
/* hide text using text-indent trick, using width value (it's enough) */
text-indent: 20px;
white-space: nowrap;
overflow: hidden;
background-color: transparent;
background-position: center center;
background-repeat: no-repeat;
background-size: 10 20;
opacity: 0.5;
}
.daypicker-prev:hover,
.daypicker-next:hover {
opacity: 1;
}
.daypicker-prev {
float: left;
width: 13px;
height: 22px;
position: relative;
}
.daypicker-prev::before {
content:"";
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 22' width='13' height='22' fill='none'><g><path d='M12 21L2 11L12 1' stroke='white' stroke-width='2'/></g></svg>") no-repeat;
/* -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 22' width='13' height='22' fill='none'><g><path d='M1 1L11 11L1 21' stroke='white' stroke-width='2'/></g></svg>") no-repeat; */
background:var(--daypicker-primary-color);
border-radius: 16px;
}
.daypicker-next {
float: right;
width: 13px;
height: 22px;
position: relative;
/* background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 22' width='13' height='22' fill='none'><g><path d='M1 1L11 11L1 21' stroke='red' stroke-width='2'/></g></svg>") no-repeat; */
/* background: var(--daypicker-primary-color);
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 129 129'%3E%3Cpath d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z' /%3E%3C/svg%3E") ;
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 129 129'%3E%3Cpath d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z' /%3E%3C/svg%3E"); */
}
.daypicker-next::before {
content:"";
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 22' width='13' height='22' fill='none'><g><path d='M1 1L11 11L1 21' stroke='white' stroke-width='2'/></g></svg>") no-repeat;
background:var(--daypicker-primary-color);
border-radius: 16px;
}
.daypicker-prev.is-disabled,
.daypicker-next.is-disabled {
cursor: default;
opacity: 0.2;
}
.daypicker-select {
display: inline-block;
}
.daypicker-table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
border: 0;
}
.daypicker-table th,
.daypicker-table td {
width: 14.285714285714286%;
padding: 0;
}
.daypicker-table th {
/* color: #999; */
font-size: 12px;
line-height: 16px;
font-weight: bold;
text-align: center;
}
.daypicker-button {
cursor: pointer;
height: 52px;
display: block;
box-sizing: border-box;
-moz-box-sizing: border-box;
outline: none;
border: 0;
margin: 0;
width: 100%;
padding: 8px;
color: var(--daypicker-primary-color);
font-size: 16px;
text-align: center;
background: var(--bg-daypicker-range);
font-family: var(--primary-font);
}
@media (max-width: 767px) {
.daypicker-button {
/* height: 38px; */
font-size: 16px;
line-height: 18px;
}
}
.is-today .daypicker-button {
color: var(--daypicker-active-color);
font-weight: bold;
}
.is-inBetween .daypicker-button{
color: var(--daypicker-primary-color);
/* font-weight: bold;
box-shadow: inset 0 1px 3px #857550; */
background: var(--daypicker-active-color);
/* border-radius: 3px; */
}
.is-selected .daypicker-button {
color: var(--daypicker-primary-color);
font-weight: bold;
background: var(--daypicker-active-color);
box-shadow: inset 0 1px 3px var(--daypicker-active-color);
/* border-radius: 3px; */
}
.is-disabled .daypicker-button,
.is-inrange .daypicker-button {
background: var(--bg-daypicker-inactive-color);
}
.is-disabled .daypicker-button {
pointer-events: none;
cursor: default;
/* color: #999; */
color: var(--daypicker-inactive-color);
opacity: 0.3;
}
.is-selection-disabled {
pointer-events: none;
cursor: default;
}
.daypicker-row {
border-left: 1px solid var(--daypicker-border);
border-top: 1px solid var(--daypicker-border);
}
.daypicker-row td {
border-right: 1px solid var(--daypicker-border);
border-bottom: 1px solid var(--daypicker-border);
}
.daypicker-button:hover,
.daypicker-row.pick-whole-week:hover .daypicker-button {
color: var(--daypicker-primary-color);
background: var(--daypicker-accent-color);
box-shadow: none;
/* border-radius: 3px; */
}
/* styling for abbr */
.daypicker-table abbr {
border-bottom: none;
cursor: help;
}
.day-box{
display: flex;
flex-direction: column;
text-align: center;
}
.day-date{
text-align: right;
font-size: 20px;
}
.day-price{
text-align: left;
font-size: 10px;
line-height: 16px;
}
/* Mobile view */
@media (max-width: 767px) {
.daypicker-range {
position: inherit;
}
.daypicker-range.is-bound {
box-shadow: none;
}
}
/* Tab and desktop view */
@media (min-width: 768px) {
.daypicker-range {
position: absolute ;
}
}