better modals
This commit is contained in:
parent
98abe339fa
commit
178e1c1390
4 changed files with 44 additions and 18 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
/* Modal Content */
|
/* Modal Content */
|
||||||
.modal-content {
|
.modal-content {
|
||||||
background-color: lighten($background, 15%);
|
background-color: $background;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border: 1px solid lighten($background, 10%);
|
border: 1px solid lighten($background, 10%);
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|
@ -29,6 +29,18 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
text-align: center;
|
||||||
|
margin-block-start: 0;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
|
||||||
|
border-bottom: 1px solid lighten($background, 10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* The Close Button */
|
/* The Close Button */
|
||||||
.close {
|
.close {
|
||||||
color: #eeeeee;
|
color: #eeeeee;
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ body {
|
||||||
|
|
||||||
/* Modal Content */
|
/* Modal Content */
|
||||||
.modal-content {
|
.modal-content {
|
||||||
background-color: #4b4b4b;
|
background-color: #252525;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border: 1px solid #3f3f3f;
|
border: 1px solid #3f3f3f;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|
@ -397,6 +397,18 @@ body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-content .header {
|
||||||
|
text-align: center;
|
||||||
|
-webkit-margin-before: 0;
|
||||||
|
margin-block-start: 0;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 1px solid #3f3f3f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .content {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.modal-content .close {
|
.modal-content .close {
|
||||||
color: #eeeeee;
|
color: #eeeeee;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
32
index.html
32
index.html
|
|
@ -474,9 +474,9 @@
|
||||||
<span class="close">
|
<span class="close">
|
||||||
<i class="fa fa-close"></i>
|
<i class="fa fa-close"></i>
|
||||||
</span>
|
</span>
|
||||||
<h2>
|
<h3 class="header">
|
||||||
YouTube Embed Demo In A Modal
|
YouTube Embed Demo In A Modal
|
||||||
</h2>
|
</h3>
|
||||||
<div class="embed">
|
<div class="embed">
|
||||||
<iframe src="https://www.youtube.com/embed/5tjr7g5WFqc" frameborder="0"
|
<iframe src="https://www.youtube.com/embed/5tjr7g5WFqc" frameborder="0"
|
||||||
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
|
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
|
||||||
|
|
@ -492,19 +492,21 @@
|
||||||
<i class="fa fa-close"></i>
|
<i class="fa fa-close"></i>
|
||||||
</span>
|
</span>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>About This Page</h2>
|
<h3 class="header">About This Page</h3>
|
||||||
<ul>
|
<p class="content">
|
||||||
<li>
|
<ul>
|
||||||
This page was written with mobile optimization first!
|
<li>
|
||||||
</li>
|
This page was written with mobile optimization first!
|
||||||
<li>
|
</li>
|
||||||
This ThemeKit is written from scratch with minimal JQuery (using DOM where possible)
|
<li>
|
||||||
</li>
|
This ThemeKit is written from scratch with minimal JQuery (using DOM where possible)
|
||||||
<li>
|
</li>
|
||||||
This page not only shows you how these things work, but demo to me how they're turning out
|
<li>
|
||||||
too!
|
This page not only shows you how these things work, but demo to me how they're turning out
|
||||||
</li>
|
too!
|
||||||
</ul>
|
</li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue