kaiui.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. /**
  2. * ===========================
  3. * **************** Agenda ***
  4. *
  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. */
  18. /* ============== Basic ============== */
  19. h1, h2, h3, h4, h5, ul, p {
  20. margin: 0;
  21. padding: 0;
  22. }
  23. .statusbar-placeholder {
  24. background-color: #320374;
  25. height: 26px;
  26. }
  27. #kui-app {
  28. width: 100%;
  29. height: 100%;
  30. font-family: "Open Sans";
  31. }
  32. .content-area {
  33. overflow: hidden;
  34. position: relative;
  35. }
  36. .overlay {
  37. width: 100%;
  38. height: 100%;
  39. background: rgba(0,0,0, .7);
  40. position: absolute;
  41. display: none;
  42. }
  43. /* ============== Fonts ============== */
  44. .kui-h1 {
  45. font-size: 17px;
  46. font-weight: 300;
  47. }
  48. .kui-h2 {
  49. font-size: 17px;
  50. font-weight: 600;
  51. }
  52. .kui-h3,
  53. .kui-h4,
  54. .kui-sec {
  55. font-size: 14px;
  56. font-weight: 400;
  57. }
  58. .kui-h5 {
  59. font-size: 14px;
  60. font-weight: 600;
  61. }
  62. .kui-pri,
  63. .kui-text,
  64. .kui-btn,
  65. .kui-link {
  66. font-size: 17px;
  67. font-weight: 400;
  68. }
  69. .kui-thi {
  70. font-size: 12px;
  71. font-weight: 400;
  72. }
  73. .kui-key-mid {
  74. font-size: 16px;
  75. font-weight: 700;
  76. text-align: center;
  77. text-transform: uppercase;
  78. }
  79. /* ============== Header ============== */
  80. .kui-header {
  81. height: 28px;
  82. line-height: 28px;
  83. background-color: #320374;
  84. color: #fff;
  85. text-align: center;
  86. }
  87. /* ============== Separator ============== */
  88. .kui-separator {
  89. color: #6a6a6a;
  90. height: 28px;
  91. background-color: #e6e6e6;
  92. line-height: 28px;
  93. padding-left: 10px;
  94. }
  95. /* ============== Software key ============== */
  96. .kui-software-key {
  97. height: 30px;
  98. background-color: #cccccc;
  99. display: flex;
  100. align-items: center;
  101. padding: 0 5px;
  102. color: #323232;
  103. }
  104. .kui-software-key h5 {
  105. width: 33.3333333333%;
  106. }
  107. .kui-software-key h5:first-child {
  108. text-align: left;
  109. }
  110. .kui-software-key h5:last-child {
  111. text-align: right;
  112. }
  113. /* ============== Toast ============== */
  114. .kui-toast {
  115. height: 36px;
  116. line-height: 36px;
  117. color: #fff;
  118. text-align: center;
  119. background-color: #323232;
  120. }
  121. .kui-toast .kui-pri {
  122. margin: 0;
  123. }
  124. .kui-toast-shadow {
  125. height: 6px;
  126. background-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
  127. }
  128. /* ============== Lists ============== */
  129. .kui-list {
  130. list-style: none;
  131. }
  132. .kui-list li {
  133. background-color: #fff;
  134. height: 60px;
  135. display: flex;
  136. align-items: center;
  137. padding: 0 10px;
  138. }
  139. .kui-list li .kui-list-img {
  140. width: 32px;
  141. height: 32px;
  142. border-radius: 10px;
  143. background-color: #2f3235;
  144. margin-right: 10px;
  145. }
  146. .kui-list-cont p {
  147. margin: 4px 0;
  148. }
  149. .kui-list-cont .kui-pri {
  150. color: #323232;
  151. }
  152. .kui-list-cont .kui-sec {
  153. color: #6a6a6a;
  154. }
  155. .kui-list li:focus {
  156. background-color: #873eff;
  157. outline: 0;
  158. }
  159. .kui-list li:focus .kui-pri,
  160. .kui-list li:focus .kui-sec {
  161. color: #fff;
  162. }
  163. /* ============== Options menu ============== */
  164. .kui-option-menu {
  165. width: 100%;
  166. position: absolute;
  167. overflow: hidden;
  168. bottom: 0;
  169. display: none;
  170. }
  171. .kui-option-menu .kui-option-title {
  172. margin: 0;
  173. color: #323232;
  174. text-align: center;
  175. background-color: #d8d8d8;
  176. height: 28px;
  177. line-height: 28px;
  178. }
  179. .kui-options {
  180. list-style: none;
  181. margin: 0;
  182. padding: 0;
  183. overflow: hidden;
  184. }
  185. .kui-options li {
  186. height: 50px;
  187. line-height: 50px;
  188. padding-left: 10px;
  189. background-color: #fff;
  190. }
  191. .kui-options li:focus {
  192. outline: 0;
  193. color: #fff;
  194. background-color: #873eff;
  195. }
  196. /* ============== Button ============== */
  197. button.kui-btn {
  198. width: 220px;
  199. height: 36px;
  200. border-radius: 2px;
  201. background: #ccc;
  202. text-align: center;
  203. color: #323232;
  204. border: 0;
  205. display: block;
  206. margin: auto;
  207. }
  208. button.kui-btn:focus {
  209. outline: 0;
  210. color: #fff;
  211. background-color: #873eff;
  212. }
  213. /* ============== Input ============== */
  214. .kui-input-holder {
  215. height: 76px;
  216. padding: 10px;
  217. background-color: #fff;
  218. }
  219. .kui-input-holder.kui-focus-within {
  220. background-color: #873eff;
  221. outline: 0;
  222. }
  223. .kui-input-label {
  224. color: #323232;
  225. display: block;
  226. padding-bottom: 10px;
  227. }
  228. .kui-input-holder.kui-focus-within .kui-input-label {
  229. color: #fff;
  230. }
  231. .kui-input {
  232. height: 36px;
  233. width: 100%;
  234. border-radius: 2px;
  235. padding-left: 10px;
  236. -moz-box-sizing: border-box;
  237. box-sizing: border-box;
  238. border: 1px solid #aaaaaa;
  239. }
  240. .kui-input ::-moz-placeholder,
  241. .kui-input :-moz-placeholder {
  242. color: #323232;
  243. }
  244. .kui-input:focus {
  245. outline: 0;
  246. }
  247. /* ============== Table ============== */
  248. .kui-table,
  249. .kui-table th,
  250. .kui-table td {
  251. border: 1px solid #320374;
  252. border-collapse: collapse;
  253. }
  254. .kui-table {
  255. width: 100%;
  256. }
  257. .kui-table thead {
  258. background-color: #320374;
  259. color: #fff;
  260. }
  261. .kui-table tr:focus {
  262. outline: 0;
  263. background-color: #873eff;
  264. color: #fff;
  265. }
  266. .kui-table td {
  267. width: 50%;
  268. padding: 4px 5px;
  269. }
  270. .kui-table td:last-child {
  271. text-align: right;
  272. }
  273. /* KaiOS portrait devices (240x320) */
  274. @media only screen and (orientation : portrait) {
  275. .content-area {
  276. height: 236px;
  277. }
  278. .kui-option-menu {
  279. height: 178px;
  280. }
  281. .kui-options {
  282. height: 150px;
  283. }
  284. }
  285. /* KaiOS landscape devices (320x240) */
  286. @media screen and (orientation: landscape) {
  287. .content-area {
  288. height: 156px;
  289. }
  290. .kui-option-menu {
  291. height: 128px;
  292. }
  293. .kui-options {
  294. height: 100px;
  295. }
  296. }
  297. /*** The End ******/