_layout.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. @import 'layout_variable';
  2. %fukidashi-for-active {
  3. position: relative;
  4. // speech balloon
  5. &:after {
  6. position: absolute;
  7. top: 0.5em;
  8. right: -1em;
  9. display: block;
  10. width: 0;
  11. content: '';
  12. border: 1em solid transparent;
  13. border-left-width: 0;
  14. // @include media-breakpoint-down(xs) {
  15. // }
  16. }
  17. }
  18. // FIXME: replace with mt-2 or mt-3
  19. .grw-mt-10px {
  20. margin-top: 10px !important;
  21. }
  22. // FIXME: replace with pt-2 or pt-3
  23. .grw-pt-10px {
  24. padding-top: 10px !important;
  25. }
  26. .grw-logo {
  27. svg {
  28. width: $grw-logo-width;
  29. height: $grw-navbar-height;
  30. padding: ($grw-logo-width - $grw-logomark-width) / 2;
  31. }
  32. /*
  33. .logo-text {
  34. svg {
  35. width: 156px;
  36. height: $grw-navbar-height;
  37. }
  38. }
  39. */
  40. }
  41. .confidential {
  42. font-weight: bold;
  43. }
  44. .grw-sidebar {
  45. .ak-navigation-resize-button {
  46. top: calc(50vh - 20px);
  47. }
  48. // override @atlaskit/navigation-next styles
  49. div[class$='-NavigationContainer'] {
  50. // Adjust to be on top of the growi subnavigation
  51. z-index: $zindex-sticky + 5;
  52. }
  53. // override @atlaskit/navigation-next styles
  54. div[class$='-Outer'] {
  55. div[class$='-Shadow'] {
  56. background: unset;
  57. border-right: 1px solid $border;
  58. }
  59. }
  60. .grw-global-item-container.active {
  61. button {
  62. @extend %fukidashi-for-active;
  63. }
  64. }
  65. }
  66. #page-wrapper {
  67. margin-top: $grw-navbar-height;
  68. }
  69. .grw-sidebar-header-container {
  70. padding: 10px;
  71. h3 {
  72. margin-bottom: 0;
  73. }
  74. }
  75. .grw-sidebar-content-container {
  76. }
  77. .grw-modal-head {
  78. font-size: 1em;
  79. border-bottom: 1px solid $grw-line-gray;
  80. }
  81. .main {
  82. margin-top: 1rem;
  83. }
  84. .layout-control {
  85. position: fixed;
  86. right: 25%;
  87. bottom: 25px;
  88. z-index: 1;
  89. display: block;
  90. padding: 5px 8px;
  91. font-size: 0.8em;
  92. text-align: center;
  93. border: solid 1px #ccc;
  94. border-right: none;
  95. border-radius: 5px 0 0 5px;
  96. transition: 0.3s ease;
  97. &:hover {
  98. text-decoration: none;
  99. cursor: pointer;
  100. }
  101. }
  102. .revision-toc {
  103. // to get on the Attachment row
  104. z-index: 1;
  105. overflow: hidden;
  106. font-size: 0.9em;
  107. .revision-toc-content {
  108. padding: 10px;
  109. > ul {
  110. padding-left: 0;
  111. ul {
  112. padding-left: 1em;
  113. }
  114. }
  115. // first level of li
  116. > ul > li {
  117. padding: 5px;
  118. margin: 4px 4px 4px 17px;
  119. }
  120. }
  121. }
  122. // printable style
  123. @media print {
  124. padding: 30px;
  125. a:after {
  126. display: none !important;
  127. }
  128. .main {
  129. header {
  130. border-bottom: solid 1px #666;
  131. h1 {
  132. font-size: 2em;
  133. color: #000;
  134. }
  135. }
  136. .revision-toc {
  137. float: none;
  138. max-width: 100%;
  139. margin-bottom: 20px;
  140. font-size: 0.9em;
  141. border: solid 1px #aaa;
  142. border-radius: 5px;
  143. .revision-toc-head {
  144. display: inline-block;
  145. float: none;
  146. }
  147. .revision-toc-content.collapse {
  148. display: block;
  149. height: auto;
  150. }
  151. }
  152. .meta {
  153. margin-top: 32px;
  154. color: #666;
  155. border-top: solid 1px #ccc;
  156. }
  157. }
  158. }
  159. .system-version {
  160. position: fixed;
  161. right: 0.5em;
  162. bottom: 0;
  163. opacity: 0.6;
  164. > span {
  165. margin-left: 0.5em;
  166. }
  167. }