_layout.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. .main-container {
  2. h1,
  3. h2,
  4. h3,
  5. h4,
  6. h5,
  7. h6 {
  8. font-weight: 500;
  9. }
  10. .navbar-top-links {
  11. .confidential {
  12. a {
  13. font-weight: bold;
  14. cursor: default;
  15. }
  16. }
  17. .nav-item-admin,
  18. .nav-item-create-page,
  19. .nav-item-help {
  20. span {
  21. margin-left: 0.5em;
  22. @media (max-width: $screen-xs-min) {
  23. display: none;
  24. }
  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 15px;
  90. }
  91. }
  92. }
  93. } // }}}
  94. // fix tab width to 95 pixels
  95. // see also '_on-edit.scss'
  96. $nav-main-left-tab-width: 95px;
  97. .nav.nav-tabs {
  98. .nav-main-left-tab {
  99. width: $nav-main-left-tab-width;
  100. text-align: center;
  101. a {
  102. padding-right: 0;
  103. padding-left: 0;
  104. }
  105. }
  106. }
  107. // printable style
  108. @media print {
  109. .main-container {
  110. padding: 30px;
  111. a:after {
  112. display: none !important;
  113. }
  114. .main {
  115. header {
  116. border-bottom: solid 1px #666;
  117. h1 {
  118. font-size: 2em;
  119. color: #000;
  120. }
  121. }
  122. .revision-toc {
  123. float: none;
  124. max-width: 100%;
  125. margin-bottom: 20px;
  126. font-size: 0.9em;
  127. border: solid 1px #aaa;
  128. border-radius: 5px;
  129. .revision-toc-head {
  130. display: inline-block;
  131. float: none;
  132. }
  133. .revision-toc-content.collapse {
  134. display: block;
  135. height: auto;
  136. }
  137. }
  138. .meta {
  139. margin-top: 32px;
  140. color: #666;
  141. border-top: solid 1px #ccc;
  142. }
  143. }
  144. }
  145. }
  146. .system-version {
  147. position: fixed;
  148. right: 0.5em;
  149. bottom: 0;
  150. opacity: 0.6;
  151. > span {
  152. margin-left: 0.5em;
  153. }
  154. }