_layout.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. @import 'layout_variable';
  2. .main-container {
  3. h1,
  4. h2,
  5. h3,
  6. h4,
  7. h5,
  8. h6 {
  9. font-weight: 500;
  10. }
  11. .navbar-top-links {
  12. height: 30px;
  13. border-radius: 40px;
  14. .confidential {
  15. a {
  16. font-weight: bold;
  17. cursor: default;
  18. }
  19. }
  20. @include media-breakpoint-down(md) {
  21. font-size: 14px;
  22. }
  23. }
  24. /*
  25. * header
  26. */
  27. header {
  28. line-height: 1em;
  29. h1 {
  30. @include variable-font-size(28px);
  31. line-height: 1.1em;
  32. }
  33. // affix
  34. &.affix {
  35. top: 0;
  36. left: 0;
  37. z-index: 15; // over the .sidebar
  38. width: 100%;
  39. padding: 2px 20px;
  40. box-shadow: 0 0px 2px #999;
  41. h1 {
  42. @include variable-font-size(20px);
  43. }
  44. }
  45. }
  46. .main {
  47. .header-wrap {
  48. min-height: 70px;
  49. padding: 15px 15px 0 15px;
  50. }
  51. }
  52. .layout-control {
  53. position: fixed;
  54. right: 25%;
  55. bottom: 25px;
  56. z-index: 1;
  57. display: block;
  58. padding: 5px 8px;
  59. font-size: 0.8em;
  60. text-align: center;
  61. border: solid 1px #ccc;
  62. border-right: none;
  63. border-radius: 5px 0 0 5px;
  64. transition: 0.3s ease;
  65. &:hover {
  66. text-decoration: none;
  67. cursor: pointer;
  68. }
  69. }
  70. .revision-toc {
  71. max-width: 250px;
  72. overflow: hidden;
  73. font-size: 0.9em;
  74. .revision-toc-content {
  75. padding: 10px;
  76. > ul {
  77. padding-left: 0;
  78. ul {
  79. padding-left: 1em;
  80. }
  81. }
  82. // first level of li
  83. > ul > li {
  84. padding: 5px;
  85. margin: 4px 4px 4px 15px;
  86. }
  87. }
  88. }
  89. } // }}}
  90. // fix tab width to 95 pixels
  91. // see also '_on-edit.scss'
  92. $nav-main-left-tab-width: 95px;
  93. $nav-main-tab-height: 44px;
  94. .nav.nav-tabs {
  95. .nav-main-left-tab {
  96. width: $nav-main-left-tab-width;
  97. text-align: center;
  98. a {
  99. padding-right: 0;
  100. padding-left: 0;
  101. }
  102. }
  103. }
  104. // printable style
  105. @media print {
  106. .main-container {
  107. padding: 30px;
  108. a:after {
  109. display: none !important;
  110. }
  111. .main {
  112. header {
  113. border-bottom: solid 1px #666;
  114. h1 {
  115. font-size: 2em;
  116. color: #000;
  117. }
  118. }
  119. .revision-toc {
  120. float: none;
  121. max-width: 100%;
  122. margin-bottom: 20px;
  123. font-size: 0.9em;
  124. border: solid 1px #aaa;
  125. border-radius: 5px;
  126. .revision-toc-head {
  127. display: inline-block;
  128. float: none;
  129. }
  130. .revision-toc-content.collapse {
  131. display: block;
  132. height: auto;
  133. }
  134. }
  135. .meta {
  136. margin-top: 32px;
  137. color: #666;
  138. border-top: solid 1px #ccc;
  139. }
  140. }
  141. }
  142. }
  143. .system-version {
  144. position: fixed;
  145. right: 0.5em;
  146. bottom: 0;
  147. opacity: 0.6;
  148. > span {
  149. margin-left: 0.5em;
  150. }
  151. }
  152. // GROWI brand logo
  153. .logo {
  154. .logo-mark {
  155. &._white {
  156. color: white;
  157. fill: white !important;
  158. }
  159. }
  160. }