Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Improvements.
  • Loading branch information
cara-tm committed Aug 16, 2017
1 parent b5788b1 commit e712730
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 14 deletions.
8 changes: 4 additions & 4 deletions css/modal-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ body .modal-dialog {
padding: 5px 20px 50px 20px
}

.modal-dialog .inner-dialog.modal-message {width: 100%;padding: 5px 20px}
.modal-dialog .inner-dialog.modal-message {width: 90%;padding: 5px 10% 5px 20px}

/**
* Prevent headings resizing
Expand All @@ -357,7 +357,8 @@ body .modal-dialog {
.modal-dialog .inner-dialog p {
color: #212121;
font-size: 85%;
line-height: 1.5
line-height: 1.5;
hyphens: auto
}

:-webkit-any(.modal-dialog) p {font-size: 85%}
Expand All @@ -379,8 +380,7 @@ strong[class$="-sign"] {
vertical-align: middle;
text-align: center;
color: #fff;
font: normal normal normal 22px/28px Arial, sans-serif;
border-radius: 50%
font: normal normal normal 22px/28px Arial, sans-serif
}

/**
Expand Down
2 changes: 1 addition & 1 deletion css/modal-box.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 26 additions & 9 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,10 @@
padding: 5px 20px 50px 20px
}

.modal-dialog .inner-dialog.modal-message {width: 100%;padding: 5px 20px}
.modal-dialog .inner-dialog.modal-message {
width: 90%;
padding: 5px 10% 5px 20px
}

/**
* Prevent headings resizing
Expand All @@ -368,7 +371,8 @@
.modal-dialog .inner-dialog p {
color: #212121;
font-size: 85%;
line-height: 1.5
line-height: 1.5;
hyphens: auto
}

:-webkit-any(.modal-dialog) p {font-size: 85%}
Expand All @@ -380,9 +384,11 @@
/**
* Styling the signs for the Modal Message Box
*/
strong[class$="-sign"] {
display: -moz-inline-box;
span[class$="-sign"] {


display: inline-table;
display: inline-block;
/* 2px less due to padding */
width: 24px;
height: 28px;
Expand All @@ -391,9 +397,12 @@
vertical-align: middle;
text-align: center;
color: #fff;
font: normal normal normal 22px/28px Arial, sans-serif;
border-radius: 50%
font: normal normal normal 22px/28px Arial, sans-serif
}

span[class$="-sign"] strong {
display: -moz-inline-box;
}

/**
* here is the error sign color
Expand Down Expand Up @@ -556,7 +565,15 @@

.wrapper {width: 100%}

.wrapper p {padding: 10px 2% 0;font-size: 20px; line-height: 1.5}
.wrapper p {
padding: 10px 2% 0;
font-size: 20px;
line-height: 1.5
}

.modal-dialog .inner-dialog h2{font-family: 'Noto Sans'}

.modal-dialog .inner-dialog p{font-family: 'Open Sans'}

p.first-line {float: left;clear: both;width: 96%}

Expand Down Expand Up @@ -595,7 +612,7 @@
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
'://ajax.googleapis.com/ajax/libs/webfont/1.6/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
Expand Down Expand Up @@ -660,7 +677,7 @@ <h2>Modal Box</h2>
<div class="inner-dialog modal-message">

<h2>Message Box</h2>
<p><strong class="info-sign"></strong> <strong class="warning-sign"></strong> <strong class="success-sign"></strong> <strong class="error-sign"></strong>This is a sample modal message box suitable for infos.</p>
<p><span class="info-sign"><strong></strong></span> <span class="warning-sign"><strong></strong></span> <span class="success-sign"><strong></strong></span> <span class="error-sign"><strong></strong></span>This is a sample modal message box suitable for infos.</p>

</div> <!-- /inner-dialog -->

Expand Down

0 comments on commit e712730

Please sign in to comment.