Skip to content

Commit

Permalink
feat(datetimepicker): add datetimepicker styling (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek authored Sep 9, 2024
1 parent 17188c3 commit 0c1d071
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
15 changes: 15 additions & 0 deletions src/assets/scss/components/_datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,19 @@ $datepicker-event-background-color: css.getVar("grey-light") !default;
margin-right: 0.125rem;
}
}

// datetimepicker overrides
.timepicker {
display: flex;
justify-content: center;

.dropdown {
@include css.register-vars(
(
"dropdown-content-shadow": "transparent",
)
);
width: inherit;
}
}
}
27 changes: 16 additions & 11 deletions src/plugins/bulma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,22 @@ export const bulmaConfig: OrugaOptions = {
monthClass: "datepicker-table",
monthTableClass: "datepicker-months",
},
timepicker: {
override: true,
rootClass: "timepicker",
boxClass: "dropdown-item",
separatorClass: "is-colon control",
footerClass: "timepicker-footer",
sizeClass: "is-",
selectClasses: {
rootClass: "select control",
},
},
datetimepicker: {
override: true,
datepickerWrapperClass: "datepicker-wrapper",
timepickerWrapperClass: "timepicker-wrapper",
},
modal: {
override: true,
rootClass: "modal",
Expand Down Expand Up @@ -384,17 +400,6 @@ export const bulmaConfig: OrugaOptions = {
iconClass: "icon",
rootClass: "loading",
},
timepicker: {
override: true,
rootClass: "timepicker",
boxClass: "dropdown-item",
separatorClass: "is-colon control",
footerClass: "timepicker-footer",
sizeClass: "is-",
selectClasses: {
rootClass: "select control",
},
},
carousel: {
override: true,
rootClass: "carousel",
Expand Down

0 comments on commit 0c1d071

Please sign in to comment.