Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 1 | .modal-overlay { |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 2 | width: 100%; |
| 3 | height: 100%; |
| 4 | z-index: -1; |
| 5 | background-color: #000; |
| 6 | position: fixed; |
| 7 | top: 0; |
| 8 | left: 0; |
| 9 | margin: 0; |
| 10 | padding: 0; |
Iftekharul Islam | ec6bcd1 | 2017-09-06 10:49:07 -0500 | [diff] [blame] | 11 | opacity: 0; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 12 | } |
| 13 | |
Iftekharul Islam | c016139 | 2017-06-14 15:46:15 -0500 | [diff] [blame] | 14 | .modal-overlay.active{ |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 15 | z-index: 100; |
Michael Davis | 98e6660 | 2017-08-28 18:37:52 -0500 | [diff] [blame] | 16 | opacity: .5; |
Iftekharul Islam | ec6bcd1 | 2017-09-06 10:49:07 -0500 | [diff] [blame] | 17 | display: block; |
Michael Davis | 98e6660 | 2017-08-28 18:37:52 -0500 | [diff] [blame] | 18 | @include fastTransition-all; |
Iftekharul Islam | c016139 | 2017-06-14 15:46:15 -0500 | [diff] [blame] | 19 | } |
| 20 | |
Yoshie Muranaka | e4194ce | 2019-05-24 14:33:56 -0500 | [diff] [blame^] | 21 | .modal:not(.uib-modal) { |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 22 | width: auto; |
| 23 | height: auto; |
| 24 | left: 50%; |
| 25 | top: 50%; |
| 26 | transform: translate(-50%,-50%); |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 27 | max-width: 850px; |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 28 | min-width: 450px; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 29 | padding: .8em 1.5em; |
| 30 | border: thin #000 solid; |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 31 | background-color :#fff; |
| 32 | z-index: 101; |
| 33 | position: fixed; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 34 | overflow: hidden; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 35 | @include fastTransition-all; |
| 36 | @include mediaQuery(medium) { |
| 37 | padding: 2.5em; |
| 38 | } |
| 39 | } |
| 40 | |
Iftekharul Islam | c016139 | 2017-06-14 15:46:15 -0500 | [diff] [blame] | 41 | .modal.active{ |
Michael Davis | 98e6660 | 2017-08-28 18:37:52 -0500 | [diff] [blame] | 42 | @include fastTransition-all; |
Gunnar Mills | 25fdeb8 | 2018-02-21 13:42:04 -0600 | [diff] [blame] | 43 | display: block; |
Iftekharul Islam | c016139 | 2017-06-14 15:46:15 -0500 | [diff] [blame] | 44 | } |
| 45 | |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 46 | .modal .page-header { |
| 47 | padding-bottom: .7em; |
| 48 | } |
| 49 | |
| 50 | .screen-reader-offscreen { |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 51 | position: absolute; |
| 52 | left: -999px; |
| 53 | width: 1px; |
| 54 | height: 1px; |
| 55 | top: auto; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 56 | } |
| 57 | .modal__content { |
| 58 | border-bottom: 1px solid $lightbg__grey; |
| 59 | padding-bottom: 1em; |
| 60 | margin-bottom: 2em; |
| 61 | } |
| 62 | .modal__link { |
| 63 | display: block; |
| 64 | margin: .8em 0 1em; |
| 65 | @include mediaQuery(medium) { |
| 66 | display: inline-block; |
| 67 | margin: .6em 0; |
| 68 | } |
| 69 | } |
| 70 | .modal__button-wrapper { |
| 71 | float: right; |
| 72 | button { |
| 73 | margin-bottom: .8em; |
| 74 | margin-right: .8em; |
| 75 | display: inline-block; |
| 76 | @include mediaQuery(medium) { |
| 77 | margin-left: .8em; |
| 78 | margin-right: 0; |
| 79 | } |
| 80 | } |
Gunnar Mills | 25fdeb8 | 2018-02-21 13:42:04 -0600 | [diff] [blame] | 81 | } |
Yoshie Muranaka | e4194ce | 2019-05-24 14:33:56 -0500 | [diff] [blame^] | 82 | |
| 83 | .uib-modal.fade.in { |
| 84 | opacity: 1; |
| 85 | } |
| 86 | .uib-modal.in .modal-dialog { |
| 87 | transform: translate(0, 10vh); |
| 88 | margin-top: 50px; |
| 89 | .icon__close { |
| 90 | margin: 0; |
| 91 | padding: 0; |
| 92 | } |
| 93 | .modal-content { |
| 94 | border-radius: 0; |
| 95 | border-color: $black; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | .modal-backdrop.in { |
| 100 | opacity: 0.5; |
| 101 | } |
| 102 | .uib-modal__content { |
| 103 | padding: 1em; |
| 104 | } |