_layout.scss 2.7 KB

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