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.

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