_layout.scss 2.7 KB

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