You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

353 lines
7.0 KiB

  1. /********************************************************************
  2. Screen and Print Styles for the Wrap Plugin
  3. ********************************************************************/
  4. .dokuwiki {
  5. /* resetting the box model to something more sane makes life a whole lot easier */
  6. .plugin_wrap {
  7. -moz-box-sizing: border-box;
  8. -webkit-box-sizing: border-box;
  9. box-sizing: border-box;
  10. }
  11. /* emulate a headline
  12. (only with 'emulatedHeadlines' config option set)
  13. @deprecated 2018-03-20 */
  14. .plugin_wrap.wrap__emuhead em strong {
  15. font-size: 130%;
  16. font-weight: bold;
  17. font-style: normal;
  18. display: block;
  19. }
  20. /* emulate a bigger headline with a bottom border */
  21. .plugin_wrap.wrap__emuhead em strong em.u {
  22. font-size: 115%;
  23. border-bottom: 1px solid @ini_border;
  24. font-style: normal;
  25. text-decoration: none;
  26. display: block;
  27. }
  28. /* different bigger headline for safety notes */
  29. .wrap_danger.wrap__emuhead em strong em.u,
  30. .wrap_warning.wrap__emuhead em strong em.u,
  31. .wrap_caution.wrap__emuhead em strong em.u,
  32. .wrap_notice.wrap__emuhead em strong em.u,
  33. .wrap_safety.wrap__emuhead em strong em.u {
  34. text-transform: uppercase;
  35. border-bottom-width: 0;
  36. }
  37. /* change border colour of emulated headlines inside boxes to something more neutral
  38. (to match all the different background colours) */
  39. .wrap_box.wrap__emuhead em strong em.u,
  40. .wrap_info.wrap__emuhead em strong em.u,
  41. .wrap_important.wrap__emuhead em strong em.u,
  42. .wrap_alert.wrap__emuhead em strong em.u,
  43. .wrap_tip.wrap__emuhead em strong em.u,
  44. .wrap_help.wrap__emuhead em strong em.u,
  45. .wrap_todo.wrap__emuhead em strong em.u,
  46. .wrap_download.wrap__emuhead em strong em.u {
  47. border-bottom-color: #999;
  48. }
  49. /* real headlines should not be indented inside a wrap */
  50. .plugin_wrap h1,
  51. .plugin_wrap h2,
  52. .plugin_wrap h3,
  53. .plugin_wrap h4,
  54. .plugin_wrap h5 {
  55. margin-left: 0;
  56. margin-right: 0;
  57. }
  58. /* columns
  59. ********************************************************************/
  60. .wrap_left,
  61. .wrap_column {
  62. float: left;
  63. margin-right: 1.5em;
  64. }
  65. [dir=rtl] .wrap_column {
  66. float: right;
  67. margin-left: 1.5em;
  68. margin-right: 0;
  69. }
  70. .wrap_right {
  71. float: right;
  72. margin-left: 1.5em;
  73. }
  74. .wrap_center {
  75. display: block;
  76. margin-left: auto;
  77. margin-right: auto;
  78. }
  79. /*____________ CSS3 columns ____________*/
  80. .wrap_col2, .wrap_col3, .wrap_col4, .wrap_col5,
  81. .wrap_colsmall, .wrap_colmedium, .wrap_collarge {
  82. -moz-column-gap: 1.5em;
  83. -webkit-column-gap: 1.5em;
  84. column-gap: 1.5em;
  85. -moz-column-rule: 1px dotted #666;
  86. -webkit-column-rule: 1px dotted #666;
  87. column-rule: 1px dotted #666;
  88. }
  89. .wrap_col2 {
  90. -moz-column-count: 2;
  91. -webkit-column-count: 2;
  92. column-count: 2;
  93. }
  94. .wrap_col3 {
  95. -moz-column-count: 3;
  96. -webkit-column-count: 3;
  97. column-count: 3;
  98. }
  99. .wrap_col4 {
  100. -moz-column-count: 4;
  101. -webkit-column-count: 4;
  102. column-count: 4;
  103. }
  104. .wrap_col5 {
  105. -moz-column-count: 5;
  106. -webkit-column-count: 5;
  107. column-count: 5;
  108. }
  109. .wrap_colsmall {
  110. -moz-column-width: 10em;
  111. -webkit-column-width: 10em;
  112. column-width: 10em;
  113. }
  114. .wrap_colmedium {
  115. -moz-column-width: 20em;
  116. -webkit-column-width: 20em;
  117. column-width: 20em;
  118. }
  119. .wrap_collarge {
  120. -moz-column-width: 30em;
  121. -webkit-column-width: 30em;
  122. column-width: 30em;
  123. }
  124. /* widths
  125. ********************************************************************/
  126. .wrap_twothirds {
  127. width: 65%;
  128. margin-right: 5%;
  129. }
  130. .wrap_half {
  131. width: 48%;
  132. margin-right: 4%;
  133. }
  134. .wrap_third {
  135. width: 30%;
  136. margin-right: 5%;
  137. }
  138. .wrap_quarter {
  139. width: 22%;
  140. margin-right: 4%;
  141. }
  142. [dir=rtl] .wrap_half,
  143. [dir=rtl] .wrap_quarter {
  144. margin-right: 0;
  145. margin-left: 4%;
  146. }
  147. [dir=rtl] .wrap_twothirds,
  148. [dir=rtl] .wrap_third {
  149. margin-right: 0;
  150. margin-left: 5%;
  151. }
  152. /* this doesn't always work when third and twothirds are mixed across rows
  153. but can be fixed by adding any div (e.g. <WRAP clear/>) after a row */
  154. .wrap_half + .wrap_half,
  155. .wrap_third + .wrap_twothirds,
  156. .wrap_twothirds + .wrap_third,
  157. .wrap_third + .wrap_third + .wrap_third,
  158. .wrap_quarter + .wrap_quarter + .wrap_quarter + .wrap_quarter {
  159. margin-right: 0;
  160. [dir=rtl] & {
  161. margin-left: 0;
  162. }
  163. + * {
  164. clear: left;
  165. [dir=rtl] & {
  166. clear: right;
  167. }
  168. }
  169. }
  170. /* show 2 instead 4 columns on medium sized screens (mobile, etc) */
  171. @media only screen and (max-width: 950px) {
  172. .wrap_quarter {
  173. width: 48%;
  174. }
  175. .wrap_quarter:nth-of-type(2n) {
  176. margin-right: 0;
  177. }
  178. [dir=rtl] .wrap_quarter:nth-of-type(2n) {
  179. margin-left: 0;
  180. }
  181. .wrap_quarter:nth-of-type(2n+1) {
  182. clear: left;
  183. }
  184. [dir=rtl] .wrap_quarter:nth-of-type(2n) {
  185. clear: right;
  186. }
  187. } /* /@media */
  188. /* show full width on smaller screens (mobile, etc) */
  189. @media only screen and (max-width: 600px) {
  190. .wrap_twothirds,
  191. .wrap_half,
  192. .wrap_third,
  193. .wrap_quarter {
  194. width: auto;
  195. margin-right: 0;
  196. margin-left: 0;
  197. float: none;
  198. }
  199. } /* /@media */
  200. /* alignments
  201. ********************************************************************/
  202. .wrap_leftalign {
  203. text-align: left;
  204. }
  205. .wrap_centeralign {
  206. text-align: center;
  207. }
  208. .wrap_rightalign {
  209. text-align: right;
  210. }
  211. .wrap_justify {
  212. text-align: justify;
  213. }
  214. /* box
  215. ********************************************************************/
  216. /* see styles for boxes and notes with icons in style.css */
  217. /*____________ rounded corners ____________*/
  218. /* (only for modern browsers) */
  219. div.wrap_round {
  220. border-radius: 1.4em;
  221. }
  222. span.wrap_round {
  223. border-radius: .14em;
  224. }
  225. /* mark
  226. ********************************************************************/
  227. .wrap_lo {
  228. color: @ini_text_neu;
  229. font-size: 85%;
  230. }
  231. .wrap_em {
  232. color: #c00;
  233. font-weight: bold;
  234. }
  235. .wrap__dark.wrap_em {
  236. color: #f66;
  237. }
  238. /* see styles for highlighted text in style.css */
  239. /* miscellaneous
  240. ********************************************************************/
  241. /*____________ tablewidth ____________*/
  242. .wrap_tablewidth table {
  243. width: 100%;
  244. }
  245. /*____________ indent ____________*/
  246. .wrap_indent {
  247. padding-left: 1.5em;
  248. }
  249. [dir=rtl] .wrap_indent {
  250. padding-right: 1.5em;
  251. padding-left: 0;
  252. }
  253. /*____________ outdent ____________*/
  254. .wrap_outdent {
  255. margin-left: -1.5em;
  256. }
  257. [dir=rtl] .wrap_outdent {
  258. margin-right: -1.5em;
  259. margin-left: 0;
  260. }
  261. /*____________ word wrapping in pre ____________*/
  262. div.wrap_prewrap pre {
  263. white-space: pre-wrap;
  264. word-wrap: break-word;/* for IE < 8 */
  265. }
  266. /*____________ spoiler ____________*/
  267. div.wrap_spoiler {
  268. margin-bottom: 1.5em;
  269. }
  270. /* see rest of spoiler styles in style.css */
  271. /*____________ clear float ____________*/
  272. .wrap_clear {
  273. clear: both;
  274. line-height: 0;
  275. height: 0;
  276. font-size: 1px;
  277. visibility: hidden;
  278. overflow: hidden;
  279. }
  280. /*____________ hide ____________*/
  281. .wrap_hide {
  282. display: none;
  283. }
  284. /*____________ button-style link ____________*/
  285. .wrap_button a:link,
  286. .wrap_button a:visited {
  287. background-image: none;
  288. border: 1px solid @ini_border;
  289. border-radius: .3em;
  290. padding: .5em .7em;
  291. text-decoration: none;
  292. }
  293. /* see rest of button link styles in style.css */
  294. } /* /.dokuwiki */