-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
a306533
commit 41a3b5f
Showing
20 changed files
with
286 additions
and
34 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
24 changes: 22 additions & 2 deletions
24
src/js/components/flexiblegrid/directives/border.directive.js
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
118 changes: 115 additions & 3 deletions
118
src/js/components/flexiblegrid/directives/handle.directive.js
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
10 changes: 8 additions & 2 deletions
10
src/js/components/flexiblegrid/directives/main.directive.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.border{ | ||
position: absolute; | ||
overflow: hidden; | ||
@include box-sizing(border-box); | ||
&.left{ | ||
top: $header-height; | ||
bottom: $footer-height; | ||
left: 0; | ||
background: $border-left-bg-color; | ||
width: $left-width; | ||
z-index: $top; | ||
padding-right: $handleHeight; | ||
} | ||
&.bottom{ | ||
left: 0; | ||
right: 0; | ||
bottom: $footer-height; | ||
height: $border-bottom-default-height; | ||
color: $main-color; | ||
background: $border-bottom-bg-color; | ||
padding-left: $main-side-padding; | ||
padding-top: $handleHeight; | ||
} | ||
} |
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,7 @@ | ||
.flexiblegrid { | ||
position: relative; | ||
top: $header-height; | ||
bottom: $footer-height; | ||
left: 0; | ||
right: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.handle { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
// border: 2.5px outset #aaa; | ||
@include box-sizing(border-box); | ||
background-color: $handleBgColor; | ||
&.left { | ||
bottom: 0; | ||
cursor: ew-resize; | ||
width: $handleHeight; | ||
} | ||
&.bottom { | ||
left: 0; | ||
cursor: ns-resize; | ||
height: $handleHeight; | ||
} | ||
&.moving { | ||
background-color: $handleMovingColor; | ||
} | ||
&.constrained { | ||
background-color: $handleConstrainedBgColor; | ||
} | ||
} |
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,13 @@ | ||
.main { | ||
position : absolute; | ||
right : 0; | ||
top : $header-height; | ||
bottom : $footer-height + $border-bottom-default-height; | ||
left : 0; | ||
background : $main-bg-color; | ||
padding-left : $main-side-padding; | ||
padding-right: $main-side-padding; | ||
color : $main-color; | ||
overflow : hidden; | ||
@include box-sizing(border-box); | ||
} |
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 @@ | ||
$top: 999; | ||
$left-width: 200px; | ||
$main-color: #eee; | ||
$main-bg-color: #444; | ||
$border-left-bg-color: red; | ||
$border-bottom-bg-color: blue; | ||
$border-bottom-default-height: 50px; | ||
$main-side-padding: 300px; | ||
$handleHeight: 8px; | ||
$handleBgColor: #777; | ||
$handleMovingColor: #AAAAAA; | ||
$handleConstrainedBgColor: #966; |
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 @@ | ||
<div class="border" ng-transclude></div> |
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 @@ | ||
<div class="flexiblegrid" ng-transclude></div> |
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,6 @@ | ||
<div | ||
class="handle" | ||
ng-mousedown="trackMove($event)" | ||
ng-class="{moving: moving, constrained: constrained}" | ||
> | ||
</div> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
<div class="main"></div> | ||
<div class="main" ng-transclude></div> |
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,8 @@ | ||
footer#footer { | ||
position: absolute; | ||
bottom: 0; | ||
z-index: 1; | ||
width: $footer-width; | ||
height: $footer-height; | ||
background: $footer-bg-color; | ||
} |
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,6 @@ | ||
header#header { | ||
z-index: 1; | ||
width: $header-width; | ||
height: $header-height; | ||
background: $header-bg-color; | ||
} |
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 |
---|---|---|
@@ -1,2 +1,7 @@ | ||
|
||
@import '../js/components/flexiblelayout/scss/_variables'; | ||
$header-width: 100%; | ||
$footer-width: 100%; | ||
$footer-height: 50px; | ||
$header-height: 150px; | ||
$header-bg-color: tomato; | ||
$footer-bg-color: purple; | ||
@import '../js/components/flexiblegrid/scss/_variables'; |