Skip to content

Commit 93716e6

Browse files
fix kanban/gantt padding, navmenu shadows (#412)
* fix kanban/gantt padding, navmenu shadows * fix lint css * fix css lint 2 * fix menu shadow without zindex * kanban/gantt etalons * remove etalon masks * add new mask etalons
1 parent 6f6a37f commit 93716e6

File tree

33 files changed

+111
-12
lines changed

33 files changed

+111
-12
lines changed

packages/angular/src/app/components/library/side-navigation-menu/side-navigation-menu.component.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
11
/* stylelint-disable no-duplicate-selectors */
22
@use "../../../../variables.scss" as *;
33

4+
:host-context(.dx-drawer-overlap)::after {
5+
content: "";
6+
position: absolute;
7+
top: 0;
8+
left: 0;
9+
right: 0;
10+
height: 2px;
11+
pointer-events: none;
12+
background:
13+
linear-gradient(
14+
to bottom,
15+
rgba(0,0,0,0.15),
16+
rgba(0,0,0,0)
17+
);
18+
z-index: 2000;
19+
}
20+
21+
:host-context(.dx-drawer-overlap)::before {
22+
content: "";
23+
position: absolute;
24+
top: 0;
25+
left: 0;
26+
right: 0;
27+
height: 10px;
28+
pointer-events: none;
29+
box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.05);
30+
z-index: 2000;
31+
}
32+
433
:host {
534
display: flex;
635
flex-direction: column;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
@use "../../../../variables.scss" as *;
22
@use "sass:math";
3+
4+
.dx-gantt {
5+
border-radius: 8px;
6+
}

packages/angular/src/app/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@
1818
flex-grow: 1;
1919
width: 100%;
2020
}
21+
22+
::ng-deep .dx-drawer-panel-content .dx-overlay-content {
23+
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);
24+
}

packages/angular/src/app/pages/planning-task-list/planning-task-list.component.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,4 @@
4646
.gantt {
4747
padding: 0 var(--content-padding) var(--content-padding);
4848
}
49-
50-
.kanban {
51-
padding: 0 0 var(--content-padding) calc(var(--content-padding) / 2);
52-
}
5349
}

packages/react/src/components/library/side-navigation-menu/SideNavigationMenu.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
@use "../../../variables.scss" as *;
22

3+
.dx-drawer-overlap .side-navigation-menu::before {
4+
content: "";
5+
position: absolute;
6+
top: 0;
7+
left: 0;
8+
right: 0;
9+
height: 10px;
10+
pointer-events: none;
11+
box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.05);
12+
z-index: 2000;
13+
}
14+
15+
.dx-drawer-overlap .side-navigation-menu::after {
16+
content: "";
17+
position: absolute;
18+
top: 0;
19+
left: 0;
20+
right: 0;
21+
height: 2px;
22+
pointer-events: none;
23+
background:
24+
linear-gradient(
25+
to bottom,
26+
rgba(0,0,0,0.15),
27+
rgba(0,0,0,0)
28+
);
29+
z-index: 2000;
30+
}
31+
332
.side-navigation-menu {
433
display: flex;
534
flex-direction: column;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
@use "../../../variables.scss" as *;
22
@use "sass:math";
3+
4+
.dx-gantt {
5+
border-radius: 8px;
6+
}

packages/react/src/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@
2323
.content {
2424
flex-grow: 1;
2525
}
26+
27+
.dx-drawer-panel-content .dx-overlay-content {
28+
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);
29+
}

packages/react/src/pages/planning-task-list/planning-task-list.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,4 @@
3535
.gantt {
3636
padding: 0 var(--content-padding) var(--content-padding);
3737
}
38-
39-
.kanban {
40-
padding: 0 0 var(--content-padding) calc(var(--content-padding) / 2);
41-
}
4238
}
424 Bytes
Loading
3.8 KB
Loading

0 commit comments

Comments
 (0)