_layout.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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.nav-tabs {
  94. .nav-main-left-tab {
  95. width: $nav-main-left-tab-width;
  96. text-align: center;
  97. a {
  98. padding-right: 0;
  99. padding-left: 0;
  100. }
  101. }
  102. }
  103. // printable style
  104. @media print {
  105. .main-container {
  106. padding: 30px;
  107. a:after {
  108. display: none !important;
  109. }
  110. .main {
  111. header {
  112. border-bottom: solid 1px #666;
  113. h1 {
  114. font-size: 2em;
  115. color: #000;
  116. }
  117. }
  118. .revision-toc {
  119. float: none;
  120. max-width: 100%;
  121. margin-bottom: 20px;
  122. font-size: 0.9em;
  123. border: solid 1px #aaa;
  124. border-radius: 5px;
  125. .revision-toc-head {
  126. display: inline-block;
  127. float: none;
  128. }
  129. .revision-toc-content.collapse {
  130. display: block;
  131. height: auto;
  132. }
  133. }
  134. .meta {
  135. margin-top: 32px;
  136. color: #666;
  137. border-top: solid 1px #ccc;
  138. }
  139. }
  140. }
  141. }
  142. .system-version {
  143. position: fixed;
  144. right: 0.5em;
  145. bottom: 0;
  146. opacity: 0.6;
  147. > span {
  148. margin-left: 0.5em;
  149. }
  150. }
  151. // GROWI brand logo
  152. .logo {
  153. .logo-mark {
  154. &._white {
  155. color: white;
  156. fill: white !important;
  157. }
  158. }
  159. }
  160. // header widget area
  161. .grw-title-bar {
  162. background: $grw-floral-white;
  163. }
  164. // bg-title for .row
  165. .bg-title {
  166. padding: 6px 0;
  167. margin-right: -15px;
  168. margin-left: -15px;
  169. overflow: unset;
  170. }