// Modal wrappers .modal-outer-container { width: 100%; height: 100%; } .modal-middle-container { display: flex; height: 100%; align-items: center; } .modal-inner-container { box-sizing: border-box; flex: 0 1 auto; margin: 0 auto; max-width: 700px; background-color: $secondary; box-shadow: shadow("modal"); .select-kit { width: 220px; &.tag-chooser { width: 100%; } } } .modal-open { .dropdown-menu { z-index: z("modal", "dropdown"); } .popover { z-index: z("modal", "popover"); } .tooltip { z-index: z("modal", "tooltip"); } } .bootbox.modal { position: fixed; z-index: z("modal", "content"); overflow: auto; height: auto; background-color: $secondary; box-shadow: shadow("card"); background-clip: padding-box; } .input-hint-text { margin-left: 0.5em; color: $secondary-high; } .modal-header { display: flex; padding: 10px 15px; border-bottom: 1px solid $primary-low; align-items: center; .title { h3 { margin-bottom: 0; } p { margin: 0; } } .modal-close { align-self: flex-start; order: 2; margin-left: auto; padding-left: 2em; .close { color: $primary-high; } } } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: z("modal", "overlay"); background-color: #111; &.fade { opacity: 0; } } .modal-backdrop, .modal-backdrop.fade.in { animation: fade 0.3s; opacity: 0.9; filter: alpha(opacity=90); } // fade in @keyframes fade { from { opacity: 0; } to { opacity: 0.9; } } // slide in @keyframes slidein { from { transform: translateY(-20%); } to { transform: translateY(0); } } .create-account.in .modal-inner-container, .login-modal.in .modal-inner-container { animation: slidein 0.3s; } .inline-modal { .modal-inner-container { border: 1px solid $secondary-medium; } } .fixed-modal { position: fixed; top: 0; width: 100%; height: 100%; z-index: z("modal", "content"); overflow: auto; &:not(.history-modal) { .modal-body:not(.reorder-categories):not(.poll-ui-builder) { max-height: none !important; } } } .modal-form { margin-bottom: 0; } .modal-footer { padding: 14px 15px 10px; border-top: 1px solid $primary-low; .btn { margin: 0 5px 5px 0; } } .modal.edit-category-modal { .modal-body { textarea { height: 10em; } } @media screen and (min-width: 524px) { .modal-inner-container { min-width: 525px; } } } .modal { .nav { padding: 10px 30px 10px 15px; background-color: $secondary; li > a { font-size: $font-0; } border-bottom: 1px solid $primary-low; } &.hidden { display: none; } .modal-body { box-sizing: border-box; width: 100%; overflow-y: auto; max-height: 400px; &.full-height-modal { max-height: calc(100vh - 150px); } textarea { width: 99%; height: 80px; } p { font-size: $font-0; } .archetype-option { margin-bottom: 20px; } .warning { color: $danger !important; } } .password-confirmation { display: none; } section.field { padding: 0.25em 0; margin-bottom: 5px; } section.field .field-item { display: inline-block; margin-right: 10px; } // password reset modal .modal-body.forgot-password-modal p { font-size: $font-0; } pre code { white-space: pre-wrap; max-width: 700px; } } .reply-where-modal { .modal-footer { a { display: block; } .d-modal-cancel { margin: 1em 0 0.5em; } .btn { text-align: left; font-size: $font-up-2; line-height: $line-height-medium; margin-bottom: 10px; font-weight: bold; .topic-title { font-weight: normal; } } } } .d-modal-cancel { margin-left: 1em; color: $primary-medium; &:hover { color: $danger; } } .delete-user-modal { .modal-footer { .btn { line-height: $line-height-medium; } } } .delete-posts-progress { .progress-bar { height: 15px; position: relative; background: $primary-low-mid; border-radius: 25px; overflow: hidden; margin: 30px 0 20px; span { display: block; width: 0%; height: 100%; background-color: $tertiary; position: relative; transition: width 0.6s linear; } } } .permission-list { // Category security tab list-style: none; margin: 0 0 30px; padding: 0; .name { margin-right: 20px; display: inline-block; min-width: 100px; } .permission { margin-left: 20px; } .d-icon-times-circle { margin-left: 5px; color: $danger; } li { margin-bottom: 10px; } } .edit-category-modal { input:not([type="checkbox"]), .controls { display: block; margin-bottom: 0.5em; } .disable_info_wrap { position: relative; display: inline-block; float: right; .cannot_delete_reason { position: absolute; background: $primary; color: $secondary; text-align: center; border-radius: 2px; padding: 12px 8px; &::after { top: 100%; left: 57%; border: solid transparent; content: " "; position: absolute; border-top-color: $primary; border-width: 8px; } } } .permission-selector { margin-right: 0.25em; } .pending-permission-change-alert { margin-left: auto; max-width: 250px; background: $primary-very-high; color: $secondary; margin-top: 10px; padding: 5px 10px; position: relative; .arrow-div { border: solid transparent; content: " "; position: absolute; border-bottom-color: $primary-very-high; border-width: 7px; top: -13px; left: 200px; } } .add-permission { position: relative; top: 0.1em; } .edit-category-tab-settings { $category-settings-width: 280px; // Consistent width makes this all easier to read > section { margin-bottom: 1.5em; } input[type="number"], input[type="text"], .select-kit { width: $category-settings-width; } label { max-width: $category-settings-width; } .category-email-in-outlet { label { flex-wrap: wrap; // Todo: fix all multi-element labels a { margin-left: 1.3em; } } } } } .incoming-email-modal { .btn { transition: none; background-color: transparent; margin-right: 5px; &:hover, &.active { color: $primary; } &.active { font-weight: bold; } &:focus { outline: 2px solid $primary-low; } } .incoming-email-tabs { margin-bottom: 15px; } .incoming-email-content { height: 300px; max-width: 700px; width: 90vw; // forcing textarea wider textarea, .incoming-email-html-part { height: 95%; border: none; border-top: 1px solid $primary-low; padding-top: 10px; } textarea { font-family: monospace; resize: none; border-radius: 0; box-shadow: none; } .incoming-email-html-part { padding: 10px 4px 4px 4px; } } } .modal .modal-body.change-timestamp { #date-container { .pika-single { width: 100%; box-sizing: border-box; display: flex; justify-content: center; } } form { display: flex; .date-picker-wrapper, input[type="time"] { width: 50%; } .date-picker-wrapper { display: flex; flex: 1; .date-picker { flex: 1; } } input.date-picker, input[type="time"] { text-align: left; margin: 0; } } } .change-timestamp { max-width: 420px; } .change-timestamp, .poll-ui-builder { #date-container { .pika-single { position: relative !important; // overriding another important display: inline-block; margin-top: 0.5em; } } .date-picker-wrapper { min-width: 130px; margin-right: 0.5em; } input[type="time"] { width: 130px; } form { margin: 0; } } .flag-modal { max-height: 450px; .flag-action-type-details { width: 100%; max-width: 500px; line-height: $line-height-large; } } .flag-message { margin: 0; } .custom-message-length { color: $primary-medium; font-size: $font-down-1; } .jump-to-post-modal { .modal-inner-container { max-width: 350px; } .modal-body { overflow-y: visible; #post-jump, .date-picker { margin: 0; width: 100px; } .input-hint-text { color: $primary; } .jump-to-post-control .index { color: $primary-medium; } .jump-to-date-control .input-hint-text { margin-left: 0; } .separator { display: flex; align-items: center; margin: 0.5em auto; hr { flex: 1 0 0px; } .text { margin: 0 0.5em 0 0; color: $primary-medium; } } } } // move-to topic modal .move-to-modal { // move to existing topic .existing-topic { .radio { flex-wrap: wrap; } .topic-title { max-width: 90%; } .topic-categories { width: 100%; } } } .modal:not(.has-tabs) { .modal-tab { position: absolute; width: 95%; } } .modal { &.has-tabs { .modal-tabs { display: inline-flex; flex-wrap: wrap; width: calc(100% - 20px); flex: 1 0 auto; margin: 0; .modal-tab { list-style: none; padding: s(1 2); margin-right: s(1); cursor: pointer; &.is-active { color: $secondary; background: $danger; &.single-tab { background: none; color: $primary; padding: s(1 0); } } } } } }