mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update CSS
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -17,4 +17,3 @@
|
||||
@import 'variables';
|
||||
@import 'components/*';
|
||||
@import '*';
|
||||
@import 'pages/*';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@import '../variables';
|
||||
|
||||
.reveal-modal.product-image-upload {
|
||||
.reveal-modal.simple-modal {
|
||||
width: 300px;
|
||||
|
||||
.close-reveal-modal {
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user