123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- .modal {
- align-items: flex-start;
- display: block;
- &.is-superimposed {
- .modal-background {
- z-index: 20;
- }
- .modal-container {
- z-index: 21;
- }
- }
- }
- .modal-background {
- top: 0;
- left: 0;
- width: 100vw;
- height: 100vh;
- position: fixed;
- background-color: rgba(0,0,0,0.85);
- z-index: 10;
- &-enter-active {
- animation: .4s ease fadeIn;
- }
- &-leave-active {
- animation: .4s ease fadeOut;
- }
- }
- .modal-container {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 11;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .modal-content {
- width: 600px;
- background-color: #FFF;
- &-enter-active {
- animation: .3s ease zoomIn;
- }
- &-leave-active {
- animation: .3s ease zoomOut;
- }
- &.is-expanded {
- align-self: stretch;
- width: 100%;
- margin: 20px;
- display: flex;
- flex-direction: column;
- > section {
- flex-grow: 1;
- }
- }
- header {
- background-color: mc('teal', '600');
- color: #FFF;
- display: flex;
- flex-shrink: 0;
- height: 40px;
- align-items: center;
- font-weight: 400;
- font-size: 16px;
- padding: 0 20px;
- position: relative;
- @each $color, $colorvalue in $material-colors {
- &.is-#{$color} {
- background-color: mc($color, '600');
- }
- }
- .modal-notify {
- position: absolute;
- display: none;
- align-items: center;
- height: 40px;
- right: 20px;
- top: 0;
- &.is-active {
- display: flex;
- }
- span {
- font-size: 12px;
- letter-spacing: 1px;
- text-transform: uppercase;
- }
- i {
- margin-left: 15px;
- display: inline-block;
- @include spinner(#FFF, .5s, 20px);
- }
- }
- }
- section {
- padding: 20px;
- border-top: 1px dotted mc('grey', '300');
- &:first-of-type {
- border-top: none;
- padding-top: 20px;
- }
- &:last-of-type {
- padding-bottom: 20px;
- }
- &.is-gapless {
- padding: 10px;
- display: flex;
- }
- &.modal-loading {
- display: flex;
- flex-direction: column;
- align-items: center;
- > i {
- display: block;
- @include spinner(mc('blue','500'), .4s, 32px);
- margin-bottom: 10px;
- }
- > span {
- color: mc('grey', '600');
- }
- > em {
- font-size: 12px;
- color: mc('grey', '500');
- font-style: normal;
- }
- }
- &.modal-instructions {
- display: flex;
- flex-direction: column;
- align-items: center;
- color: mc('grey', '800');
- img {
- height: 100px;
- & + * {
- margin-top: 10px;
- }
- }
- i.is-huge {
- font-size: 72px;
- margin-bottom: 10px;
- }
- > span {
- color: mc('grey', '800');
- }
- > em {
- font-size: 12px;
- color: mc('grey', '600');
- font-style: normal;
- margin-top: 10px;
- display: block;
- }
- }
- .bullets {
- list-style-type: square;
- padding: 5px 0 0 30px;
- font-size: 14px;
- color: mc('grey', '800');
- }
- .note {
- display: block;
- margin-top: 10px;
- font-size: 14px;
- color: mc('grey', '800');
- &:first-child {
- margin-top: 0;
- }
- ul {
- color: mc('grey', '800');
- padding-left: 10px;
- li {
- margin-top: 5px;
- display: flex;
- align-items: center;
- > i {
- margin-right: 8px;
- font-size: 18px;
- }
- }
- }
- }
- }
- footer {
- padding: 20px;
- text-align: right;
- .button {
- margin-left: 10px;
- }
- }
- }
- .modal-toolbar {
- background-color: mc('teal', '700');
- padding: 7px 20px;
- display: flex;
- flex-shrink: 0;
- justify-content: center;
- @each $color, $colorvalue in $material-colors {
- &.is-#{$color} {
- background-color: mc($color, '700');
- .button {
- border-color: mc($color, '900');
- background-color: mc($color, '900');
- &:hover {
- border-color: mc($color, '900');
- background-color: mc($color, '800');
- }
- }
- }
- }
- // BUTTONS
- .button {
- border: 1px solid mc('teal', '900');
- background-color: mc('teal', '900');
- transition: all .4s ease;
- color: #FFF;
- border-radius: 0;
- &:first-child {
- border-top-left-radius: 4px;
- border-bottom-left-radius: 4px;
- }
- &:last-child {
- border-top-right-radius: 4px;
- border-bottom-right-radius: 4px;
- }
- &:hover {
- border-color: mc('teal', '900');
- background-color: mc('teal', '800');
- color: #FFF;
- }
- }
- .button + .button {
- margin-left: 1px;
- }
- }
- .modal-sidebar {
- background-color: mc('teal', '50');
- padding: 0;
- //padding: 7px 20px;
- @each $color, $colorvalue in $material-colors {
- &.is-#{$color} {
- background-color: mc($color, '50');
- .model-sidebar-header {
- background-color: mc($color, '100');
- color: mc($color, '800');
- }
- .model-sidebar-list > li a {
- &:hover {
- background-color: mc($color, '200');
- }
- &.is-active {
- background-color: mc($color, '500');
- }
- }
- }
- }
- .model-sidebar-header {
- padding: 7px 20px;
- }
- .model-sidebar-content {
- padding: 7px 20px;
- }
- .model-sidebar-list {
- > li {
- padding: 0;
- a {
- display: flex;
- align-items: center;
- height: 34px;
- padding: 0 20px;
- cursor: pointer;
- color: mc('grey', '800');
- &:hover {
- background-color: mc('teal', '200');
- }
- &.is-active {
- color: #FFF;
- }
- i {
- margin-right: 7px;
- }
- }
- }
- }
- }
- .modal-content .card-footer-item.featured {
- animation: flash 4s ease 0 infinite;
- }
|