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.

93 lines
2.2 KiB

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