_layout.scss 2.8 KB

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