Files
nuki_hub/resources/style.css
iranl 6b0100fd61 Arduino Core 3 (#407)
* Add and remove libs and components for Arduino Core 3

* Arduino Core 3

* Add back Solo1

* Change ESP32-S3 to 4MB build

* Update README.md

* Fix retain and number of retries

* Fix rolling log

* Fix defaults

* Fix BleScanner on Solo1

* Export settings

* Import settings

* Fix HA Battery voltage

* Change submodule

* Update espMqttClient and AsyncTCP

* Webserial and MQTT/Network reconnecting

* Update nuki_ble

---------

Co-authored-by: iranl <iranl@github.com>
2024-07-05 23:45:39 +07:00

281 lines
5.3 KiB
CSS

/*
escaped by https://www.cescaper.com/
source: https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.2/new.min.css
*/
/*
* Usage:
* Compact / minify this code with any tool
* Copy one-line string to src/WebCfgServerConstants.h as stylecss
* TODO: automate this process upon building :)
*/
:root {
--nc-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
--nc-font-mono: Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;
--nc-tx-1: #000000;
--nc-tx-2: #1A1A1A;
--nc-bg-1: #FFFFFF;
--nc-bg-2: #F6F8FA;
--nc-bg-3: #E5E7EB;
--nc-lk-1: #0070F3;
--nc-lk-2: #0366D6;
--nc-lk-tx: #FFFFFF;
--nc-ac-1: #79FFE1;
--nc-ac-tx: #0C4047
}
@media (prefers-color-scheme:dark) {
:root {
--nc-tx-1: #ffffff;
--nc-tx-2: #eeeeee;
--nc-bg-1: #000000;
--nc-bg-2: #111111;
--nc-bg-3: #222222;
--nc-lk-1: #3291FF;
--nc-lk-2: #0070F3;
--nc-lk-tx: #FFFFFF;
--nc-ac-1: #7928CA;
--nc-ac-tx: #FFFFFF
}
}
* {
margin: 0;
padding: 0
}
img,
input,
option,
p,
table,
textarea,
ul {
margin-bottom: 1rem
}
button,
html,
input,
select {
font-family: var(--nc-font-sans)
}
body {
margin: 0 auto;
max-width: 750px;
padding: 2rem;
border-radius: 6px;
overflow-x: hidden;
word-break: normal;
overflow-wrap: anywhere;
background: var(--nc-bg-1);
color: var(--nc-tx-2);
font-size: 1.03rem;
line-height: 1.5
}
::selection {
background: var(--nc-ac-1);
color: var(--nc-ac-tx)
}
h1, h2, h3, h4, h5, h6 {
line-height: 1;
color: var(--nc-tx-1);
padding-top: .875rem
}
h1, h2, h3 {
color: var(--nc-tx-1);
padding-bottom: 2px;
margin-bottom: 8px;
border-bottom: 1px solid var(--nc-bg-2)
}
h4, h5, h6 {
margin-bottom: .3rem
}
h1 { font-size: 2.25rem }
h2 { font-size: 1.85rem }
h3 { font-size: 1.55rem }
h4 { font-size: 1.25rem }
h5 { font-size: 1rem }
h6 { font-size: .875rem }
a { color: var(--nc-lk-1) }
a:hover { color: var(--nc-lk-2) !important; }
abbr { cursor: help }
abbr:hover { cursor: help }
a button,
button,
input[type=button],
input[type=reset],
input[type=submit] {
font-size: 1rem;
display: inline-block;
padding: 6px 12px;
text-align: center;
text-decoration: none;
white-space: nowrap;
background: var(--nc-lk-1);
color: var(--nc-lk-tx);
border: 0;
border-radius: 4px;
box-sizing: border-box;
cursor: pointer;
color: var(--nc-lk-tx)
}
a button[disabled],
button[disabled],
input[type=button][disabled],
input[type=reset][disabled],
input[type=submit][disabled] {
cursor: default;
opacity: .5;
cursor: not-allowed
}
.button:focus,
.button:hover,
button:focus,
button:hover,
input[type=button]:focus,
input[type=button]:hover,
input[type=reset]:focus,
input[type=reset]:hover,
input[type=submit]:focus,
input[type=submit]:hover {
background: var(--nc-lk-2)
}
table {
border-collapse: collapse;
width: 100%
}
td, th {
border: 1px solid var(--nc-bg-3);
text-align: left;
padding: .5rem
}
th { background: var(--nc-bg-2) }
tr:nth-child(even) { background: var(--nc-bg-2) }
textarea { max-width: 100% }
input, select, textarea {
padding: 6px 12px;
margin-bottom: .5rem;
background: var(--nc-bg-2);
color: var(--nc-tx-2);
border: 1px solid var(--nc-bg-3);
border-radius: 4px;
box-shadow: none;
box-sizing: border-box
}
img { max-width: 100% }
td>input {
margin-top: 0px;
margin-bottom: 0px
}
td>textarea {
margin-top: 0px;
margin-bottom: 0px
}
td>select {
margin-top: 0px;
margin-bottom: 0px
}
.warning {
color: #f00;
}
@media only screen and (max-width: 600px) {
.adapt td { display: block; }
.adapt input[type=text],
.adapt input[type=password],
.adapt input[type=submit],
.adapt textarea,
.adapt select { width: 100%; }
.adapt td:has(input[type=checkbox]) {
text-align: center;
}
.adapt input[type=checkbox] {
width: 1.5em;
height: 1.5em;
}
.adapt table td:first-child { border-bottom: 0; }
.adapt table td:last-child { border-top: 0; }
#tblnav a li>span {
max-width: 140px;
}
}
#tblnav a {
border: 0;
border-bottom: 1px solid;
display: block;
font-size: 1rem;
font-weight: bold;
padding: .6rem 0;
line-height: 1;
color: var(--nc-tx-1);
text-decoration: none;
background: linear-gradient(to left, transparent 50%, rgba(255,255,255,0.4) 50%) right;
background-size: 200% 100%;
transition:all .2s ease;
}
#tblnav a:nth-child(even) {
background: linear-gradient(to left, var(--nc-bg-2) 50%, rgba(255,255,255,0.4) 50%) right;
background-size: 200% 100%;
}
#tblnav a:hover {
background-position: left;
transition:all .45s ease;
}
#tblnav a:active {
background: var(--nc-lk-1);
transition:all .15s ease;
}
#tblnav a li {
list-style: none;
padding: .5rem;
display: inline-block;
width: 100%;
}
#tblnav a li>span {
float: right;
text-align: right;
margin-right: 10px;
color: #f70;
font-weight: 100;
font-style: italic;
display: block;
}
.tdbtn {
text-align: center;
vertical-align: middle;
}