diff --git a/build/css/main.css b/build/css/main.css index 5bb32f09..27dcd58d 100644 --- a/build/css/main.css +++ b/build/css/main.css @@ -5973,9 +5973,6 @@ body { position: initial; margin-right: 2px; } -.modal-backdrop.in { - opacity: 0; } - [uib-tooltip] { cursor: default; } @@ -6212,90 +6209,6 @@ body { background-color: #d9534f; border-color: #d9534f; } -/* - * Copyright 2016 Resin.io - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -.modal-content { - background-color: #fff; - display: flex; - flex-direction: column; - margin: 0 auto; - height: auto; } - -.modal-header { - display: flex; - align-items: baseline; - text-transform: uppercase; - font-size: 11px; - color: #b3b3b3; - padding: 11px 20px; - flex-grow: 0; } - -.modal-title { - font-size: inherit; - flex-grow: 1; } - -.modal-body { - flex-grow: 1; - color: #666; - padding: 0 20px; - max-height: 250px; - overflow: auto; } - .modal-body .list-group-item { - display: flex; - align-items: center; - border-left: 0; - border-right: 0; - border-radius: 0; - border-color: #ededed; - padding: 12px 0; } - .modal-body .list-group-item > .tick { - font-size: 11px; } - .modal-body .list-group-item :first-child { - flex-grow: 1; } - .modal-body .list-group-item:first-child { - border-top: 0; } - .modal-body .list-group-item[disabled] .list-group-item-heading { - color: #b3b3b3; } - .modal-body .list-group-item-heading { - font-size: 13px; } - .modal-body .list-group-item-text { - line-height: 1; - font-size: 11px; - color: #b3b3b3; } - -.modal-open { - padding-right: 0 !important; } - -.modal-footer { - flex-grow: 0; - border: 0; } - -.modal { - display: flex !important; - justify-content: center; - align-items: center; } - .modal .button[disabled], .modal [disabled].progress-button { - background-color: #d5d5d5; - color: #787c7f; } - -.modal-dialog { - margin: 0; - position: initial; - max-width: 50%; } - /* * Copyright 2016 Resin.io * @@ -6358,24 +6271,110 @@ body { * See the License for the specific language governing permissions and * limitations under the License. */ -.update-notifier-modal-body { - padding: 30px 35px; - overflow: hidden; } +.modal-content { + background-color: #fff; + display: flex; + flex-direction: column; + margin: 0 auto; + height: auto; } -.modal-update-notifier .modal-body { - padding: 20px; - padding-bottom: 0; } +.modal-header { + display: flex; + align-items: baseline; + text-transform: uppercase; + font-size: 11px; + color: #b3b3b3; + padding: 11px 20px; + flex-grow: 0; } +.modal-title { + font-size: inherit; + flex-grow: 1; } + +.modal-body { + flex-grow: 1; + color: #666; + padding: 0; + max-height: 250px; + overflow: auto; } + .modal-body .list-group { + padding: 0 20px; } + .modal-body .list-group-item { + display: flex; + align-items: center; + border-left: 0; + border-right: 0; + border-radius: 0; + border-color: #ededed; + padding: 12px 0; } + .modal-body .list-group-item > .tick { + font-size: 11px; } + .modal-body .list-group-item :first-child { + flex-grow: 1; } + .modal-body .list-group-item:first-child { + border-top: 0; } + .modal-body .list-group-item[disabled] .list-group-item-heading { + color: #b3b3b3; } + .modal-body .list-group-item-heading { + font-size: 13px; } + .modal-body .list-group-item-text { + line-height: 1; + font-size: 11px; + color: #b3b3b3; } + +.modal-text { + padding: 20px; } + .modal-text > p:last-child { + margin-bottom: 0; } + +.modal-menu { + display: flex; } + .modal-menu > .button, .modal-menu > .progress-button { + flex-basis: 50%; } + +.modal-open { + padding-right: 0 !important; } + +.modal-backdrop.in { + opacity: 0; } + +.modal-footer { + flex-grow: 0; + border: 0; } + +.modal { + display: flex !important; + justify-content: center; + align-items: center; } + .modal .button[disabled], .modal [disabled].progress-button { + background-color: #d5d5d5; + color: #787c7f; } + +.modal-dialog { + margin: 0; + position: initial; + max-width: 50%; } + +/* + * Copyright 2016 Resin.io + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ .modal-update-notifier .modal-footer .checkbox { color: #b3b3b3; font-size: 11px; margin-bottom: 0; } -.modal-update-notifier .modal-menu { - display: flex; } - .modal-update-notifier .modal-menu > .button, .modal-update-notifier .modal-menu > .progress-button { - flex-basis: 50%; } - /* * Copyright 2016 Resin.io * @@ -6488,8 +6487,6 @@ body { margin: 15px; color: #666; background-color: #f2f2f2; - padding: 8px; - overflow: hidden; word-wrap: break-word; } /* @@ -6614,14 +6611,6 @@ body { .modal-settings-dangerous-modal .modal-title .glyphicon, .modal-settings-dangerous-modal .modal-title .tick { color: #d9534f; } -.modal-settings-dangerous-modal .modal-body { - padding: 20px; } - -.modal-settings-dangerous-modal .modal-footer { - display: flex; } - .modal-settings-dangerous-modal .modal-footer > .button, .modal-settings-dangerous-modal .modal-footer > .progress-button { - flex-basis: 50%; } - /* * Copyright 2016 Resin.io * diff --git a/lib/gui/scss/components/_modal.scss b/lib/gui/components/modal/styles/_modal.scss similarity index 90% rename from lib/gui/scss/components/_modal.scss rename to lib/gui/components/modal/styles/_modal.scss index bb9a587c..4c48eada 100644 --- a/lib/gui/scss/components/_modal.scss +++ b/lib/gui/components/modal/styles/_modal.scss @@ -40,10 +40,14 @@ .modal-body { flex-grow: 1; color: $palette-theme-light-foreground; - padding: 0 20px; + padding: 0; max-height: 250px; overflow: auto; + .list-group { + padding: 0 20px; + } + .list-group-item { display: flex; align-items: center; @@ -81,6 +85,22 @@ } } +.modal-text { + padding: 20px; + + > p:last-child { + margin-bottom: 0; + } +} + +.modal-menu { + display: flex; + + > .button { + flex-basis: 50%; + } +} + // UI Bootstrap adds the `.modal-open` class to the
// element and sets its right padding to the width of the // window, causing the window content to overflow and get @@ -91,6 +111,11 @@ padding-right: 0 !important; } +// Disable modal opacity +.modal-backdrop.in { + opacity: 0; +} + .modal-footer { flex-grow: 0; border: 0; @@ -115,4 +140,3 @@ position: initial; max-width: 50%; } - diff --git a/lib/gui/components/tooltip-modal/styles/_tooltip-modal.scss b/lib/gui/components/tooltip-modal/styles/_tooltip-modal.scss index 7c39aa32..0e4a1d99 100644 --- a/lib/gui/components/tooltip-modal/styles/_tooltip-modal.scss +++ b/lib/gui/components/tooltip-modal/styles/_tooltip-modal.scss @@ -19,7 +19,5 @@ margin: 15px; color: $palette-theme-light-foreground; background-color: darken($palette-theme-light-background, 5%); - padding: 8px; - overflow: hidden; word-wrap: break-word; } diff --git a/lib/gui/components/tooltip-modal/templates/tooltip-modal.tpl.html b/lib/gui/components/tooltip-modal/templates/tooltip-modal.tpl.html index 226a3dd7..5b8be9f4 100644 --- a/lib/gui/components/tooltip-modal/templates/tooltip-modal.tpl.html +++ b/lib/gui/components/tooltip-modal/templates/tooltip-modal.tpl.html @@ -3,4 +3,6 @@ -A new version of Etcher is available for download
+A new version of Etcher is available for download
+Are you sure you want to turn this on? {{ modal.message }}
+Are you sure you want to turn this on? {{ modal.message }}
+