_layout.scss 2.7 KB

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