Change colour of date header to white
This commit is contained in:
@@ -165,7 +165,10 @@ interface DayBodyScope {
|
|||||||
|
|
||||||
function selectBlock(event: MouseEvent, scope: DayBodyScope, block: Timeblock) {
|
function selectBlock(event: MouseEvent, scope: DayBodyScope, block: Timeblock) {
|
||||||
// TODO: Disable blocks before today with updateDisabled and/or comparison
|
// TODO: Disable blocks before today with updateDisabled and/or comparison
|
||||||
selectedBlock.value = block;
|
selectedBlock.value === block
|
||||||
|
? (selectedBlock.value = null)
|
||||||
|
: (selectedBlock.value = block);
|
||||||
|
|
||||||
emit('updateBoatTime', block);
|
emit('updateBoatTime', block);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -199,6 +202,7 @@ const disabledBefore = computed(() => {
|
|||||||
position: absolute
|
position: absolute
|
||||||
justify-content: center
|
justify-content: center
|
||||||
align-items: center
|
align-items: center
|
||||||
|
text-align: center
|
||||||
width: 100%
|
width: 100%
|
||||||
opacity: 1
|
opacity: 1
|
||||||
margin: 0px
|
margin: 0px
|
||||||
@@ -212,6 +216,7 @@ const disabledBefore = computed(() => {
|
|||||||
display: flex
|
display: flex
|
||||||
position: absolute
|
position: absolute
|
||||||
justify-content: center
|
justify-content: center
|
||||||
|
text-align: center
|
||||||
align-items: center
|
align-items: center
|
||||||
width: 100%
|
width: 100%
|
||||||
opacity: 0.5
|
opacity: 0.5
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ function dayFormatterFunc() {
|
|||||||
position: relative
|
position: relative
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 70px
|
height: 70px
|
||||||
background: $primary
|
background: white
|
||||||
display: flex
|
display: flex
|
||||||
flex-direction: row
|
flex-direction: row
|
||||||
flex: 1 0 100%
|
flex: 1 0 100%
|
||||||
@@ -164,6 +164,7 @@ function dayFormatterFunc() {
|
|||||||
overflow: hidden
|
overflow: hidden
|
||||||
border-radius: 3px
|
border-radius: 3px
|
||||||
user-select: none
|
user-select: none
|
||||||
|
margin: 2px 0px 2px
|
||||||
|
|
||||||
.dates-holder
|
.dates-holder
|
||||||
position: relative
|
position: relative
|
||||||
@@ -186,8 +187,8 @@ function dayFormatterFunc() {
|
|||||||
user-select: none
|
user-select: none
|
||||||
|
|
||||||
.direction-button
|
.direction-button
|
||||||
background: $primary
|
background: white
|
||||||
color: white
|
color: $primary
|
||||||
width: 40px
|
width: 40px
|
||||||
max-width: 50px !important
|
max-width: 50px !important
|
||||||
|
|
||||||
@@ -212,8 +213,8 @@ function dayFormatterFunc() {
|
|||||||
font-size: 3em
|
font-size: 3em
|
||||||
|
|
||||||
.date-button
|
.date-button
|
||||||
color: white
|
color: $primary
|
||||||
background: $primary
|
background: white
|
||||||
z-index: 2
|
z-index: 2
|
||||||
height: 100%
|
height: 100%
|
||||||
outline: 0
|
outline: 0
|
||||||
@@ -236,6 +237,6 @@ function dayFormatterFunc() {
|
|||||||
user-select: none
|
user-select: none
|
||||||
|
|
||||||
.selected-date-button
|
.selected-date-button
|
||||||
color: #3f51b5 !important
|
color: white !important
|
||||||
background: white !important
|
background: $primary !important
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -82,9 +82,9 @@ export function getSampleReservations(): Reservation[] {
|
|||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
user: 'Peter Parker',
|
user: 'Peter Parker',
|
||||||
start: '9:00',
|
start: '7:00',
|
||||||
end: '12:00',
|
end: '13:00',
|
||||||
boat: '2',
|
boat: '4',
|
||||||
status: 'tentative',
|
status: 'tentative',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user