_layout.scss 3.0 KB

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