Merge pull request #638 from matthojo/Modal-Fix

Modal Fixes
This commit is contained in:
John O'Nolan 2013-09-06 08:10:44 -07:00
commit 58176b6c98
5 changed files with 25 additions and 7 deletions

View File

@ -971,6 +971,14 @@ body.blur > *:not(#modal-container) {
opacity: 1;
}
}
button {
min-width: 100px;
}
@include breakpoint($mobile) {
width: 100%;
}
}
.modal-info {
@ -979,6 +987,10 @@ body.blur > *:not(#modal-container) {
.modal-action {
@extend %modal;
.modal-footer {
margin-top: 20px;
}
}
.modal-header {
@ -1024,10 +1036,16 @@ body.blur > *:not(#modal-container) {
}
.modal-style-wide {
@extend %modal;
width: 550px;
@include breakpoint($mobile) {
width: 100%;
}
}
.modal-style-centered {
text-align: center;
}
/* ==========================================================================
Main Elements
========================================================================== */

View File

@ -1,5 +1,5 @@
<aside class="modal-background"></aside>
<article class="modal{{#if options.type}}-{{options.type}}{{/if}} {{#if options.style}}modal-style-{{options.style}}{{/if}} {{options.animation}} js-modal">
<article class="modal{{#if options.type}}-{{options.type}}{{/if}} {{#if options.style}}{{#each options.style}}modal-style-{{this}} {{/each}}{{/if}}{{options.animation}} js-modal">
{{#if content.title}}<header class="modal-header"><h1>{{content.title}}</h1>{{#if options.close}}<a class="close" href="#"><span class="hidden">Close</span></a>{{/if}}</header>{{/if}}
<section class="modal-content">
</section>

View File

@ -166,7 +166,7 @@
}
},
type: "action",
style: "wide",
style: ["wide", "centered"],
animation: 'fade'
},
content: {

View File

@ -300,7 +300,7 @@
options: {
close: true,
type: "info",
style: "wide",
style: ["wide"],
animation: 'fade'
},
content: {
@ -374,7 +374,7 @@
options: {
close: true,
type: "info",
style: "wide",
style: ["wide"],
animation: 'fade'
},
content: {

View File

@ -186,8 +186,8 @@
options: {
close: false,
type: "action",
style: "wide",
animation: 'fadeIn',
style: ["wide"],
animation: 'fade',
afterRender: function () {
this.$('.js-drop-zone').upload();
},