145 lines
4.0 KiB
CSS
145 lines
4.0 KiB
CSS
/* Yacht Calendar (All) — wspólny widok wszystkich jachtów.
|
|
Layout, instrukcja, legenda i formularz dziedziczą z calendar.css
|
|
(klasy .yacht-inquiry-layout, .yacht-calendar-instructions, .yacht-calendar-legend,
|
|
.yacht-inquiry-form-container, .yacht-inquiry-form). Tutaj tylko nadpisania
|
|
specyficzne dla widgetu zbiorczego. */
|
|
|
|
.yacht-calendar-all-wrapper {
|
|
max-width: 1200px;
|
|
margin: 0 auto 40px;
|
|
padding: 20px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.yacht-calendar-all {
|
|
width: 100%;
|
|
/* Ciemne granatowe tło — emuluje styl /rezerwacja-maja/ gdzie komórki bg-event
|
|
są semi-transparent (#f5f9ff @ 0.66) nad ciemnym tłem parent containera. */
|
|
background: #0e2036;
|
|
}
|
|
|
|
/* Komórki przyszłe — semi-transparent biały, daje ciemnoszary efekt nad #0e2036
|
|
(efekt identyczny jak yacht-day-available bg-event w single-yacht widget). */
|
|
.yacht-calendar-all .fc-daygrid-day {
|
|
background: rgba(245, 249, 255, 0.4);
|
|
}
|
|
|
|
/* Przeszłe — białe (jak yacht-day-available .fc-event-past w single-yacht). */
|
|
.yacht-calendar-all .fc-daygrid-day.fc-day-past {
|
|
background: #ffffff;
|
|
}
|
|
|
|
/* Dziś — lekko jaśniejszy ciemny. */
|
|
.yacht-calendar-all .fc-daygrid-day.fc-day-today {
|
|
background: rgba(255, 255, 255, 0.55);
|
|
}
|
|
|
|
/* Sąsiedni miesiąc — taki sam jak przyszłe (spójny ciemny). */
|
|
.yacht-calendar-all .fc-daygrid-day.fc-day-other {
|
|
background: rgba(245, 249, 255, 0.32);
|
|
}
|
|
|
|
|
|
/* Select w formularzu zapytania — calendar.css nie ma reguł dla <select>,
|
|
wymuszamy ten sam styl co inputy (ciemnoprzezroczysty, biały tekst, custom strzałka). */
|
|
.yacht-inquiry-form select {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid hsla(0, 0%, 100%, 0.2);
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
transition: border-color 0.3s ease, box-shadow 0.3s ease;
|
|
background-color: hsla(0, 0%, 100%, 0.1);
|
|
color: #fff;
|
|
box-sizing: border-box;
|
|
font-family: inherit;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none'/></svg>");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
padding-right: 32px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.yacht-inquiry-form select:focus {
|
|
outline: none;
|
|
border-color: #bc1834;
|
|
box-shadow: 0 0 0 3px rgba(188, 24, 52, 0.3);
|
|
background-color: hsla(0, 0%, 100%, 0.15);
|
|
}
|
|
|
|
.yacht-inquiry-form select option {
|
|
background: #021526;
|
|
color: #fff;
|
|
}
|
|
|
|
/* Event styling — pełne wypełnienie kafelka kolorem jachtu, bez kropek/czasu */
|
|
.yacht-calendar-all .fc-event {
|
|
border: none !important;
|
|
padding: 0 1px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: #fff;
|
|
cursor: default;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.yacht-calendar-all .fc-event-main {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.yacht-calendar-all .fc-daygrid-event-dot,
|
|
.yacht-calendar-all .fc-event-time {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Custom kontener tytułu (renderowany przez eventContent w JS). */
|
|
.yacht-calendar-all .yc-event-title {
|
|
padding: 0 2px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
line-height: 1.3;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Pasek eventu wyższy + gap między dziennymi segmentami (rezerwacja wielonocna
|
|
= N osobnych pasków zamiast jednej belki — patrz REST split per-day). */
|
|
.yacht-calendar-all .fc-daygrid-event {
|
|
min-height: 18px;
|
|
margin: 1px 0 !important;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Half-day visual: gradient wpisywany przez calendar-all.js (eventDidMount), który
|
|
liczy szerokość komórki dnia i ustawia background-image dla danego segmentu. */
|
|
|
|
/* Mobile */
|
|
@media (max-width: 600px) {
|
|
.yacht-calendar-all .fc-event {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.yacht-calendar-all .yc-event-title {
|
|
font-size: 10px;
|
|
padding: 0 1px;
|
|
}
|
|
|
|
.yacht-calendar-all .fc-toolbar.fc-header-toolbar {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
}
|