mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Merge pull request #11064 from randi2kewl/todo-calendar-highlight-today
Added a highlight on today's date in To-Dos cal
This commit is contained in:
26
website/client/assets/scss/datepicker.scss
Normal file
26
website/client/assets/scss/datepicker.scss
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
.vdp-datepicker .vdp-datepicker__calendar {
|
||||||
|
|
||||||
|
.cell:not(.blank):not(.disabled).day:hover {
|
||||||
|
border-radius: 2px;
|
||||||
|
border: 1px solid $purple-400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cell.selected,
|
||||||
|
.cell.selected.highlighted,
|
||||||
|
.cell.selected:hover {
|
||||||
|
color: $white;
|
||||||
|
background: $purple-300;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cell.highlighted {
|
||||||
|
background: rgba($purple-400, 0.24);
|
||||||
|
color: $purple-200;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cell.highlighted,
|
||||||
|
.cell.selected {
|
||||||
|
border-radius: 2px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -37,3 +37,4 @@
|
|||||||
@import './iconalert';
|
@import './iconalert';
|
||||||
@import './tiers';
|
@import './tiers';
|
||||||
@import './payments';
|
@import './payments';
|
||||||
|
@import './datepicker.scss';
|
||||||
@@ -88,7 +88,8 @@
|
|||||||
:clearButtonText='$t("clear")',
|
:clearButtonText='$t("clear")',
|
||||||
:todayButton='!challengeAccessRequired',
|
:todayButton='!challengeAccessRequired',
|
||||||
:todayButtonText='$t("today")',
|
:todayButtonText='$t("today")',
|
||||||
:disabled-picker='challengeAccessRequired'
|
:disabled-picker='challengeAccessRequired',
|
||||||
|
:highlighted='calendarHighlights'
|
||||||
)
|
)
|
||||||
.option(v-if="task.type === 'daily'")
|
.option(v-if="task.type === 'daily'")
|
||||||
.form-group
|
.form-group
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
:clearButton="false",
|
:clearButton="false",
|
||||||
:todayButton="!challengeAccessRequired",
|
:todayButton="!challengeAccessRequired",
|
||||||
:todayButtonText="$t('today')",
|
:todayButtonText="$t('today')",
|
||||||
:disabled-picker="challengeAccessRequired"
|
:disabled-picker="challengeAccessRequired",
|
||||||
|
:highlighted='calendarHighlights'
|
||||||
)
|
)
|
||||||
.option(v-if="task.type === 'daily'")
|
.option(v-if="task.type === 'daily'")
|
||||||
.form-group
|
.form-group
|
||||||
@@ -721,6 +723,7 @@ export default {
|
|||||||
con: 'constitution',
|
con: 'constitution',
|
||||||
per: 'perception',
|
per: 'perception',
|
||||||
},
|
},
|
||||||
|
calendarHighlights: { dates: [new Date()]},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
|||||||
Reference in New Issue
Block a user