-
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.
- Loading branch information
Showing
7 changed files
with
238 additions
and
83 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
5 changes: 5 additions & 0 deletions
5
firebird-ng/src/app/pages/split-window/split-window.component.html
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,6 @@ | ||
<p>split-window works!</p> | ||
<div class="wrapper"> | ||
<div class="box">A</div> | ||
<div class="handler"></div> | ||
<div class="box">B</div> | ||
</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,40 @@ | ||
body { | ||
margin: 40px; | ||
} | ||
|
||
.wrapper { | ||
background-color: #fff; | ||
color: #444; | ||
/* Use flexbox */ | ||
display: flex; | ||
} | ||
|
||
.box { | ||
background-color: #444; | ||
color: #fff; | ||
border-radius: 5px; | ||
padding: 20px; | ||
font-size: 150%; | ||
|
||
/* Use box-sizing so that element's outerwidth will match width property */ | ||
box-sizing: border-box; | ||
|
||
/* Allow box to grow and shrink, and ensure they are all equally sized */ | ||
flex: 1 1 auto; | ||
} | ||
|
||
.handler { | ||
width: 20px; | ||
padding: 0; | ||
cursor: ew-resize; | ||
flex: 0 0 auto; | ||
} | ||
|
||
.handler::before { | ||
content: ''; | ||
display: block; | ||
width: 4px; | ||
height: 100%; | ||
background: red; | ||
margin: 0 auto; | ||
} |
Oops, something went wrong.