Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
382 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
|
||
// Scheduling | ||
@import "calendar"; | ||
//@import "gantt"; | ||
@import "gantt"; | ||
//@import "scheduler"; | ||
|
||
|
||
|
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,12 @@ | ||
@import "variables"; | ||
@import "mixins"; | ||
|
||
|
||
// Dependencies | ||
@import "common/all"; | ||
@import "button"; | ||
|
||
|
||
// Component | ||
@import "gantt/layout"; | ||
@import "gantt/theme"; |
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,89 @@ | ||
@import "~@progress/kendo-theme-default/scss/gantt/layout"; | ||
|
||
@include exports("gantt/layout/material") { | ||
|
||
.k-gantt {} | ||
|
||
|
||
// Header and footer | ||
.k-gantt-toolbar { | ||
|
||
.k-button { | ||
@extend .k-button.k-flat; | ||
padding: $toolbar-button-padding-y $toolbar-button-padding-x; | ||
} | ||
} | ||
|
||
|
||
// View switcher | ||
.k-gantt-views { | ||
|
||
li, | ||
li.k-state-hover, | ||
li.k-state-selected { | ||
color: inherit; | ||
background: none; | ||
} | ||
li a { | ||
@extend .k-button.k-flat; | ||
padding: $toolbar-button-padding-y $toolbar-button-padding-x; | ||
display: flex; | ||
align-items: center; | ||
position: relative; | ||
} | ||
li a::before { | ||
@extend .k-button::before; | ||
display: block; | ||
} | ||
li.k-state-selected a::before { | ||
@include opacity( $flat-button-selected-opacity ); | ||
} | ||
|
||
|
||
&.k-state-expanded { | ||
li { | ||
margin: 0; | ||
border-radius: 0; | ||
} | ||
li + li { | ||
margin: 0; | ||
} | ||
.k-current-view ~ li a { | ||
padding-top: $list-item-padding-y; | ||
padding-bottom: $list-item-padding-y; | ||
line-height: 2; | ||
} | ||
} | ||
} | ||
|
||
|
||
// Treelist | ||
.k-gantt-treelist {} | ||
|
||
|
||
// Milestone | ||
.k-milestone-wrap {} | ||
.k-task-milestone {} | ||
|
||
|
||
// Summary | ||
.k-summary-wrap {} | ||
.k-task-summary {} | ||
.k-task-summary-complete {} | ||
.k-task-summary-progress { | ||
height: 15px; | ||
overflow: hidden; | ||
} | ||
|
||
|
||
// Single task | ||
.k-single-wrap {} | ||
.k-task-single { | ||
border-width: 0; | ||
} | ||
.k-task-template { | ||
padding: $button-padding-y-sm $button-padding-x-sm; | ||
line-height: $button-line-height; | ||
} | ||
|
||
} |
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,122 @@ | ||
@include exports("gantt/theme") { | ||
|
||
// Theme | ||
.k-gantt { | ||
@include appearance( panel ); | ||
} | ||
|
||
|
||
// Header and footer | ||
.k-gantt-toolbar { | ||
@include appearance( toolbar ); | ||
} | ||
|
||
|
||
// View switcher | ||
.k-gantt-views { | ||
|
||
li {} | ||
|
||
|
||
&.k-state-expanded { | ||
@include appearance( popup ); | ||
box-shadow: $popup-shadow; | ||
|
||
li { | ||
margin: 0; | ||
border-radius: 0; | ||
} | ||
li + li { margin: 0; } | ||
} | ||
} | ||
|
||
|
||
// Rows and colls | ||
.k-gantt-rows {} | ||
.k-gantt-columns {} | ||
.k-gantt-columns .k-nonwork-hour { | ||
background-color: rgba( $panel-text, .025 ); | ||
} | ||
|
||
|
||
.k-gantt-dependencies {} | ||
.k-line { | ||
color: mix( $panel-text, $panel-bg ); | ||
background-color: mix( $panel-text, $panel-bg ); | ||
} | ||
.k-line.k-state-selected { | ||
color: $header-selected-bg; | ||
background-color: $header-selected-bg; | ||
} | ||
|
||
.k-task-dot {} | ||
.k-task-dot::before { | ||
background-color: $panel-text; | ||
} | ||
.k-task-dot:hover::before, | ||
.k-task-dot.k-state-hover::before { | ||
border-color: $panel-text; | ||
background-color: $panel-bg; | ||
} | ||
|
||
|
||
// Milestone | ||
.k-task-milestone { | ||
border-color: $accent; | ||
background-color: $accent; | ||
} | ||
.k-task-milestone.k-state-selected { | ||
border-color: $secondary; | ||
background-color: $secondary; | ||
} | ||
|
||
|
||
// Summary | ||
.k-task-summary { | ||
color: mix( $accent, $grid-bg, 54 ); | ||
} | ||
.k-task-summary-complete { | ||
color: $accent; | ||
} | ||
.k-task-summary.k-state-selected { | ||
color: mix( $secondary, $grid-bg, 54 ); | ||
|
||
.k-task-summary-complete { | ||
color: $secondary; | ||
} | ||
} | ||
.k-task-summary::before, | ||
.k-task-summary::after, | ||
.k-task-summary-complete::before, | ||
.k-task-summary-complete::after { | ||
display: none; | ||
} | ||
|
||
|
||
// Tasks | ||
.k-task-single { | ||
@include border-radius( $border-radius ); | ||
color: $accent-contrast; | ||
background-color: mix( $accent, $grid-bg, 54 ); | ||
|
||
.k-task-complete { | ||
background: $accent; | ||
} | ||
} | ||
.k-task-single.k-state-selected { | ||
@include appearance( active-button ); | ||
color: $secondary-contrast; | ||
background-color: mix( $secondary, $grid-bg, 54 ); | ||
|
||
.k-task-complete { | ||
background: $secondary; | ||
} | ||
} | ||
.k-task-single .k-resize-handle { | ||
width: ($spacer-x / 2 ); | ||
} | ||
.k-task-single:hover .k-resize-handle { | ||
opacity: 0; | ||
} | ||
|
||
} |
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
Oops, something went wrong.