export const rangeCss = /* css */ ` :host { --color-bg-inrange: var(--ease-color-bg-inrange, #e6effe); --color-bg-tooltip: var(--ease-color-bg-tooltip, #fff); --color-fg-tooltip: var(--ease-color-fg-tooltip, #1e293b); } .range-plugin-tooltip { background-color: var(--color-bg-tooltip); border-radius: var(--border-radius); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); color: var(--color-fg-tooltip); font-size: 12px; margin-top: -4px; padding: 4px 8px; pointer-events: none; position: absolute; visibility: hidden; white-space: nowrap; z-index: 2; } .range-plugin-tooltip:before { border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid rgba(0, 0, 0, 0.12); bottom: -5px; content: ""; left: calc(50% - 5px); position: absolute; } .range-plugin-tooltip:after { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--color-bg-tooltip); bottom: -4px; content: ""; left: calc(50% - 4px); position: absolute; } .container.range-plugin .calendar > .days-grid > .day { position: relative; } .container.range-plugin .calendar > .days-grid > .day.in-range:last-of-type { border-bottom-right-radius: var(--border-radius); border-top-right-radius: var(--border-radius); } .container.range-plugin .calendar > .days-grid > .day.in-range { background-color: var(--color-bg-inrange); border-radius: 0; } .container.range-plugin .calendar > .days-grid > .day.end, .container.range-plugin .calendar > .days-grid > .day.start { background-color: var(--color-fg-primary); color: var(--color-fg-selected); } .container.range-plugin .calendar > .days-grid > .day.start { border-bottom-right-radius: 0; border-top-right-radius: 0; } .container.range-plugin .calendar > .days-grid > .day.start:after { border: 8px solid transparent; border-left: 8px solid var(--color-fg-primary); content: ""; pointer-events: none; position: absolute; right: -14px; z-index: 2; } .container.range-plugin .calendar > .days-grid > .day.start.flipped { border-bottom-left-radius: 0; border-bottom-right-radius: var(--border-radius); border-top-left-radius: 0; border-top-right-radius: var(--border-radius); } .container.range-plugin .calendar > .days-grid > .day.start.flipped:after { border-left-color: transparent; border-right-color: var(--color-fg-primary); left: -14px; right: auto; } .container.range-plugin .calendar > .days-grid > .day.end { border-bottom-left-radius: 0; border-top-left-radius: 0; } .container.range-plugin .calendar > .days-grid > .day.end:after { border: 8px solid transparent; border-right: 8px solid var(--color-fg-primary); content: ""; left: -14px; pointer-events: none; position: absolute; z-index: 2; } .container.range-plugin .calendar > .days-grid > .day.end.flipped { border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: 0; border-top-left-radius: var(--border-radius); border-top-right-radius: 0; } .container.range-plugin .calendar > .days-grid > .day.end.flipped:after { border-left-color: var(--color-fg-primary); border-right-color: transparent; left: auto; right: -14px; } .container.range-plugin .calendar > .days-grid > .day.start.end { border-radius: var(--border-radius); } .container.range-plugin .calendar > .days-grid > .day.start.end:after { content: none; } .container.range-plugin .calendar > .days-grid > div:not(.day) + .day.in-range { border-bottom-left-radius: var(--border-radius); border-top-left-radius: var(--border-radius); } .container.range-plugin .calendar > .days-grid > div:nth-child(7n).in-range { border-bottom-right-radius: var(--border-radius); border-top-right-radius: var(--border-radius); } .container.range-plugin .calendar > .days-grid > div:nth-child(7n + 1).in-range { border-bottom-left-radius: var(--border-radius); border-top-left-radius: var(--border-radius); } `;