Skip to content

Commit

Permalink
Merge pull request #1655 from code-corps/fix-modal-css
Browse files Browse the repository at this point in the history
Fix modal CSS and remove modal-confirm
  • Loading branch information
joshsmith authored Dec 26, 2017
2 parents a746979 + f97b110 commit fae8f7c
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 231 deletions.
90 changes: 0 additions & 90 deletions app/components/modal-confirm.js

This file was deleted.

17 changes: 4 additions & 13 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,13 @@
// http://neat.bourbon.io/
@import "neat";

//ember-modal-dialog
//The ember-modal-dialog addon provides components to implement modal dialogs throughout an Ember application using a simple, consistent pattern.
//https://github.com/yapplabs/ember-modal-dialog
// ember-modal-dialog
// The ember-modal-dialog addon provides components to implement modal dialogs
// throughout an Ember application using a simple, consistent pattern.
// https://github.com/yapplabs/ember-modal-dialog
@import "ember-modal-dialog/ember-modal-structure";
@import "ember-modal-dialog/ember-modal-appearance";

.ember-modal-overlay.translucent {
background: rgba(0,0,0, 0.70)
}

.ember-modal-dialog {
border-radius: 4px;
box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

//
// HELPERS
//
Expand Down Expand Up @@ -99,7 +91,6 @@
@import "components/image-drop";
@import "components/loading-bar";
@import "components/loading-spinner";
@import "components/modal-confirm";
@import "components/pager-control";
@import "components/progress-bar";
@import "components/settings-menu";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,5 @@
}

.new-conversation-modal {
padding: 0 1em;
width: 450px;

h3 {
font-size: $header-font-size-small;
margin: 0.7em;
text-align: center;
}
}
14 changes: 0 additions & 14 deletions app/styles/components/modal-confirm.scss

This file was deleted.

35 changes: 20 additions & 15 deletions app/styles/layout/_modals.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
.modal {
padding: 0;
width: 400px;
.ember-modal-overlay.translucent {
background: rgba(0,0,0, 0.70)
}

h2 {
font-size: 1.2em;
font-weight: 500;
margin: 0;
}
.ember-modal-dialog {
border-radius: 4px;
box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.modal {
padding: 0 1em;
}

.modal-close {
Expand All @@ -18,24 +20,26 @@
}

.modal__header {
margin-top: 10px;
padding: 10px;
h3 {
font-size: $header-font-size-small;
margin: 0.7em;
text-align: center;
}
}

.modal__warning {
background: $red--light;
border-top: 1px solid $red;
border-bottom: 1px solid $red;
padding: 0 20px;
margin-top: 9px;
margin-bottom: -10px;
margin: 9px -1em -10px -1em;
}

.modal__content {
margin-top: 10px;
padding: 1em;
border-bottom: 1px solid $border-gray;
border-top: 1px solid $border-gray;
margin: 10px -1em 0 -1em;
padding: 1em;

&--no-vertical-padding {
padding-top: 0;
Expand Down Expand Up @@ -66,6 +70,7 @@
padding: 1em;

span {
display: flex;
padding-right: 5px;
}

Expand All @@ -76,7 +81,7 @@
}

.modal__actions {
padding: 10px;
padding: 10px 0;

p {
margin-top: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{#if showModal}}
{{#modal-dialog
containerClassNames="new-conversation-modal"
containerClassNames="modal new-conversation-modal"
onClose=(action (pipe (action discardConversation) (action (mut showModal) false)))
targetAttachment="center"
translucentOverlay=true
Expand All @@ -13,7 +13,9 @@
{{fa-icon "close"}}
</span>

<h3>New Conversation</h3>
<div class="modal__header">
<h3>New Conversation</h3>
</div>

<form data-test-message-form>
<div class="modal__target-user">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
targetAttachment="center"
translucentOverlay=true
}}
<span {{action (mut showModal) false}} class="modal-close">
{{fa-icon "close"}}
</span>

<div class="modal__header">
<h2>Stop syncing this repository</h2>
<h3>Stop syncing this repository</h3>
</div>
<div class="modal__warning">
<p>Heads up! This is a potentially destructive action.</p>
Expand Down
13 changes: 0 additions & 13 deletions app/templates/components/modal-confirm.hbs

This file was deleted.

4 changes: 2 additions & 2 deletions app/templates/components/project-user-role-modal.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{/tooltip-on-element}}
{{#if showModal}}
{{#modal-dialog
containerClassNames="project-user-role-modal"
containerClassNames="modal project-user-role-modal"
onClose=(action (mut showModal) false)
targetAttachment="center"
translucentOverlay=true
Expand All @@ -22,7 +22,7 @@
</span>

<div class="modal__header">
<h2>Change role</h2>
<h3>Change role</h3>
</div>
<div class="modal__content modal__content--no-vertical-padding modal__content--without-top-border">
<div class="modal__target-user">
Expand Down
74 changes: 0 additions & 74 deletions tests/integration/components/modal-confirm-test.js

This file was deleted.

0 comments on commit fae8f7c

Please sign in to comment.