update carbon-mini

This commit is contained in:
marlon-erler
2024-07-08 01:24:45 +02:00
parent d77e9f3403
commit d547900b4a
3 changed files with 171 additions and 48 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "udn", "name": "udn",
"version": "1.0.0-beta5", "version": "1.0.0-beta7",
"description": "A websocket-based infrastructure for decentralized networks ", "description": "A websocket-based infrastructure for decentralized networks ",
"bin": { "bin": {
"start": "index.ts" "start": "index.ts"
+169 -46
View File
@@ -105,6 +105,10 @@ header {
accent-color: var(--primary); accent-color: var(--primary);
} }
a {
color: var(--link);
}
/* text */ /* text */
.success { .success {
@@ -253,6 +257,12 @@ TYPE
src: url("Fonts/IBMPlexSans-Regular.ttf"); src: url("Fonts/IBMPlexSans-Regular.ttf");
} }
@font-face {
font-family: IBM Plex Sans;
src: url("Fonts/IBMPlexSans-Bold.ttf");
font-weight: bold;
}
@font-face { @font-face {
font-family: IBM Plex Mono; font-family: IBM Plex Mono;
src: url("Fonts/IBMPlexMono-Regular.ttf"); src: url("Fonts/IBMPlexMono-Regular.ttf");
@@ -334,7 +344,7 @@ a,
/* display etc */ /* display etc */
.align-start { .align-start {
align-items: start; align-items: start !important;
} }
button:not(.tile), button:not(.tile),
@@ -345,13 +355,16 @@ label.inline,
.modal, .modal,
select, select,
textarea, textarea,
.align-center,
.tile:not(label) { .tile:not(label) {
align-items: center; align-items: center;
} }
.align-center {
align-items: center !important;
}
.align-end { .align-end {
align-items: end; align-items: end !important;
} }
label, label,
@@ -365,8 +378,6 @@ input[type="checkbox"],
input[type="radio"], input[type="radio"],
label.inline, label.inline,
main, main,
.flex-column,
.flex-row,
.modal[open], .modal[open],
.modal > div, .modal > div,
.tile, .tile,
@@ -374,8 +385,13 @@ main,
display: flex; display: flex;
} }
.flex-column,
.flex-row {
display: flex;
}
.grid { .grid {
display: grid; display: grid !important;
} }
button:not(.tile), button:not(.tile),
@@ -391,49 +407,78 @@ textarea {
} }
main, main,
.flex,
.tile, .tile,
.tile > div { .tile > div {
flex: 1; flex: 1;
} }
.flex-column, .flex {
flex: 1 !important;
}
.flex-no {
flex: 0 !important;
}
.modal > div, .modal > div,
.tile > div { .tile > div {
flex-direction: column; flex-direction: column;
} }
.flex-column {
flex-direction: column !important;
}
.flex-row {
flex-direction: row !important;
}
.flex-wrap {
flex-wrap: wrap !important;
}
button, button,
.tile { label.inline,
.tile,
.control-gap {
gap: var(--gap-in-controls); gap: var(--gap-in-controls);
} }
.gap { .gap {
gap: var(--gap-between-tiles); gap: var(--gap-between-tiles) !important;
} }
header, header,
button, button {
.justify-apart {
justify-content: space-between; justify-content: space-between;
} }
.justify-start, .justify-apart {
justify-content: space-between !important;
}
.tile { .tile {
justify-content: start; justify-content: start;
} }
.justify-start {
justify-content: start !important;
}
footer, footer,
header button, header button,
input[type="checkbox"], input[type="checkbox"],
input[type="radio"], input[type="radio"],
.justify-center,
.modal { .modal {
justify-content: center; justify-content: center;
} }
.justify-center {
justify-content: center !important;
}
.justify-end { .justify-end {
justify-content: end; justify-content: end !important;
} }
/* opacity */ /* opacity */
@@ -451,12 +496,19 @@ label span,
/* padding, margin, etc */ /* padding, margin, etc */
h1, h1,
h2, h2,
h3, h3 {
margin: var(--control-padding) 0px;
}
main, main,
p { p {
margin: 0px; margin: 0px;
} }
.margin-0 {
margin: 0px !important;
}
hr { hr {
margin: var(--content-margin) 0px; margin: var(--content-margin) 0px;
} }
@@ -469,6 +521,10 @@ label:not(.tile) {
margin-bottom: var(--label-margin-bottom); margin-bottom: var(--label-margin-bottom);
} }
.margin-bottom {
margin-bottom: var(--gap-between-tiles) !important;
}
label.tile { label.tile {
margin-bottom: var(--gap-between-tiles); margin-bottom: var(--gap-between-tiles);
} }
@@ -487,6 +543,10 @@ input[type="radio"] {
padding: 0px; padding: 0px;
} }
.padding-0 {
padding: 0 !important;
}
article > div { article > div {
padding: var(--content-padding); padding: var(--content-padding);
} }
@@ -497,11 +557,20 @@ select {
padding: 0px var(--control-padding); padding: 0px var(--control-padding);
} }
.padding-h {
padding: 0px var(--control-padding) !important;
}
label.inline,
textarea, textarea,
.tile:not(label) { .tile:not(label) {
padding: var(--control-padding); padding: var(--control-padding);
} }
.padding {
padding: var(--control-padding) !important;
}
.modal main { .modal main {
padding: var(--modal-padding); padding: var(--modal-padding);
} }
@@ -518,13 +587,17 @@ label.tile:has(> span.icon) {
padding-left: var(--control-padding); padding-left: var(--control-padding);
} }
label.tile:has(> span.icon) input {
padding-left: 0px;
}
article > div { article > div {
padding-bottom: calc( padding-bottom: calc(
var(--menu-height-mobile) + var(--control-height) + var(--content-padding) var(--menu-height-mobile) + var(--control-height) + var(--content-padding)
); );
} }
label { label:not(.inline) {
text-indent: var(--control-padding); text-indent: var(--control-padding);
} }
@@ -541,76 +614,104 @@ label.tile:has(> span.icon) {
article > div, article > div,
footer, footer,
header, header,
select + .icon, select + .icon {
.absolute {
position: absolute; position: absolute;
} }
.modal, .absolute {
.fixed { position: absolute !important;
}
.modal {
position: fixed; position: fixed;
} }
.fixed {
position: fixed !important;
}
article, article,
main, main,
input, input,
label, label {
.relative {
position: relative; position: relative;
} }
.relative {
position: relative !important;
}
.sticky { .sticky {
position: sticky; position: sticky !important;
} }
article > div, article > div,
header, header,
.modal, .modal {
.top-0 {
top: 0; top: 0;
} }
article > div, .top-0 {
footer, top: 0 !important;
header,
.modal,
.left-0 {
left: 0px;
} }
article > div, article > div,
footer, footer,
header, header,
.modal, .modal {
.right-0 { left: 0px;
}
.left-0 {
left: 0px !important;
}
article > div,
footer,
header,
.modal {
right: 0px; right: 0px;
} }
.right-0 {
right: 0px !important;
}
select + .icon { select + .icon {
right: var(--control-marker-padding); right: var(--control-marker-padding);
} }
footer { footer {
bottom: var(--safe-area-bottom);
}
body:has(> menu) footer {
bottom: var(--menu-height-mobile); bottom: var(--menu-height-mobile);
} }
article > div, article > div,
select + .icon, select + .icon,
.modal, .modal {
.bottom-0 {
bottom: 0px; bottom: 0px;
} }
.bottom-0 {
bottom: 0px !important;
}
/* size */ /* size */
article, article,
main, main,
select + .icon, select + .icon,
.height-100,
.modal > div, .modal > div,
.modal main { .modal main {
height: 100%; height: 100%;
} }
.height-100 {
height: 100% !important;
}
button:not(.tile):not(header *), button:not(.tile):not(header *),
footer, footer,
input:not([type="checkbox"]):not([type="radio"]), input:not([type="checkbox"]):not([type="radio"]),
@@ -630,7 +731,7 @@ article {
} }
.width-50 { .width-50 {
width: 50%; width: 50% !important;
} }
article, article,
@@ -641,12 +742,15 @@ main,
select, select,
textarea, textarea,
.modal > div, .modal > div,
.tile,
.tile > div {
width: 100%;
}
.width-content, .width-content,
.width-input, .width-input,
.tile,
.tile > div,
.width-100 { .width-100 {
width: 100%; width: 100% !important;
} }
header button { header button {
@@ -684,6 +788,7 @@ code {
} }
.secondary, .secondary,
.secondary *,
.helper-text, .helper-text,
.error-text, .error-text,
label { label {
@@ -750,7 +855,8 @@ input[type="radio"]:checked::before {
LAYOUT LAYOUT
*/ */
/* basic */ /* basic */
body, html { body,
html {
display: flex; display: flex;
flex-direction: column-reverse; flex-direction: column-reverse;
@@ -826,6 +932,10 @@ main {
overflow-x: scroll; overflow-x: scroll;
} }
.tile {
word-break: break-all;
}
/* scrolling */ /* scrolling */
main { main {
scrollbar-width: none; scrollbar-width: none;
@@ -847,7 +957,7 @@ main {
scroll-snap-type: x mandatory; scroll-snap-type: x mandatory;
} }
/* desktop */ /* tablet & up */
@media (min-width: 640px) { @media (min-width: 640px) {
/* basic */ /* basic */
.mobile-only { .mobile-only {
@@ -870,19 +980,25 @@ main {
} }
p, p,
.width-content,
.modal > div { .modal > div {
max-width: var(--max-content-width); max-width: var(--max-content-width);
} }
.width-content {
max-width: var(--max-content-width) !important;
}
input, input,
label, label,
select, select,
textarea, textarea {
.width-input {
max-width: var(--max-input-width); max-width: var(--max-input-width);
} }
.width-input {
max-width: var(--max-input-width) !important;
}
/* layout */ /* layout */
body { body {
flex-direction: row; flex-direction: row;
@@ -923,6 +1039,13 @@ main {
} }
} }
/* desktop */
@media (min-width: 1024px) {
:root {
--split-pane-width-desktop: 400px;
}
}
/* /*
ICONS ICONS
*/ */
+1 -1
View File
@@ -35,4 +35,4 @@ async function getFromCache(event) {
self.addEventListener("fetch", (event) => { self.addEventListener("fetch", (event) => {
handleRequest(event); handleRequest(event);
}); });