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.

968 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
2 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--full">
  159. full
  160. </button>
  161. <button class="button button--full button--danger">
  162. danger
  163. </button>
  164. <button class="button button--full button--success">
  165. success
  166. </button>
  167. <button class="button button--full button--warning">
  168. warning
  169. </button>
  170. <button class="button button--full button--info">
  171. info
  172. </button>
  173. </div>
  174. <div>
  175. <button class="button button--outline">
  176. outline
  177. </button>
  178. </div>
  179. <button class="button button--small">
  180. Small
  181. </button>
  182. <h2 class="m-top-5">Field</h2>
  183. <div class="content">
  184. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  185. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  186. Name
  187. &#x3C;input class=&#x22;field-text&#x22; /&#x3E;
  188. &#x3C;/label&#x3E;
  189. &#x3C;/div&#x3E;
  190. </code>
  191. </div>
  192. <div class="field-group">
  193. <label class="field-label">
  194. Name
  195. <input class="field-text" />
  196. </label>
  197. </div>
  198. <div class="field-group">
  199. <label class="field-label">
  200. Message
  201. <textarea class="field-text"></textarea>
  202. </label>
  203. </div>
  204. <div class="content">
  205. <code>&#x3C;div class=&#x22;field-group field-group--valid&#x22;&#x3E;
  206. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  207. &#x3C;svg class=&#x22;icon&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  208. &#x3C;use class=&#x22;test&#x22; xlink:href=&#x22;symbol-defs.svg#icon-check&#x22;&#x3E;&#x3C;/use&#x3E;
  209. &#x3C;/svg&#x3E;
  210. Surname
  211. &#x3C;input class=&#x22;field-text&#x22; /&#x3E;
  212. &#x3C;/label&#x3E;
  213. &#x3C;/div&#x3E;
  214. </code>
  215. </div>
  216. <div class="field-group field-group--valid">
  217. <label class="field-label">
  218. <svg class="icon" aria-hidden="true">
  219. <use class="test" xlink:href="symbol-defs.svg#icon-check"></use>
  220. </svg>
  221. Surname
  222. <input class="field-text" />
  223. </label>
  224. </div>
  225. <div class="content">
  226. <code>&#x3C;div class=&#x22;field-group field-group--error&#x22;&#x3E;
  227. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  228. &#x3C;svg class=&#x22;icon&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  229. &#x3C;use class=&#x22;test&#x22; xlink:href=&#x22;symbol-defs.svg#icon-warning&#x22;&#x3E;&#x3C;/use&#x3E;
  230. &#x3C;/svg&#x3E;
  231. E-Mail
  232. &#x3C;input class=&#x22;field-text&#x22; /&#x3E;
  233. &#x3C;/label&#x3E;
  234. &#x3C;span class=&#x22;field-error&#x22;&#x3E;
  235. String is not valid
  236. &#x3C;/span&#x3E;
  237. &#x3C;/div&#x3E;
  238. </code>
  239. </div>
  240. <div class="field-group field-group--error">
  241. <label class="field-label">
  242. <svg class="icon" aria-hidden="true">
  243. <use class="test" xlink:href="symbol-defs.svg#icon-warning"></use>
  244. </svg>
  245. E-Mail
  246. <input class="field-text" />
  247. </label>
  248. <span class="field-error">
  249. String is not valid
  250. </span>
  251. </div>
  252. <div class="content">
  253. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  254. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  255. Towns
  256. &#x3C;select class=&#x22;field-choice&#x22;&#x3E;
  257. &#x3C;option&#x3E;&#x3C;/option&#x3E;
  258. &#x3C;option value=&#x22;lonytown&#x22;&#x3E;Lonytown&#x3C;/option&#x3E;
  259. &#x3C;/select&#x3E;
  260. &#x3C;/label&#x3E;
  261. &#x3C;/div&#x3E;
  262. </code>
  263. </div>
  264. <div class="field-group">
  265. <label class="field-label">
  266. Towns
  267. <select class="field-choice">
  268. <option></option>
  269. <option value="lonytown">Lonytown</option>
  270. </select>
  271. </label>
  272. </div>
  273. <div class="content">
  274. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  275. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  276. &#x3C;input class=&#x22;field-choice&#x22; type=&#x22;checkbox&#x22; value=&#x22;true&#x22; /&#x3E;
  277. &#x3C;svg class=&#x22;icon field-choice__unchecked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  278. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-checkbox&#x22;&#x3E;&#x3C;/use&#x3E;
  279. &#x3C;/svg&#x3E;
  280. &#x3C;svg class=&#x22;icon field-choice__checked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  281. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-checkbox-checked&#x22;&#x3E;&#x3C;/use&#x3E;
  282. &#x3C;/svg&#x3E;
  283. Checkbox
  284. &#x3C;/label&#x3E;
  285. &#x3C;/div&#x3E;
  286. </code>
  287. </div>
  288. <div class="field-group">
  289. <label class="field-label">
  290. <input class="field-choice" type="checkbox" value="true" />
  291. <svg class="icon field-choice__unchecked" aria-hidden="true">
  292. <use xlink:href="symbol-defs.svg#icon-checkbox"></use>
  293. </svg>
  294. <svg class="icon field-choice__checked" aria-hidden="true">
  295. <use xlink:href="symbol-defs.svg#icon-checkbox-checked"></use>
  296. </svg>
  297. Checkbox
  298. </label>
  299. </div>
  300. <div class="content">
  301. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  302. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  303. &#x3C;input class=&#x22;field-choice&#x22; type=&#x22;radio&#x22; name=&#x22;radio&#x22; value=&#x22;true&#x22; /&#x3E;
  304. &#x3C;svg class=&#x22;icon field-choice__unchecked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  305. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-circle&#x22;&#x3E;&#x3C;/use&#x3E;
  306. &#x3C;/svg&#x3E;
  307. &#x3C;svg class=&#x22;icon field-choice__checked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  308. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-circle-check&#x22;&#x3E;&#x3C;/use&#x3E;
  309. &#x3C;/svg&#x3E;
  310. Radio A
  311. &#x3C;/label&#x3E;
  312. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  313. &#x3C;input class=&#x22;field-choice&#x22; type=&#x22;radio&#x22; name=&#x22;radio&#x22; value=&#x22;true&#x22; /&#x3E;
  314. &#x3C;svg class=&#x22;icon field-choice__unchecked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  315. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-circle&#x22;&#x3E;&#x3C;/use&#x3E;
  316. &#x3C;/svg&#x3E;
  317. &#x3C;svg class=&#x22;icon field-choice__checked&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  318. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-circle-check&#x22;&#x3E;&#x3C;/use&#x3E;
  319. &#x3C;/svg&#x3E;
  320. Radio B
  321. &#x3C;/label&#x3E;
  322. &#x3C;/div&#x3E;
  323. </code>
  324. </div>
  325. <div class="field-group">
  326. <label class="field-label">
  327. <input class="field-choice" type="radio" name="radio" value="true" />
  328. <svg class="icon field-choice__unchecked" aria-hidden="true">
  329. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  330. </svg>
  331. <svg class="icon field-choice__checked" aria-hidden="true">
  332. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  333. </svg>
  334. Radio A
  335. </label>
  336. <label class="field-label">
  337. <input class="field-choice" type="radio" name="radio" value="true" />
  338. <svg class="icon field-choice__unchecked" aria-hidden="true">
  339. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  340. </svg>
  341. <svg class="icon field-choice__checked" aria-hidden="true">
  342. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  343. </svg>
  344. Radio B
  345. </label>
  346. </div>
  347. <div class="content">
  348. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  349. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  350. &#x3C;input class=&#x22;field-choice&#x22; type=&#x22;checkbox&#x22; name=&#x22;radio&#x22; value=&#x22;true&#x22; /&#x3E;
  351. &#x3C;span class=&#x22;field-switch&#x22;&#x3E;&#x3C;/span&#x3E;
  352. &#x3C;/label&#x3E;
  353. &#x3C;/div&#x3E;
  354. </code>
  355. </div>
  356. <div class="field-group">
  357. <label class="field-label">
  358. <input class="field-choice" type="checkbox" name="radio" value="true" />
  359. <span class="field-switch"></span>
  360. </label>
  361. </div>
  362. <h2 class="m-top-5">
  363. Group
  364. </h2>
  365. <div class="content">
  366. <code>&#x3C;div class=&#x22;group&#x22;&#x3E;
  367. &#x3C;div class=&#x22;group__item background-color-primary color-text-contrast p-3&#x22;&#x3E;
  368. One
  369. &#x3C;/div&#x3E;
  370. &#x3C;div class=&#x22;group__item background-color-primary color-text-contrast p-3&#x22;&#x3E;
  371. Two
  372. &#x3C;/div&#x3E;
  373. &#x3C;/div&#x3E;
  374. </code>
  375. </div>
  376. <div class="group">
  377. <div class="group__item background-color-primary color-text-contrast p-3">
  378. One
  379. </div>
  380. <div class="group__item background-color-primary color-text-contrast p-3">
  381. Two
  382. </div>
  383. </div>
  384. </div>
  385. </div>
  386. </div>
  387. <div class="container">
  388. <div class="grid">
  389. <div class="col-12">
  390. <h2>
  391. Hero
  392. </h2>
  393. <div class="content">
  394. <code>&#x3C;div class=&#x22;hero&#x22;&#x3E;
  395. &#x3C;img style=&#x22;max-height: 400px;&#x22; src=&#x22;/image.jpg&#x22; /&#x3E;
  396. &#x3C;/div&#x3E;
  397. </code>
  398. </div>
  399. </div>
  400. </div>
  401. </div>
  402. <div class="hero">
  403. <img style="max-height: 400px;" src="/image.jpg" />
  404. </div>
  405. <div class="container">
  406. <div class="grid">
  407. <div class="col-12">
  408. <h2 class="m-top-5">Icon</h2>
  409. <div class="content">
  410. <code>&#x3C;svg class=&#x22;icon&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  411. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-check&#x22;&#x3E;&#x3C;/use&#x3E;
  412. &#x3C;/svg&#x3E;
  413. &#x3C;svg class=&#x22;icon fill-danger&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  414. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-camera&#x22;&#x3E;&#x3C;/use&#x3E;
  415. &#x3C;/svg&#x3E;
  416. &#x3C;svg class=&#x22;icon fill-success&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  417. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-clock&#x22;&#x3E;&#x3C;/use&#x3E;
  418. &#x3C;/svg&#x3E;
  419. </code>
  420. </div>
  421. <svg class="icon" aria-hidden="true">
  422. <use xlink:href="symbol-defs.svg#icon-check"></use>
  423. </svg>
  424. <svg class="icon fill-danger" aria-hidden="true">
  425. <use xlink:href="symbol-defs.svg#icon-camera"></use>
  426. </svg>
  427. <svg class="icon fill-success" aria-hidden="true">
  428. <use xlink:href="symbol-defs.svg#icon-clock"></use>
  429. </svg>
  430. <!-- Loading -->
  431. <h2 class="m-top-5">Loading</h2>
  432. <div class="content">
  433. <code>&#x3C;div class=&#x22;loading&#x22;&#x3E;
  434. &#x3C;span&#x3E;&#x3C;/span&#x3E;
  435. &#x3C;span&#x3E;&#x3C;/span&#x3E;
  436. &#x3C;span&#x3E;&#x3C;/span&#x3E;
  437. &#x3C;/div&#x3E;
  438. </code>
  439. </div>
  440. <div class="loading">
  441. <span></span>
  442. <span></span>
  443. <span></span>
  444. </div>
  445. <h2 class="m-top-5">
  446. Media
  447. </h2>
  448. <div class="content">
  449. <code>&#x3C;figure class=&#x22;figure&#x22;&#x3E;
  450. &#x3C;img class=&#x22;media&#x22; src=&#x22;/image.jpg&#x22; /&#x3E;
  451. &#x3C;figcaption class=&#x22;figure__caption&#x22;&#x3E;
  452. food truck yr franzen pabst
  453. &#x3C;/figcaption&#x3E;
  454. &#x3C;/figure&#x3E;
  455. </code>
  456. </div>
  457. <figure class="figure">
  458. <img class="media" src="/image.jpg" />
  459. <figcaption class="figure__caption">
  460. food truck yr franzen pabst
  461. </figcaption>
  462. </figure>
  463. <!-- modal -->
  464. <h2 class="m-top-5">
  465. Modal
  466. </h2>
  467. <div class="content">
  468. <code>&#x3C;div class=&#x22;modal&#x22;&#x3E;
  469. &#x3C;div class=&#x22;modal__inner&#x22;&#x3E;
  470. &#x3C;div class=&#x22;modal__title t-center&#x22;&#x3E;
  471. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  472. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  473. &#x3C;/svg&#x3E;
  474. Delete
  475. &#x3C;/div&#x3E;
  476. &#x3C;div class=&#x22;modal__body&#x22;&#x3E;
  477. Do you really wan&#x27;t to delete all files?
  478. &#x3C;/div&#x3E;
  479. &#x3C;div class=&#x22;modal__footer&#x22;&#x3E;
  480. &#x3C;button class=&#x22;button button--outline button--danger&#x22; onclick=&#x22;closeModal()&#x22;&#x3E;
  481. Confirm
  482. &#x3C;/button&#x3E;
  483. &#x3C;button class=&#x22;button button--outline float-right&#x22; onclick=&#x22;closeModal()&#x22;&#x3E;
  484. Reject
  485. &#x3C;/button&#x3E;
  486. &#x3C;/div&#x3E;
  487. &#x3C;/div&#x3E;
  488. &#x3C;/div&#x3E;
  489. </code>
  490. </div>
  491. <button class="button" onclick="openModal()">
  492. Click me!
  493. </button>
  494. <script type="text/javascript">
  495. function openModal() {
  496. document.querySelector('.modal').classList.add('modal--open')
  497. }
  498. function closeModal() {
  499. document.querySelector('.modal').classList.remove('modal--open')
  500. }
  501. </script>
  502. <div class="modal">
  503. <div class="modal__inner">
  504. <div class="modal__title t-center">
  505. <svg class="icon fill-text-contrast" aria-hidden="true">
  506. <use xlink:href="symbol-defs.svg#icon-close"></use>
  507. </svg>
  508. Delete
  509. </div>
  510. <div class="modal__body center">
  511. Do you really wan't to delete all files?
  512. </div>
  513. <div class="modal__footer">
  514. <button class="button button--outline button--danger" onclick="closeModal()">
  515. Confirm
  516. </button>
  517. <button class="button button--outline float-right" onclick="closeModal()">
  518. Reject
  519. </button>
  520. </div>
  521. </div>
  522. </div>
  523. <!-- panel -->
  524. <h2 class="m-top-5">
  525. Panel
  526. </h2>
  527. <div class="content">
  528. <code>&#x3C;div class=&#x22;panel&#x22;&#x3E;
  529. &#x3C;div class=&#x22;bar&#x22;&#x3E;
  530. &#x3C;div class=&#x22;bar__start&#x22;&#x3E;
  531. &#x3C;button type=&#x22;button&#x22; class=&#x22;button button--transparent&#x22;&#x3E;
  532. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  533. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-expand&#x22;&#x3E;&#x3C;/use&#x3E;
  534. &#x3C;/svg&#x3E;
  535. &#x3C;/button&#x3E;
  536. &#x3C;/div&#x3E;
  537. &#x3C;div class=&#x22;bar__main&#x22;&#x3E;Panel&#x3C;/div&#x3E;
  538. &#x3C;div class=&#x22;bar__end&#x22;&#x3E;
  539. &#x3C;button type=&#x22;button&#x22; class=&#x22;button button--transparent&#x22;&#x3E;
  540. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  541. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-edit&#x22;&#x3E;&#x3C;/use&#x3E;
  542. &#x3C;/svg&#x3E;
  543. &#x3C;/button&#x3E;
  544. &#x3C;button type=&#x22;button&#x22; class=&#x22;button button--transparent&#x22;&#x3E;
  545. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  546. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  547. &#x3C;/svg&#x3E;
  548. &#x3C;/button&#x3E;
  549. &#x3C;/div&#x3E;
  550. &#x3C;/div&#x3E;
  551. &#x3C;div class=&#x22;panel__body&#x22;&#x3E;
  552. &#x3C;div class=&#x22;content m-last-child-0&#x22;&#x3E;
  553. &#x3C;p&#x3E;
  554. Content
  555. &#x3C;/p&#x3E;
  556. &#x3C;/div&#x3E;
  557. &#x3C;/div&#x3E;
  558. &#x3C;/div&#x3E;
  559. </code>
  560. </div>
  561. <div class="panel">
  562. <div class="bar">
  563. <div class="bar__start">
  564. <button type="button" class="button button--transparent">
  565. <svg class="icon fill-text-contrast" aria-hidden="true">
  566. <use xlink:href="symbol-defs.svg#icon-expand"></use>
  567. </svg>
  568. </button>
  569. </div>
  570. <div class="bar__main">Panel</div>
  571. <div class="bar__end">
  572. <button type="button" class="button button--transparent">
  573. <svg class="icon fill-text-contrast" aria-hidden="true">
  574. <use xlink:href="symbol-defs.svg#icon-edit"></use>
  575. </svg>
  576. </button>
  577. <button type="button" class="button button--transparent">
  578. <svg class="icon fill-text-contrast" aria-hidden="true">
  579. <use xlink:href="symbol-defs.svg#icon-close"></use>
  580. </svg>
  581. </button>
  582. </div>
  583. </div>
  584. <div class="panel__body">
  585. <div class="content m-last-child-0">
  586. <p>
  587. Hallo
  588. </p>
  589. </div>
  590. </div>
  591. </div>
  592. <!-- progress -->
  593. <h2 class="m-top-5">
  594. Progress
  595. </h2>
  596. <div class="content">
  597. <code>&#x3C;div class=&#x22;progress&#x22;&#x3E;
  598. &#x3C;div class=&#x22;progress__inner&#x22; style=&#x22;width: 20%;&#x22;&#x3E;&#x3C;/div&#x3E;
  599. &#x3C;/div&#x3E;
  600. </code>
  601. </div>
  602. <div class="progress">
  603. <div class="progress__inner" style="width: 20%;"></div>
  604. </div>
  605. <!-- sidebar -->
  606. <h2 class="m-top-5">
  607. Sidebar
  608. </h2>
  609. <div class="content">
  610. <code>&#x3C;div class=&#x22;sidebar&#x22;&#x3E;
  611. &#x3C;div class=&#x22;sidebar__inner&#x22;&#x3E;
  612. &#x3C;div class=&#x22;sidebar__body&#x22;&#x3E;
  613. &#x3C;/div&#x3E;
  614. &#x3C;div class=&#x22;sidebar__footer&#x22;&#x3E;
  615. &#x3C;button type=&#x22;button&#x22; class=&#x22;button m-bottom-0&#x22;&#x3E;
  616. Close
  617. &#x3C;/button&#x3E;
  618. &#x3C;/div&#x3E;
  619. &#x3C;/div&#x3E;
  620. &#x3C;/div&#x3E;
  621. </code>
  622. </div>
  623. <button class="button" onclick="openSidebar()">
  624. Click me!
  625. </button>
  626. <script type="text/javascript">
  627. function openSidebar() {
  628. document.querySelector('.sidebar').classList.add('sidebar--open')
  629. }
  630. function closeSidebar() {
  631. document.querySelector('.sidebar').classList.remove('sidebar--open')
  632. }
  633. </script>
  634. <div class="sidebar">
  635. <div class="sidebar__inner">
  636. <div class="sidebar__body">
  637. </div>
  638. <div class="sidebar__footer">
  639. <button type="button" class="button m-bottom-0" onclick="closeSidebar()">
  640. Close
  641. </button>
  642. </div>
  643. </div>
  644. </div>
  645. <!-- sidebar -->
  646. <h2 class="m-top-5">
  647. Sidebar + Bar
  648. </h2>
  649. <div class="content">
  650. <code>&#x3C;div class=&#x22;sidebar&#x22;&#x3E;
  651. &#x3C;div class=&#x22;sidebar__inner&#x22;&#x3E;
  652. &#x3C;div class=&#x22;bar&#x22;&#x3E;
  653. &#x3C;div class=&#x22;bar__main&#x22;&#x3E;
  654. Sidebar
  655. &#x3C;/div&#x3E;
  656. &#x3C;div class=&#x22;bar__end&#x22;&#x3E;
  657. &#x3C;button class=&#x22;button button--transparent&#x22; type=&#x22;button&#x22;&#x3E;
  658. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  659. &#x3C;use xlink:href=&#x22;/symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  660. &#x3C;/svg&#x3E;
  661. &#x3C;/button&#x3E;
  662. &#x3C;/div&#x3E;
  663. &#x3C;/div&#x3E;
  664. &#x3C;div class=&#x22;sidebar__body&#x22;&#x3E;
  665. &#x3C;/div&#x3E;
  666. &#x3C;div class=&#x22;sidebar__footer&#x22;&#x3E;
  667. &#x3C;button type=&#x22;button&#x22; class=&#x22;button m-bottom-0&#x22;&#x3E;
  668. Close
  669. &#x3C;/button&#x3E;
  670. &#x3C;/div&#x3E;
  671. &#x3C;/div&#x3E;
  672. &#x3C;/div&#x3E;
  673. </code>
  674. </div>
  675. <button class="button" onclick="openSidebarBar()">
  676. Click me!
  677. </button>
  678. <script type="text/javascript">
  679. function openSidebarBar() {
  680. document.querySelector('#sidebar-bar').classList.add('sidebar--open')
  681. }
  682. function closeSidebarBar() {
  683. document.querySelector('#sidebar-bar').classList.remove('sidebar--open')
  684. }
  685. </script>
  686. <div id="sidebar-bar" class="sidebar">
  687. <div class="sidebar__inner">
  688. <div class="bar">
  689. <div class="bar__main">
  690. Sidebar
  691. </div>
  692. <div class="bar__end">
  693. <button class="button button--transparent" type="button" onclick="closeSidebarBar()">
  694. <svg class="icon fill-text-contrast" aria-hidden="true">
  695. <use xlink:href="/symbol-defs.svg#icon-close"></use>
  696. </svg>
  697. </button>
  698. </div>
  699. </div>
  700. <div class="sidebar__body">
  701. </div>
  702. <div class="sidebar__footer">
  703. <button type="button" class="button m-bottom-0" onclick="closeSidebarBar()">
  704. Close
  705. </button>
  706. </div>
  707. </div>
  708. </div>
  709. <!-- table -->
  710. <h2 class="m-top-5">
  711. Table
  712. </h2>
  713. <div class="content">
  714. <code>&#x3C;table class=&#x22;table table--striped table--hover&#x22;&#x3E;
  715. &#x3C;thead&#x3E;
  716. &#x3C;tr class=&#x22;table__tr&#x22;&#x3E;
  717. &#x3C;th class=&#x22;table__th&#x22;&#x3E;A&#x3C;/th&#x3E;
  718. &#x3C;th class=&#x22;table__th&#x22;&#x3E;B&#x3C;/th&#x3E;
  719. &#x3C;th class=&#x22;table__th&#x22;&#x3E;C&#x3C;/th&#x3E;
  720. &#x3C;th class=&#x22;table__th&#x22;&#x3E;D&#x3C;/th&#x3E;
  721. &#x3C;/tr&#x3E;
  722. &#x3C;/thead&#x3E;
  723. &#x3C;tbody&#x3E;
  724. &#x3C;tr class=&#x22;table__tr&#x22;&#x3E;
  725. &#x3C;td class=&#x22;table__td&#x22;&#x3E;1&#x3C;/td&#x3E;
  726. &#x3C;td class=&#x22;table__td&#x22;&#x3E;2&#x3C;/td&#x3E;
  727. &#x3C;td class=&#x22;table__td&#x22;&#x3E;3&#x3C;/td&#x3E;
  728. &#x3C;td class=&#x22;table__td&#x22;&#x3E;4&#x3C;/td&#x3E;
  729. &#x3C;/tr&#x3E;
  730. &#x3C;tr class=&#x22;table__tr&#x22;&#x3E;
  731. &#x3C;td class=&#x22;table__td&#x22;&#x3E;1&#x3C;/td&#x3E;
  732. &#x3C;td class=&#x22;table__td&#x22;&#x3E;2&#x3C;/td&#x3E;
  733. &#x3C;td class=&#x22;table__td&#x22;&#x3E;3&#x3C;/td&#x3E;
  734. &#x3C;td class=&#x22;table__td&#x22;&#x3E;4&#x3C;/td&#x3E;
  735. &#x3C;/tr&#x3E;
  736. &#x3C;tr class=&#x22;table__tr&#x22;&#x3E;
  737. &#x3C;td class=&#x22;table__td&#x22;&#x3E;1&#x3C;/td&#x3E;
  738. &#x3C;td class=&#x22;table__td&#x22;&#x3E;2&#x3C;/td&#x3E;
  739. &#x3C;td class=&#x22;table__td&#x22;&#x3E;3&#x3C;/td&#x3E;
  740. &#x3C;td class=&#x22;table__td&#x22;&#x3E;4&#x3C;/td&#x3E;
  741. &#x3C;/tr&#x3E;
  742. &#x3C;/tbody&#x3E;
  743. &#x3C;/table&#x3E;
  744. </code>
  745. </div>
  746. <table class="table table--striped table--hover">
  747. <thead>
  748. <tr class="table__tr">
  749. <th class="table__th">A</th>
  750. <th class="table__th">B</th>
  751. <th class="table__th">C</th>
  752. <th class="table__th">D</th>
  753. </tr>
  754. </thead>
  755. <tbody>
  756. <tr class="table__tr">
  757. <td class="table__td">1</td>
  758. <td class="table__td">2</td>
  759. <td class="table__td">3</td>
  760. <td class="table__td">4</td>
  761. </tr>
  762. <tr class="table__tr">
  763. <td class="table__td">1</td>
  764. <td class="table__td">2</td>
  765. <td class="table__td">3</td>
  766. <td class="table__td">4</td>
  767. </tr>
  768. <tr class="table__tr">
  769. <td class="table__td">1</td>
  770. <td class="table__td">2</td>
  771. <td class="table__td">3</td>
  772. <td class="table__td">4</td>
  773. </tr>
  774. </tbody>
  775. </table>
  776. <!--- tabs -->
  777. <h2 class="m-top-5">
  778. Tabs
  779. </h2>
  780. <div class="content">
  781. <code>&#x3C;div class=&#x22;tabs&#x22;&#x3E;
  782. &#x3C;a class=&#x22;tabs__item tabs__item--selected&#x22;&#x3E;
  783. Tab A
  784. &#x3C;/a&#x3E;
  785. &#x3C;a class=&#x22;tabs__item&#x22;&#x3E;
  786. Tab B
  787. &#x3C;/a&#x3E;
  788. &#x3C;a class=&#x22;tabs__item&#x22;&#x3E;
  789. Tab C
  790. &#x3C;/a&#x3E;
  791. &#x3C;/div&#x3E;
  792. </code>
  793. </div>
  794. <div class="tabs">
  795. <a class="tabs__item tabs__item--selected">
  796. Tab A
  797. </a>
  798. <a class="tabs__item">
  799. Tab B
  800. </a>
  801. <a class="tabs__item">
  802. Tab C
  803. </a>
  804. </div>
  805. <h2 class="m-top-5">
  806. Tabs + Bar
  807. </h2>
  808. <div class="content">
  809. <code>&#x3C;div class=&#x22;bar&#x22;&#x3E;
  810. &#x3C;div class=&#x22;tabs tabs--contrast&#x22;&#x3E;
  811. &#x3C;a class=&#x22;tabs__item tabs__item--selected&#x22;&#x3E;
  812. Tab A
  813. &#x3C;/a&#x3E;
  814. &#x3C;a class=&#x22;tabs__item&#x22;&#x3E;
  815. Tab B
  816. &#x3C;/a&#x3E;
  817. &#x3C;a class=&#x22;tabs__item&#x22;&#x3E;
  818. Tab C
  819. &#x3C;/a&#x3E;
  820. &#x3C;/div&#x3E;
  821. &#x3C;/div&#x3E;
  822. </code>
  823. </div>
  824. <div class="bar">
  825. <div class="tabs tabs--contrast">
  826. <a class="tabs__item tabs__item--selected">
  827. Tab A
  828. </a>
  829. <a class="tabs__item">
  830. Tab B
  831. </a>
  832. <a class="tabs__item">
  833. Tab C
  834. </a>
  835. </div>
  836. </div>
  837. <!-- toast -->
  838. <h2 class="m-top-5">
  839. Toast
  840. </h2>
  841. <div class="content">
  842. <code>&#x3C;div class=&#x22;toast-wrapper&#x22;&#x3E;
  843. &#x3C;div class=&#x22;toast&#x22;&#x3E;
  844. &#x3C;div class=&#x22;toast__icon&#x22;&#x3E;
  845. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  846. &#x3C;use xlink:href=&#x22;/symbol-defs.svg#icon-warning&#x22;&#x3E;&#x3C;/use&#x3E;
  847. &#x3C;/svg&#x3E;
  848. &#x3C;/div&#x3E;
  849. &#x3C;div class=&#x22;toast__body&#x22;&#x3E;
  850. &#x3C;/div&#x3E;
  851. &#x3C;div class=&#x22;toast__button&#x22;&#x3E;
  852. &#x3C;svg class=&#x22;icon fill-text-contrast&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  853. &#x3C;use xlink:href=&#x22;/symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  854. &#x3C;/svg&#x3E;
  855. &#x3C;/div&#x3E;
  856. &#x3C;/div&#x3E;
  857. &#x3C;/div&#x3E;
  858. </code>
  859. </div>
  860. <script type="text/javascript">
  861. function addToast() {
  862. document.querySelector('#toast').style.display = 'block'
  863. setTimeout(function() {
  864. document.querySelector('#toast .toast').classList.add('toast--animation')
  865. }, 100)
  866. }
  867. function closeToast() {
  868. setTimeout(function() {
  869. document.querySelector('#toast').style.display = 'none'
  870. }, 1000)
  871. document.querySelector('#toast .toast').classList.remove('toast--animation')
  872. }
  873. </script>
  874. <button class="button" onclick="addToast()">
  875. Click me!
  876. </button>
  877. <div id="toast" class="toast-wrapper" style="display: none;">
  878. <div class="toast toast--danger">
  879. <div class="toast__icon">
  880. <svg class="icon fill-text-contrast" aria-hidden="true">
  881. <use xlink:href="/symbol-defs.svg#icon-warning"></use>
  882. </svg>
  883. </div>
  884. <div class="toast__body">
  885. Warning! Action not Working!
  886. </div>
  887. <button class="toast__button" onclick="closeToast()">
  888. <svg class="icon fill-text-contrast" aria-hidden="true">
  889. <use xlink:href="/symbol-defs.svg#icon-close"></use>
  890. </svg>
  891. </button>
  892. </div>
  893. </div>
  894. </div>
  895. </div>
  896. </div>
  897. <footer class="site-footer m-top-5">
  898. <div class="bar">
  899. <div class="bar__main">
  900. <a class="color-text-contrast m-right-4" href="/imprint.html">
  901. Imprint
  902. </a>
  903. <a class="color-text-contrast" href="/private-policy.html">
  904. Privacy Policy
  905. </a>
  906. </div>
  907. </div>
  908. </footer>
  909. </body>
  910. </html