_wiki.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. padding: 10px;
  32. > ul {
  33. margin: 4px 4px 4px 15px;
  34. padding: 5px;
  35. }
  36. }
  37. }
  38. .revision-head {
  39. .revision-head-link {
  40. display: none;
  41. font-size: 15px;
  42. padding-top: 8px;
  43. padding-left: 10px;
  44. }
  45. &:hover .revision-head-link {
  46. display: inline-block;
  47. }
  48. }
  49. .wiki {
  50. line-height: 1.6em;
  51. h1, h2, h3, h4, h5, h6 {
  52. margin-top: 1.6em;
  53. margin-bottom: .8em;
  54. &:first-child {
  55. margin-top: 0;
  56. }
  57. }
  58. h1 {
  59. font-size: 2.2em;
  60. font-weight: bold;
  61. }
  62. h2 {
  63. font-size: 1.8em;
  64. font-weight: bold;
  65. }
  66. h3 {
  67. font-size: 1.6em;
  68. font-weight: bold;
  69. }
  70. h4 {
  71. font-size: 1.4em;
  72. font-weight: normal;
  73. }
  74. h5 {
  75. font-size: 1.2em;
  76. font-weight: normal;
  77. }
  78. p {
  79. font-weight: normal;
  80. margin-bottom: 9px;
  81. }
  82. blockquote {
  83. font-size: 12px;
  84. }
  85. img {
  86. margin: 5px;
  87. box-shadow: 0 0 12px 0px #999;
  88. border: solid 1px #999;
  89. }
  90. ul, ol {
  91. padding-left: 18px;
  92. }
  93. // {{{ table (copied from bootstrap .table
  94. table {
  95. width: 100%;
  96. margin-bottom: $line-height-computed;
  97. // Cells
  98. > thead,
  99. > tbody,
  100. > tfoot {
  101. > tr {
  102. > th,
  103. > td {
  104. padding: $table-cell-padding;
  105. line-height: $line-height-base;
  106. vertical-align: top;
  107. border-top: 1px solid $table-border-color;
  108. }
  109. }
  110. }
  111. // Bottom align for column headings
  112. > thead > tr > th {
  113. vertical-align: bottom;
  114. border-bottom: 2px solid $table-border-color;
  115. }
  116. // Remove top border from thead by default
  117. > caption + thead,
  118. > colgroup + thead,
  119. > thead:first-child {
  120. > tr:first-child {
  121. > th,
  122. > td {
  123. border-top: 0;
  124. }
  125. }
  126. }
  127. // Account for multiple tbody instances
  128. > tbody + tbody {
  129. border-top: 2px solid $table-border-color;
  130. }
  131. // Nesting
  132. table {
  133. background-color: $body-bg;
  134. }
  135. // .table-bordered
  136. border: 1px solid $table-border-color;
  137. > thead,
  138. > tbody,
  139. > tfoot {
  140. > tr {
  141. > th,
  142. > td {
  143. border: 1px solid $table-border-color;
  144. }
  145. }
  146. }
  147. > thead > tr {
  148. > th,
  149. > td {
  150. border-bottom-width: 2px;
  151. }
  152. }
  153. }
  154. // }}}
  155. }
  156. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { // {{{ tablet size
  157. .crowi.main-container .main .wiki {
  158. }
  159. } // }}}
  160. @media (max-width: $screen-xs-max) { // {{{ iPhone size
  161. .crowi.main-container .main .wiki {
  162. }
  163. } // }}}
  164. @media (max-width: $screen-sm-max) { // {{{ tablet and iphone size
  165. .crowi.main-container .main .wiki {
  166. img {
  167. max-width: 100%;
  168. }
  169. }
  170. }