commit 42d1cbd3713fce2b60d65abee2f5c18fb21691d4 Author: Er2 Date: Sat Apr 2 10:49:36 2022 +0300 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..79608ce --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +css/main.css diff --git a/css/main.less b/css/main.less new file mode 100644 index 0000000..e21168d --- /dev/null +++ b/css/main.less @@ -0,0 +1,144 @@ +/* DisKort + * (c) Er2 2022 + * Zlib License + */ + +// needed +body { margin: 0; } + +#app, +#title, +#side, +.wrapper { + display: flex; + overflow: hidden; +} + +#app, .wrapper.ext { + width: 100%; + height: 100%; +} + +#app, .wrapper.vert { + flex-direction: column; +} + +#title { + min-height: 48px; + height: 48px; + padding: 0 16px; + + button { + width: 32px; + height: 32px; + margin-right: 32px; + } +} + +#title, .wrapper.vcenter { + align-items: center; +} + +.wrapper.hcenter { + justify-content: center; +} + +.bord-bot(@r: var(--radius)) { + border-bottom-left-radius: @r; + border-bottom-right-radius: @r; +} + +.bord-top(@r: var(--radius)) { + border-top-left-radius: @r; + border-top-right-radius: @r; +} + +.hscroll +{ overflow-x: auto; } +.vscroll +{ overflow-y: auto; } + +#side { + #serv { + width: 60px; + height: 100%; + } + + #serv button, #add { + width: 48px; + height: 48px; + min-width: 48px; + min-height: 48px; + margin: 6px; //0 12px 8px 12px; + } + + #add { + padding: 2px; + color: #04cc40; + } + + #eside { + width: 240px; + max-width: 240px; + transition: width .1s ease-in; + + #chan { + margin-left: 8px; + height: 100%; + } + + #info { + min-height: 52px; + height: 52px; + .bord-bot(); + + button + { margin: 8px; } + :nth-child(1) + { margin-right: auto; } + } + } +} + +#cont { + flex-grow: 1; + padding: 8px; +} + +div, p, button { + font-family: sans-serif, Segoe UI; + scrollbar-width: none; + overflow: hidden; + text-overflow: ellipsis; + color: var(--text-col); +} + +button { + background-color: transparent; + padding: 0; + cursor: pointer; + font-size: 20pt; + border: none; + border-radius: 50%; + + transition: background-color .1s ease-out, border-radius .1s ease-out; + + width: 32px; + height: 32px; + + & > .ext { + width: 100%; + height: 100% + } + & > :not(.ext) { + width: 50%; + height: 50%; + } + + &.close { + position: absolute; + align-self: end; + } +} + +@import "theme"; diff --git a/css/theme.less b/css/theme.less new file mode 100644 index 0000000..cff9559 --- /dev/null +++ b/css/theme.less @@ -0,0 +1,60 @@ +/* Themes + * (c) Er2 2022 + * Zlib License + */ + +:root, .thm-dis { + --pic-filt: invert(100%); + --radius: 16px; + --bg-col: #202225; + --light-col: #36393f; + --lhter-col: #585b5f; + --drker-col: #2f3136; + --dark-col: #292b2f; + --text-col: #ffffff; + --sep-color: rgba(255, 255, 255, 0.06); +} + +.thm-disl { + --pic-filt: invert(0%); + --bg-col: #e3e5e8; + --light-col: #ffffff; + --lhter-col: #ffffff; + --drker-col: #f2f3f5; + --dark-col: #ebedef; + --text-col: #222222; + --sep-color: rgba(0,0,0, 0.06); +} + +.thm-amol { + --bg-col: #000000; + --light-col: #000000; + --lhter-col: #222222; + --drker-col: #000000; + --dark-col: #000000; + --text-col: #ffffff; +} + +#app { + background-color: var(--bg-col); +} + +#cont, button:not(.nofill) { + background-color: var(--light-col); +} + +#info { + background-color: var(--dark-col); +} + +button:hover, .selected { + background-color: var(--lhter-col); +} + +#cont, button:hover, .selected { + border-radius: var(--radius); +} + +img.mono, svg { + filter: var(--pic-filt); +} diff --git a/img/close.svg b/img/close.svg new file mode 100644 index 0000000..145f4e4 --- /dev/null +++ b/img/close.svg @@ -0,0 +1 @@ + diff --git a/img/home.svg b/img/home.svg new file mode 100644 index 0000000..ebb836d --- /dev/null +++ b/img/home.svg @@ -0,0 +1 @@ + diff --git a/img/menu.svg b/img/menu.svg new file mode 100644 index 0000000..2565634 --- /dev/null +++ b/img/menu.svg @@ -0,0 +1 @@ + diff --git a/img/pref.svg b/img/pref.svg new file mode 100644 index 0000000..8ca9343 --- /dev/null +++ b/img/pref.svg @@ -0,0 +1 @@ + diff --git a/index.html b/index.html new file mode 100644 index 0000000..4ea5f02 --- /dev/null +++ b/index.html @@ -0,0 +1,45 @@ + + + DisKort + + + +
+
+ +

DisKort

+
+
+
+
+
+ +
+ +
+
+
+
+ + +
+
+
+
+
+ +

Create a server

+
+
+
+
+ + + diff --git a/readme.org b/readme.org new file mode 100644 index 0000000..9ba37c4 --- /dev/null +++ b/readme.org @@ -0,0 +1,11 @@ +* DisKort + +This is custom web Discord client +extends ideas from [[https://gitdab.com/er2/diskort][DisKort]]. + +Codenamed DisKortIe. + +It is *VERY WIP!* + +To compile css, install less from npm +and run ~lessc css/main.less > css/main.css~