blob: dc1c9d8bda848c63242dedd4ab428dd9877839cc [file] [log] [blame]
Michael Davis9486f542017-05-30 15:35:31 -05001.modal-overlay {
beccabroekd0dbe3b2019-03-11 15:02:25 -05002 width: 100%;
3 height: 100%;
4 z-index: -1;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -05005 background-color: $primary-dark;
beccabroekd0dbe3b2019-03-11 15:02:25 -05006 position: fixed;
7 top: 0;
8 left: 0;
9 margin: 0;
10 padding: 0;
Iftekharul Islamec6bcd12017-09-06 10:49:07 -050011 opacity: 0;
Michael Davis9486f542017-05-30 15:35:31 -050012}
13
Derick Montague30d7c632019-07-31 22:35:48 -050014.modal-overlay.active {
beccabroekd0dbe3b2019-03-11 15:02:25 -050015 z-index: 100;
Derick Montague30d7c632019-07-31 22:35:48 -050016 opacity: 0.5;
Iftekharul Islamec6bcd12017-09-06 10:49:07 -050017 display: block;
Michael Davis98e66602017-08-28 18:37:52 -050018 @include fastTransition-all;
Iftekharul Islamc0161392017-06-14 15:46:15 -050019}
20
Yoshie Muranakae4194ce2019-05-24 14:33:56 -050021.modal:not(.uib-modal) {
beccabroekd0dbe3b2019-03-11 15:02:25 -050022 width: auto;
23 height: auto;
24 left: 50%;
25 top: 50%;
Derick Montague30d7c632019-07-31 22:35:48 -050026 transform: translate(-50%, -50%);
Michael Davis9486f542017-05-30 15:35:31 -050027 max-width: 850px;
beccabroekd0dbe3b2019-03-11 15:02:25 -050028 min-width: 450px;
Derick Montague30d7c632019-07-31 22:35:48 -050029 padding: 0.8em 1.5em;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050030 border: thin $primary-dark solid;
Derick Montague30d7c632019-07-31 22:35:48 -050031 background-color: $background-01;
beccabroekd0dbe3b2019-03-11 15:02:25 -050032 z-index: 101;
33 position: fixed;
Michael Davis9486f542017-05-30 15:35:31 -050034 overflow: hidden;
Michael Davis9486f542017-05-30 15:35:31 -050035 @include fastTransition-all;
36 @include mediaQuery(medium) {
37 padding: 2.5em;
38 }
39}
40
Derick Montague30d7c632019-07-31 22:35:48 -050041.modal.active {
Michael Davis98e66602017-08-28 18:37:52 -050042 @include fastTransition-all;
Gunnar Mills25fdeb82018-02-21 13:42:04 -060043 display: block;
Iftekharul Islamc0161392017-06-14 15:46:15 -050044}
45
Michael Davis9486f542017-05-30 15:35:31 -050046.modal .page-header {
Derick Montague30d7c632019-07-31 22:35:48 -050047 padding-bottom: 0.7em;
Michael Davis9486f542017-05-30 15:35:31 -050048}
49
50.screen-reader-offscreen {
beccabroekd0dbe3b2019-03-11 15:02:25 -050051 position: absolute;
52 left: -999px;
53 width: 1px;
54 height: 1px;
55 top: auto;
Michael Davis9486f542017-05-30 15:35:31 -050056}
57.modal__content {
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050058 border-bottom: 1px solid $border-color-02;
Michael Davis9486f542017-05-30 15:35:31 -050059 padding-bottom: 1em;
60 margin-bottom: 2em;
61}
62.modal__link {
63 display: block;
Derick Montague30d7c632019-07-31 22:35:48 -050064 margin: 0.8em 0 1em;
Michael Davis9486f542017-05-30 15:35:31 -050065 @include mediaQuery(medium) {
66 display: inline-block;
Derick Montague30d7c632019-07-31 22:35:48 -050067 margin: 0.6em 0;
Michael Davis9486f542017-05-30 15:35:31 -050068 }
69}
Derick Montague30d7c632019-07-31 22:35:48 -050070// TODO: Use the form__actions pattern / selector
Michael Davis9486f542017-05-30 15:35:31 -050071.modal__button-wrapper {
72 float: right;
73 button {
Derick Montague30d7c632019-07-31 22:35:48 -050074 margin-bottom: 0.8em;
75 margin-right: 0.8em;
Michael Davis9486f542017-05-30 15:35:31 -050076 display: inline-block;
77 @include mediaQuery(medium) {
Derick Montague30d7c632019-07-31 22:35:48 -050078 margin-left: 0.8em;
Michael Davis9486f542017-05-30 15:35:31 -050079 margin-right: 0;
80 }
81 }
Gunnar Mills25fdeb82018-02-21 13:42:04 -060082}
Yoshie Muranakae4194ce2019-05-24 14:33:56 -050083
84.uib-modal.fade.in {
85 opacity: 1;
86}
87.uib-modal.in .modal-dialog {
88 transform: translate(0, 10vh);
89 margin-top: 50px;
90 .icon__close {
91 margin: 0;
92 padding: 0;
93 }
94 .modal-content {
95 border-radius: 0;
Yoshie Muranaka6f7ec802019-06-24 14:35:41 -050096 border-color: $primary-dark;
Yoshie Muranakae4194ce2019-05-24 14:33:56 -050097 }
98}
99
100.modal-backdrop.in {
101 opacity: 0.5;
102}
103.uib-modal__content {
104 padding: 1em;
105}