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.

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