-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Now styled with relation to the rest of the dbx-web styling
- Loading branch information
Showing
11 changed files
with
931 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/dbx-web/src/lib/extension/calendar/style/_angular-calendar.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@forward './variables'; | ||
|
||
@use './common/calendar-tooltip' as tooltip; | ||
@use './day/calendar-day-view' as day; | ||
@use './week/calendar-week-view' as week; | ||
@use './month/calendar-month-view' as month; | ||
|
||
@mixin cal-core() { | ||
@include tooltip.cal-tooltip-core(); | ||
@include day.cal-day-view-core(); | ||
@include week.cal-week-view-core(); | ||
@include month.cal-month-view-core(); | ||
} | ||
|
||
@mixin cal-theme($overrides: null) { | ||
@if ($overrides == null) { | ||
$overrides: (); | ||
} | ||
|
||
@include tooltip.cal-tooltip-theme($overrides); | ||
@include month.cal-month-view-theme($overrides); | ||
@include week.cal-week-view-theme($overrides); | ||
} |
72 changes: 72 additions & 0 deletions
72
packages/dbx-web/src/lib/extension/calendar/style/_variables.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
$cal-event-icon-color-var: --cal-event-icon-color; | ||
$cal-event-color-primary-var: --cal-event-color-primary; | ||
$cal-event-color-secondary-var: --cal-event-color-secondary; | ||
$cal-border-color-var: --cal-border-color; | ||
$cal-bg-primary-var: --cal-bg-primary; | ||
$cal-bg-secondary-var: --cal-bg-secondary; | ||
$cal-bg-active-var: --cal-bg-active; | ||
$cal-bg-active-dragover-var: --cal-bg-active-dragover; | ||
$cal-today-bg-var: --cal-today-bg; | ||
$cal-weekend-color-var: --cal-weekend-color; | ||
$cal-badge-color-var: --cal-badge-color; | ||
$cal-current-time-marker-color-var: --cal-current-time-marker-color; | ||
$cal-white-var: --cal-white; | ||
$cal-gray-var: --cal-gray; | ||
$cal-black-var: --cal-black; | ||
$cal-gradient-var: --cal-gradient; | ||
|
||
$cal-event-icon-color: var($cal-event-icon-color-var); | ||
$cal-event-color-primary: var($cal-event-color-primary-var); | ||
$cal-event-color-secondary: var($cal-event-color-secondary-var); | ||
$cal-border-color: var($cal-border-color-var); | ||
$cal-bg-primary: var($cal-bg-primary-var); | ||
$cal-bg-secondary: var($cal-bg-secondary-var); | ||
$cal-bg-active: var($cal-bg-active-var); | ||
$cal-bg-active-dragover: var($cal-bg-active-dragover-var); | ||
$cal-today-bg: var($cal-today-bg-var); | ||
$cal-weekend-color: var($cal-weekend-color-var); | ||
$cal-badge-color: var($cal-badge-color-var); | ||
$cal-current-time-marker-color: var($cal-current-time-marker-color-var); | ||
$cal-white: var($cal-white-var); | ||
$cal-gray: var($cal-gray-var); | ||
$cal-black: var($cal-black-var); | ||
$cal-gradient: var($cal-gradient-var); | ||
|
||
$cal-hint-opacity: 0.7; | ||
$cal-out-month-hint-opacity: 0.3; | ||
|
||
$cal-vars: () !default; | ||
$cal-vars: map-merge( | ||
( | ||
event-icon-color: $cal-event-icon-color, | ||
// the default event primary color if not set on the event color object | ||
event-color-primary: $cal-event-color-primary, | ||
// the default event secondary color if not set on the event color object | ||
event-color-secondary: $cal-event-color-secondary, | ||
// the border color used between cells | ||
border-color: $cal-border-color, | ||
// the primary background of each component | ||
bg-primary: $cal-bg-primary, | ||
// the secondary background, used for alternating rows on the day and week views | ||
bg-secondary: $cal-bg-secondary, | ||
// the color used when hovering over cells and headers | ||
bg-active: $cal-bg-active, | ||
// the background color to mark today in the week view header | ||
today-bg: $cal-today-bg, | ||
// the color used to indicate a day is a weekend | ||
weekend-color: $cal-weekend-color, | ||
// the badge background color on the month view | ||
badge-color: $cal-badge-color, | ||
// the current time marker color on the week and day view | ||
current-time-marker-color: $cal-current-time-marker-color, | ||
// a standard white color used for tooltip text and month view event titles | ||
white: $cal-white, | ||
// a standard gray color used for the background color of the open month view events box | ||
gray: $cal-gray, | ||
// a standard black color used as the tooltip background and the gradient color of the open month view events | ||
black: $cal-black, | ||
// box shadow | ||
gradient: $cal-gradient | ||
), | ||
$cal-vars | ||
); |
Oops, something went wrong.