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; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 5 | background-color: $primary-dark; |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 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 | |||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 14 | .modal-overlay.active { |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 15 | z-index: 100; |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 16 | opacity: 0.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; |
miramurali23 | 5e8785d | 2019-06-10 15:09:27 -0500 | [diff] [blame] | 23 | min-width: 450px; |
24 | max-width: 960px; | ||||
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 25 | height: auto; |
26 | left: 50%; | ||||
27 | top: 50%; | ||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 28 | transform: translate(-50%, -50%); |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 29 | max-width: 850px; |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 30 | min-width: 450px; |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 31 | padding: 0.8em 1.5em; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 32 | border: thin $primary-dark solid; |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 33 | background-color: $background-01; |
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 34 | z-index: 101; |
35 | position: fixed; | ||||
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 36 | overflow: hidden; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 37 | @include fastTransition-all; |
38 | @include mediaQuery(medium) { | ||||
39 | padding: 2.5em; | ||||
40 | } | ||||
41 | } | ||||
42 | |||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 43 | .modal.active { |
Michael Davis | 98e6660 | 2017-08-28 18:37:52 -0500 | [diff] [blame] | 44 | @include fastTransition-all; |
Gunnar Mills | 25fdeb8 | 2018-02-21 13:42:04 -0600 | [diff] [blame] | 45 | display: block; |
Iftekharul Islam | c016139 | 2017-06-14 15:46:15 -0500 | [diff] [blame] | 46 | } |
47 | |||||
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 48 | .modal .page-header { |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 49 | padding-bottom: 0.7em; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 50 | } |
51 | |||||
52 | .screen-reader-offscreen { | ||||
beccabroek | d0dbe3b | 2019-03-11 15:02:25 -0500 | [diff] [blame] | 53 | position: absolute; |
54 | left: -999px; | ||||
55 | width: 1px; | ||||
56 | height: 1px; | ||||
57 | top: auto; | ||||
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 58 | } |
59 | .modal__content { | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 60 | border-bottom: 1px solid $border-color-02; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 61 | padding-bottom: 1em; |
62 | margin-bottom: 2em; | ||||
63 | } | ||||
64 | .modal__link { | ||||
65 | display: block; | ||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 66 | margin: 0.8em 0 1em; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 67 | @include mediaQuery(medium) { |
68 | display: inline-block; | ||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 69 | margin: 0.6em 0; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 70 | } |
71 | } | ||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 72 | // TODO: Use the form__actions pattern / selector |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 73 | .modal__button-wrapper { |
74 | float: right; | ||||
75 | button { | ||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 76 | margin-bottom: 0.8em; |
77 | margin-right: 0.8em; | ||||
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 78 | display: inline-block; |
79 | @include mediaQuery(medium) { | ||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 80 | margin-left: 0.8em; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 81 | margin-right: 0; |
82 | } | ||||
83 | } | ||||
Gunnar Mills | 25fdeb8 | 2018-02-21 13:42:04 -0600 | [diff] [blame] | 84 | } |
Yoshie Muranaka | e4194ce | 2019-05-24 14:33:56 -0500 | [diff] [blame] | 85 | |
Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame^] | 86 | /** |
87 | * Markup for bootstrap modal | ||||
88 | <div class="uib-modal__content"> | ||||
89 | <div class="modal-header"> | ||||
90 | <h2 class="modal-title" id="modal_label"> | ||||
91 | Title here | ||||
92 | </h2> | ||||
93 | <button | ||||
94 | type="button" | ||||
95 | class="btn btn--close" | ||||
96 | ng-click="$dismiss()" | ||||
97 | aria-label="close"> | ||||
98 | <icon file="icon-close.svg" aria-hidden="true"></icon> | ||||
99 | </button> | ||||
100 | </div> | ||||
101 | <div class="modal-body"> | ||||
102 | Body content | ||||
103 | </div> | ||||
104 | <div class="modal-footer"> | ||||
105 | <button | ||||
106 | type="button" | ||||
107 | class="btn btn-secondary" | ||||
108 | ng-click="$dismiss()"> | ||||
109 | Cancel | ||||
110 | </button> | ||||
111 | <button | ||||
112 | type="submit" | ||||
113 | class="btn btn-primary" | ||||
114 | ng-click="function()"> | ||||
115 | Save | ||||
116 | </button> | ||||
117 | </div> | ||||
118 | </div> | ||||
119 | */ | ||||
120 | |||||
Yoshie Muranaka | e4194ce | 2019-05-24 14:33:56 -0500 | [diff] [blame] | 121 | .uib-modal.fade.in { |
122 | opacity: 1; | ||||
123 | } | ||||
Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame^] | 124 | |
Yoshie Muranaka | e4194ce | 2019-05-24 14:33:56 -0500 | [diff] [blame] | 125 | .uib-modal.in .modal-dialog { |
126 | transform: translate(0, 10vh); | ||||
127 | margin-top: 50px; | ||||
128 | .icon__close { | ||||
129 | margin: 0; | ||||
130 | padding: 0; | ||||
131 | } | ||||
132 | .modal-content { | ||||
133 | border-radius: 0; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 134 | border-color: $primary-dark; |
Yoshie Muranaka | e4194ce | 2019-05-24 14:33:56 -0500 | [diff] [blame] | 135 | } |
136 | } | ||||
137 | |||||
138 | .modal-backdrop.in { | ||||
139 | opacity: 0.5; | ||||
140 | } | ||||
Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame^] | 141 | |
Yoshie Muranaka | e4194ce | 2019-05-24 14:33:56 -0500 | [diff] [blame] | 142 | .uib-modal__content { |
143 | padding: 1em; | ||||
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 144 | .modal-header { |
145 | display: block; | ||||
146 | } | ||||
147 | .btn--close { | ||||
148 | padding: 0; | ||||
149 | svg { | ||||
150 | height: 1.6em; | ||||
151 | } | ||||
152 | } | ||||
Yoshie Muranaka | e4194ce | 2019-05-24 14:33:56 -0500 | [diff] [blame] | 153 | } |
Yoshie Muranaka | fa56273 | 2019-07-17 11:23:15 -0500 | [diff] [blame] | 154 | |
155 | .uib-modal { | ||||
156 | .btn--close { | ||||
157 | position: absolute; | ||||
158 | right: 0; | ||||
159 | top: 0; | ||||
160 | svg { | ||||
161 | height: 2em; | ||||
162 | } | ||||
163 | } | ||||
Dixsie Wolmers | e368108 | 2019-06-21 13:48:06 -0500 | [diff] [blame] | 164 | } |