_layout.scss 2.6 KB

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