kaiui.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. /**
  2. From: https://github.com/nadim1992/KaiUI
  3. * ===========================
  4. * **************** Agenda ***
  5. *1. Basic
  6. *2. Fonts
  7. *3. Header
  8. *4. Separator
  9. *5. Software key
  10. *6. Toast
  11. *7. Lists
  12. *8. Options menu
  13. *9. Button
  14. * 10. Input
  15. * 11. Table
  16. * ===========================
  17. * Default: @themecolor:#320374;
  18. */
  19. /* ============== Basic ============== */
  20. h1,
  21. h2,
  22. h3,
  23. h4,
  24. h5,
  25. ul,
  26. p {
  27. margin: 0;
  28. padding: 0;
  29. }
  30. .statusbar-placeholder {
  31. background-color: #3faa7e;
  32. height: 26px;
  33. }
  34. #kui-app {
  35. width: 100%;
  36. height: 100%;
  37. font-family: "Open Sans";
  38. padding-top: 28px;
  39. padding-bottom: 30px;
  40. }
  41. .content-area {
  42. overflow: hidden;
  43. position: relative;
  44. }
  45. .overlay {
  46. width: 100%;
  47. height: 100%;
  48. background: rgba(0, 0, 0, 0.7);
  49. position: absolute;
  50. display: none;
  51. }
  52. /* ============== Fonts ============== */
  53. .kui-h1 {
  54. font-size: 17px;
  55. font-weight: 300;
  56. }
  57. .kui-h2 {
  58. font-size: 17px;
  59. font-weight: 600;
  60. }
  61. .kui-h3,
  62. .kui-h4,
  63. .kui-sec {
  64. font-size: 14px;
  65. font-weight: 400;
  66. }
  67. .kui-h5 {
  68. font-size: 14px;
  69. font-weight: 600;
  70. }
  71. .kui-pri,
  72. .kui-text,
  73. .kui-btn,
  74. .kui-link {
  75. font-size: 17px;
  76. font-weight: 400;
  77. }
  78. .kui-thi {
  79. font-size: 12px;
  80. font-weight: 400;
  81. }
  82. /* ============== Header ============== */
  83. .kui-header {
  84. height: 28px;
  85. line-height: 28px;
  86. background-color: #3faa7e;
  87. color: #fff;
  88. text-align: center;
  89. position: absolute;
  90. top: 0;
  91. width: 100%;
  92. overflow-x: hidden;
  93. }
  94. /* ============== Tabs ============== */
  95. .kui-tabs {
  96. padding-left: 5px;
  97. margin-right: 5px;
  98. list-style-type: none;
  99. overflow: hidden;
  100. white-space: nowrap;
  101. padding-top: 5px;
  102. font-size: 14px;
  103. margin-bottom: 3px;
  104. }
  105. .kui-tabs li {
  106. display: inline-block;
  107. color: #777777;
  108. padding-left: 5px;
  109. padding-right: 5px;
  110. font-weigt: 400;
  111. padding-bottom: 2px;
  112. }
  113. .kui-tabs li.active {
  114. border-bottom: 3px solid #3faa7e;
  115. font-weight: 600;
  116. color: #000000;
  117. }
  118. /* ============== Separator ============== */
  119. .kui-separator {
  120. color: #6a6a6a;
  121. height: 28px;
  122. background-color: #e6e6e6;
  123. line-height: 28px;
  124. padding-left: 10px;
  125. }
  126. /* ============== Software key ============== */
  127. .kui-software-key {
  128. height: 30px;
  129. background-color: #cccccc;
  130. display: flex;
  131. align-items: center;
  132. padding: 0 5px;
  133. color: #323232;
  134. position: absolute;
  135. bottom: 0;
  136. width: calc(100% - 10px);
  137. }
  138. .kui-software-key h5 {
  139. width: inherit;
  140. }
  141. .kui-software-key h5:first-child {
  142. text-align: left;
  143. overflow: hidden;
  144. }
  145. .kui-key-mid {
  146. font-size: 16px;
  147. font-weight: 700;
  148. text-align: center;
  149. text-transform: uppercase;
  150. }
  151. .kui-software-key h5:last-child {
  152. text-align: right;
  153. overflow: hidden;
  154. }
  155. /* ============== Toast ============== */
  156. .kui-toast {
  157. width: 100%;
  158. color: #fff;
  159. text-align: center;
  160. position: fixed;
  161. top: 0;
  162. }
  163. .kui-toast .kui-pri {
  164. background-color: #323232;
  165. margin-bottom: 0;
  166. padding-bottom: 5px;
  167. }
  168. .kui-toast-shadow {
  169. height: 6px;
  170. background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
  171. }
  172. /* ============== Lists ============== */
  173. .kui-list {
  174. list-style: none;
  175. }
  176. .kui-list li {
  177. background-color: #fff;
  178. height: 60px;
  179. display: flex;
  180. align-items: center;
  181. padding: 0 10px;
  182. }
  183. .kui-list li.large {
  184. padding-top: 10px;
  185. padding-bottom: 10px;
  186. }
  187. .kui-list li .kui-list-img {
  188. width: 32px;
  189. height: 32px;
  190. border-radius: 10px;
  191. background-color: #2f3235;
  192. margin-right: 10px;
  193. }
  194. .kui-list-cont {
  195. width: 100%;
  196. }
  197. .kui-list-cont p {
  198. margin: 4px 0;
  199. }
  200. .kui-list-cont .kui-pri {
  201. color: #323232;
  202. }
  203. .kui-list-cont .kui-sec,
  204. .kui-list-cont .kui-thi {
  205. color: #6a6a6a;
  206. }
  207. .kui-list li:focus {
  208. background-color: #3faa7e;
  209. outline: 0;
  210. }
  211. .kui-list li:focus .kui-pri,
  212. .kui-list li:focus .kui-sec,
  213. .kui-list li:focus .kui-thi {
  214. color: #fff;
  215. }
  216. /* ============== Options menu ============== */
  217. .kui-option-menu {
  218. width: 100%;
  219. position: absolute;
  220. overflow: hidden;
  221. bottom: 0;
  222. display: none;
  223. }
  224. .kui-option-menu .kui-option-title {
  225. margin: 0;
  226. color: #323232;
  227. text-align: center;
  228. background-color: #d8d8d8;
  229. height: 28px;
  230. line-height: 28px;
  231. }
  232. .kui-options {
  233. list-style: none;
  234. margin: 0;
  235. padding: 0;
  236. overflow: hidden;
  237. }
  238. .kui-options li {
  239. height: 50px;
  240. line-height: 50px;
  241. padding-left: 10px;
  242. background-color: #fff;
  243. }
  244. .kui-options li:focus {
  245. outline: 0;
  246. color: #fff;
  247. background-color: #3faa7e;
  248. }
  249. /* ============== Button ============== */
  250. button.kui-btn {
  251. width: 220px;
  252. height: 36px;
  253. border-radius: 2px;
  254. background: #ccc;
  255. text-align: center;
  256. color: #323232;
  257. border: 0;
  258. display: block;
  259. margin: auto;
  260. }
  261. button.kui-btn:focus {
  262. outline: 0;
  263. color: #fff;
  264. background-color: #3faa7e;
  265. }
  266. /* ============== Input ============== */
  267. .kui-input-holder {
  268. height: 76px;
  269. padding: 10px;
  270. background-color: #fff;
  271. }
  272. .kui-input-holder.kui-focus-within {
  273. background-color: #3faa7e;
  274. outline: 0;
  275. }
  276. .kui-input-label {
  277. color: #323232;
  278. display: block;
  279. padding-bottom: 10px;
  280. }
  281. .kui-input-holder.kui-focus-within .kui-input-label {
  282. color: #fff;
  283. }
  284. .kui-input {
  285. height: 36px;
  286. width: 100%;
  287. border-radius: 2px;
  288. padding-left: 10px;
  289. -moz-box-sizing: border-box;
  290. box-sizing: border-box;
  291. border: 1px solid #aaaaaa;
  292. }
  293. .kui-input ::-moz-placeholder,
  294. .kui-input :-moz-placeholder {
  295. color: #323232;
  296. }
  297. .kui-input:focus {
  298. outline: 0;
  299. }
  300. /* ============== Radio and Checkbox ============== */
  301. .kui-radio,
  302. .kui-checkbox {
  303. display: none;
  304. }
  305. .kui-radio + label::before,
  306. .kui-checkbox + label::before {
  307. content: "";
  308. background-size: cover;
  309. height: 20px;
  310. width: 20px;
  311. display: inline-block;
  312. float: right;
  313. }
  314. .kui-radio + label::before {
  315. background-image: url(/img/icon-circle-black.svg);
  316. }
  317. .kui-radio:checked + label::before {
  318. background-image: url(/img/icon-c-check-black.svg);
  319. }
  320. li:focus .kui-radio + label::before {
  321. background-image: url(/img/icon-circle-white.svg);
  322. }
  323. li:focus .kui-radio:checked + label::before {
  324. background-image: url(/img/icon-c-check-white.svg);
  325. }
  326. .kui-checkbox + label::before {
  327. background-image: url(/img/icon-square-black.svg);
  328. }
  329. .kui-checkbox:checked + label::before {
  330. background-image: url(/img/icon-s-check-black.svg);
  331. }
  332. li:focus .kui-checkbox + label::before {
  333. background-image: url(/img/icon-square-white.svg);
  334. }
  335. li:focus .kui-checkbox:checked + label::before {
  336. background-image: url(/img/icon-s-check-white.svg);
  337. }
  338. /* ============== Table ============== */
  339. .kui-table,
  340. .kui-table th,
  341. .kui-table td {
  342. border: 1px solid #3faa7e;
  343. border-collapse: collapse;
  344. }
  345. .kui-table {
  346. width: 100%;
  347. }
  348. .kui-table thead {
  349. background-color: #3faa7e;
  350. color: #fff;
  351. }
  352. .kui-table tr:focus {
  353. outline: 0;
  354. background-color: #3faa7e;
  355. color: #fff;
  356. }
  357. .kui-table td {
  358. width: 50%;
  359. padding: 4px 5px;
  360. }
  361. .kui-table td:last-child {
  362. text-align: right;
  363. }
  364. /* KaiOS portrait devices (240x320) */
  365. @media only screen and (orientation: portrait) {
  366. .content-area {
  367. height: 236px;
  368. }
  369. .kui-option-menu {
  370. height: 178px;
  371. }
  372. .kui-options {
  373. height: 150px;
  374. }
  375. }
  376. /* KaiOS landscape devices (320x240) */
  377. @media screen and (orientation: landscape) {
  378. .content-area {
  379. height: 156px;
  380. }
  381. .kui-option-menu {
  382. height: 128px;
  383. }
  384. .kui-options {
  385. height: 100px;
  386. }
  387. }
  388. /*** The End ******/