Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add static vh-value fallback #10

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@charset "UTF-8";
/*
* Modals build with pure CSS
* by @drublic - http:https://drublic.de/
Expand Down Expand Up @@ -200,7 +201,7 @@ kbd,
pre,
samp {
font-family: monospace, serif;
_font-family: 'courier new', monospace;
_font-family: "courier new", monospace;
font-size: 1em;
}

Expand Down Expand Up @@ -335,7 +336,7 @@ form {
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
border: 1px solid silver;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
Expand Down Expand Up @@ -495,7 +496,7 @@ body.has-overlay {
}

h2 {
margin: 2em 0 .5em;
margin: 2em 0 0.5em;
}

h3 {
Expand Down Expand Up @@ -581,7 +582,7 @@ a:visited {
float: left;
display: inline;
width: 33.333%;
padding: 0 .7em;
padding: 0 0.7em;
}
@media screen and (max-width: 30em) {
.features > div {
Expand Down Expand Up @@ -766,21 +767,21 @@ a:visited {
-o-transform: translate(0, 400px);
-ms-transform: translate(0, 400px);
transform: translate(0, 400px);
-webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s;
-moz-transition: -moz-transform .25s ease-in-out, opacity 1ms .25s;
-o-transition: -o-transform .25s ease-in-out, opacity 1ms .25s;
-ms-transition: -ms-transform .25s ease-in-out, opacity 1ms .25s;
transition: transform .25s ease-in-out, opacity 1ms .25s;
-webkit-transition: -webkit-transform 0.25s ease-in-out, opacity 1ms 0.25s;
-moz-transition: -moz-transform 0.25s ease-in-out, opacity 1ms 0.25s;
-o-transition: -o-transform 0.25s ease-in-out, opacity 1ms 0.25s;
-ms-transition: -ms-transform 0.25s ease-in-out, opacity 1ms 0.25s;
transition: transform 0.25s ease-in-out, opacity 1ms 0.25s;
display: block;
height: 100%;
bottom: auto;
}
.semantic-content:target {
-webkit-transition: -webkit-transform .25s ease-in-out;
-moz-transition: -moz-transform .25s ease-in-out;
-o-transition: -o-transform .25s ease-in-out;
-ms-transition: -ms-transform .25s ease-in-out;
transition: transform .25s ease-in-out;
-webkit-transition: -webkit-transform 0.25s ease-in-out;
-moz-transition: -moz-transform 0.25s ease-in-out;
-o-transition: -o-transform 0.25s ease-in-out;
-ms-transition: -ms-transform 0.25s ease-in-out;
transition: transform 0.25s ease-in-out;
}
.semantic-content:before {
background-color: #27aae2;
Expand Down Expand Up @@ -835,11 +836,13 @@ a:visited {
}
@media screen and (max-height: 46em) and (min-width: 30em) {
.semantic-content .modal-content {
max-height: 340px;
max-height: 50vh;
}
}
@media screen and (max-height: 36em) and (min-width: 30em) {
.semantic-content .modal-content {
max-height: 265px;
max-height: 40vh;
}
}
Expand Down
2 changes: 2 additions & 0 deletions scss/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,14 @@ $modal-mobile-header: #27aae2;
// For small heights
@media screen and (max-height: 46em) and (min-width: 30em) {
.modal-content {
max-height: 340px;
max-height: 50vh;
}
}

@media screen and (max-height: 36em) and (min-width: 30em) {
.modal-content {
max-height: 265px;
max-height: 40vh;
}
}
Expand Down
23 changes: 13 additions & 10 deletions tests/modal.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@charset "UTF-8";
/*
* Tests for CSS Modal
* by @drublic - http:https://drublic.de/
Expand Down Expand Up @@ -142,21 +143,21 @@
-o-transform: translate(0, 400px);
-ms-transform: translate(0, 400px);
transform: translate(0, 400px);
-webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s;
-moz-transition: -moz-transform .25s ease-in-out, opacity 1ms .25s;
-o-transition: -o-transform .25s ease-in-out, opacity 1ms .25s;
-ms-transition: -ms-transform .25s ease-in-out, opacity 1ms .25s;
transition: transform .25s ease-in-out, opacity 1ms .25s;
-webkit-transition: -webkit-transform 0.25s ease-in-out, opacity 1ms 0.25s;
-moz-transition: -moz-transform 0.25s ease-in-out, opacity 1ms 0.25s;
-o-transition: -o-transform 0.25s ease-in-out, opacity 1ms 0.25s;
-ms-transition: -ms-transform 0.25s ease-in-out, opacity 1ms 0.25s;
transition: transform 0.25s ease-in-out, opacity 1ms 0.25s;
display: block;
height: 100%;
bottom: auto;
}
.semantic-content:target {
-webkit-transition: -webkit-transform .25s ease-in-out;
-moz-transition: -moz-transform .25s ease-in-out;
-o-transition: -o-transform .25s ease-in-out;
-ms-transition: -ms-transform .25s ease-in-out;
transition: transform .25s ease-in-out;
-webkit-transition: -webkit-transform 0.25s ease-in-out;
-moz-transition: -moz-transform 0.25s ease-in-out;
-o-transition: -o-transform 0.25s ease-in-out;
-ms-transition: -ms-transform 0.25s ease-in-out;
transition: transform 0.25s ease-in-out;
}
.semantic-content:before {
background-color: #27aae2;
Expand Down Expand Up @@ -211,11 +212,13 @@
}
@media screen and (max-height: 46em) and (min-width: 30em) {
.semantic-content .modal-content {
max-height: 340px;
max-height: 50vh;
}
}
@media screen and (max-height: 36em) and (min-width: 30em) {
.semantic-content .modal-content {
max-height: 265px;
max-height: 40vh;
}
}
Expand Down