123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443 |
- /**
- From: https://github.com/nadim1992/KaiUI
- * ===========================
- * **************** Agenda ***
- *1. Basic
- *2. Fonts
- *3. Header
- *4. Separator
- *5. Software key
- *6. Toast
- *7. Lists
- *8. Options menu
- *9. Button
- * 10. Input
- * 11. Table
- * ===========================
- * Default: @themecolor:#320374;
- */
- /* ============== Basic ============== */
- h1,
- h2,
- h3,
- h4,
- h5,
- ul,
- p {
- margin: 0;
- padding: 0;
- }
- .statusbar-placeholder {
- background-color: #3faa7e;
- height: 26px;
- }
- #kui-app {
- width: 100%;
- height: 100%;
- font-family: "Open Sans";
- padding-top: 28px;
- padding-bottom: 30px;
- }
- .content-area {
- overflow: hidden;
- position: relative;
- }
- .overlay {
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.7);
- position: absolute;
- display: none;
- }
- /* ============== Fonts ============== */
- .kui-h1 {
- font-size: 17px;
- font-weight: 300;
- }
- .kui-h2 {
- font-size: 17px;
- font-weight: 600;
- }
- .kui-h3,
- .kui-h4,
- .kui-sec {
- font-size: 14px;
- font-weight: 400;
- }
- .kui-h5 {
- font-size: 14px;
- font-weight: 600;
- }
- .kui-pri,
- .kui-text,
- .kui-btn,
- .kui-link {
- font-size: 17px;
- font-weight: 400;
- }
- .kui-thi {
- font-size: 12px;
- font-weight: 400;
- }
- /* ============== Header ============== */
- .kui-header {
- height: 28px;
- line-height: 28px;
- background-color: #3faa7e;
- color: #fff;
- text-align: center;
- position: absolute;
- top: 0;
- width: 100%;
- overflow-x: hidden;
- }
- /* ============== Tabs ============== */
- .kui-tabs {
- padding-left: 5px;
- margin-right: 5px;
- list-style-type: none;
- overflow: hidden;
- white-space: nowrap;
- padding-top: 5px;
- font-size: 14px;
- margin-bottom: 3px;
- }
- .kui-tabs li {
- display: inline-block;
- color: #777777;
- padding-left: 5px;
- padding-right: 5px;
- font-weigt: 400;
- padding-bottom: 2px;
- }
- .kui-tabs li.active {
- border-bottom: 3px solid #3faa7e;
- font-weight: 600;
- color: #000000;
- }
- /* ============== Separator ============== */
- .kui-separator {
- color: #6a6a6a;
- height: 28px;
- background-color: #e6e6e6;
- line-height: 28px;
- padding-left: 10px;
- }
- /* ============== Software key ============== */
- .kui-software-key {
- height: 30px;
- background-color: #cccccc;
- display: flex;
- align-items: center;
- padding: 0 5px;
- color: #323232;
- position: absolute;
- bottom: 0;
- width: calc(100% - 10px);
- }
- .kui-software-key h5 {
- width: inherit;
- }
- .kui-software-key h5:first-child {
- text-align: left;
- overflow: hidden;
- }
- .kui-key-mid {
- font-size: 16px;
- font-weight: 700;
- text-align: center;
- text-transform: uppercase;
- }
- .kui-software-key h5:last-child {
- text-align: right;
- overflow: hidden;
- }
- /* ============== Toast ============== */
- .kui-toast {
- width: 100%;
- color: #fff;
- text-align: center;
- position: fixed;
- top: 0;
- }
- .kui-toast .kui-pri {
- background-color: #323232;
- margin-bottom: 0;
- padding-bottom: 5px;
- }
- .kui-toast-shadow {
- height: 6px;
- background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
- }
- /* ============== Lists ============== */
- .kui-list {
- list-style: none;
- }
- .kui-list li {
- background-color: #fff;
- height: 60px;
- display: flex;
- align-items: center;
- padding: 0 10px;
- }
- .kui-list li.large {
- padding-top: 10px;
- padding-bottom: 10px;
- }
- .kui-list li .kui-list-img {
- width: 32px;
- height: 32px;
- border-radius: 10px;
- background-color: #2f3235;
- margin-right: 10px;
- }
- .kui-list-cont {
- width: 100%;
- }
- .kui-list-cont p {
- margin: 4px 0;
- }
- .kui-list-cont .kui-pri {
- color: #323232;
- }
- .kui-list-cont .kui-sec,
- .kui-list-cont .kui-thi {
- color: #6a6a6a;
- }
- .kui-list li:focus {
- background-color: #3faa7e;
- outline: 0;
- }
- .kui-list li:focus .kui-pri,
- .kui-list li:focus .kui-sec,
- .kui-list li:focus .kui-thi {
- color: #fff;
- }
- /* ============== Options menu ============== */
- .kui-option-menu {
- width: 100%;
- position: absolute;
- overflow: hidden;
- bottom: 0;
- display: none;
- }
- .kui-option-menu .kui-option-title {
- margin: 0;
- color: #323232;
- text-align: center;
- background-color: #d8d8d8;
- height: 28px;
- line-height: 28px;
- }
- .kui-options {
- list-style: none;
- margin: 0;
- padding: 0;
- overflow: hidden;
- }
- .kui-options li {
- height: 50px;
- line-height: 50px;
- padding-left: 10px;
- background-color: #fff;
- }
- .kui-options li:focus {
- outline: 0;
- color: #fff;
- background-color: #3faa7e;
- }
- /* ============== Button ============== */
- button.kui-btn {
- width: 220px;
- height: 36px;
- border-radius: 2px;
- background: #ccc;
- text-align: center;
- color: #323232;
- border: 0;
- display: block;
- margin: auto;
- }
- button.kui-btn:focus {
- outline: 0;
- color: #fff;
- background-color: #3faa7e;
- }
- /* ============== Input ============== */
- .kui-input-holder {
- height: 76px;
- padding: 10px;
- background-color: #fff;
- }
- .kui-input-holder.kui-focus-within {
- background-color: #3faa7e;
- outline: 0;
- }
- .kui-input-label {
- color: #323232;
- display: block;
- padding-bottom: 10px;
- }
- .kui-input-holder.kui-focus-within .kui-input-label {
- color: #fff;
- }
- .kui-input {
- height: 36px;
- width: 100%;
- border-radius: 2px;
- padding-left: 10px;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- border: 1px solid #aaaaaa;
- }
- .kui-input ::-moz-placeholder,
- .kui-input :-moz-placeholder {
- color: #323232;
- }
- .kui-input:focus {
- outline: 0;
- }
- /* ============== Radio and Checkbox ============== */
- .kui-radio,
- .kui-checkbox {
- display: none;
- }
- .kui-radio + label::before,
- .kui-checkbox + label::before {
- content: "";
- background-size: cover;
- height: 20px;
- width: 20px;
- display: inline-block;
- float: right;
- }
- .kui-radio + label::before {
- background-image: url(/img/icon-circle-black.svg);
- }
- .kui-radio:checked + label::before {
- background-image: url(/img/icon-c-check-black.svg);
- }
- li:focus .kui-radio + label::before {
- background-image: url(/img/icon-circle-white.svg);
- }
- li:focus .kui-radio:checked + label::before {
- background-image: url(/img/icon-c-check-white.svg);
- }
- .kui-checkbox + label::before {
- background-image: url(/img/icon-square-black.svg);
- }
- .kui-checkbox:checked + label::before {
- background-image: url(/img/icon-s-check-black.svg);
- }
- li:focus .kui-checkbox + label::before {
- background-image: url(/img/icon-square-white.svg);
- }
- li:focus .kui-checkbox:checked + label::before {
- background-image: url(/img/icon-s-check-white.svg);
- }
- /* ============== Table ============== */
- .kui-table,
- .kui-table th,
- .kui-table td {
- border: 1px solid #3faa7e;
- border-collapse: collapse;
- }
- .kui-table {
- width: 100%;
- }
- .kui-table thead {
- background-color: #3faa7e;
- color: #fff;
- }
- .kui-table tr:focus {
- outline: 0;
- background-color: #3faa7e;
- color: #fff;
- }
- .kui-table td {
- width: 50%;
- padding: 4px 5px;
- }
- .kui-table td:last-child {
- text-align: right;
- }
- /* KaiOS portrait devices (240x320) */
- @media only screen and (orientation: portrait) {
- .content-area {
- height: 236px;
- }
- .kui-option-menu {
- height: 178px;
- }
- .kui-options {
- height: 150px;
- }
- }
- /* KaiOS landscape devices (320x240) */
- @media screen and (orientation: landscape) {
- .content-area {
- height: 156px;
- }
- .kui-option-menu {
- height: 128px;
- }
- .kui-options {
- height: 100px;
- }
- }
- /*** The End ******/
|