You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.1 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (C) 2017 MuK IT GmbH
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. **********************************************************************************/
  19. .mk_preview_dialog {
  20. display: flex;
  21. height: calc(100% - #{$modal-dialog-margin * 2});
  22. .modal-content {
  23. height: calc(100vh - #{$modal-dialog-margin * 2});
  24. overflow: hidden;
  25. }
  26. .modal-header {
  27. padding: 0.5rem 1rem;
  28. .modal-title {
  29. margin-top: 0.5rem;
  30. }
  31. .mk_preview_buttons {
  32. float: right;
  33. padding-top: 0.5rem;
  34. button, a {
  35. @extend .close;
  36. margin-left: 0;
  37. font-size: $mk-preview-actions-font;
  38. &:focus {
  39. outline: none;
  40. }
  41. }
  42. .mk_preview_actions {
  43. display: inline-block;
  44. }
  45. .mk_preview_minimize_btn i {
  46. line-height: 0.5;
  47. vertical-align: text-top;
  48. }
  49. }
  50. }
  51. &.mk_preview_maximize {
  52. min-width: 100%;
  53. margin: 0;
  54. .modal-content {
  55. height: 100vh;
  56. }
  57. .mk_preview_maximize_btn {
  58. display: none;
  59. }
  60. }
  61. &:not(.mk_preview_maximize) {
  62. .mk_preview_minimize_btn {
  63. display: none;
  64. }
  65. }
  66. .modal-header,
  67. .modal-footer {
  68. flex-shrink: 0;
  69. }
  70. .modal-body {
  71. padding: 5px;
  72. overflow-y: auto;
  73. }
  74. .modal-footer {
  75. padding: 0.5rem 1rem;
  76. justify-content: center;
  77. .pagination {
  78. margin: 0;
  79. }
  80. }
  81. }
  82. @include media-breakpoint-up(sm) {
  83. .mk_preview_dialog {
  84. height: calc(100% - #{$modal-dialog-margin-y-sm-up * 2});
  85. .modal-content {
  86. height: calc(100vh - #{$modal-dialog-margin-y-sm-up * 2});
  87. }
  88. }
  89. }