_wiki.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. pre.body {
  2. border: solid 1px #ccc;
  3. background: #f0f0f0;
  4. }
  5. div.body {
  6. padding: 10px;
  7. }
  8. .revision-toc {
  9. float: right;
  10. font-size: .9em;
  11. border: solid 1px #aaa;
  12. border-radius: 5px;
  13. max-width: 250px;
  14. .revision-toc-head {
  15. display: inline-block;
  16. float: right;
  17. border-left: solid 1px #aaa;
  18. border-bottom: solid 1px #aaa;
  19. border-radius: 0 5px;
  20. padding: 3px 11px;
  21. font-weight: bold;
  22. background: #f0f0f0;
  23. margin-left: 5px;
  24. margin-bottom: 5px;
  25. &.collapsed {
  26. border: none;
  27. margin: 0;
  28. }
  29. }
  30. .revision-toc-content {
  31. background: #fcfcfc;
  32. padding: 10px;
  33. > ul {
  34. margin: 4px 4px 4px 15px;
  35. padding: 5px;
  36. }
  37. }
  38. }
  39. .revision-head {
  40. .revision-head-link {
  41. display: none;
  42. font-size: 15px;
  43. padding-top: 8px;
  44. padding-left: 10px;
  45. }
  46. &:hover .revision-head-link {
  47. display: inline-block;
  48. }
  49. }
  50. .wiki {
  51. line-height: 1.6em;
  52. font-size: 15px;
  53. h1, h2, h3, h4, h5, h6 {
  54. margin-top: 1.6em;
  55. margin-bottom: .8em;
  56. &:first-child {
  57. margin-top: 0;
  58. }
  59. }
  60. h1 {
  61. padding-bottom: 0.3em;
  62. font-size: 2.3em;
  63. font-weight: bold;
  64. border-bottom: solid 1px #ccc;
  65. }
  66. h2 {
  67. padding-bottom: 0.3em;
  68. font-size: 1.8em;
  69. line-height: 1.225;
  70. font-weight: bold;
  71. border-bottom: 1px solid #eee;
  72. }
  73. h3 {
  74. font-size: 1.5em;
  75. font-weight: bold;
  76. }
  77. h4 {
  78. font-size: 1.3em;
  79. font-weight: normal;
  80. }
  81. h5 {
  82. font-size: 1.1em;
  83. font-weight: normal;
  84. }
  85. p {
  86. font-weight: normal;
  87. margin-bottom: 9px;
  88. }
  89. blockquote {
  90. font-size: .9em;
  91. }
  92. pre {
  93. line-height: 1.4em;
  94. font-size: .9em;
  95. }
  96. img {
  97. margin: 5px;
  98. box-shadow: 0 0 12px 0px #999;
  99. border: solid 1px #999;
  100. }
  101. ul, ol {
  102. padding-left: 30px;
  103. li {
  104. line-height: 1.8em;
  105. p {
  106. margin-top: 10px;
  107. margin-bottom: 0;
  108. &:first-child {
  109. margin-top: 0;
  110. }
  111. }
  112. }
  113. }
  114. // {{{ table (copied from bootstrap .table
  115. table {
  116. width: 100%;
  117. margin-bottom: $line-height-computed;
  118. // Cells
  119. > thead,
  120. > tbody,
  121. > tfoot {
  122. > tr {
  123. > th,
  124. > td {
  125. padding: $table-cell-padding;
  126. line-height: $line-height-base;
  127. vertical-align: top;
  128. border-top: 1px solid $table-border-color;
  129. }
  130. }
  131. }
  132. // Bottom align for column headings
  133. > thead > tr > th {
  134. vertical-align: bottom;
  135. border-bottom: 2px solid $table-border-color;
  136. }
  137. // Remove top border from thead by default
  138. > caption + thead,
  139. > colgroup + thead,
  140. > thead:first-child {
  141. > tr:first-child {
  142. > th,
  143. > td {
  144. border-top: 0;
  145. }
  146. }
  147. }
  148. // Account for multiple tbody instances
  149. > tbody + tbody {
  150. border-top: 2px solid $table-border-color;
  151. }
  152. // Nesting
  153. table {
  154. background-color: $body-bg;
  155. }
  156. // .table-bordered
  157. border: 1px solid $table-border-color;
  158. > thead,
  159. > tbody,
  160. > tfoot {
  161. > tr {
  162. > th,
  163. > td {
  164. border: 1px solid $table-border-color;
  165. }
  166. }
  167. }
  168. > thead > tr {
  169. > th,
  170. > td {
  171. border-bottom-width: 2px;
  172. }
  173. }
  174. }
  175. // }}}
  176. }
  177. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { // {{{ tablet size
  178. .crowi.main-container .main .wiki {
  179. }
  180. } // }}}
  181. @media (max-width: $screen-xs-max) { // {{{ iPhone size
  182. .crowi.main-container .main .wiki {
  183. }
  184. } // }}}
  185. @media (max-width: $screen-sm-max) { // {{{ tablet and iphone size
  186. .crowi.main-container .main .wiki {
  187. img {
  188. max-width: 100%;
  189. }
  190. }
  191. }