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.

950 lines
38 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <!doctype html>
  2. <html lang="en_EN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="x-ua-compatible" content="ie=edge">
  6. <title>
  7. Plain UI | Lightweight CSS UI Framework for Building Apps and Websites
  8. </title>
  9. <meta name="description" content="Lightweight UI Framework for building fast and clean Websites and Apps for Mobile, Tablet and Desktop. Minimal UI-Elements, Functions and Helpers">
  10. <meta name="viewport" content="width=device-width,initial-scale=1">
  11. <link rel="stylesheet" href="plain-ui.css">
  12. </head>
  13. <body class="overflow-x-hidden">
  14. <header class="header">
  15. <div class="bar">
  16. <div class="bar__start">
  17. <h1 class="m-top-4 m-bottom-4 h4">
  18. Plain UI 0.3
  19. </h1>
  20. </div>
  21. <div class="bar__main justify-end">
  22. <a class="button button--small m-bottom-0" href="#">
  23. Github
  24. <svg class="m-left-3 icon fill-text" aria-hidden="true">
  25. <use xlink:href="symbol-defs.svg#icon-github"></use>
  26. </svg>
  27. </a>
  28. <a class="button button--small m-left-sm-3 m-bottom-0" href="https://gitea.tentakelfabrik.de/" rel="noopener" target="_blank">
  29. Gitea
  30. <svg class="m-left-3 icon fill-text" aria-hidden="true">
  31. <use xlink:href="symbol-defs.svg#icon-gitea"></use>
  32. </svg>
  33. </a>
  34. </div>
  35. </div>
  36. </header>
  37. <div class="container m-top-6">
  38. <div class="grid">
  39. <div class="col-12">
  40. <nav>
  41. <div class="tabs">
  42. <a href="index.html" class="tabs__item">
  43. Basics
  44. </a>
  45. <a href="components.html" class="tabs__item tabs__item--selected">
  46. Components
  47. </a>
  48. <a href="layout.html" class="tabs__item">
  49. Layout
  50. </a>
  51. <a href="helpers.html" class="tabs__item">
  52. Helpers
  53. </a>
  54. </div>
  55. </nav>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="container">
  60. <div class="grid">
  61. <div class="col-12">
  62. <h1 class="highlight m-bottom-5">
  63. Components
  64. </h1>
  65. <div class="panel panel--border-highlight border-color-danger m-bottom-4">
  66. <div class="panel__body">
  67. <div class="content m-last-child-0">
  68. <p>
  69. Plain UI is currently under development, Styles, Names and Documentation may change until Release!
  70. </p>
  71. </div>
  72. </div>
  73. </div>
  74. <h2>Badge</h2>
  75. <div class="content m-bottom-4">
  76. <code>&#x3C;span class=&#x22;badge&#x22;&#x3E;
  77. Category
  78. &#x3C;/span&#x3E;
  79. </code>
  80. </div>
  81. <span class="badge">
  82. Category
  83. </span>
  84. <span class="badge badge--round">
  85. 99+
  86. </span>
  87. <h2 class="m-top-5">
  88. Bar
  89. </h2>
  90. <div class="content m-bottom-4">
  91. <code>&#x3C;div class=&#x22;bar&#x22;&#x3E;
  92. &#x3C;div class=&#x22;bar__start&#x22;&#x3E;
  93. &#x3C;button class=&#x22;button button--transparent&#x22;&#x3E;
  94. &#x3C;svg class=&#x22;icon fill-text-contrast marginless&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  95. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  96. &#x3C;/svg&#x3E;
  97. &#x3C;/button&#x3E;
  98. &#x3C;/div&#x3E;
  99. &#x3C;div class=&#x22;bar__main&#x22;&#x3E;
  100. Bar
  101. &#x3C;/div&#x3E;
  102. &#x3C;/div&#x3E;
  103. </code>
  104. </div>
  105. <div class="bar">
  106. <div class="bar__start">
  107. <button class="button button--transparent">
  108. <svg class="icon fill-text-contrast marginless" aria-hidden="true">
  109. <use xlink:href="symbol-defs.svg#icon-close"></use>
  110. </svg>
  111. </button>
  112. </div>
  113. <div class="bar__main">
  114. Bar
  115. </div>
  116. </div>
  117. <h2 class="m-top-5">
  118. Buttons
  119. </h2>
  120. <div class="content">
  121. <code>&lt;button class=&quot;button&quot;&gt;
  122. Default
  123. &lt;/button&gt;
  124. </code>
  125. </div>
  126. <div>
  127. <button class="button">
  128. Default
  129. </button>
  130. <button class="button">
  131. Icon
  132. <svg class="icon fill-success" aria-hidden="true">
  133. <use xlink:href="symbol-defs.svg#icon-check"></use>
  134. </svg>
  135. </button>
  136. <button class="button button--selected">
  137. Selected
  138. </button>
  139. <button class="button" disabled>
  140. Disabled
  141. </button>
  142. </div>
  143. <div>
  144. <button class="button button--danger">
  145. danger
  146. </button>
  147. <button class="button button--success">
  148. success
  149. </button>
  150. <button class="button button--warning">
  151. warning
  152. </button>
  153. <button class="button button--info">
  154. info
  155. </button>
  156. </div>
  157. <div>
  158. <button class="button button--outline">
  159. outline
  160. </button>
  161. </div>
  162. <button class="button button--small">
  163. Small
  164. </button>
  165. <h2 class="m-top-5">Field</h2>
  166. <div class="content">
  167. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  168. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  169. Name
  170. &#x3C;input class=&#x22;field-text&#x22; /&#x3E;
  171. &#x3C;/label&#x3E;
  172. &#x3C;/div&#x3E;
  173. </code>
  174. </div>
  175. <div class="field-group">
  176. <label class="field-label">
  177. Name
  178. <input class="field-text" />
  179. </label>
  180. </div>
  181. <div class="field-group">
  182. <label class="field-label">
  183. Message
  184. <textarea class="field-text"></textarea>
  185. </label>
  186. </div>
  187. <div class="content">
  188. <code>&#x3C;div class=&#x22;field-group field-group--valid&#x22;&#x3E;
  189. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  190. &#x3C;svg class=&#x22;icon&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  191. &#x3C;use class=&#x22;test&#x22; xlink:href=&#x22;symbol-defs.svg#icon-check&#x22;&#x3E;&#x3C;/use&#x3E;
  192. &#x3C;/svg&#x3E;
  193. Surname
  194. &#x3C;input class=&#x22;field-text&#x22; /&#x3E;
  195. &#x3C;/label&#x3E;
  196. &#x3C;/div&#x3E;
  197. </code>
  198. </div>
  199. <div class="field-group field-group--valid">
  200. <label class="field-label">
  201. <svg class="icon" aria-hidden="true">
  202. <use class="test" xlink:href="symbol-defs.svg#icon-check"></use>
  203. </svg>
  204. Surname
  205. <input class="field-text" />
  206. </label>
  207. </div>
  208. <div class="content">
  209. <code>&#x3C;div class=&#x22;field-group field-group--error&#x22;&#x3E;
  210. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  211. &#x3C;svg class=&#x22;icon&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  212. &#x3C;use class=&#x22;test&#x22; xlink:href=&#x22;symbol-defs.svg#icon-warning&#x22;&#x3E;&#x3C;/use&#x3E;
  213. &#x3C;/svg&#x3E;
  214. E-Mail
  215. &#x3C;input class=&#x22;field-text&#x22; /&#x3E;
  216. &#x3C;/label&#x3E;
  217. &#x3C;span class=&#x22;field-error&#x22;&#x3E;
  218. String is not valid
  219. &#x3C;/span&#x3E;
  220. &#x3C;/div&#x3E;
  221. </code>
  222. </div>
  223. <div class="field-group field-group--error">
  224. <label class="field-label">
  225. <svg class="icon" aria-hidden="true">
  226. <use class="test" xlink:href="symbol-defs.svg#icon-warning"></use>
  227. </svg>
  228. E-Mail
  229. <input class="field-text" />
  230. </label>
  231. <span class="field-error">
  232. String is not valid
  233. </span>
  234. </div>
  235. <div class="content">
  236. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  237. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  238. Towns
  239. &#x3C;select class=&#x22;field-choice&#x22;&#x3E;
  240. &#x3C;option&#x3E;&#x3C;/option&#x3E;
  241. &#x3C;option value=&#x22;lonytown&#x22;&#x3E;Lonytown&#x3C;/option&#x3E;
  242. &#x3C;/select&#x3E;
  243. &#x3C;/label&#x3E;
  244. &#x3C;/div&#x3E;
  245. </code>
  246. </div>
  247. <div class="field-group">
  248. <label class="field-label">
  249. Towns
  250. <select class="field-choice">
  251. <option></option>
  252. <option value="lonytown">Lonytown</option>
  253. </select>
  254. </label>
  255. </div>
  256. <div class="content">
  257. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  258. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  259. &#x3C;input class=&#x22;field-choice&#x22; type=&#x22;checkbox&#x22; value=&#x22;true&#x22; /&#x3E;
  260. &#x3C;svg class=&#x22;icon field-choice__unchecked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  261. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-checkbox&#x22;&#x3E;&#x3C;/use&#x3E;
  262. &#x3C;/svg&#x3E;
  263. &#x3C;svg class=&#x22;icon field-choice__checked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  264. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-checkbox-checked&#x22;&#x3E;&#x3C;/use&#x3E;
  265. &#x3C;/svg&#x3E;
  266. Checkbox
  267. &#x3C;/label&#x3E;
  268. &#x3C;/div&#x3E;
  269. </code>
  270. </div>
  271. <div class="field-group">
  272. <label class="field-label">
  273. <input class="field-choice" type="checkbox" value="true" />
  274. <svg class="icon field-choice__unchecked" aria-hidden="true">
  275. <use xlink:href="symbol-defs.svg#icon-checkbox"></use>
  276. </svg>
  277. <svg class="icon field-choice__checked" aria-hidden="true">
  278. <use xlink:href="symbol-defs.svg#icon-checkbox-checked"></use>
  279. </svg>
  280. Checkbox
  281. </label>
  282. </div>
  283. <div class="content">
  284. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  285. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  286. &#x3C;input class=&#x22;field-choice&#x22; type=&#x22;radio&#x22; name=&#x22;radio&#x22; value=&#x22;true&#x22; /&#x3E;
  287. &#x3C;svg class=&#x22;icon field-choice__unchecked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  288. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-circle&#x22;&#x3E;&#x3C;/use&#x3E;
  289. &#x3C;/svg&#x3E;
  290. &#x3C;svg class=&#x22;icon field-choice__checked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  291. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-circle-check&#x22;&#x3E;&#x3C;/use&#x3E;
  292. &#x3C;/svg&#x3E;
  293. Radio A
  294. &#x3C;/label&#x3E;
  295. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  296. &#x3C;input class=&#x22;field-choice&#x22; type=&#x22;radio&#x22; name=&#x22;radio&#x22; value=&#x22;true&#x22; /&#x3E;
  297. &#x3C;svg class=&#x22;icon field-choice__unchecked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  298. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-circle&#x22;&#x3E;&#x3C;/use&#x3E;
  299. &#x3C;/svg&#x3E;
  300. &#x3C;svg class=&#x22;icon field-choice__checked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  301. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-circle-check&#x22;&#x3E;&#x3C;/use&#x3E;
  302. &#x3C;/svg&#x3E;
  303. Radio B
  304. &#x3C;/label&#x3E;
  305. &#x3C;/div&#x3E;
  306. </code>
  307. </div>
  308. <div class="field-group">
  309. <label class="field-label">
  310. <input class="field-choice" type="radio" name="radio" value="true" />
  311. <svg class="icon field-choice__unchecked" aria-hidden="true">
  312. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  313. </svg>
  314. <svg class="icon field-choice__checked" aria-hidden="true">
  315. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  316. </svg>
  317. Radio A
  318. </label>
  319. <label class="field-label">
  320. <input class="field-choice" type="radio" name="radio" value="true" />
  321. <svg class="icon field-choice__unchecked" aria-hidden="true">
  322. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  323. </svg>
  324. <svg class="icon field-choice__checked" aria-hidden="true">
  325. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  326. </svg>
  327. Radio B
  328. </label>
  329. </div>
  330. <div class="content">
  331. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  332. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  333. &#x3C;input class=&#x22;field-choice&#x22; type=&#x22;checkbox&#x22; name=&#x22;radio&#x22; value=&#x22;true&#x22; /&#x3E;
  334. &#x3C;span class=&#x22;field-switch&#x22;&#x3E;&#x3C;/span&#x3E;
  335. &#x3C;/label&#x3E;
  336. &#x3C;/div&#x3E;
  337. </code>
  338. </div>
  339. <div class="field-group">
  340. <label class="field-label">
  341. <input class="field-choice" type="checkbox" name="radio" value="true" />
  342. <span class="field-switch"></span>
  343. </label>
  344. </div>
  345. <h2 class="m-top-5">
  346. Group
  347. </h2>
  348. <div class="content">
  349. <code>&#x3C;div class=&#x22;group&#x22;&#x3E;
  350. &#x3C;div class=&#x22;group__item background-color-primary color-text-contrast p-3&#x22;&#x3E;
  351. One
  352. &#x3C;/div&#x3E;
  353. &#x3C;div class=&#x22;group__item background-color-primary color-text-contrast p-3&#x22;&#x3E;
  354. Two
  355. &#x3C;/div&#x3E;
  356. &#x3C;/div&#x3E;
  357. </code>
  358. </div>
  359. <div class="group">
  360. <div class="group__item background-color-primary color-text-contrast p-3">
  361. One
  362. </div>
  363. <div class="group__item background-color-primary color-text-contrast p-3">
  364. Two
  365. </div>
  366. </div>
  367. </div>
  368. </div>
  369. </div>
  370. <div class="container">
  371. <div class="grid">
  372. <div class="col-12">
  373. <h2>
  374. Hero
  375. </h2>
  376. <div class="content">
  377. <code>&#x3C;div class=&#x22;hero&#x22;&#x3E;
  378. &#x3C;img style=&#x22;max-height: 400px;&#x22; src=&#x22;/image.jpg&#x22; /&#x3E;
  379. &#x3C;/div&#x3E;
  380. </code>
  381. </div>
  382. </div>
  383. </div>
  384. </div>
  385. <div class="hero">
  386. <img style="max-height: 400px;" src="/image.jpg" />
  387. </div>
  388. <div class="container">
  389. <div class="grid">
  390. <div class="col-12">
  391. <h2 class="m-top-5">Icon</h2>
  392. <div class="content">
  393. <code>&#x3C;svg class=&#x22;icon&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  394. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-check&#x22;&#x3E;&#x3C;/use&#x3E;
  395. &#x3C;/svg&#x3E;
  396. &#x3C;svg class=&#x22;icon fill-danger&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  397. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-camera&#x22;&#x3E;&#x3C;/use&#x3E;
  398. &#x3C;/svg&#x3E;
  399. &#x3C;svg class=&#x22;icon fill-success&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  400. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-clock&#x22;&#x3E;&#x3C;/use&#x3E;
  401. &#x3C;/svg&#x3E;
  402. </code>
  403. </div>
  404. <svg class="icon" aria-hidden="true">
  405. <use xlink:href="symbol-defs.svg#icon-check"></use>
  406. </svg>
  407. <svg class="icon fill-danger" aria-hidden="true">
  408. <use xlink:href="symbol-defs.svg#icon-camera"></use>
  409. </svg>
  410. <svg class="icon fill-success" aria-hidden="true">
  411. <use xlink:href="symbol-defs.svg#icon-clock"></use>
  412. </svg>
  413. <!-- Loading -->
  414. <h2 class="m-top-5">Loading</h2>
  415. <div class="content">
  416. <code>&#x3C;div class=&#x22;loading&#x22;&#x3E;
  417. &#x3C;span&#x3E;&#x3C;/span&#x3E;
  418. &#x3C;span&#x3E;&#x3C;/span&#x3E;
  419. &#x3C;span&#x3E;&#x3C;/span&#x3E;
  420. &#x3C;/div&#x3E;
  421. </code>
  422. </div>
  423. <div class="loading">
  424. <span></span>
  425. <span></span>
  426. <span></span>
  427. </div>
  428. <h2 class="m-top-5">
  429. Media
  430. </h2>
  431. <div class="content">
  432. <code>&#x3C;figure class=&#x22;figure&#x22;&#x3E;
  433. &#x3C;img class=&#x22;media&#x22; src=&#x22;/image.jpg&#x22; /&#x3E;
  434. &#x3C;figcaption class=&#x22;figure__caption&#x22;&#x3E;
  435. food truck yr franzen pabst
  436. &#x3C;/figcaption&#x3E;
  437. &#x3C;/figure&#x3E;
  438. </code>
  439. </div>
  440. <figure class="figure">
  441. <img class="media" src="/image.jpg" />
  442. <figcaption class="figure__caption">
  443. food truck yr franzen pabst
  444. </figcaption>
  445. </figure>
  446. <!-- modal -->
  447. <h2 class="m-top-5">
  448. Modal
  449. </h2>
  450. <div class="content">
  451. <code>&#x3C;div class=&#x22;modal&#x22;&#x3E;
  452. &#x3C;div class=&#x22;modal__inner&#x22;&#x3E;
  453. &#x3C;div class=&#x22;modal__title t-center&#x22;&#x3E;
  454. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  455. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  456. &#x3C;/svg&#x3E;
  457. Delete
  458. &#x3C;/div&#x3E;
  459. &#x3C;div class=&#x22;modal__body&#x22;&#x3E;
  460. Do you really wan&#x27;t to delete all files?
  461. &#x3C;/div&#x3E;
  462. &#x3C;div class=&#x22;modal__footer&#x22;&#x3E;
  463. &#x3C;button class=&#x22;button button--outline button--danger&#x22; onclick=&#x22;closeModal()&#x22;&#x3E;
  464. Confirm
  465. &#x3C;/button&#x3E;
  466. &#x3C;button class=&#x22;button button--outline float-right&#x22; onclick=&#x22;closeModal()&#x22;&#x3E;
  467. Reject
  468. &#x3C;/button&#x3E;
  469. &#x3C;/div&#x3E;
  470. &#x3C;/div&#x3E;
  471. &#x3C;/div&#x3E;
  472. </code>
  473. </div>
  474. <button class="button" onclick="openModal()">
  475. Click me!
  476. </button>
  477. <script type="text/javascript">
  478. function openModal() {
  479. document.querySelector('.modal').classList.add('modal--open')
  480. }
  481. function closeModal() {
  482. document.querySelector('.modal').classList.remove('modal--open')
  483. }
  484. </script>
  485. <div class="modal">
  486. <div class="modal__inner">
  487. <div class="modal__title t-center">
  488. <svg class="icon fill-text-contrast" aria-hidden="true">
  489. <use xlink:href="symbol-defs.svg#icon-close"></use>
  490. </svg>
  491. Delete
  492. </div>
  493. <div class="modal__body center">
  494. Do you really wan't to delete all files?
  495. </div>
  496. <div class="modal__footer">
  497. <button class="button button--outline button--danger" onclick="closeModal()">
  498. Confirm
  499. </button>
  500. <button class="button button--outline float-right" onclick="closeModal()">
  501. Reject
  502. </button>
  503. </div>
  504. </div>
  505. </div>
  506. <!-- panel -->
  507. <h2 class="m-top-5">
  508. Panel
  509. </h2>
  510. <div class="content">
  511. <code>&#x3C;div class=&#x22;panel&#x22;&#x3E;
  512. &#x3C;div class=&#x22;bar&#x22;&#x3E;
  513. &#x3C;div class=&#x22;bar__start&#x22;&#x3E;
  514. &#x3C;button type=&#x22;button&#x22; class=&#x22;button button--transparent&#x22;&#x3E;
  515. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  516. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-expand&#x22;&#x3E;&#x3C;/use&#x3E;
  517. &#x3C;/svg&#x3E;
  518. &#x3C;/button&#x3E;
  519. &#x3C;/div&#x3E;
  520. &#x3C;div class=&#x22;bar__main&#x22;&#x3E;Panel&#x3C;/div&#x3E;
  521. &#x3C;div class=&#x22;bar__end&#x22;&#x3E;
  522. &#x3C;button type=&#x22;button&#x22; class=&#x22;button button--transparent&#x22;&#x3E;
  523. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  524. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-edit&#x22;&#x3E;&#x3C;/use&#x3E;
  525. &#x3C;/svg&#x3E;
  526. &#x3C;/button&#x3E;
  527. &#x3C;button type=&#x22;button&#x22; class=&#x22;button button--transparent&#x22;&#x3E;
  528. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  529. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  530. &#x3C;/svg&#x3E;
  531. &#x3C;/button&#x3E;
  532. &#x3C;/div&#x3E;
  533. &#x3C;/div&#x3E;
  534. &#x3C;div class=&#x22;panel__body&#x22;&#x3E;
  535. &#x3C;div class=&#x22;content m-last-child-0&#x22;&#x3E;
  536. &#x3C;p&#x3E;
  537. Content
  538. &#x3C;/p&#x3E;
  539. &#x3C;/div&#x3E;
  540. &#x3C;/div&#x3E;
  541. &#x3C;/div&#x3E;
  542. </code>
  543. </div>
  544. <div class="panel">
  545. <div class="bar">
  546. <div class="bar__start">
  547. <button type="button" class="button button--transparent">
  548. <svg class="icon fill-text-contrast" aria-hidden="true">
  549. <use xlink:href="symbol-defs.svg#icon-expand"></use>
  550. </svg>
  551. </button>
  552. </div>
  553. <div class="bar__main">Panel</div>
  554. <div class="bar__end">
  555. <button type="button" class="button button--transparent">
  556. <svg class="icon fill-text-contrast" aria-hidden="true">
  557. <use xlink:href="symbol-defs.svg#icon-edit"></use>
  558. </svg>
  559. </button>
  560. <button type="button" class="button button--transparent">
  561. <svg class="icon fill-text-contrast" aria-hidden="true">
  562. <use xlink:href="symbol-defs.svg#icon-close"></use>
  563. </svg>
  564. </button>
  565. </div>
  566. </div>
  567. <div class="panel__body">
  568. <div class="content m-last-child-0">
  569. <p>
  570. Hallo
  571. </p>
  572. </div>
  573. </div>
  574. </div>
  575. <!-- progress -->
  576. <h2 class="m-top-5">
  577. Progress
  578. </h2>
  579. <div class="content">
  580. <code>&#x3C;div class=&#x22;progress&#x22;&#x3E;
  581. &#x3C;div class=&#x22;progress__inner&#x22; style=&#x22;width: 20%;&#x22;&#x3E;&#x3C;/div&#x3E;
  582. &#x3C;/div&#x3E;
  583. </code>
  584. </div>
  585. <div class="progress">
  586. <div class="progress__inner" style="width: 20%;"></div>
  587. </div>
  588. <!-- sidebar -->
  589. <h2 class="m-top-5">
  590. Sidebar
  591. </h2>
  592. <div class="content">
  593. <code>&#x3C;div class=&#x22;sidebar&#x22;&#x3E;
  594. &#x3C;div class=&#x22;sidebar__inner&#x22;&#x3E;
  595. &#x3C;div class=&#x22;sidebar__body&#x22;&#x3E;
  596. &#x3C;/div&#x3E;
  597. &#x3C;div class=&#x22;sidebar__footer&#x22;&#x3E;
  598. &#x3C;button type=&#x22;button&#x22; class=&#x22;button m-bottom-0&#x22;&#x3E;
  599. Close
  600. &#x3C;/button&#x3E;
  601. &#x3C;/div&#x3E;
  602. &#x3C;/div&#x3E;
  603. &#x3C;/div&#x3E;
  604. </code>
  605. </div>
  606. <button class="button" onclick="openSidebar()">
  607. Click me!
  608. </button>
  609. <script type="text/javascript">
  610. function openSidebar() {
  611. document.querySelector('.sidebar').classList.add('sidebar--open')
  612. }
  613. function closeSidebar() {
  614. document.querySelector('.sidebar').classList.remove('sidebar--open')
  615. }
  616. </script>
  617. <div class="sidebar">
  618. <div class="sidebar__inner">
  619. <div class="sidebar__body">
  620. </div>
  621. <div class="sidebar__footer">
  622. <button type="button" class="button m-bottom-0" onclick="closeSidebar()">
  623. Close
  624. </button>
  625. </div>
  626. </div>
  627. </div>
  628. <!-- sidebar -->
  629. <h2 class="m-top-5">
  630. Sidebar + Bar
  631. </h2>
  632. <div class="content">
  633. <code>&#x3C;div class=&#x22;sidebar&#x22;&#x3E;
  634. &#x3C;div class=&#x22;sidebar__inner&#x22;&#x3E;
  635. &#x3C;div class=&#x22;bar&#x22;&#x3E;
  636. &#x3C;div class=&#x22;bar__main&#x22;&#x3E;
  637. Sidebar
  638. &#x3C;/div&#x3E;
  639. &#x3C;div class=&#x22;bar__end&#x22;&#x3E;
  640. &#x3C;button class=&#x22;button button--transparent&#x22; type=&#x22;button&#x22;&#x3E;
  641. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  642. &#x3C;use xlink:href=&#x22;/symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  643. &#x3C;/svg&#x3E;
  644. &#x3C;/button&#x3E;
  645. &#x3C;/div&#x3E;
  646. &#x3C;/div&#x3E;
  647. &#x3C;div class=&#x22;sidebar__body&#x22;&#x3E;
  648. &#x3C;/div&#x3E;
  649. &#x3C;div class=&#x22;sidebar__footer&#x22;&#x3E;
  650. &#x3C;button type=&#x22;button&#x22; class=&#x22;button m-bottom-0&#x22;&#x3E;
  651. Close
  652. &#x3C;/button&#x3E;
  653. &#x3C;/div&#x3E;
  654. &#x3C;/div&#x3E;
  655. &#x3C;/div&#x3E;
  656. </code>
  657. </div>
  658. <button class="button" onclick="openSidebarBar()">
  659. Click me!
  660. </button>
  661. <script type="text/javascript">
  662. function openSidebarBar() {
  663. document.querySelector('#sidebar-bar').classList.add('sidebar--open')
  664. }
  665. function closeSidebarBar() {
  666. document.querySelector('#sidebar-bar').classList.remove('sidebar--open')
  667. }
  668. </script>
  669. <div id="sidebar-bar" class="sidebar">
  670. <div class="sidebar__inner">
  671. <div class="bar">
  672. <div class="bar__main">
  673. Sidebar
  674. </div>
  675. <div class="bar__end">
  676. <button class="button button--transparent" type="button" onclick="closeSidebarBar()">
  677. <svg class="icon fill-text-contrast" aria-hidden="true">
  678. <use xlink:href="/symbol-defs.svg#icon-close"></use>
  679. </svg>
  680. </button>
  681. </div>
  682. </div>
  683. <div class="sidebar__body">
  684. </div>
  685. <div class="sidebar__footer">
  686. <button type="button" class="button m-bottom-0" onclick="closeSidebarBar()">
  687. Close
  688. </button>
  689. </div>
  690. </div>
  691. </div>
  692. <!-- table -->
  693. <h2 class="m-top-5">
  694. Table
  695. </h2>
  696. <div class="content">
  697. <code>&#x3C;table class=&#x22;table table--striped table--hover&#x22;&#x3E;
  698. &#x3C;thead&#x3E;
  699. &#x3C;tr class=&#x22;table__tr&#x22;&#x3E;
  700. &#x3C;th class=&#x22;table__th&#x22;&#x3E;A&#x3C;/th&#x3E;
  701. &#x3C;th class=&#x22;table__th&#x22;&#x3E;B&#x3C;/th&#x3E;
  702. &#x3C;th class=&#x22;table__th&#x22;&#x3E;C&#x3C;/th&#x3E;
  703. &#x3C;th class=&#x22;table__th&#x22;&#x3E;D&#x3C;/th&#x3E;
  704. &#x3C;/tr&#x3E;
  705. &#x3C;/thead&#x3E;
  706. &#x3C;tbody&#x3E;
  707. &#x3C;tr class=&#x22;table__tr&#x22;&#x3E;
  708. &#x3C;td class=&#x22;table__td&#x22;&#x3E;1&#x3C;/td&#x3E;
  709. &#x3C;td class=&#x22;table__td&#x22;&#x3E;2&#x3C;/td&#x3E;
  710. &#x3C;td class=&#x22;table__td&#x22;&#x3E;3&#x3C;/td&#x3E;
  711. &#x3C;td class=&#x22;table__td&#x22;&#x3E;4&#x3C;/td&#x3E;
  712. &#x3C;/tr&#x3E;
  713. &#x3C;tr class=&#x22;table__tr&#x22;&#x3E;
  714. &#x3C;td class=&#x22;table__td&#x22;&#x3E;1&#x3C;/td&#x3E;
  715. &#x3C;td class=&#x22;table__td&#x22;&#x3E;2&#x3C;/td&#x3E;
  716. &#x3C;td class=&#x22;table__td&#x22;&#x3E;3&#x3C;/td&#x3E;
  717. &#x3C;td class=&#x22;table__td&#x22;&#x3E;4&#x3C;/td&#x3E;
  718. &#x3C;/tr&#x3E;
  719. &#x3C;tr class=&#x22;table__tr&#x22;&#x3E;
  720. &#x3C;td class=&#x22;table__td&#x22;&#x3E;1&#x3C;/td&#x3E;
  721. &#x3C;td class=&#x22;table__td&#x22;&#x3E;2&#x3C;/td&#x3E;
  722. &#x3C;td class=&#x22;table__td&#x22;&#x3E;3&#x3C;/td&#x3E;
  723. &#x3C;td class=&#x22;table__td&#x22;&#x3E;4&#x3C;/td&#x3E;
  724. &#x3C;/tr&#x3E;
  725. &#x3C;/tbody&#x3E;
  726. &#x3C;/table&#x3E;
  727. </code>
  728. </div>
  729. <table class="table table--striped table--hover">
  730. <thead>
  731. <tr class="table__tr">
  732. <th class="table__th">A</th>
  733. <th class="table__th">B</th>
  734. <th class="table__th">C</th>
  735. <th class="table__th">D</th>
  736. </tr>
  737. </thead>
  738. <tbody>
  739. <tr class="table__tr">
  740. <td class="table__td">1</td>
  741. <td class="table__td">2</td>
  742. <td class="table__td">3</td>
  743. <td class="table__td">4</td>
  744. </tr>
  745. <tr class="table__tr">
  746. <td class="table__td">1</td>
  747. <td class="table__td">2</td>
  748. <td class="table__td">3</td>
  749. <td class="table__td">4</td>
  750. </tr>
  751. <tr class="table__tr">
  752. <td class="table__td">1</td>
  753. <td class="table__td">2</td>
  754. <td class="table__td">3</td>
  755. <td class="table__td">4</td>
  756. </tr>
  757. </tbody>
  758. </table>
  759. <!--- tabs -->
  760. <h2 class="m-top-5">
  761. Tabs
  762. </h2>
  763. <div class="content">
  764. <code>&#x3C;div class=&#x22;tabs&#x22;&#x3E;
  765. &#x3C;a class=&#x22;tabs__item tabs__item--selected&#x22;&#x3E;
  766. Tab A
  767. &#x3C;/a&#x3E;
  768. &#x3C;a class=&#x22;tabs__item&#x22;&#x3E;
  769. Tab B
  770. &#x3C;/a&#x3E;
  771. &#x3C;a class=&#x22;tabs__item&#x22;&#x3E;
  772. Tab C
  773. &#x3C;/a&#x3E;
  774. &#x3C;/div&#x3E;
  775. </code>
  776. </div>
  777. <div class="tabs">
  778. <a class="tabs__item tabs__item--selected">
  779. Tab A
  780. </a>
  781. <a class="tabs__item">
  782. Tab B
  783. </a>
  784. <a class="tabs__item">
  785. Tab C
  786. </a>
  787. </div>
  788. <h2 class="m-top-5">
  789. Tabs + Bar
  790. </h2>
  791. <div class="content">
  792. <code>&#x3C;div class=&#x22;bar&#x22;&#x3E;
  793. &#x3C;div class=&#x22;tabs tabs--contrast&#x22;&#x3E;
  794. &#x3C;a class=&#x22;tabs__item tabs__item--selected&#x22;&#x3E;
  795. Tab A
  796. &#x3C;/a&#x3E;
  797. &#x3C;a class=&#x22;tabs__item&#x22;&#x3E;
  798. Tab B
  799. &#x3C;/a&#x3E;
  800. &#x3C;a class=&#x22;tabs__item&#x22;&#x3E;
  801. Tab C
  802. &#x3C;/a&#x3E;
  803. &#x3C;/div&#x3E;
  804. &#x3C;/div&#x3E;
  805. </code>
  806. </div>
  807. <div class="bar">
  808. <div class="tabs tabs--contrast">
  809. <a class="tabs__item tabs__item--selected">
  810. Tab A
  811. </a>
  812. <a class="tabs__item">
  813. Tab B
  814. </a>
  815. <a class="tabs__item">
  816. Tab C
  817. </a>
  818. </div>
  819. </div>
  820. <!-- toast -->
  821. <h2 class="m-top-5">
  822. Toast
  823. </h2>
  824. <div class="content">
  825. <code>&#x3C;div class=&#x22;toast-wrapper&#x22;&#x3E;
  826. &#x3C;div class=&#x22;toast&#x22;&#x3E;
  827. &#x3C;div class=&#x22;toast__icon&#x22;&#x3E;
  828. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  829. &#x3C;use xlink:href=&#x22;/symbol-defs.svg#icon-warning&#x22;&#x3E;&#x3C;/use&#x3E;
  830. &#x3C;/svg&#x3E;
  831. &#x3C;/div&#x3E;
  832. &#x3C;div class=&#x22;toast__body&#x22;&#x3E;
  833. &#x3C;/div&#x3E;
  834. &#x3C;div class=&#x22;toast__button&#x22;&#x3E;
  835. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  836. &#x3C;use xlink:href=&#x22;/symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  837. &#x3C;/svg&#x3E;
  838. &#x3C;/div&#x3E;
  839. &#x3C;/div&#x3E;
  840. &#x3C;/div&#x3E;
  841. </code>
  842. </div>
  843. <script type="text/javascript">
  844. function addToast() {
  845. document.querySelector('#toast').style.display = 'block'
  846. setTimeout(function() {
  847. document.querySelector('#toast .toast').classList.add('toast--animation')
  848. }, 100)
  849. }
  850. function closeToast() {
  851. setTimeout(function() {
  852. document.querySelector('#toast').style.display = 'none'
  853. }, 1000)
  854. document.querySelector('#toast .toast').classList.remove('toast--animation')
  855. }
  856. </script>
  857. <button class="button" onclick="addToast()">
  858. Click me!
  859. </button>
  860. <div id="toast" class="toast-wrapper" style="display: none;">
  861. <div class="toast toast--danger">
  862. <div class="toast__icon">
  863. <svg class="icon fill-text-contrast" aria-hidden="true">
  864. <use xlink:href="/symbol-defs.svg#icon-warning"></use>
  865. </svg>
  866. </div>
  867. <div class="toast__body">
  868. Warning! Action not Working!
  869. </div>
  870. <button class="toast__button" onclick="closeToast()">
  871. <svg class="icon fill-text-contrast" aria-hidden="true">
  872. <use xlink:href="/symbol-defs.svg#icon-close"></use>
  873. </svg>
  874. </button>
  875. </div>
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. <footer class="site-footer m-top-5">
  881. <div class="bar">
  882. <div class="bar__main">
  883. <a class="color-text-contrast m-right-4" href="/imprint.html">
  884. Imprint
  885. </a>
  886. <a class="color-text-contrast" href="/private-policy.html">
  887. Privacy Policy
  888. </a>
  889. </div>
  890. </div>
  891. </footer>
  892. </body>
  893. </html