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.

518 lines
18 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
  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 class="m-bottom-4">
  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 class="m-bottom-4">
  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 class="m-bottom-4">
  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>
  205. <div class="loading">
  206. <span></span>
  207. <span></span>
  208. <span></span>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. <div class="grid">
  214. <div class="col-12">
  215. <h2>Panel</h2>
  216. <div class="panel">
  217. <div class="bar">
  218. <div class="bar__start">
  219. <button type="button" class="button button--transparent">
  220. <svg class="icon fill-text-contrast" aria-hidden="true">
  221. <use xlink:href="symbol-defs.svg#icon-expand"></use>
  222. </svg>
  223. </button>
  224. </div>
  225. <div class="bar__main">Test</div>
  226. <div class="bar__end">
  227. <button type="button" class="button button--transparent">
  228. <svg class="icon fill-text-contrast" aria-hidden="true">
  229. <use xlink:href="symbol-defs.svg#icon-edit"></use>
  230. </svg>
  231. </button>
  232. <button type="button" class="button button--transparent">
  233. <svg class="icon fill-text-contrast" aria-hidden="true">
  234. <use xlink:href="symbol-defs.svg#icon-close"></use>
  235. </svg>
  236. </button>
  237. </div>
  238. </div>
  239. <div class="panel__body">
  240. <div class="content">
  241. <p>
  242. Hallo
  243. </p>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. <div class="grid">
  250. <div class="col-12">
  251. <h2>Modal</h2>
  252. <button class="button" onclick="openModal()">
  253. Click me!
  254. </button>
  255. <script type="text/javascript">
  256. function openModal() {
  257. document.querySelector('.modal').classList.add('modal--open')
  258. }
  259. function closeModal() {
  260. document.querySelector('.modal').classList.remove('modal--open')
  261. }
  262. </script>
  263. <div class="modal">
  264. <div class="modal__inner">
  265. <div class="modal__title t-center">
  266. <svg class="icon fill-text-contrast" aria-hidden="true">
  267. <use xlink:href="symbol-defs.svg#icon-close"></use>
  268. </svg>
  269. Delete
  270. </div>
  271. <div class="modal__body">
  272. Do you really wan't to delete all files?
  273. </div>
  274. <div class="modal__footer">
  275. <button class="button button--outline button--danger" onclick="closeModal()">
  276. Confirm
  277. </button>
  278. <button class="button button--outline float-right" onclick="closeModal()">
  279. Reject
  280. </button>
  281. </div>
  282. </div>
  283. </div>
  284. </div>
  285. </div>
  286. <div class="grid">
  287. <div class="col-12">
  288. <h2>Field</h2>
  289. <form>
  290. <div class="field-group">
  291. <label class="field-label">
  292. Name
  293. <input class="field-text" />
  294. </label>
  295. </div>
  296. <div class="field-group field-group--valid">
  297. <label class="field-label">
  298. <svg class="icon" aria-hidden="true">
  299. <use class="test" xlink:href="symbol-defs.svg#icon-check"></use>
  300. </svg>
  301. Surname
  302. <input class="field-text" />
  303. </label>
  304. </div>
  305. <div class="field-group field-group--error">
  306. <label class="field-label">
  307. <svg class="icon" aria-hidden="true">
  308. <use class="test" xlink:href="symbol-defs.svg#icon-warning"></use>
  309. </svg>
  310. E-Mail
  311. <input class="field-text" />
  312. </label>
  313. <span class="field-error">
  314. String is not valid
  315. </span>
  316. </div>
  317. <div class="field-group">
  318. <label class="field-label">
  319. Towns
  320. <select class="field-choice">
  321. <option></option>
  322. <option value="lonytown">Lonytown</option>
  323. </select>
  324. </label>
  325. </div>
  326. <div class="field-group">
  327. <label class="field-label">
  328. <input class="field-choice" type="checkbox" value="true" />
  329. <svg class="icon field-choice__unchecked" aria-hidden="true">
  330. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  331. </svg>
  332. <svg class="icon field-choice__checked" aria-hidden="true">
  333. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  334. </svg>
  335. Do it!
  336. </label>
  337. </div>
  338. <div class="field-group">
  339. <label class="field-label">
  340. <input class="field-choice" type="radio" name="radio" value="true" />
  341. <svg class="icon field-choice__unchecked" aria-hidden="true">
  342. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  343. </svg>
  344. <svg class="icon field-choice__checked" aria-hidden="true">
  345. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  346. </svg>
  347. A
  348. </label>
  349. <label class="field-label">
  350. <input class="field-choice" type="radio" name="radio" value="true" />
  351. <svg class="icon field-choice__unchecked" aria-hidden="true">
  352. <use xlink:href="symbol-defs.svg#icon-circle"></use>
  353. </svg>
  354. <svg class="icon field-choice__checked" aria-hidden="true">
  355. <use xlink:href="symbol-defs.svg#icon-circle-check"></use>
  356. </svg>
  357. B
  358. </label>
  359. </div>
  360. </form>
  361. </div>
  362. </div>
  363. <div class="grid">
  364. <div class="col-12">
  365. <h2>Table</h2>
  366. <table class="table table--striped">
  367. <thead>
  368. <tr>
  369. <th>A</th>
  370. <th>B</th>
  371. <th>C</th>
  372. <th>D</th>
  373. </tr>
  374. </thead>
  375. <tbody>
  376. <tr>
  377. <td>1</td>
  378. <td>2</td>
  379. <td>3</td>
  380. <td>4</td>
  381. </tr>
  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. </tbody>
  395. </table>
  396. </div>
  397. </div>
  398. </div>
  399. <div class="container">
  400. <div class="grid">
  401. <div class="col-12">
  402. <h2>
  403. Hero
  404. </h2>
  405. <code>
  406. </code>
  407. </div>
  408. </div>
  409. </div>
  410. <div class="hero">
  411. <img style="max-height: 400px;" src="/image.jpg" />
  412. </div>
  413. <div class="container">
  414. <div class="grid">
  415. <div class="col-12">
  416. <h2>
  417. Media
  418. </h2>
  419. <figure class="figure">
  420. <img class="media" src="/image.jpg" />
  421. <figcaption class="figure__caption">
  422. food truck yr franzen pabst
  423. </figcaption>
  424. </figure>
  425. </div>
  426. </div>
  427. </div>
  428. <div class="container">
  429. <div class="grid">
  430. <div class="col-12">
  431. <h2>Slider</h3>
  432. </div>
  433. </div>
  434. </div>
  435. <div class="slider">
  436. <div class="slider__inner">
  437. <div class="slider__item w-col-12">
  438. <figure class="figure w-col-12">
  439. <img class="media" src="/image.jpg" />
  440. <figcaption class="figure__caption">
  441. food truck yr franzen pabst
  442. </figcaption>
  443. </figure>
  444. </div>
  445. <div class="slider__item w-col-12">
  446. <figure class="figure w-col-12">
  447. <img class="media" src="/image.jpg" />
  448. <figcaption class="figure__caption">
  449. food truck yr franzen pabst
  450. </figcaption>
  451. </figure>
  452. </div>
  453. <div class="slider__item w-col-12">
  454. <figure class="figure w-col-12">
  455. <img class="media" src="/image.jpg" />
  456. <figcaption class="figure__caption">
  457. food truck yr franzen pabst
  458. </figcaption>
  459. </figure>
  460. </div>
  461. <div class="slider__item w-col-12">
  462. <figure class="figure w-col-12">
  463. <img class="media" src="/image.jpg" />
  464. <figcaption class="figure__caption">
  465. food truck yr franzen pabst
  466. </figcaption>
  467. </figure>
  468. </div>
  469. <div class="slider__item w-col-12">
  470. <figure class="figure w-col-12">
  471. <img class="media" src="/image.jpg" />
  472. <figcaption class="figure__caption">
  473. food truck yr franzen pabst
  474. </figcaption>
  475. </figure>
  476. </div>
  477. </div>
  478. </div>
  479. </body>
  480. </html