mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
The due/start/end date popup's calendar now gives today's day button the is-today class and aria-current="date", and its cell is-today-cell. Today gets a ring and underline in the button's own text colour plus a subtle cell tint, so it stays visible in every board colour theme, light and dark, and in RTL. The board Calendar view keeps FullCalendar's today tint and also marks today's day number with the board theme's colour. Thanks to mimZD and xet7 ! Fixes #6751,
85 lines
2.7 KiB
CSS
85 lines
2.7 KiB
CSS
/* #6686: Today/Previous/Next/Day/Week/Month are one group on the RIGHT of
|
|
the title now (boardBody.js's headerToolbar: left: 'title', right:
|
|
'<all the buttons>') - forced to stay on one row, with the title
|
|
vertically centered against it, rather than relying on FullCalendar's
|
|
own default toolbar CSS, which wrapped the title onto its own row above
|
|
the buttons (WeKan's global `h2 { margin: 0 0 7px }` gives the toolbar
|
|
title, an <h2>, a bottom margin that a bare flex row does not clear the
|
|
way this explicit centering does). */
|
|
.calendar-view .fc-header-toolbar {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.calendar-view .fc-toolbar-chunk {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.calendar-view .fc-toolbar-title {
|
|
margin: 0;
|
|
display: inline-block;
|
|
}
|
|
|
|
.calendar-view .fc {
|
|
--fc-button-text-color: #333;
|
|
--fc-button-bg-color: #f5f5f5;
|
|
--fc-button-border-color: rgba(0, 0, 0, 0.2);
|
|
--fc-button-hover-bg-color: #e6e6e6;
|
|
--fc-button-hover-border-color: rgba(0, 0, 0, 0.25);
|
|
--fc-button-active-bg-color: #d9d9d9;
|
|
--fc-button-active-border-color: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.calendar-view .fc .fc-button-primary {
|
|
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
|
|
0 1px 2px rgba(0, 0, 0, 0.05);
|
|
background-image: linear-gradient(to bottom, #fff 0%, #e6e6e6 100%);
|
|
}
|
|
|
|
.calendar-view .fc .fc-button-primary:focus,
|
|
.calendar-view .fc .fc-button-primary:not(:disabled).fc-button-active,
|
|
.calendar-view .fc .fc-button-primary:not(:disabled):active {
|
|
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),
|
|
0 1px 2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.calendar-create-close {
|
|
min-height: auto !important;
|
|
min-width: auto !important;
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0 !important;
|
|
border: 0 !important;
|
|
background: transparent !important;
|
|
box-shadow: none !important;
|
|
color: #666 !important;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.calendar-create-close:hover,
|
|
.calendar-create-close:focus {
|
|
background: transparent !important;
|
|
color: #111 !important;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* #6751: FullCalendar already tints today's cell (.fc-day-today, a pale
|
|
--fc-today-bg-color); the day NUMBER is marked too, so today can be found at
|
|
a glance. The board theme's dark shade with white text - the same pair the
|
|
date picker's day buttons use (boardColors.css) - so it follows the board's
|
|
colour theme and keeps that contrast; the plain accent is the fallback. */
|
|
.calendar-view .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
|
|
background: var(--board-theme-dark, var(--theme-accent, #005377));
|
|
border-radius: 999px;
|
|
color: #fff;
|
|
font-weight: bold;
|
|
margin: 2px;
|
|
min-width: 1.6em;
|
|
padding-inline: 4px;
|
|
text-align: center;
|
|
}
|