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.
 
 
 
 
 

435 lines
11 KiB

  1. /**
  2. * This file provides the basic/reset styles.
  3. */
  4. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  5. /* global vars */
  6. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  7. @font_family_screen: arial, sans-serif;
  8. @font_family_print: "Times New Roman", serif;
  9. @nav_direct_background: @ini_background;
  10. @nav_direct_color: @ini_existing;
  11. @background_darker: rgba(230,230,230, .2);
  12. @ini_sidebar_width: (100 - @ini_site_width) - 4;
  13. @height-context-bar: 50px;
  14. @margin-small: 1rem;
  15. @margin-default: 2rem;
  16. @margin-big: 3.07rem;
  17. @nav-margin: 1.3rem;
  18. @small-spacing: .3rem;
  19. @very-small-spacing: .2rem;
  20. @grid: @margin-small;
  21. @toggle-size: 1.75rem;
  22. @transition: ease-out .30s;
  23. @box-shadow-offset: .1em .1em .1em rgba(153,153,153,.5); // tabinclude
  24. @box-shadow: 0 0 .5em rgba(153,153,153,.5); // pagetoolbox hover
  25. @box-shadow-colored: 0 0 .5em fade(@ini_existing, 50%);
  26. @box-shadow-right-bottom: .1em .3rem .5em rgba(153,153,153,.5);
  27. @box-shadow-bottom: 0 .1em .5em rgba(153,153,153,.5); // qc-wrapper (breadcrumb), struct inline-editor
  28. /* + + + for programmers customizing + + + */
  29. @fix_border-radius: 3px; // inputs, editbox (textarea), buttons, content, code, quicksearch, msg
  30. @toggle-showsidebar_width: 3.47rem; // shown sidebar after toggle
  31. @headericons-margin-xxs: .45rem; // screen xxs margin-top for header icons
  32. @page_padding-top: @margin-small; // padding-top for 'dokuwiki__content'
  33. @page-header_height: 2.8rem; // minimum: 2.8rem (height for breadcrumb, page-header, page-footer)
  34. @meta-box_height: (@page-header_height - @page_padding-top);
  35. @breadcrumb_height: @page-header_height;
  36. @formfield_min-height: 2rem; // min-height for input, textarea, select, keygen
  37. @code-background: #F6F6F6; /* code, pre, samp, kbd */
  38. /* icons */
  39. @noopentasks-background: #ECECEC; /* metabox tabs + num in icons + tabinclude */
  40. @noopentasks-border: #BBB; /* metabox tabs + num in icons + code, pre, samp, kbd */
  41. @noopentasks-color: #666; /* metabox tabs + num in icons + code, pre, samp, kbd */
  42. @wikiicons-border: #CCC; /* usertools, breadcrumbs icons, pagetools box-hover */
  43. /* navigation left */
  44. @menu-margin-lg: 1.3rem;
  45. @quicksearch-button-color: @noopentasks-color; /* autosuggest, submit in quicksearch */
  46. @suggestion-zebra: #EEE;
  47. /* edit mode */
  48. @highlight-odd-ini_text: fade(@ini_background, 95%);
  49. @highlight-even-ini_text: fade(@ini_text, 5%);
  50. @color-editBox: #252525; // editmode for tables, revision states
  51. //@nolinkedicon-ini_background: fade(@ini_background_site, 10%);
  52. //@opacity-ini_nav_menu_color: fade(@ini_nav_menu_color, 40%);
  53. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  54. /* fonts */
  55. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  56. @font-size-very-small: .73rem;
  57. @font-size-small: .88rem;
  58. @font-size-default: 1rem;
  59. @font-size-big: 1.5rem;
  60. @font-size-bigger: 1.75rem;
  61. @line-height-default: 125%;
  62. @line-height-big: 135%;
  63. @line-height-bigger: 140%;
  64. @font-weight-bold: 800;
  65. @font-weight-normal: 400;
  66. @font-scale-factor: .0769;
  67. @font-size-head6: @font-size-default;
  68. @font-size-head5: @font-size-default + @font-scale-factor;
  69. @font-size-head4: @font-size-default + (@font-scale-factor * 3);
  70. @font-size-head3: @font-size-default + (@font-scale-factor * 5);
  71. @font-size-head2: @font-size-default + (@font-scale-factor * 7);
  72. @font-size-head1: @font-size-default + (@font-scale-factor * 9);
  73. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  74. /* breakpoints */
  75. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  76. @break-min-xxs: 480;
  77. @break-max-xxs: (@break-min-xxs - 1);
  78. @break-min-xs: 768;
  79. @break-max-xs: (@break-min-xs - 1);
  80. @break-min-sm: 992;
  81. @break-max-sm: (@break-min-sm - 1);
  82. @break-min-md: 1024;
  83. @break-max-md: (@break-min-md - 1);
  84. @break-min-lg: 1200;
  85. @break-max-lg: (@break-min-lg - 1);
  86. @break-min-xlg: 1440;
  87. @break-max-xlg: (@break-min-xlg - 1);
  88. @break-min-xxlg: 1600;
  89. @break-max-xxlg: (@break-min-xxlg - 1);
  90. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  91. /* media queries for breakpoints */
  92. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  93. @screen_min-xxs: ~"only screen and (min-width: " ~"@{break-min-xxs}px)";
  94. @screen_max-xxs: ~"only screen and (max-width: " ~"@{break-max-xxs}px)";
  95. @screen_min-xs: ~"only screen and (min-width: " ~"@{break-min-xs}px)";
  96. @screen_max-xs: ~"only screen and (max-width: " ~"@{break-max-xs}px)";
  97. @screen_min-sm: ~"only screen and (min-width: " ~"@{break-min-sm}px)";
  98. @screen_max-sm: ~"only screen and (max-width: " ~"@{break-max-sm}px)";
  99. @screen_min-md: ~"only screen and (min-width: " ~"@{break-min-md}px)";
  100. @screen_max-md: ~"only screen and (max-width: " ~"@{break-max-md}px)";
  101. @screen_min-lg: ~"only screen and (min-width: " ~"@{break-min-lg}px)";
  102. @screen_max-lg: ~"only screen and (max-width: " ~"@{break-max-lg}px)";
  103. @screen_min-xlg: ~"only screen and (min-width: " ~"@{break-min-xlg}px)";
  104. @screen_max-xlg: ~"only screen and (max-width: " ~"@{break-max-xlg}px)";
  105. @screen_min-xxlg: ~"only screen and (min-width: " ~"@{break-min-xxlg}px)";
  106. @screen_max-xxlg: ~"only screen and (max-width: " ~"@{break-max-xxlg}px)";
  107. @screen_only-md: ~"only screen and (min-width: 800px) and (max-width: " ~"@{break-max-md}px)";
  108. @screen_only-xlg: ~"only screen and (min-width: " ~"@{break-min-xlg}px) and (max-width: " ~"@{break-max-xxlg}px)";
  109. @screen_md-xlg: ~"only screen and (min-width: " ~"@{break-min-md}px) and (max-width: " ~"@{break-max-xlg}px)";
  110. @screen_md-lg: ~"only screen and (min-width: " ~"@{break-min-md}px) and (max-width: " ~"@{break-max-lg}px)";
  111. @screen_xs-lg: ~"only screen and (min-width: " ~"@{break-min-xs}px) and (max-width: " ~"@{break-max-md}px)";
  112. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  113. /* col width */
  114. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  115. @c12: 100%;
  116. @c11: 91.66666667%;
  117. @c10: 83.33333333%;
  118. @c9: 75%;
  119. @c8: 66.66666667%;
  120. @c7: 58.33333333%;
  121. @c6: 50%;
  122. @c5: 41.66666667%;
  123. @c4: 33.33333333%;
  124. @c3: 25%;
  125. @c2: 16.66666667%;
  126. @c1: 8.33333333%;
  127. @grid-columns: 12;
  128. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  129. /* all media */
  130. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  131. html,
  132. body {
  133. .reset();
  134. font-size: 100.1%;
  135. }
  136. header,
  137. .nav-direct{
  138. .elementsReset();
  139. }
  140. ol,
  141. ul {
  142. list-style: none outside none;
  143. }
  144. blockquote,
  145. q {
  146. quotes: none;
  147. }
  148. acronym {
  149. cursor: help;
  150. border-bottom: dotted 1px @ini_text;
  151. }
  152. *:focus {
  153. outline: 0;
  154. }
  155. table{
  156. border-collapse: collapse;
  157. border-spacing: 0;
  158. empty-cells: show;
  159. caption-side: top;
  160. }
  161. caption,
  162. th,
  163. td {
  164. text-align: left;
  165. vertical-align: top;
  166. }
  167. img {
  168. display: block;
  169. float: none;
  170. border: none 0;
  171. line-height: @line-height-default;
  172. }
  173. *,
  174. div,
  175. nav,
  176. header {
  177. box-sizing: border-box;
  178. }
  179. header,
  180. footer,
  181. .container,
  182. .row, nav,
  183. nav > ul {
  184. &::before,
  185. &::after {
  186. display: table;
  187. content: ' ';
  188. clear: both;
  189. }
  190. }
  191. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  192. /* css behaviour */
  193. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  194. .sr-out {
  195. .sr-out();
  196. }
  197. .sr-only {
  198. .sr-only();
  199. }
  200. .clearer{
  201. clear: both;
  202. }
  203. .structure,
  204. .none,
  205. .mobile-only {
  206. display: none;
  207. }
  208. .mobile-only {
  209. display: none;
  210. @media @screen_max-md {
  211. display: inline-block;
  212. }
  213. }
  214. .mobile-hide {
  215. display: inline-block;
  216. @media @screen_max-md {
  217. display: none;
  218. }
  219. }
  220. .desktop-only {
  221. display: none;
  222. @media @screen_min-md {
  223. display: inline-block;
  224. }
  225. }
  226. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  227. /* screen only */
  228. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  229. @media screen {
  230. html {
  231. -ms-text-size-adjust: 100%;
  232. -webkit-text-size-adjust: 100%;
  233. }
  234. article, aside, details, figcaption, figure, footer, header,
  235. main, menu, nav, section, summary {
  236. display: block;
  237. }
  238. audio,
  239. canvas,
  240. progress,
  241. video {
  242. display: inline-block;
  243. vertical-align: baseline;
  244. }
  245. audio:not([controls]) {
  246. display: none;
  247. height: 0;
  248. }
  249. [hidden],
  250. template {
  251. display: none;
  252. }
  253. a:active,
  254. a:hover {
  255. outline: 0;
  256. }
  257. abbr[title] {
  258. border-bottom: 1px dotted;
  259. }
  260. small {
  261. font-size: 80%;
  262. }
  263. svg:not(:root) {
  264. overflow: hidden;
  265. }
  266. hr {
  267. box-sizing: content-box;
  268. height: 0;
  269. }
  270. pre {
  271. overflow: auto;
  272. }
  273. code,
  274. kbd,
  275. pre,
  276. samp {
  277. font-family: monospace, monospace;
  278. font-size: 1em;
  279. }
  280. button,
  281. input,
  282. optgroup,
  283. select,
  284. textarea {
  285. color: inherit;
  286. font: inherit;
  287. margin: 0;
  288. }
  289. button,
  290. select {
  291. text-transform: none;
  292. }
  293. button {
  294. overflow: visible;
  295. }
  296. input {
  297. &[type="checkbox"],
  298. &[type="radio"] {
  299. box-sizing: border-box;
  300. padding: 0;
  301. }
  302. &[type="number"] {
  303. &::-webkit-inner-spin-button,
  304. &::-webkit-outer-spin-button {
  305. height: auto;
  306. }
  307. }
  308. &[type="search"] {
  309. -webkit-appearance: textfield;
  310. box-sizing: content-box;
  311. &::-webkit-search-cancel-button,
  312. &::-webkit-search-decoration {
  313. -webkit-appearance: none;
  314. }
  315. }
  316. }
  317. legend {
  318. border: 0;
  319. padding: 0;
  320. }
  321. textarea {
  322. overflow: auto;
  323. }
  324. table {
  325. border-collapse: collapse;
  326. border-spacing: 0;
  327. }
  328. td,
  329. th {
  330. padding: 0;
  331. }
  332. html, body {
  333. font-family: @font_family_screen;
  334. color: @ini_text;
  335. }
  336. }
  337. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  338. /* print only */
  339. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  340. @media print {
  341. body {
  342. font-size: 12pt;
  343. }
  344. }