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.

558 lines
20 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
  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__main">
  17. <h1 class="m-top-4 m-bottom-4 h4">
  18. Plain UI 0.1-alpha
  19. </h1>
  20. </div>
  21. </div>
  22. </header>
  23. <div class="container m-top-6">
  24. <div class="grid">
  25. <div class="col-12">
  26. <nav>
  27. <div class="tabs">
  28. <a href="index.html" class="tabs__item">
  29. Basics
  30. </a>
  31. <a href="components.html" class="tabs__item tabs__item--selected">
  32. Components
  33. </a>
  34. <a href="layout.html" class="tabs__item">
  35. Layout
  36. </a>
  37. <a href="helpers.html" class="tabs__item">
  38. Helpers
  39. </a>
  40. </div>
  41. </nav>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="container">
  46. <div class="grid">
  47. <div class="col-12">
  48. <h1 class="highlight m-bottom-5">
  49. Components
  50. </h1>
  51. <h2>Badge</h2>
  52. <div class="content m-bottom-4">
  53. <code>&#x3C;span class=&#x22;badge&#x22;&#x3E;
  54. Category
  55. &#x3C;/span&#x3E;
  56. </code>
  57. </div>
  58. <span class="badge">
  59. Category
  60. </span>
  61. <span class="badge badge--round">
  62. 99+
  63. </span>
  64. <h2 class="m-top-5">
  65. Bar
  66. </h2>
  67. <div class="content m-bottom-4">
  68. <code>&#x3C;div class=&#x22;bar&#x22;&#x3E;
  69. &#x3C;div class=&#x22;bar__start&#x22;&#x3E;
  70. &#x3C;button class=&#x22;button button--transparent&#x22;&#x3E;
  71. &#x3C;svg class=&#x22;icon fill-text-contrast marginless&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  72. &#x3C;use xlink:href=&#x22;symbol-defs.svg#icon-close&#x22;&#x3E;&#x3C;/use&#x3E;
  73. &#x3C;/svg&#x3E;
  74. &#x3C;/button&#x3E;
  75. &#x3C;/div&#x3E;
  76. &#x3C;div class=&#x22;bar__main&#x22;&#x3E;
  77. Bar
  78. &#x3C;/div&#x3E;
  79. &#x3C;/div&#x3E;
  80. </code>
  81. </div>
  82. <div class="bar">
  83. <div class="bar__start">
  84. <button class="button button--transparent">
  85. <svg class="icon fill-text-contrast marginless" aria-hidden="true">
  86. <use xlink:href="symbol-defs.svg#icon-close"></use>
  87. </svg>
  88. </button>
  89. </div>
  90. <div class="bar__main">
  91. Bar
  92. </div>
  93. </div>
  94. <h2 class="m-top-5">
  95. Buttons
  96. </h2>
  97. <div class="content">
  98. <code>&lt;button class=&quot;button&quot;&gt;
  99. Default
  100. &lt;/button&gt;
  101. </code>
  102. </div>
  103. <div>
  104. <button class="button">
  105. Default
  106. </button>
  107. <button class="button">
  108. Icon
  109. <svg class="icon fill-success" aria-hidden="true">
  110. <use xlink:href="symbol-defs.svg#icon-check"></use>
  111. </svg>
  112. </button>
  113. <button class="button button--selected">
  114. Selected
  115. </button>
  116. <button class="button" disabled>
  117. Disabled
  118. </button>
  119. </div>
  120. <div>
  121. <button class="button button--danger">
  122. danger
  123. </button>
  124. <button class="button button--success">
  125. success
  126. </button>
  127. <button class="button button--warning">
  128. warning
  129. </button>
  130. <button class="button button--info">
  131. info
  132. </button>
  133. </div>
  134. <div>
  135. <button class="button button--outline">
  136. outline
  137. </button>
  138. </div>
  139. <button class="button button--small">
  140. Small
  141. </button>
  142. <h2 class="m-top-5">Field</h2>
  143. <div class="content">
  144. <code>&#x3C;div class=&#x22;field-group&#x22;&#x3E;
  145. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  146. Name
  147. &#x3C;input class=&#x22;field-text&#x22; /&#x3E;
  148. &#x3C;/label&#x3E;
  149. &#x3C;/div&#x3E;
  150. </code>
  151. </div>
  152. <div class="field-group">
  153. <label class="field-label">
  154. Name
  155. <input class="field-text" />
  156. </label>
  157. </div>
  158. <div class="content">
  159. <code>&#x3C;div class=&#x22;field-group field-group--valid&#x22;&#x3E;
  160. &#x3C;label class=&#x22;field-label&#x22;&#x3E;
  161. &#x3C;svg class=&#x22;icon&#x22; aria-hidden=&#x22;true&#x22;&#x3E;
  162. &#x3C;use class=&#x22;test&#x22; xlink:href=&#x22;symbol-defs.svg#icon-check&#x22;&#x3E;&#x3C;/use&#x3E;
  163. &#x3C;/svg&#x3E;
  164. Surname
  165. &#x3C;input class=&#x22;field-text&#x22; /&#x3E;
  166. &#x3C;/label&#x3E;
  167. &#x3C;/div&#x3E;
  168. </code>
  169. </div>
  170. <div class="field-group field-group--valid">
  171. <label class="field-label">
  172. <svg class="icon" aria-hidden="true">
  173. <use class="test" xlink:href="symbol-defs.svg#icon-check"></use>
  174. </svg>
  175. Surname
  176. <input class="field-text" />
  177. </label>
  178. </div>
  179. <div class="field-group field-group--error">
  180. <label class="field-label">
  181. <svg class="icon" aria-hidden="true">
  182. <use class="test" xlink:href="symbol-defs.svg#icon-warning"></use>
  183. </svg>
  184. E-Mail
  185. <input class="field-text" />
  186. </label>
  187. <span class="field-error">
  188. String is not valid
  189. </span>
  190. </div>
  191. <div class="field-group">
  192. <label class="field-label">
  193. Towns
  194. <select class="field-choice">
  195. <option></option>
  196. <option value="lonytown">Lonytown</option>
  197. </select>
  198. </label>
  199. </div>
  200. <div class="field-group">
  201. <label class="field-label">
  202. <input class="field-choice" type="checkbox" value="true" />
  203. <svg class="icon field-choice__unchecked" aria-hidden="true">
  204. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  205. </svg>
  206. <svg class="icon field-choice__checked" aria-hidden="true">
  207. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  208. </svg>
  209. Do it!
  210. </label>
  211. </div>
  212. <div class="field-group">
  213. <label class="field-label">
  214. <input class="field-choice" type="radio" name="radio" value="true" />
  215. <svg class="icon field-choice__unchecked" aria-hidden="true">
  216. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  217. </svg>
  218. <svg class="icon field-choice__checked" aria-hidden="true">
  219. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  220. </svg>
  221. A
  222. </label>
  223. <label class="field-label">
  224. <input class="field-choice" type="radio" name="radio" value="true" />
  225. <svg class="icon field-choice__unchecked" aria-hidden="true">
  226. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  227. </svg>
  228. <svg class="icon field-choice__checked" aria-hidden="true">
  229. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  230. </svg>
  231. B
  232. </label>
  233. </div>
  234. <h2 class="m-top-5">Icon</h2>
  235. <svg class="icon" aria-hidden="true">
  236. <use xlink:href="symbol-defs.svg#icon-check"></use>
  237. </svg>
  238. <svg class="icon icon--danger" aria-hidden="true">
  239. <use xlink:href="symbol-defs.svg#icon-camera"></use>
  240. </svg>
  241. <svg class="icon icon--success" aria-hidden="true">
  242. <use xlink:href="symbol-defs.svg#icon-clock"></use>
  243. </svg>
  244. </div>
  245. </div>
  246. <div class="grid">
  247. <div class="col-12">
  248. <h3>
  249. Tabs
  250. </h3>
  251. <div class="tabs">
  252. <a class="tabs__item tabs__item--selected">
  253. Tab A
  254. </a>
  255. <a class="tabs__item">
  256. Tab B
  257. </a>
  258. <a class="tabs__item">
  259. Tab C
  260. </a>
  261. </div>
  262. </div>
  263. </div>
  264. <div class="grid">
  265. <div class="col-12">
  266. <h3>
  267. Tabs + Bar
  268. </h3>
  269. <div class="bar">
  270. <div class="bar__start marginless">
  271. <div class="tabs tabs--contrast">
  272. <a class="tabs__item tabs__item--selected">
  273. Tab A
  274. </a>
  275. <a class="tabs__item">
  276. Tab B
  277. </a>
  278. <a class="tabs__item">
  279. Tab C
  280. </a>
  281. </div>
  282. </div>
  283. </div>
  284. </div>
  285. </div>
  286. <div class="grid">
  287. <div class="col-12">
  288. </div>
  289. </div>
  290. <div class="grid">
  291. <div class="col-12">
  292. <h2>
  293. Progress
  294. </h2>
  295. <div class="content m-last-child-0 m-bottom-4">
  296. <code>&#x3C;div class=&#x22;progress&#x22;&#x3E;
  297. &#x3C;div class=&#x22;progress__inner&#x22; style=&#x22;width: 20%;&#x22;&#x3E;&#x3C;/div&#x3E;
  298. &#x3C;/div&#x3E;
  299. </code>
  300. </div>
  301. <div class="progress">
  302. <div class="progress__inner" style="width: 20%;"></div>
  303. </div>
  304. </div>
  305. </div>
  306. <div class="grid">
  307. <div class="col-12">
  308. <h2>Loading</h2>
  309. <div class="content m-last-child-0 m-bottom-4">
  310. <code>&#x3C;div class=&#x22;loading&#x22;&#x3E;
  311. &#x3C;span&#x3E;&#x3C;/span&#x3E;
  312. &#x3C;span&#x3E;&#x3C;/span&#x3E;
  313. &#x3C;span&#x3E;&#x3C;/span&#x3E;
  314. &#x3C;/div&#x3E;
  315. </code>
  316. </div>
  317. <div class="loading">
  318. <span></span>
  319. <span></span>
  320. <span></span>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="grid">
  325. <div class="col-12">
  326. <h2>Panel</h2>
  327. <div class="panel">
  328. <div class="bar">
  329. <div class="bar__start">
  330. <button type="button" class="button button--transparent">
  331. <svg class="icon fill-text-contrast" aria-hidden="true">
  332. <use xlink:href="symbol-defs.svg#icon-expand"></use>
  333. </svg>
  334. </button>
  335. </div>
  336. <div class="bar__main">Test</div>
  337. <div class="bar__end">
  338. <button type="button" class="button button--transparent">
  339. <svg class="icon fill-text-contrast" aria-hidden="true">
  340. <use xlink:href="symbol-defs.svg#icon-edit"></use>
  341. </svg>
  342. </button>
  343. <button type="button" class="button button--transparent">
  344. <svg class="icon fill-text-contrast" aria-hidden="true">
  345. <use xlink:href="symbol-defs.svg#icon-close"></use>
  346. </svg>
  347. </button>
  348. </div>
  349. </div>
  350. <div class="panel__body">
  351. <div class="content">
  352. <p>
  353. Hallo
  354. </p>
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. <div class="grid">
  361. <div class="col-12">
  362. <h2>Modal</h2>
  363. <button class="button" onclick="openModal()">
  364. Click me!
  365. </button>
  366. <script type="text/javascript">
  367. function openModal() {
  368. document.querySelector('.modal').classList.add('modal--open')
  369. }
  370. function closeModal() {
  371. document.querySelector('.modal').classList.remove('modal--open')
  372. }
  373. </script>
  374. <div class="modal">
  375. <div class="modal__inner">
  376. <div class="modal__title t-center">
  377. <svg class="icon fill-text-contrast" aria-hidden="true">
  378. <use xlink:href="symbol-defs.svg#icon-close"></use>
  379. </svg>
  380. Delete
  381. </div>
  382. <div class="modal__body">
  383. Do you really wan't to delete all files?
  384. </div>
  385. <div class="modal__footer">
  386. <button class="button button--outline button--danger" onclick="closeModal()">
  387. Confirm
  388. </button>
  389. <button class="button button--outline float-right" onclick="closeModal()">
  390. Reject
  391. </button>
  392. </div>
  393. </div>
  394. </div>
  395. </div>
  396. </div>
  397. <div class="grid">
  398. <div class="col-12">
  399. </div>
  400. </div>
  401. <div class="grid">
  402. <div class="col-12">
  403. <h2>Table</h2>
  404. <table class="table table--striped">
  405. <thead>
  406. <tr>
  407. <th>A</th>
  408. <th>B</th>
  409. <th>C</th>
  410. <th>D</th>
  411. </tr>
  412. </thead>
  413. <tbody>
  414. <tr>
  415. <td>1</td>
  416. <td>2</td>
  417. <td>3</td>
  418. <td>4</td>
  419. </tr>
  420. <tr>
  421. <td>1</td>
  422. <td>2</td>
  423. <td>3</td>
  424. <td>4</td>
  425. </tr>
  426. <tr>
  427. <td>1</td>
  428. <td>2</td>
  429. <td>3</td>
  430. <td>4</td>
  431. </tr>
  432. </tbody>
  433. </table>
  434. </div>
  435. </div>
  436. </div>
  437. <div class="container">
  438. <div class="grid">
  439. <div class="col-12">
  440. <h2>
  441. Hero
  442. </h2>
  443. <code>
  444. </code>
  445. </div>
  446. </div>
  447. </div>
  448. <div class="hero">
  449. <img style="max-height: 400px;" src="/image.jpg" />
  450. </div>
  451. <div class="container">
  452. <div class="grid">
  453. <div class="col-12">
  454. <h2>
  455. Media
  456. </h2>
  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. </div>
  464. </div>
  465. </div>
  466. <div class="container">
  467. <div class="grid">
  468. <div class="col-12">
  469. <h2>Slider</h3>
  470. </div>
  471. </div>
  472. </div>
  473. <div class="slider">
  474. <div class="slider__inner">
  475. <div class="slider__item w-col-12">
  476. <figure class="figure w-col-12">
  477. <img class="media" src="/image.jpg" />
  478. <figcaption class="figure__caption">
  479. food truck yr franzen pabst
  480. </figcaption>
  481. </figure>
  482. </div>
  483. <div class="slider__item w-col-12">
  484. <figure class="figure w-col-12">
  485. <img class="media" src="/image.jpg" />
  486. <figcaption class="figure__caption">
  487. food truck yr franzen pabst
  488. </figcaption>
  489. </figure>
  490. </div>
  491. <div class="slider__item w-col-12">
  492. <figure class="figure w-col-12">
  493. <img class="media" src="/image.jpg" />
  494. <figcaption class="figure__caption">
  495. food truck yr franzen pabst
  496. </figcaption>
  497. </figure>
  498. </div>
  499. <div class="slider__item w-col-12">
  500. <figure class="figure w-col-12">
  501. <img class="media" src="/image.jpg" />
  502. <figcaption class="figure__caption">
  503. food truck yr franzen pabst
  504. </figcaption>
  505. </figure>
  506. </div>
  507. <div class="slider__item w-col-12">
  508. <figure class="figure w-col-12">
  509. <img class="media" src="/image.jpg" />
  510. <figcaption class="figure__caption">
  511. food truck yr franzen pabst
  512. </figcaption>
  513. </figure>
  514. </div>
  515. </div>
  516. </div>
  517. </body>
  518. </html