Merge branch 'main' of https://github.com/ranchimall/exchange-market
This commit is contained in:
commit
9331373faf
1
args/app-config.json
Normal file
1
args/app-config.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"secret":"9qWGMLljSaHWGfm4tfXMxukjig43fBtafjZ","port":"8080","sql_user":"user","sql_pwd":"Qwerty@123","sql_db":"exchange","sql_host":"localhost","backup-port":"8081","backup-floIDs":[]}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -16,38 +16,29 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: rgba(var(--text-color), 1);
|
|
||||||
background: rgba(var(--background-color), 1);
|
|
||||||
}
|
|
||||||
body,
|
|
||||||
body * {
|
|
||||||
--accent-color: #504dff;
|
--accent-color: #504dff;
|
||||||
--accent-color--light: #eeeeff;
|
--text-color: 20, 20, 20;
|
||||||
--text-color: 36, 36, 36;
|
--background-color: 240, 240, 240;
|
||||||
--background-color: 255, 255, 255;
|
--foreground-color: 250, 250, 250;
|
||||||
--foreground-color: rgb(250, 252, 255);
|
|
||||||
--danger-color: rgb(255, 75, 75);
|
--danger-color: rgb(255, 75, 75);
|
||||||
--green: #1cad59;
|
--green: #1cad59;
|
||||||
--yellow: #f3a600;
|
|
||||||
--loan-color: rgb(255, 171, 93);
|
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
color: rgba(var(--text-color), 1);
|
||||||
|
background-color: rgba(var(--background-color), 1);
|
||||||
|
transition: background-color 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
body[data-theme=dark],
|
body[data-theme=dark] {
|
||||||
body[data-theme=dark] * {
|
|
||||||
--accent-color: #a3a1ff;
|
--accent-color: #a3a1ff;
|
||||||
--accent-color--light: rgba(142, 140, 255, 0.06);
|
--text-color: 220, 220, 220;
|
||||||
--text-color: 230, 230, 230;
|
|
||||||
--text-color-light: 170, 170, 170;
|
|
||||||
--background-color: 10, 10, 10;
|
--background-color: 10, 10, 10;
|
||||||
--foreground-color: rgb(24, 24, 24);
|
--foreground-color: 24, 24, 24;
|
||||||
--danger-color: rgb(255, 106, 106);
|
--danger-color: rgb(255, 106, 106);
|
||||||
--green: #00e676;
|
--green: #00e676;
|
||||||
--yellow: #ffd13a;
|
|
||||||
--loan-color: rgb(255, 232, 170);
|
|
||||||
}
|
}
|
||||||
body[data-theme=dark] sm-popup::part(popup) {
|
body[data-theme=dark] sm-popup::part(popup) {
|
||||||
background-color: var(--foreground-color);
|
background-color: rgba(var(--foreground-color), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
p,
|
p,
|
||||||
@ -128,7 +119,6 @@ a:any-link:focus-visible {
|
|||||||
sm-input {
|
sm-input {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
--border-radius: 0.3rem;
|
--border-radius: 0.3rem;
|
||||||
--background: var(--accent-color--light);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sm-button {
|
sm-button {
|
||||||
@ -149,6 +139,10 @@ sm-button.danger {
|
|||||||
color: rgba(var(--background-color), 1);
|
color: rgba(var(--background-color), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sm-form {
|
||||||
|
--gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
@ -166,7 +160,7 @@ ul {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hide-completely {
|
.hide {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,45 +307,41 @@ ul {
|
|||||||
|
|
||||||
.interact {
|
.interact {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: transform 0.3s;
|
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-state {
|
.ripple {
|
||||||
display: grid;
|
height: 8rem;
|
||||||
justify-content: center;
|
width: 8rem;
|
||||||
text-align: center;
|
position: absolute;
|
||||||
width: 100%;
|
border-radius: 50%;
|
||||||
max-width: none;
|
transform: scale(0);
|
||||||
padding: 1.5rem;
|
background: radial-gradient(circle, rgba(var(--text-color), 0.3) 0%, rgba(0, 0, 0, 0) 50%);
|
||||||
}
|
pointer-events: none;
|
||||||
|
|
||||||
.observe-empty-state:empty {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.observe-empty-state:not(:empty) + .empty-state {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
width: 1.5rem;
|
width: 1.2rem;
|
||||||
height: 1.5rem;
|
height: 1.2rem;
|
||||||
fill: rgba(var(--text-color), 0.8);
|
fill: rgba(var(--text-color), 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button__icon {
|
.margin-right-0-5 {
|
||||||
height: 1.2rem;
|
|
||||||
width: 1.2rem;
|
|
||||||
}
|
|
||||||
.button__icon--left {
|
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
.button__icon--right {
|
|
||||||
|
.margin-left-0-5 {
|
||||||
margin-left: 0.5rem;
|
margin-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-only {
|
||||||
|
padding: 0.6rem;
|
||||||
|
aspect-ratio: 1/1;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.icon-button {
|
.icon-button {
|
||||||
padding: 0.6rem;
|
padding: 0.6rem;
|
||||||
border-radius: 0.8rem;
|
border-radius: 0.8rem;
|
||||||
@ -364,6 +354,31 @@ ul {
|
|||||||
fill: var(--accent-color);
|
fill: var(--accent-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.empty-state {
|
||||||
|
display: grid;
|
||||||
|
text-align: center;
|
||||||
|
justify-items: center;
|
||||||
|
width: 100%;
|
||||||
|
max-width: none;
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
.empty-state__icon {
|
||||||
|
height: 3rem;
|
||||||
|
width: 3rem;
|
||||||
|
padding: 0.6rem;
|
||||||
|
border-radius: 1rem;
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.observe-empty-state:empty {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.observe-empty-state:not(:empty) + .empty-state {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
#confirmation_popup,
|
#confirmation_popup,
|
||||||
#prompt_popup {
|
#prompt_popup {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -392,17 +407,11 @@ ul {
|
|||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:active,
|
|
||||||
.button:active,
|
|
||||||
.interact:active {
|
|
||||||
transform: scale(0.96);
|
|
||||||
}
|
|
||||||
|
|
||||||
.popup__header {
|
.popup__header {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 1.5rem 0 0.5rem;
|
padding: 0 1.5rem 0 0.8rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
grid-template-columns: auto 1fr auto;
|
grid-template-columns: auto 1fr auto;
|
||||||
}
|
}
|
||||||
@ -457,8 +466,8 @@ details[open] > summary .icon {
|
|||||||
|
|
||||||
strip-select {
|
strip-select {
|
||||||
--gap: 0;
|
--gap: 0;
|
||||||
background-color: var(--accent-color--light);
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
border-radius: 0.3rem;
|
border-radius: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
strip-option {
|
strip-option {
|
||||||
@ -469,10 +478,10 @@ strip-option {
|
|||||||
--active-option-background-color: var(--accent-color);
|
--active-option-background-color: var(--accent-color);
|
||||||
}
|
}
|
||||||
strip-option:first-of-type {
|
strip-option:first-of-type {
|
||||||
--border-radius: 0.3rem 0 0 0.3rem;
|
--border-radius: 0.2rem 0 0 0.2rem;
|
||||||
}
|
}
|
||||||
strip-option:last-of-type {
|
strip-option:last-of-type {
|
||||||
--border-radius: 0 0.3rem 0.3rem 0;
|
--border-radius: 0 0.2rem 0.2rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
sm-select,
|
sm-select,
|
||||||
@ -494,6 +503,17 @@ sm-checkbox {
|
|||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tip {
|
||||||
|
border-radius: 1.5rem;
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
padding: 0.3rem 0.8rem;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
.tip .icon {
|
||||||
|
fill: var(--accent-color);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.page-layout {
|
.page-layout {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1.5rem minmax(0, 1fr) 1.5rem;
|
grid-template-columns: 1.5rem minmax(0, 1fr) 1.5rem;
|
||||||
@ -506,6 +526,10 @@ sm-checkbox {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobile-page {
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
#landing {
|
#landing {
|
||||||
grid-template-rows: auto 1fr;
|
grid-template-rows: auto 1fr;
|
||||||
}
|
}
|
||||||
@ -547,10 +571,15 @@ sm-checkbox {
|
|||||||
|
|
||||||
#home {
|
#home {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: grid;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
align-content: flex-start;
|
align-content: flex-start;
|
||||||
grid-template-columns: minmax(0, 1fr);
|
}
|
||||||
|
|
||||||
|
#login_form {
|
||||||
|
width: min(24rem, 100%);
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#login_form__priv_key {
|
#login_form__priv_key {
|
||||||
@ -558,28 +587,79 @@ sm-checkbox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#main_header {
|
#main_header {
|
||||||
margin-top: 1.5rem;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
padding: 1.5rem;
|
||||||
|
width: 100%;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
grid-template-columns: 1fr auto auto;
|
grid-template-columns: 1fr auto auto;
|
||||||
grid-column: 1/-1;
|
grid-column: 1/-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rate-card {
|
#main_navbar {
|
||||||
grid-template-columns: auto 1fr auto;
|
width: 100%;
|
||||||
gap: 1rem;
|
|
||||||
padding: 1rem;
|
|
||||||
border-radius: 0.5rem;
|
|
||||||
border: solid rgba(var(--text-color), 0.2) thin;
|
|
||||||
background-color: rgba(var(--background-color), 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#trade_form,
|
.main_navbar__item {
|
||||||
#login_form {
|
display: flex;
|
||||||
align-self: flex-start;
|
flex-direction: column;
|
||||||
padding: 1rem 1.5rem 1.5rem 1.5rem;
|
align-items: center;
|
||||||
|
flex: 1;
|
||||||
|
padding: 0.5rem 0;
|
||||||
|
}
|
||||||
|
.main_navbar__item .item__title,
|
||||||
|
.main_navbar__item .icon {
|
||||||
|
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
|
||||||
|
}
|
||||||
|
.main_navbar__item .item__title {
|
||||||
|
color: rgba(var(--text-color), 0.8);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.main_navbar__item .icon {
|
||||||
|
height: 1.2rem;
|
||||||
|
margin-bottom: 0.3rem;
|
||||||
|
}
|
||||||
|
.main_navbar__item--active .item__title {
|
||||||
|
color: var(--accent-color);
|
||||||
|
}
|
||||||
|
.main_navbar__item--active .icon {
|
||||||
|
fill: var(--accent-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
#pages_container {
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 0 1.5rem;
|
||||||
|
}
|
||||||
|
#pages_container > * {
|
||||||
|
min-width: min(26rem, 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.listed-asset {
|
||||||
|
position: relative;
|
||||||
|
grid-template-columns: auto 1fr auto;
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 1rem 0;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
opacity: 0.8;
|
||||||
|
font-weight: 400;
|
||||||
|
transition: background-color 0.3s;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
.listed-asset__icon {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.listed-asset__icon .icon {
|
||||||
|
height: 1.5rem;
|
||||||
|
width: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quantity-selector .button {
|
.quantity-selector .button {
|
||||||
@ -588,6 +668,10 @@ sm-checkbox {
|
|||||||
margin-left: 0.5rem;
|
margin-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#quantity_selector_tip::first-letter {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
#quantity_type,
|
#quantity_type,
|
||||||
#wallet_quantity_type {
|
#wallet_quantity_type {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
@ -600,34 +684,55 @@ sm-checkbox {
|
|||||||
min-width: 8ch;
|
min-width: 8ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
#my_orders_section,
|
#exchange_wrapper {
|
||||||
#market_orders_section {
|
display: flex;
|
||||||
padding-top: 1rem;
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
#my_orders_section .icon,
|
|
||||||
#market_orders_section .icon {
|
#asset_page {
|
||||||
height: 1.2rem;
|
display: flex;
|
||||||
width: 1.2rem;
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#asset_page__nav {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
#asset_page__nav .icon-only {
|
||||||
|
margin-left: -0.7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#trade_form {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
#trade_form::part(form) {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
|
#trade_form > * {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
#trade_form > :last-child {
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#my_orders,
|
||||||
|
#market {
|
||||||
|
width: min(42rem, 100%);
|
||||||
|
grid-template-rows: auto 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.orders_section__header {
|
.orders_section__header {
|
||||||
padding: 0 1.5rem;
|
min-height: 2.8rem;
|
||||||
}
|
|
||||||
|
|
||||||
#my_orders_section__header {
|
|
||||||
height: 2.4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#orders_section__header--primary sm-tab-header {
|
|
||||||
--gap: 1.5rem;
|
|
||||||
}
|
|
||||||
#orders_section__header--primary sm-tab {
|
|
||||||
font-size: 0.9rem;
|
|
||||||
--padding: 0.8rem 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list__item {
|
.list__item {
|
||||||
padding: 0.5rem 1.5rem;
|
padding: 0.5rem 0;
|
||||||
display: grid;
|
display: grid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -643,6 +748,7 @@ sm-checkbox {
|
|||||||
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
|
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
|
||||||
grid-template-columns: -webkit-min-content repeat(3, 1fr) -webkit-min-content;
|
grid-template-columns: -webkit-min-content repeat(3, 1fr) -webkit-min-content;
|
||||||
grid-template-columns: min-content repeat(3, 1fr) min-content;
|
grid-template-columns: min-content repeat(3, 1fr) min-content;
|
||||||
|
border-radius: 0.5rem;
|
||||||
}
|
}
|
||||||
.order-card__type {
|
.order-card__type {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
@ -716,13 +822,14 @@ sm-checkbox {
|
|||||||
}
|
}
|
||||||
#market_orders_list .list__header {
|
#market_orders_list .list__header {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
padding: 0 1.5rem;
|
|
||||||
grid-template-columns: repeat(3, 1fr) 2rem;
|
grid-template-columns: repeat(3, 1fr) 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#user_section {
|
#wallet {
|
||||||
|
display: grid;
|
||||||
|
width: auto;
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
padding: 1.5rem;
|
grid-template-columns: minmax(0, 1fr);
|
||||||
align-content: flex-start;
|
align-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -741,19 +848,29 @@ sm-checkbox {
|
|||||||
margin-bottom: 0.2rem;
|
margin-bottom: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#my_assets {
|
||||||
|
gap: 0.5rem;
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.balance-card {
|
.balance-card {
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.3rem 1rem;
|
gap: 0 0.5rem;
|
||||||
padding: 0.5rem 0;
|
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
|
background-color: rgba(var(--foreground-color), 1);
|
||||||
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
.balance-card.is-locked {
|
.balance-card.is-locked {
|
||||||
grid-template-columns: auto 1fr;
|
padding: 1rem 0.5rem;
|
||||||
gap: 1rem;
|
grid-template-columns: auto 1fr auto;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
.balance-card.is-locked .balance-card__icon {
|
||||||
|
grid-row: span 2;
|
||||||
}
|
}
|
||||||
.balance-card:not(.is-locked) {
|
.balance-card:not(.is-locked) {
|
||||||
grid-template-columns: auto 1fr auto;
|
grid-template-columns: auto 1fr auto auto;
|
||||||
}
|
}
|
||||||
.balance-card__icon {
|
.balance-card__icon {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -773,7 +890,7 @@ sm-checkbox {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.balance-card__amount-wrapper {
|
.balance-card__amount-wrapper {
|
||||||
grid-column: span 2;
|
grid-column: 2/3;
|
||||||
gap: 0.3rem 1rem;
|
gap: 0.3rem 1rem;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
}
|
}
|
||||||
@ -829,6 +946,12 @@ sm-checkbox {
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#wallet_result__cta {
|
||||||
|
padding: 1.5rem 1rem;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
.stateful-button-wrapper {
|
.stateful-button-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -935,61 +1058,37 @@ sm-checkbox {
|
|||||||
}
|
}
|
||||||
@media screen and (max-width: 40rem) and (any-hover: none) {
|
@media screen and (max-width: 40rem) and (any-hover: none) {
|
||||||
.cancel-order span {
|
.cancel-order span {
|
||||||
display: none;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 40rem) {
|
@media screen and (max-width: 40rem) {
|
||||||
#main_header {
|
|
||||||
padding: 0 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
sm-button {
|
sm-button {
|
||||||
--padding: 0.9rem 1.6rem;
|
--padding: 0.9rem 1.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#home > :last-child {
|
.empty-state {
|
||||||
padding-bottom: 5rem;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bottom_nav {
|
.main_navbar__item--active .item__title {
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
|
||||||
background-color: var(--foreground-color);
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bottom_nav__item {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
flex: 1;
|
|
||||||
padding: 0.5rem 0;
|
|
||||||
}
|
|
||||||
.bottom_nav__item .item__title,
|
|
||||||
.bottom_nav__item .icon {
|
|
||||||
transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
||||||
}
|
|
||||||
.bottom_nav__item .item__title {
|
|
||||||
color: rgba(var(--text-color), 0.8);
|
|
||||||
font-size: 0.8rem;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
.bottom_nav__item .icon {
|
|
||||||
height: 1.2rem;
|
|
||||||
margin-bottom: 0.3rem;
|
|
||||||
}
|
|
||||||
.bottom_nav__item--active .item__title {
|
|
||||||
color: var(--accent-color);
|
|
||||||
transform: translateY(100%);
|
transform: translateY(100%);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
.bottom_nav__item--active .icon {
|
.main_navbar__item--active .icon {
|
||||||
transform: translateY(50%) scale(1.2);
|
transform: translateY(50%) scale(1.2);
|
||||||
fill: var(--accent-color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hide-on-mobile {
|
.hide-on-mobile {
|
||||||
display: none;
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.listed-asset {
|
||||||
|
border-radius: 0;
|
||||||
|
border-bottom: solid thin rgba(var(--text-color), 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#price_chart_container {
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 40rem) {
|
@media screen and (min-width: 40rem) {
|
||||||
@ -1014,7 +1113,7 @@ sm-checkbox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.popup__header {
|
.popup__header {
|
||||||
padding: 1rem 1.5rem 0 0.5rem;
|
padding: 1rem 1.5rem 0 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#confirmation_popup {
|
#confirmation_popup {
|
||||||
@ -1025,45 +1124,133 @@ sm-checkbox {
|
|||||||
grid-template-columns: 1fr 90vw 1fr;
|
grid-template-columns: 1fr 90vw 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#home {
|
.mobile-page {
|
||||||
padding: 0 4vmax;
|
padding: 2rem;
|
||||||
gap: 1rem;
|
border-radius: 0.5rem;
|
||||||
|
background-color: rgba(var(--foreground-color), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hide-on-desktop {
|
.hide-on-desktop {
|
||||||
display: none;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
#home {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr;
|
||||||
|
grid-template-rows: auto 1fr;
|
||||||
|
grid-template-areas: "header header" "nav pages";
|
||||||
|
}
|
||||||
|
|
||||||
|
#main_header {
|
||||||
|
grid-area: header;
|
||||||
|
}
|
||||||
|
|
||||||
|
#main_navbar {
|
||||||
|
grid-area: nav;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
padding: 0 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main_navbar__item {
|
||||||
|
padding: 1.5rem 1rem;
|
||||||
|
width: 100%;
|
||||||
|
flex: 0;
|
||||||
|
flex-direction: row;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
background-color: var(--foreground-color);
|
transition: background-color 0.3s;
|
||||||
border: solid thin rgba(var(--text-color), 0.1);
|
}
|
||||||
|
.main_navbar__item .icon {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
.main_navbar__item .item__title {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
.main_navbar__item--active {
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
#pages_container {
|
||||||
|
grid-area: pages;
|
||||||
|
}
|
||||||
|
|
||||||
|
.is-signed-in #exchange {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.is-signed-in #exchange_wrapper {
|
||||||
|
display: grid;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
gap: 1.5rem;
|
||||||
|
grid-template-columns: 16rem minmax(0, 1fr);
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
#price_history_chart {
|
||||||
|
height: 20rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#asset_list_wrapper {
|
||||||
|
grid-row: 1/3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.listed-asset {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
.listed-asset--active {
|
||||||
|
opacity: 1;
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
}
|
||||||
|
.listed-asset--active::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
width: 0.25rem;
|
||||||
|
border-radius: 0 0.2rem 0.2rem 0;
|
||||||
|
height: 50%;
|
||||||
|
background-color: var(--accent-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 48rem) {
|
@media screen and (max-width: 64rem) and (min-width: 40rem) {
|
||||||
#home {
|
.main_navbar__item .icon {
|
||||||
grid-template-rows: -webkit-min-content 1fr;
|
margin-right: 0;
|
||||||
grid-template-rows: min-content 1fr;
|
|
||||||
grid-template-columns: 24rem minmax(0, 1fr);
|
|
||||||
}
|
}
|
||||||
#home.signed-in #orders_list,
|
.main_navbar__item .item__title {
|
||||||
#home.signed-in #market_orders_list {
|
display: none !important;
|
||||||
height: 32vmin;
|
}
|
||||||
overflow-y: auto;
|
}
|
||||||
|
@media screen and (min-width: 64rem) {
|
||||||
|
#home {
|
||||||
|
grid-template-columns: 10rem 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#orders_section {
|
#asset_page {
|
||||||
grid-row: span 2;
|
display: grid;
|
||||||
|
gap: 1.5rem;
|
||||||
|
grid-template-columns: minmax(0, 1fr) 20rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#asset_page__nav {
|
||||||
|
grid-column: 1/-1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wallet {
|
||||||
|
gap: 1rem 2rem;
|
||||||
|
grid-template-columns: 20rem 24rem;
|
||||||
|
}
|
||||||
|
#wallet__header {
|
||||||
|
grid-column: 1/3;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
#wallet .balance-card {
|
||||||
|
border: solid thin rgba(var(--text-color), 0.2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 72rem) {
|
@media screen and (min-width: 72rem) {
|
||||||
.page-layout {
|
.page-layout {
|
||||||
grid-template-columns: 1fr 80vw 1fr;
|
grid-template-columns: 1fr 80vw 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#home.signed-in {
|
|
||||||
grid-template-columns: 24rem minmax(0, 1fr) 20rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 120rem) {
|
@media screen and (min-width: 120rem) {
|
||||||
.page-layout {
|
.page-layout {
|
||||||
@ -1084,15 +1271,6 @@ sm-checkbox {
|
|||||||
background: rgba(var(--text-color), 0.5);
|
background: rgba(var(--text-color), 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.interact,
|
|
||||||
button {
|
|
||||||
transition: background-color 0.3s, transform 0.3s;
|
|
||||||
}
|
|
||||||
.interact:hover,
|
|
||||||
button:hover {
|
|
||||||
background-color: var(--accent-color--light);
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-card .cancel-order {
|
.order-card .cancel-order {
|
||||||
justify-self: flex-end;
|
justify-self: flex-end;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
2
docs/css/main.min.css
vendored
2
docs/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -16,40 +16,28 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
&,
|
--accent-color: #504dff;
|
||||||
* {
|
--text-color: 20, 20, 20;
|
||||||
--accent-color: #504dff;
|
--background-color: 240, 240, 240;
|
||||||
--accent-color--light: #eeeeff;
|
--foreground-color: 250, 250, 250;
|
||||||
--text-color: 36, 36, 36;
|
--danger-color: rgb(255, 75, 75);
|
||||||
--background-color: 255, 255, 255;
|
--green: #1cad59;
|
||||||
--foreground-color: rgb(250, 252, 255);
|
scrollbar-width: thin;
|
||||||
--danger-color: rgb(255, 75, 75);
|
scrollbar-gutter: stable;
|
||||||
--green: #1cad59;
|
|
||||||
--yellow: #f3a600;
|
|
||||||
--loan-color: rgb(255, 171, 93);
|
|
||||||
scrollbar-width: thin;
|
|
||||||
}
|
|
||||||
|
|
||||||
color: rgba(var(--text-color), 1);
|
color: rgba(var(--text-color), 1);
|
||||||
background: rgba(var(--background-color), 1);
|
background-color: rgba(var(--background-color), 1);
|
||||||
|
transition: background-color 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
body[data-theme="dark"] {
|
body[data-theme="dark"] {
|
||||||
&,
|
--accent-color: #a3a1ff;
|
||||||
* {
|
--text-color: 220, 220, 220;
|
||||||
--accent-color: #a3a1ff;
|
--background-color: 10, 10, 10;
|
||||||
--accent-color--light: rgba(142, 140, 255, 0.06);
|
--foreground-color: 24, 24, 24;
|
||||||
--text-color: 230, 230, 230;
|
--danger-color: rgb(255, 106, 106);
|
||||||
--text-color-light: 170, 170, 170;
|
--green: #00e676;
|
||||||
--background-color: 10, 10, 10;
|
|
||||||
--foreground-color: rgb(24, 24, 24);
|
|
||||||
--danger-color: rgb(255, 106, 106);
|
|
||||||
--green: #00e676;
|
|
||||||
--yellow: #ffd13a;
|
|
||||||
--loan-color: rgb(255, 232, 170);
|
|
||||||
}
|
|
||||||
sm-popup::part(popup) {
|
sm-popup::part(popup) {
|
||||||
background-color: var(--foreground-color);
|
background-color: rgba(var(--foreground-color), 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,7 +107,6 @@ a:any-link:focus-visible {
|
|||||||
sm-input {
|
sm-input {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
--border-radius: 0.3rem;
|
--border-radius: 0.3rem;
|
||||||
--background: var(--accent-color--light);
|
|
||||||
}
|
}
|
||||||
sm-button {
|
sm-button {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@ -143,6 +130,9 @@ sm-button {
|
|||||||
color: rgba(var(--background-color), 1);
|
color: rgba(var(--background-color), 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sm-form {
|
||||||
|
--gap: 1rem;
|
||||||
|
}
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
@ -160,7 +150,7 @@ ul {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hide-completely {
|
.hide {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -308,44 +298,40 @@ ul {
|
|||||||
|
|
||||||
.interact {
|
.interact {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: transform 0.3s;
|
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
}
|
}
|
||||||
.empty-state {
|
.ripple {
|
||||||
display: grid;
|
height: 8rem;
|
||||||
justify-content: center;
|
width: 8rem;
|
||||||
text-align: center;
|
position: absolute;
|
||||||
width: 100%;
|
border-radius: 50%;
|
||||||
max-width: none;
|
transform: scale(0);
|
||||||
padding: 1.5rem;
|
background: radial-gradient(
|
||||||
}
|
circle,
|
||||||
|
rgba(var(--text-color), 0.3) 0%,
|
||||||
.observe-empty-state:empty {
|
rgba(0, 0, 0, 0) 50%
|
||||||
display: none;
|
);
|
||||||
}
|
pointer-events: none;
|
||||||
|
|
||||||
.observe-empty-state:not(:empty) + .empty-state {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
width: 1.5rem;
|
width: 1.2rem;
|
||||||
height: 1.5rem;
|
height: 1.2rem;
|
||||||
fill: rgba(var(--text-color), 0.8);
|
fill: rgba(var(--text-color), 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button__icon {
|
.margin-right-0-5 {
|
||||||
height: 1.2rem;
|
margin-right: 0.5rem;
|
||||||
width: 1.2rem;
|
}
|
||||||
|
.margin-left-0-5 {
|
||||||
&--left {
|
margin-left: 0.5rem;
|
||||||
margin-right: 0.5rem;
|
}
|
||||||
}
|
.icon-only {
|
||||||
|
padding: 0.6rem;
|
||||||
&--right {
|
aspect-ratio: 1/1;
|
||||||
margin-left: 0.5rem;
|
background-color: transparent;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-button {
|
.icon-button {
|
||||||
@ -357,6 +343,30 @@ ul {
|
|||||||
fill: var(--accent-color);
|
fill: var(--accent-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.empty-state {
|
||||||
|
display: grid;
|
||||||
|
text-align: center;
|
||||||
|
justify-items: center;
|
||||||
|
width: 100%;
|
||||||
|
max-width: none;
|
||||||
|
padding: 1.5rem;
|
||||||
|
&__icon {
|
||||||
|
height: 3rem;
|
||||||
|
width: 3rem;
|
||||||
|
padding: 0.6rem;
|
||||||
|
border-radius: 1rem;
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.observe-empty-state:empty {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.observe-empty-state:not(:empty) + .empty-state {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
#confirmation_popup,
|
#confirmation_popup,
|
||||||
#prompt_popup {
|
#prompt_popup {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -379,18 +389,11 @@ ul {
|
|||||||
#prompt_message {
|
#prompt_message {
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:active,
|
|
||||||
.button:active,
|
|
||||||
.interact:active {
|
|
||||||
transform: scale(0.96);
|
|
||||||
}
|
|
||||||
|
|
||||||
.popup__header {
|
.popup__header {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 1.5rem 0 0.5rem;
|
padding: 0 1.5rem 0 0.8rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
grid-template-columns: auto 1fr auto;
|
grid-template-columns: auto 1fr auto;
|
||||||
}
|
}
|
||||||
@ -445,8 +448,8 @@ details {
|
|||||||
}
|
}
|
||||||
strip-select {
|
strip-select {
|
||||||
--gap: 0;
|
--gap: 0;
|
||||||
background-color: var(--accent-color--light);
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
border-radius: 0.3rem;
|
border-radius: 0.2rem;
|
||||||
}
|
}
|
||||||
strip-option {
|
strip-option {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@ -455,10 +458,10 @@ strip-option {
|
|||||||
--active-option-color: rgba(var(--background-color), 1);
|
--active-option-color: rgba(var(--background-color), 1);
|
||||||
--active-option-background-color: var(--accent-color);
|
--active-option-background-color: var(--accent-color);
|
||||||
&:first-of-type {
|
&:first-of-type {
|
||||||
--border-radius: 0.3rem 0 0 0.3rem;
|
--border-radius: 0.2rem 0 0 0.2rem;
|
||||||
}
|
}
|
||||||
&:last-of-type {
|
&:last-of-type {
|
||||||
--border-radius: 0 0.3rem 0.3rem 0;
|
--border-radius: 0 0.2rem 0.2rem 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sm-select,
|
sm-select,
|
||||||
@ -477,6 +480,16 @@ sm-checkbox {
|
|||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
.tip {
|
||||||
|
border-radius: 1.5rem;
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
padding: 0.3rem 0.8rem;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
.icon {
|
||||||
|
fill: var(--accent-color);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
.page-layout {
|
.page-layout {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1.5rem minmax(0, 1fr) 1.5rem;
|
grid-template-columns: 1.5rem minmax(0, 1fr) 1.5rem;
|
||||||
@ -487,6 +500,9 @@ sm-checkbox {
|
|||||||
.page {
|
.page {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.mobile-page {
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
#landing {
|
#landing {
|
||||||
grid-template-rows: auto 1fr;
|
grid-template-rows: auto 1fr;
|
||||||
header {
|
header {
|
||||||
@ -527,38 +543,90 @@ sm-checkbox {
|
|||||||
}
|
}
|
||||||
#home {
|
#home {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: grid;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
align-content: flex-start;
|
align-content: flex-start;
|
||||||
grid-template-columns: minmax(0, 1fr);
|
}
|
||||||
|
#login_form {
|
||||||
|
width: min(24rem, 100%);
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
#login_form__priv_key {
|
#login_form__priv_key {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main_header {
|
#main_header {
|
||||||
margin-top: 1.5rem;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
padding: 1.5rem;
|
||||||
|
width: 100%;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
grid-template-columns: 1fr auto auto;
|
grid-template-columns: 1fr auto auto;
|
||||||
grid-column: 1/-1;
|
grid-column: 1/-1;
|
||||||
}
|
}
|
||||||
|
#main_navbar {
|
||||||
.rate-card {
|
width: 100%;
|
||||||
grid-template-columns: auto 1fr auto;
|
|
||||||
gap: 1rem;
|
|
||||||
padding: 1rem;
|
|
||||||
border-radius: 0.5rem;
|
|
||||||
border: solid rgba(var(--text-color), 0.2) thin;
|
|
||||||
background-color: rgba(var(--background-color), 1);
|
|
||||||
}
|
}
|
||||||
|
.main_navbar__item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
flex: 1;
|
||||||
|
padding: 0.5rem 0;
|
||||||
|
.item__title,
|
||||||
|
.icon {
|
||||||
|
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
|
||||||
|
opacity 0.3s;
|
||||||
|
}
|
||||||
|
.item__title {
|
||||||
|
color: rgba(var(--text-color), 0.8);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.icon {
|
||||||
|
height: 1.2rem;
|
||||||
|
margin-bottom: 0.3rem;
|
||||||
|
}
|
||||||
|
&--active {
|
||||||
|
.item__title {
|
||||||
|
color: var(--accent-color);
|
||||||
|
}
|
||||||
|
.icon {
|
||||||
|
fill: var(--accent-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#pages_container {
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 0 1.5rem;
|
||||||
|
& > * {
|
||||||
|
min-width: min(26rem, 100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.listed-asset {
|
||||||
|
position: relative;
|
||||||
|
grid-template-columns: auto 1fr auto;
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 1rem 0;
|
||||||
|
|
||||||
#trade_form,
|
border-radius: 0.5rem;
|
||||||
#login_form {
|
opacity: 0.8;
|
||||||
align-self: flex-start;
|
font-weight: 400;
|
||||||
padding: 1rem 1.5rem 1.5rem 1.5rem;
|
transition: background-color 0.3s;
|
||||||
|
user-select: none;
|
||||||
|
color: inherit;
|
||||||
|
&__icon {
|
||||||
|
display: flex;
|
||||||
|
.icon {
|
||||||
|
height: 1.5rem;
|
||||||
|
width: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.quantity-selector {
|
.quantity-selector {
|
||||||
.button {
|
.button {
|
||||||
@ -567,6 +635,12 @@ sm-checkbox {
|
|||||||
margin-left: 0.5rem;
|
margin-left: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#quantity_selector_tip {
|
||||||
|
&::first-letter {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#quantity_type,
|
#quantity_type,
|
||||||
#wallet_quantity_type {
|
#wallet_quantity_type {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
@ -578,32 +652,51 @@ sm-checkbox {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
min-width: 8ch;
|
min-width: 8ch;
|
||||||
}
|
}
|
||||||
#my_orders_section,
|
#exchange_wrapper {
|
||||||
#market_orders_section {
|
display: flex;
|
||||||
padding-top: 1rem;
|
flex-direction: column;
|
||||||
.icon {
|
height: 100%;
|
||||||
height: 1.2rem;
|
}
|
||||||
width: 1.2rem;
|
#asset_page {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
#asset_page__nav {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 1rem 0;
|
||||||
|
.icon-only {
|
||||||
|
margin-left: -0.7rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.orders_section__header {
|
#trade_form {
|
||||||
padding: 0 1.5rem;
|
height: 100%;
|
||||||
}
|
&::part(form) {
|
||||||
#my_orders_section__header {
|
display: flex;
|
||||||
height: 2.4rem;
|
flex-direction: column;
|
||||||
}
|
gap: 0;
|
||||||
#orders_section__header--primary {
|
|
||||||
sm-tab-header {
|
|
||||||
--gap: 1.5rem;
|
|
||||||
}
|
}
|
||||||
sm-tab {
|
& > * {
|
||||||
font-size: 0.9rem;
|
margin-bottom: 1rem;
|
||||||
--padding: 0.8rem 0;
|
}
|
||||||
|
& > :last-child {
|
||||||
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#my_orders,
|
||||||
|
#market {
|
||||||
|
width: min(42rem, 100%);
|
||||||
|
grid-template-rows: auto 1fr;
|
||||||
|
}
|
||||||
|
.orders_section__header {
|
||||||
|
min-height: 2.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
.list__item {
|
.list__item {
|
||||||
padding: 0.5rem 1.5rem;
|
padding: 0.5rem 0;
|
||||||
display: grid;
|
display: grid;
|
||||||
}
|
}
|
||||||
.order-card {
|
.order-card {
|
||||||
@ -614,6 +707,7 @@ sm-checkbox {
|
|||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
|
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
|
||||||
grid-template-columns: min-content repeat(3, 1fr) min-content;
|
grid-template-columns: min-content repeat(3, 1fr) min-content;
|
||||||
|
border-radius: 0.5rem;
|
||||||
&__type {
|
&__type {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@ -694,13 +788,14 @@ sm-checkbox {
|
|||||||
}
|
}
|
||||||
.list__header {
|
.list__header {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
padding: 0 1.5rem;
|
|
||||||
grid-template-columns: repeat(3, 1fr) 2rem;
|
grid-template-columns: repeat(3, 1fr) 2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#user_section {
|
#wallet {
|
||||||
|
display: grid;
|
||||||
|
width: auto;
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
padding: 1.5rem;
|
grid-template-columns: minmax(0, 1fr);
|
||||||
align-content: flex-start;
|
align-content: flex-start;
|
||||||
}
|
}
|
||||||
.wallet_actions__wrapper {
|
.wallet_actions__wrapper {
|
||||||
@ -716,18 +811,27 @@ sm-checkbox {
|
|||||||
color: rgba(var(--text-color), 0.8);
|
color: rgba(var(--text-color), 0.8);
|
||||||
margin-bottom: 0.2rem;
|
margin-bottom: 0.2rem;
|
||||||
}
|
}
|
||||||
|
#my_assets {
|
||||||
|
gap: 0.5rem;
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
.balance-card {
|
.balance-card {
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.3rem 1rem;
|
gap: 0 0.5rem;
|
||||||
padding: 0.5rem 0;
|
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
|
background-color: rgba(var(--foreground-color), 1);
|
||||||
|
padding: 0.5rem;
|
||||||
&.is-locked {
|
&.is-locked {
|
||||||
grid-template-columns: auto 1fr;
|
padding: 1rem 0.5rem;
|
||||||
gap: 1rem;
|
grid-template-columns: auto 1fr auto;
|
||||||
|
gap: 0.5rem;
|
||||||
|
.balance-card__icon {
|
||||||
|
grid-row: span 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&:not(.is-locked) {
|
&:not(.is-locked) {
|
||||||
grid-template-columns: auto 1fr auto;
|
grid-template-columns: auto 1fr auto auto;
|
||||||
}
|
}
|
||||||
&__icon {
|
&__icon {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -747,7 +851,7 @@ sm-checkbox {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
&__amount-wrapper {
|
&__amount-wrapper {
|
||||||
grid-column: span 2;
|
grid-column: 2/3;
|
||||||
gap: 0.3rem 1rem;
|
gap: 0.3rem 1rem;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
& > :nth-child(even) {
|
& > :nth-child(even) {
|
||||||
@ -788,7 +892,11 @@ sm-checkbox {
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#wallet_result__cta {
|
||||||
|
padding: 1.5rem 1rem;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
}
|
||||||
.stateful-button-wrapper {
|
.stateful-button-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -871,61 +979,35 @@ sm-checkbox {
|
|||||||
@media screen and (max-width: 40rem) and (any-hover: none) {
|
@media screen and (max-width: 40rem) and (any-hover: none) {
|
||||||
.cancel-order {
|
.cancel-order {
|
||||||
span {
|
span {
|
||||||
display: none;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 40rem) {
|
@media screen and (max-width: 40rem) {
|
||||||
#main_header {
|
|
||||||
padding: 0 1.5rem;
|
|
||||||
}
|
|
||||||
sm-button {
|
sm-button {
|
||||||
--padding: 0.9rem 1.6rem;
|
--padding: 0.9rem 1.6rem;
|
||||||
}
|
}
|
||||||
#home {
|
.empty-state {
|
||||||
& > :last-child {
|
align-self: center;
|
||||||
padding-bottom: 5rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#bottom_nav {
|
.main_navbar__item--active {
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
|
||||||
background-color: var(--foreground-color);
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.bottom_nav__item {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
flex: 1;
|
|
||||||
padding: 0.5rem 0;
|
|
||||||
.item__title,
|
|
||||||
.icon {
|
|
||||||
transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
||||||
}
|
|
||||||
.item__title {
|
.item__title {
|
||||||
color: rgba(var(--text-color), 0.8);
|
transform: translateY(100%);
|
||||||
font-size: 0.8rem;
|
opacity: 0;
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
.icon {
|
.icon {
|
||||||
height: 1.2rem;
|
transform: translateY(50%) scale(1.2);
|
||||||
margin-bottom: 0.3rem;
|
|
||||||
}
|
|
||||||
&--active {
|
|
||||||
.item__title {
|
|
||||||
color: var(--accent-color);
|
|
||||||
transform: translateY(100%);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
.icon {
|
|
||||||
transform: translateY(50%) scale(1.2);
|
|
||||||
fill: var(--accent-color);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.hide-on-mobile {
|
.hide-on-mobile {
|
||||||
display: none;
|
display: none !important;
|
||||||
|
}
|
||||||
|
.listed-asset {
|
||||||
|
border-radius: 0;
|
||||||
|
border-bottom: solid thin rgba(var(--text-color), 0.1);
|
||||||
|
}
|
||||||
|
#price_chart_container {
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 40rem) {
|
@media screen and (min-width: 40rem) {
|
||||||
@ -948,7 +1030,7 @@ sm-checkbox {
|
|||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
.popup__header {
|
.popup__header {
|
||||||
padding: 1rem 1.5rem 0 0.5rem;
|
padding: 1rem 1.5rem 0 0.8rem;
|
||||||
}
|
}
|
||||||
#confirmation_popup {
|
#confirmation_popup {
|
||||||
--width: 24rem;
|
--width: 24rem;
|
||||||
@ -956,44 +1038,124 @@ sm-checkbox {
|
|||||||
.page-layout {
|
.page-layout {
|
||||||
grid-template-columns: 1fr 90vw 1fr;
|
grid-template-columns: 1fr 90vw 1fr;
|
||||||
}
|
}
|
||||||
#home {
|
.mobile-page {
|
||||||
padding: 0 4vmax;
|
padding: 2rem;
|
||||||
gap: 1rem;
|
border-radius: 0.5rem;
|
||||||
|
background-color: rgba(var(--foreground-color), 1);
|
||||||
}
|
}
|
||||||
.hide-on-desktop {
|
.hide-on-desktop {
|
||||||
display: none;
|
display: none !important;
|
||||||
}
|
}
|
||||||
.card {
|
|
||||||
border-radius: 0.5rem;
|
|
||||||
background-color: var(--foreground-color);
|
|
||||||
border: solid thin rgba(var(--text-color), 0.1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media screen and (min-width: 48rem) {
|
|
||||||
#home {
|
#home {
|
||||||
grid-template-rows: min-content 1fr;
|
display: grid;
|
||||||
grid-template-columns: 24rem minmax(0, 1fr);
|
grid-template-columns: auto 1fr;
|
||||||
&.signed-in {
|
grid-template-rows: auto 1fr;
|
||||||
#orders_list,
|
grid-template-areas: "header header" "nav pages";
|
||||||
#market_orders_list {
|
}
|
||||||
height: 32vmin;
|
#main_header {
|
||||||
overflow-y: auto;
|
grid-area: header;
|
||||||
|
}
|
||||||
|
#main_navbar {
|
||||||
|
grid-area: nav;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
padding: 0 0.5rem;
|
||||||
|
}
|
||||||
|
.main_navbar__item {
|
||||||
|
padding: 1.5rem 1rem;
|
||||||
|
width: 100%;
|
||||||
|
flex: 0;
|
||||||
|
flex-direction: row;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
transition: background-color 0.3s;
|
||||||
|
.icon {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
.item__title {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
&--active {
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#pages_container {
|
||||||
|
grid-area: pages;
|
||||||
|
}
|
||||||
|
.is-signed-in {
|
||||||
|
#exchange {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
#exchange_wrapper {
|
||||||
|
display: grid;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
gap: 1.5rem;
|
||||||
|
grid-template-columns: 16rem minmax(0, 1fr);
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#price_history_chart {
|
||||||
|
height: 20rem;
|
||||||
|
}
|
||||||
|
#asset_list_wrapper {
|
||||||
|
grid-row: 1/3;
|
||||||
|
}
|
||||||
|
.listed-asset {
|
||||||
|
padding: 1rem;
|
||||||
|
&--active {
|
||||||
|
opacity: 1;
|
||||||
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
width: 0.25rem;
|
||||||
|
border-radius: 0 0.2rem 0.2rem 0;
|
||||||
|
height: 50%;
|
||||||
|
background-color: var(--accent-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#orders_section {
|
}
|
||||||
grid-row: span 2;
|
@media screen and (max-width: 64rem) and (min-width: 40rem) {
|
||||||
|
.main_navbar__item {
|
||||||
|
.icon {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
.item__title {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 64rem) {
|
@media screen and (min-width: 64rem) {
|
||||||
|
#home {
|
||||||
|
grid-template-columns: 10rem 1fr;
|
||||||
|
}
|
||||||
|
#asset_page {
|
||||||
|
display: grid;
|
||||||
|
gap: 1.5rem;
|
||||||
|
grid-template-columns: minmax(0, 1fr) 20rem;
|
||||||
|
}
|
||||||
|
#asset_page__nav {
|
||||||
|
grid-column: 1/-1;
|
||||||
|
}
|
||||||
|
#wallet {
|
||||||
|
gap: 1rem 2rem;
|
||||||
|
grid-template-columns: 20rem 24rem;
|
||||||
|
&__header {
|
||||||
|
grid-column: 1/3;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
.balance-card {
|
||||||
|
border: solid thin rgba(var(--text-color), 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 72rem) {
|
@media screen and (min-width: 72rem) {
|
||||||
.page-layout {
|
.page-layout {
|
||||||
grid-template-columns: 1fr 80vw 1fr;
|
grid-template-columns: 1fr 80vw 1fr;
|
||||||
}
|
}
|
||||||
#home.signed-in {
|
|
||||||
grid-template-columns: 24rem minmax(0, 1fr) 20rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media screen and (min-width: 120rem) {
|
@media screen and (min-width: 120rem) {
|
||||||
.page-layout {
|
.page-layout {
|
||||||
@ -1014,13 +1176,6 @@ sm-checkbox {
|
|||||||
background: rgba(var(--text-color), 0.5);
|
background: rgba(var(--text-color), 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.interact,
|
|
||||||
button {
|
|
||||||
transition: background-color 0.3s, transform 0.3s;
|
|
||||||
&:hover {
|
|
||||||
background-color: var(--accent-color--light);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.order-card {
|
.order-card {
|
||||||
.cancel-order {
|
.cancel-order {
|
||||||
justify-self: flex-end;
|
justify-self: flex-end;
|
||||||
|
|||||||
1563
docs/index.html
1563
docs/index.html
File diff suppressed because one or more lines are too long
@ -42,7 +42,7 @@
|
|||||||
return reject("Invalid amount");
|
return reject("Invalid amount");
|
||||||
this.getBalance(senderID, token).then(bal => {
|
this.getBalance(senderID, token).then(bal => {
|
||||||
if (amount > bal)
|
if (amount > bal)
|
||||||
return reject("Insufficient token balance");
|
return reject(`Insufficient ${token}# balance`);
|
||||||
floBlockchainAPI.writeData(senderID, `send ${amount} ${token}# ${message}`, privKey, receiverID)
|
floBlockchainAPI.writeData(senderID, `send ${amount} ${token}# ${message}`, privKey, receiverID)
|
||||||
.then(txid => resolve(txid))
|
.then(txid => resolve(txid))
|
||||||
.catch(error => reject(error))
|
.catch(error => reject(error))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user