_layout_kibela.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. $navbar-height-adjustment: 10px;
  2. body.kibela {
  3. .grw-pt-10px {
  4. padding-top: 10px !important;
  5. }
  6. /* Logo */
  7. .logo {
  8. .logo-mark {
  9. height: 50px;
  10. box-shadow: none;
  11. svg {
  12. width: 60px;
  13. }
  14. }
  15. }
  16. /* header */
  17. .authors {
  18. padding-top: 10px;
  19. li {
  20. list-style: none !important;
  21. }
  22. }
  23. .panel-heading {
  24. border-radius: 0 !important;
  25. }
  26. /* page list */
  27. .page-attachments-row {
  28. border: 0px;
  29. }
  30. .round-corner {
  31. border-radius: 0.35em;
  32. }
  33. .round-corner-top {
  34. z-index: absolute;
  35. border-radius: 0.35em;
  36. }
  37. .kibela-block {
  38. position: relative;
  39. top: 30px;
  40. right: 100px;
  41. bottom: 0px;
  42. left: 0px;
  43. z-index: absolute;
  44. max-width: 1024px;
  45. min-height: 8em;
  46. margin: auto;
  47. border-radius: 0.35em;
  48. @include media-breakpoint-down(xs) {
  49. top: 0px;
  50. }
  51. }
  52. .grw-subnav {
  53. position: relative;
  54. border: none;
  55. svg {
  56. display: none;
  57. }
  58. &.grw-subnav-user-page {
  59. min-height: 128px;
  60. }
  61. @media screen and (max-width: 765px) {
  62. padding-top: 30px;
  63. }
  64. @include media-breakpoint-down(xs) {
  65. padding-top: 0px;
  66. }
  67. }
  68. .revision-toc {
  69. position: sticky;
  70. top: calc(60px + 5px);
  71. right: 10rem;
  72. min-width: 100%;
  73. margin-top: 40px;
  74. .revision-toc-content {
  75. padding: 0;
  76. }
  77. @media screen and (max-width: 1400px) {
  78. &.affix {
  79. right: 0rem !important;
  80. transition: 0.5s;
  81. }
  82. }
  83. }
  84. /* admin navigation */
  85. .admin-navigation {
  86. .list-group-item + .list-group-item.active {
  87. margin-top: 2px;
  88. }
  89. }
  90. /* Tabs */
  91. .nav.nav-tabs {
  92. > .nav-item {
  93. cursor: pointer;
  94. > .nav-link {
  95. border: none;
  96. border-radius: 3px;
  97. }
  98. }
  99. }
  100. /* edit */
  101. .CodeMirror {
  102. border-radius: 0.35em;
  103. }
  104. &.on-edit {
  105. $header-plus-footer: 42px // .nav height
  106. + 5.5px // .kibela-block border-top
  107. + 15px // .tab-content padding-top
  108. + 1px // .page-editor-footer border-top
  109. + 60px; // .page-editor-footer min-height
  110. @include expand-editor($header-plus-footer, $navbar-height-adjustment);
  111. .kibela-block {
  112. top: 0px;
  113. max-width: unset;
  114. padding-top: 0px;
  115. border: 0px;
  116. }
  117. .tab-content {
  118. padding-top: 15px;
  119. #edit {
  120. margin-right: 1em;
  121. margin-left: 1em;
  122. }
  123. }
  124. .tab-pane {
  125. .page-editor-editor-container {
  126. margin: 0px;
  127. border: none !important;
  128. }
  129. }
  130. .page-editor-preview-container {
  131. padding-right: 0px !important;
  132. padding-left: 2em;
  133. }
  134. .page-editor-footer {
  135. min-height: 60px;
  136. padding: 13px;
  137. margin: 0;
  138. }
  139. }
  140. }