Last active
September 15, 2015 11:58
-
-
Save mispa/56671774b8ffcd0b2c28 to your computer and use it in GitHub Desktop.
Modal dialog
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
/** | |
* Modal dialog | |
*/ | |
.modal { | |
display: flex; | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background-color: rgba(0,255,100,.5); | |
} | |
.stage { | |
background-color: rgba(255,0,100,.5); | |
width: 80%; | |
height: 100%; | |
} | |
.panel { | |
background-color: rgba(100,0,255,.5); | |
display: flex; | |
flex-direction: column; | |
width: 20%; | |
min-width: 320px; | |
height: 100%; | |
} | |
.panel__description, | |
.panel__preview { | |
flex-basis: 25% | |
} | |
.panel__description { | |
background-color: rgba(255,255,0,.5); | |
flex-grow: 1; | |
flex-shrink: 1; | |
} | |
.panel__preview { | |
background-color: rgba(255,0,255,.5); | |
flex-grow: 3; | |
flex-shrink: 1; | |
} |
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
<div class="modal"> | |
<div class="stage"></div> | |
<aside class="panel"> | |
<div class="panel__description"></div> | |
<div class="panel__preview"></div> | |
</aside> | |
</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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment