Skip to content

Commit cf8e593

Browse files
author
Gaillard
committed
v2.0.0-beta.3 fix css selector
1 parent 104cb85 commit cf8e593

4 files changed

Lines changed: 22 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
<a name="2.0.0-beta.3"></a>
3+
# 2.0.0-beta.3 (2018-11-26)
4+
5+
* **Style:** Modify `<as-split-area>` CSS selector to act only on current split areas children and not on potential sub split areas.
6+
7+
28
<a name="2.0.0-beta.2"></a>
39
# 2.0.0-beta.2 (2018-11-19)
410

projects/angular-split/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-split",
3-
"version": "2.0.0-beta.2",
4-
"description": "Angular UI library used to split views and to allow dragging to resize the split areas using CSS flexbox layout.",
3+
"version": "2.0.0-beta.3",
4+
"description": "Lightweight Angular UI library to split views and allow dragging to resize areas using CSS flexbox layout.",
55
"author": "bertrandg",
66
"repository": {
77
"type": "git",
@@ -10,7 +10,7 @@
1010
"bugs": {
1111
"url": "https://github.com/bertrandg/angular-split/issues"
1212
},
13-
"homepage": "https://github.com/bertrandg/angular-split",
13+
"homepage": "https://bertrandg.github.io/angular-split/",
1414
"keywords": [
1515
"angular",
1616
"split",

projects/angular-split/src/lib/component/split.component.scss

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
background-color: #eeeeee;
1717
}
1818

19-
::ng-deep as-split-area {
19+
::ng-deep > as-split-area {
2020
flex-grow: 0;
2121
flex-shrink: 0;
2222
overflow-x: hidden;
2323
overflow-y: auto;
2424

25+
/* When <as-split-area [visible]="false"> force size to 0. */
26+
2527
&.is-hided {
2628
flex-basis: 0 !important;
2729
overflow-x: hidden;
@@ -36,11 +38,11 @@
3638
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==");
3739
cursor: col-resize;
3840

39-
// Fix safari bug about gutter height when direction is horizontal
41+
// Fix safari bug about gutter height when direction is horizontal.
4042
height: 100%;
4143
}
4244

43-
::ng-deep as-split-area {
45+
::ng-deep > as-split-area {
4446
height: 100%;
4547
}
4648
}
@@ -55,7 +57,7 @@
5557
width: 100%;
5658
}
5759

58-
::ng-deep as-split-area {
60+
::ng-deep > as-split-area {
5961
width: 100%;
6062

6163
&.is-hided {
@@ -64,6 +66,8 @@
6466
}
6567
}
6668

69+
/* When disabled remove gutters background image and specific cursor. */
70+
6771
&.is-disabled {
6872

6973
& > .as-split-gutter {
@@ -72,16 +76,14 @@
7276
}
7377
}
7478

75-
&.is-transition.is-init:not(.is-dragging) {
79+
/* Add transition only when transition enabled + split initialized + not currently dragging. */
7680

77-
& > .as-split-gutter {
78-
transition: flex-basis 0.3s;
79-
}
81+
&.is-transition.is-init:not(.is-dragging) {
8082

81-
::ng-deep as-split-area {
83+
& > .as-split-gutter,
84+
::ng-deep > as-split-area {
8285
transition: flex-basis 0.3s;
8386
}
84-
8587
}
8688
}
8789

src/app/component/examples/nested.route.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { AComponent } from './AComponent';
1414
<div class="container">
1515
<sp-example-title [type]="exampleEnum.NESTED"></sp-example-title>
1616
<div class="split-example" style="height: 400px;">
17-
<as-split direction="horizontal">
17+
<as-split direction="horizontal" [useTransition]="true" >
1818
<as-split-area size="40">
1919
<as-split direction="vertical">
2020
<as-split-area>

0 commit comments

Comments
 (0)