Update CSS

This commit is contained in:
Matt-Yorkley
2018-11-19 23:06:02 +00:00
parent 638dc6eada
commit 6b6a41cfbc
6 changed files with 10 additions and 15 deletions

View File

@@ -2,4 +2,4 @@ angular.module("admin.orders").directive "invoicesModal", ($modal) ->
restrict: 'C'
link: (scope, elem, attrs, ctrl) ->
elem.on "click", (ev) =>
scope.uploadModal = $modal.open(templateUrl: 'admin/modals/bulk_invoice.html', controller: ctrl, scope: scope, windowClass: 'bulk-invoice-modal')
scope.uploadModal = $modal.open(templateUrl: 'admin/modals/bulk_invoice.html', controller: ctrl, scope: scope, windowClass: 'simple-modal')

View File

@@ -2,5 +2,5 @@ angular.module("ofn.admin").directive "imageModal", ($modal, ProductImageService
restrict: 'C'
link: (scope, elem, attrs, ctrl) ->
elem.on "click", (ev) =>
scope.uploadModal = $modal.open(templateUrl: 'admin/modals/image_upload.html', controller: ctrl, scope: scope, windowClass: 'product-image-upload')
scope.uploadModal = $modal.open(templateUrl: 'admin/modals/image_upload.html', controller: ctrl, scope: scope, windowClass: 'simple-modal')
ProductImageService.configure(scope.product)

View File

@@ -17,4 +17,3 @@
@import 'variables';
@import 'components/*';
@import '*';
@import 'pages/*';

View File

@@ -1,6 +1,6 @@
@import '../variables';
.reveal-modal.product-image-upload {
.reveal-modal.simple-modal {
width: 300px;
.close-reveal-modal {

View File

@@ -115,22 +115,18 @@ table.index td.actions {
}
}
.bulk-invoice-modal {
.simple-modal {
text-align: center;
.modal-title {
margin-bottom: 1.5em;
}
.message {
.message, .error {
margin-bottom: 1em;
}
.error {
margin-bottom: 1em;
}
.spinner {
color: $warning-red;
}
}

View File

@@ -759,9 +759,9 @@ feature %q{
end
# Shows upload modal
expect(page).to have_selector "div.reveal-modal.product-image-upload"
expect(page).to have_selector "div.reveal-modal"
within "div.reveal-modal.product-image-upload" do
within "div.reveal-modal" do
# Shows preview of current image
expect(page).to have_css "img.preview"
@@ -773,7 +773,7 @@ feature %q{
expect(page).to have_no_css "img.spinner", visible: true
end
expect(page).to have_no_selector "div.reveal-modal.product-image-upload"
expect(page).to have_no_selector "div.reveal-modal"
within "table#listing_products tr#p_#{product.id}" do
# New thumbnail is shown in image column
@@ -783,7 +783,7 @@ feature %q{
page.find("a.image-modal").trigger('click')
end
expect(page).to have_selector "div.reveal-modal.product-image-upload"
expect(page).to have_selector "div.reveal-modal"
end
end
end