diff --git a/css/main.css b/css/main.css index 29f1665..2fcf665 100644 --- a/css/main.css +++ b/css/main.css @@ -17,7 +17,7 @@ body { body { --accent-color: #3d5afe; --secondary-color: #ffac2e; - --text-color: 34, 34, 34; + --text-color: 54, 54, 54; --foreground-color: 252, 253, 255; --background-color: 241, 243, 248; --danger-color: rgb(255, 75, 75); @@ -56,6 +56,7 @@ strong { line-height: 1.7; color: rgba(var(--text-color), 0.9); max-width: 70ch; + font-size: 0.9rem; } img { @@ -87,6 +88,22 @@ a:any-link:focus-visible { outline: rgba(var(--text-color), 1) 0.1rem solid; } +input[type=datetime-local] { + width: 100%; + padding: 0.8rem 0.6rem; + border: none; + border-radius: 0.5rem; + font-weight: 500; + font-family: inherit; + font-size: inherit; + color: inherit; + background-color: rgba(var(--text-color), 0.06); +} +input[type=datetime-local]:focus { + outline: none; + box-shadow: 0 0 0 0.1rem var(--accent-color); +} + button, .button { -webkit-user-select: none; @@ -100,10 +117,10 @@ button, color: inherit; -webkit-tap-highlight-color: transparent; align-items: center; - font-size: inherit; + font-size: 0.9rem; font-weight: 500; white-space: nowrap; - padding: 0.8rem; + padding: 0.5rem 1rem; border-radius: 0.3rem; justify-content: center; flex-shrink: 0; @@ -122,6 +139,7 @@ button:not(:disabled), border: solid thin rgba(var(--text-color), 0.06); } .button--primary { + padding: 0.6rem 1rem; color: rgba(var(--background-color), 1); background-color: var(--accent-color); } @@ -145,8 +163,12 @@ button:not(:disabled), padding: 0.4rem 0.6rem; } .button--outlined { - border: solid rgba(var(--text-color), 0.3) 0.1rem; - background-color: rgba(var(--foreground-color), 1); + border: solid var(--accent-color) 1px; + background-color: transparent; + color: var(--accent-color); +} +.button--outlined .icon { + fill: var(--accent-color); } .button--transparent { background-color: transparent; @@ -198,7 +220,7 @@ details summary { user-select: none; cursor: pointer; align-items: center; - justify-content: space-between; + gap: 1rem; color: var(--accent-color); } @@ -380,6 +402,10 @@ ul { justify-content: center; } +.justify-items-center { + justify-items: center; +} + .justify-right { margin-left: auto; } @@ -575,6 +601,17 @@ ul { display: none; } +.password-field label { + display: flex; + flex-shrink: 0; +} +.password-field label input:checked ~ .visible { + display: none; +} +.password-field label input:not(:checked) ~ .invisible { + display: none; +} + .multi-state-button { display: grid; text-align: center; @@ -586,6 +623,7 @@ ul { } .multi-state-button button { z-index: 1; + width: 100%; } #confirmation_popup, @@ -667,10 +705,102 @@ ul { background: rgba(var(--text-color), 0.06); margin: 1.5rem 0; } +.card + .card { + margin-top: 0; +} .card h2 { margin-bottom: 1.5rem; } +#main_header { + display: grid; + grid-template-columns: 1fr auto; + grid-template-areas: "search theme"; + margin-top: 1rem; + gap: 1rem; +} + +#logo { + grid-area: logo; + color: inherit; + margin-right: auto; +} + +.app-brand { + display: flex; + gap: 0.3rem; + align-items: center; +} +.app-brand .icon { + height: 1.7rem; + width: 1.7rem; +} + +.app-name__company { + font-size: 0.8rem; + font-weight: 500; + color: rgba(var(--text-color), 0.8); +} + +theme-toggle { + grid-area: theme; + justify-self: end; + align-self: center; +} + +#search_wrapper { + grid-area: search; + width: min(28rem, 100%); + position: relative; +} + +#main_search_field { + width: 100%; + --min-height: 2.8rem; + font-weight: 500; + border: solid thin rgba(var(--text-color), 0.3); + border-radius: 0.5rem; +} + +#suggestions { + position: absolute; + top: 100%; + left: 0; + width: 100%; + background: rgba(var(--foreground-color), 1); + border-radius: 0.5rem; + z-index: 1; + overflow: hidden; + max-height: 0; + transition: max-height 0.2s ease-in-out; +} +#suggestions:not(:empty) { + margin-top: 0.3rem; + max-height: 20rem; + overflow-y: auto; + box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.16); + border: solid thin rgba(var(--text-color), 0.3); +} + +.suggestion { + padding: 0.8rem 1rem; + display: flex; + align-items: center; + color: rgba(var(--text-color), 0.9); + font-weight: 500; + font-size: 0.9rem; + cursor: pointer; +} +.suggestion:hover, .suggestion:active, .suggestion:focus { + background: rgba(var(--text-color), 0.06); + outline: none; +} +.suggestion .address { + font-size: 0.8rem; + color: rgba(var(--text-color), 0.6); + margin-left: auto; +} + .transaction-container { display: grid; margin-top: 1.5rem; @@ -688,7 +818,7 @@ ul { .label:first-of-type { margin-top: 0; } -.label + * { +.label + :is(h1, h2, h3, h4, h5, h6, p, span, sm-copy, a) { font-weight: 700; } @@ -698,6 +828,8 @@ ul { } #homepage { + display: grid; + gap: 3rem 1rem; padding-top: 0; } @@ -751,19 +883,31 @@ header.grid-2 { } } #highlights { - padding: 1.5rem 0; display: grid; - grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.5rem; + margin-top: 2rem; } #highlights .highlight-item { + position: relative; opacity: 0; display: flex; flex-direction: column; padding: 1rem 1.5rem; - border-left: 0.1rem solid rgba(var(--text-color), 0.2); + border-left: 1px solid var(--accent-color); --animation-duration: 0.3s; } +#highlights .highlight-item::before { + content: ""; + position: absolute; + width: 0.2rem; + height: 1rem; + top: 0; + left: 0; + border-radius: 0 0.1rem 0.1rem 0; + display: inline-block; + background-color: var(--accent-color); +} #highlights .highlight-item .label { margin-top: auto; } @@ -797,84 +941,10 @@ header.grid-2 { animation: flyInLeft var(--animation-duration) 0.3s forwards; } -#main_header { +#top_smart_contracts_container { display: grid; - grid-template-columns: 1fr auto; - grid-template-areas: "search theme"; - margin-top: 1rem; gap: 1rem; -} - -#logo { - grid-area: logo; - color: inherit; -} - -.app-brand { - display: flex; - gap: 0.3rem; - align-items: center; -} -.app-brand .icon { - height: 1.7rem; - width: 1.7rem; -} - -.app-name__company { - font-size: 0.8rem; - font-weight: 500; - color: rgba(var(--text-color), 0.8); -} - -theme-toggle { - grid-area: theme; - justify-self: end; - align-self: center; -} - -#search_wrapper { - grid-area: search; - width: min(28rem, 100%); - position: relative; -} - -#main_search_field { - width: 100%; - --min-height: 2.8rem; - font-weight: 500; -} - -#suggestions { - position: absolute; - top: 100%; - left: 0; - width: 100%; - background: rgba(var(--foreground-color), 1); - border-radius: 0.5rem; - z-index: 1; - overflow: hidden; - max-height: 0; - transition: max-height 0.2s ease-in-out; -} -#suggestions:not(:empty) { - max-height: 20rem; - overflow-y: auto; -} - -.suggestion { - padding: 0.8rem 1rem; - display: flex; - align-items: center; - cursor: pointer; -} -.suggestion:hover, .suggestion:active, .suggestion:focus { - background: rgba(var(--text-color), 0.06); - outline: none; -} -.suggestion .address { - font-size: 0.8rem; - color: rgba(var(--text-color), 0.6); - margin-left: auto; + grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); } #page_header { @@ -966,6 +1036,9 @@ theme-toggle { .status.active::before { background-color: var(--green); } +.status.expired::before { + background-color: var(--yellow); +} .status.closed::before { background-color: var(--danger-color); } @@ -982,14 +1055,18 @@ theme-toggle { .address { text-transform: none !important; word-break: break-all; + font-weight: 700; } -.contract-choice { +#winners_container { + display: grid; + gap: 1rem; +} + +.contract-winner { display: grid; gap: 0.5rem 1rem; -} -.contract-choice:last-of-type { - margin-bottom: 0; + font-size: 0.95rem; } #token_balance_list { @@ -1084,9 +1161,8 @@ theme-toggle { #all_blocks_page, #top_blocks_container { display: grid; - grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; - margin-top: 1rem; } .block-card { @@ -1116,11 +1192,11 @@ theme-toggle { padding: 1.5rem 0; } -#view-wrappe .view-wrapper { +.view-wrapper { display: grid; align-items: flex-start; } -#view-wrappe .view-wrapper > * { +.view-wrapper > * { grid-area: 1/1; } @@ -1140,6 +1216,7 @@ theme-toggle { .participant, .deposit-card { flex-wrap: wrap; + align-items: center; gap: 2rem; background-color: rgba(var(--foreground-color), 1); padding: max(1rem, 1.5vw); @@ -1148,6 +1225,7 @@ theme-toggle { .participant .address, .deposit-card .address { min-width: 12rem; + flex: 1; } #transaction_page { @@ -1159,15 +1237,43 @@ theme-toggle { min-width: 12rem; } -#smart_contract_list { +#goal_progress_wrapper { + position: relative; + display: flex; + height: 0.3rem; + background-color: rgba(var(--text-color), 0.3); + border-radius: 1rem; +} + +.progress-bar { + position: relative; + background-color: var(--accent-color); + width: var(--progress); + border-radius: 1rem; +} + +.goal-milestone { + position: relative; + align-items: center; + padding-top: 1rem; + font-size: 0.9rem; +} +.goal-milestone:last-of-type { + margin-left: auto; + text-align: end; + align-items: flex-end; +} + +.smart-contract-list { display: grid; gap: 1rem; margin-top: 1rem; - grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); } .sc-card { - display: grid; + display: flex; + flex-direction: column; gap: 1rem; background-color: rgba(var(--foreground-color), 1); padding: max(1rem, 1.5vw); @@ -1198,15 +1304,13 @@ theme-toggle { .sc-card__info-link .icon { fill: var(--accent-color); } -.sc-card > :last-child { +.sc-card .sc-card__actions { justify-content: flex-end; padding-top: 1rem; + margin-top: auto; } -.sc-card > :last-child .button { - background-color: transparent; - border: solid 1px var(--accent-color); - font-size: 0.9rem; - padding: 0.5rem 1rem; +.sc-card .badge { + margin-right: auto; } .involved-tokens li { @@ -1249,6 +1353,194 @@ theme-toggle { display: none; } +fieldset { + padding: 0.5rem; + border-radius: 0.5rem; + border: solid 1px rgba(var(--text-color), 0.3); +} +fieldset legend { + padding: 0 0.5rem; +} +fieldset label { + padding: 0.3rem 0.5rem; +} +fieldset label:has(input:not(:disabled):not(:checked)) { + cursor: pointer; +} +fieldset input[type=radio] { + height: 1.1em; + width: 1.1em; + margin-right: 0.5rem; + accent-color: var(--accent-color); +} + +#smart_contract_creation_popup { + --width: min(32rem, 100%); +} +#smart_contract_creation_popup::part(popup) { + view-transition-name: sc-popup; +} +#smart_contract_creation_popup::part(popup-header) { + view-transition-name: sc-popup-header; +} + +::view-transition-old(sc-popup), +::view-transition-new(sc-popup) { + -webkit-animation-duration: 0.3s; + animation-duration: 0.3s; + height: 100%; + width: 100%; +} + +.smart-contract-template { + display: grid; + grid-template-areas: "heading arrow" "description arrow"; + grid-template-columns: 1fr auto; + padding: max(1rem, 2vw); + border: solid 1px rgba(var(--text-color), 0.3); + border-radius: 0.5rem; + gap: 0.5rem; + text-align: start; + white-space: normal; + width: 100%; + justify-content: flex-start; +} +.smart-contract-template h4 { + grid-area: heading; +} +.smart-contract-template p { + grid-area: description; + font-weight: 400; + line-height: 1.3; + font-size: 0.9rem; + color: rgba(var(--text-color), 0.8); + text-transform: none; +} +.smart-contract-template .icon { + margin-top: auto; + grid-area: arrow; + border: solid 1px rgba(var(--text-color), 0.3); + border-radius: 3rem; + padding: 0.4rem; + height: 2rem; + width: 2rem; + fill: var(--accent-color); +} + +.payee-address-wrapper { + display: grid; + grid-template-columns: 1fr auto; + gap: 0.5rem; +} +.payee-address-wrapper:first-of-type { + grid-template-areas: "address" "share"; +} +.payee-address-wrapper:not(:first-of-type) { + grid-template-areas: "address address" "share button"; +} +.payee-address-wrapper .payee-address { + grid-area: address; +} +.payee-address-wrapper .payee-share { + grid-area: share; +} +.payee-address-wrapper .icon-only { + grid-area: button; +} +.payee-address-wrapper .icon-only { + height: 3.18rem; +} + +.choice-wrapper { + display: grid; + grid-template-columns: 1fr auto; + gap: 0.5rem; +} +.choice-wrapper .icon-only { + aspect-ratio: 1/1; + height: 3.18rem; +} + +#transaction_result { + display: grid; + gap: 1.5rem; + height: max(40vh, 24rem); + align-items: center; + justify-content: center; + text-align: center; + align-content: center; +} +#transaction_result:empty { + display: none; +} +#transaction_result h3 { + text-align: center; + width: 100%; +} +#transaction_result > .icon { + justify-self: center; + height: 4rem; + width: 4rem; + border-radius: 5rem; + margin-bottom: 1rem; + -webkit-animation: popup 1s; + animation: popup 1s; +} +#transaction_result > .icon--success { + fill: rgba(var(--background-color), 1); + padding: 1rem; + background-color: #0bbe56; +} +#transaction_result > .icon--failed { + background-color: rgba(var(--text-color), 0.03); + fill: var(--danger-color); +} +#transaction_result sm-copy { + font-size: 0.8rem; +} +#transaction_result #transaction_link { + justify-self: center; +} + +@-webkit-keyframes popup { + 0% { + opacity: 0; + transform: scale(0.2) translateY(600%); + } + 10% { + transform: scale(0.2) translateY(5rem); + opacity: 1; + } + 40% { + transform: scale(0.2) translateY(0); + } + 80% { + transform: scale(1.1) translateY(0); + } + 100% { + transform: scale(1) translateY(0); + } +} + +@keyframes popup { + 0% { + opacity: 0; + transform: scale(0.2) translateY(600%); + } + 10% { + transform: scale(0.2) translateY(5rem); + opacity: 1; + } + 40% { + transform: scale(0.2) translateY(0); + } + 80% { + transform: scale(1.1) translateY(0); + } + 100% { + transform: scale(1) translateY(0); + } +} @media only screen and (max-width: 640px) { .hide-on-small { display: none; @@ -1286,7 +1578,7 @@ theme-toggle { .transaction > .icon:first-of-type { grid-area: 1/1/3/2; } - .contract-choice { + .contract-winner { grid-template-columns: 2fr 1fr 1fr; align-items: center; } @@ -1318,11 +1610,24 @@ theme-toggle { .transfer-step > :nth-child(3) { flex: 1; } + .payee-address-wrapper { + display: grid; + grid-template-columns: 1fr 8rem 3rem; + } + .payee-address-wrapper:first-of-type { + grid-template-areas: "address share share"; + } + .payee-address-wrapper:not(:first-of-type) { + grid-template-areas: "address share button"; + } } @media only screen and (min-width: 1280px) { .margin, .page { - margin: 0 10vw; + margin: 0 8vw; + } + #homepage { + grid-template-columns: 1fr 22rem; } } @media (hover: hover) { diff --git a/css/main.min.css b/css/main.min.css index 6ac9885..78a4d81 100644 --- a/css/main.min.css +++ b/css/main.min.css @@ -1 +1 @@ -*{padding:0;margin:0;box-sizing:border-box;font-family:"Inter",sans-serif}:root{font-size:clamp(1rem,1.2vmax,1.5rem)}html,body{height:100%}body{--accent-color: #3d5afe;--secondary-color: #ffac2e;--text-color: 34, 34, 34;--foreground-color: 252, 253, 255;--background-color: 241, 243, 248;--danger-color: rgb(255, 75, 75);--green: #1cad59;--yellow: rgb(220, 165, 0);color:rgba(var(--text-color), 1);background-color:rgba(var(--background-color), 1)}body[data-theme=dark]{--accent-color: #92a2ff;--secondary-color: #d60739;--text-color: 200, 200, 200;--foreground-color: 27, 28, 29;--background-color: 21, 22, 22;--danger-color: rgb(255, 106, 106);--green: #00e676;--yellow: rgb(255, 213, 5)}body[data-theme=dark] ::-webkit-calendar-picker-indicator{filter:invert(1)}h1,h2,h3,h4,h5,h6{letter-spacing:-0.01em;font-weight:700}p,strong{line-height:1.7;color:rgba(var(--text-color), 0.9);max-width:70ch}img{-o-object-fit:cover;object-fit:cover}a:where([class]){color:inherit;text-decoration:none}a:where([class]):focus-visible{box-shadow:0 0 0 .1rem rgba(var(--text-color), 1) inset}a{color:var(--accent-color)}a:-webkit-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:-moz-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}button,.button{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:inline-flex;border:none;background-color:rgba(0,0,0,0);overflow:hidden;color:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;font-size:inherit;font-weight:500;white-space:nowrap;padding:.8rem;border-radius:.3rem;justify-content:center;flex-shrink:0}button:focus-visible,.button:focus-visible{outline:var(--accent-color) solid medium}button:not(:disabled),.button:not(:disabled){cursor:pointer}.button{background-color:rgba(var(--text-color), 0.02);border:solid thin rgba(var(--text-color), 0.06)}.button--primary{color:rgba(var(--background-color), 1);background-color:var(--accent-color)}.button--primary .icon{fill:rgba(var(--background-color), 1)}.button--colored{color:var(--accent-color)}.button--colored .icon{fill:var(--accent-color)}.button--danger{background-color:rgba(255,115,115,.062745098);color:var(--danger-color)}.button--danger .icon{fill:var(--danger-color)}.button--small{padding:.4rem .6rem}.button--outlined{border:solid rgba(var(--text-color), 0.3) .1rem;background-color:rgba(var(--foreground-color), 1)}.button--transparent{background-color:rgba(0,0,0,0)}button:disabled{opacity:.4;cursor:not-allowed;filter:saturate(0)}.cta{text-transform:uppercase;font-size:.8rem;font-weight:700;letter-spacing:.05em;padding:.8rem 1rem}.icon{width:1.2rem;height:1.2rem;fill:rgba(var(--text-color), 0.8);flex-shrink:0}.icon-only{padding:.5rem;border-radius:.3rem;aspect-ratio:1/1}a:-webkit-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:-moz-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}details summary{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;align-items:center;justify-content:space-between;color:var(--accent-color)}details[open] summary{margin-bottom:1rem}details[open]>summary .down-arrow{transform:rotate(180deg)}sm-input{--border-radius: 0.5rem;--background-color: rgba(var(--foreground-color), 1)}sm-spinner{--size: 1.5rem;--stroke-width: 0.1rem}sm-chips{--gap: 0.3rem}sm-chip{position:relative;font-size:.9rem;--border-radius: 0.5rem;--padding: 0.5rem 0.8rem;--background: rgba(var(--text-color), 0.06);-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:500}sm-chip[selected]{--background: var(--accent-color);color:rgba(var(--background-color), 1)}ul{list-style:none}.interact{position:relative;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.overflow-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wrap-around{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word}.full-bleed{grid-column:1/-1}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0}.flex{display:flex}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.grid{display:grid}.flow-column{grid-auto-flow:column}.gap-0-3{gap:.3rem}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}.gap-1-5{gap:1.5rem}.gap-2{gap:2rem}.gap-3{gap:3rem}.text-align-right{text-align:right}.text-align-left{text-align:left}.align-items-start{align-items:flex-start}.align-items-center{align-items:center}.align-content-start{align-content:flex-start}.align-start{align-content:flex-start}.align-center{align-items:center}.align-end{align-items:flex-end}.text-center{text-align:center}.justify-start{justify-items:start}.justify-content-start{justify-content:start}.justify-content-center{justify-content:center}.justify-right{margin-left:auto}.align-self-start{align-self:start}.align-self-center{align-self:center}.align-self-end{align-self:end}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.flex-direction-column{flex-direction:column}.space-between{justify-content:space-between}.space-evenly{justify-content:space-evenly}.w-100{width:100%}.h-100{height:100%}.padding-block-1{padding-block:1rem}.margin-right-0-3{margin-right:.3rem}.margin-right-0-5{margin-right:.5rem}.margin-right-1{margin-right:1rem}.margin-left-0-5{margin-left:.5rem}.margin-left-auto{margin-left:auto}.margin-right-auto{margin-right:auto}.margin-top-1{margin-top:1rem}.margin-bottom-0-5{margin-bottom:.5rem}.margin-bottom-1{margin-bottom:1rem}.margin-bottom-2{margin-bottom:2rem}.margin-block-0-5{margin-block:.5rem}.margin-block-1{margin-block:1rem}.margin-block-1-5{margin-block:1.5rem}.margin-inline-1{margin-inline:1rem}.margin-inline-1-5{margin-inline:1.5rem}.hidden{display:none !important}.h1{font-size:2.5rem}.h2{font-size:2rem}.h3{font-size:1.4rem}.h4{font-size:1rem}.h5{font-size:.8rem}.grid-3{grid-template-columns:1fr auto auto}.flow-column{grid-auto-flow:column}.w-100{width:100%}.color-0-8{color:rgba(var(--text-color), 0.8)}.weight-400{font-weight:400}.weight-500{font-weight:500}.ws-pre-line{white-space:pre-line}.card{background-color:rgba(var(--foreground-color), 1);border-radius:.5rem;padding:max(1rem,3vw)}.ripple{height:8rem;width:8rem;position:absolute;border-radius:50%;transform:scale(0);background:radial-gradient(circle, rgba(var(--text-color), 0.3) 0%, rgba(0, 0, 0, 0) 50%);pointer-events:none}.interactive{position:relative;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.observe-empty-state:empty{display:none}.observe-empty-state:not(:empty)~.empty-state{display:none}.multi-state-button{display:grid;text-align:center;align-items:center;justify-items:center}.multi-state-button>*{grid-area:1/1/2/2}.multi-state-button button{z-index:1}#confirmation_popup,#prompt_popup{flex-direction:column}#confirmation_popup h4,#prompt_popup h4{font-size:1.2rem;margin-bottom:1rem}#confirmation_popup .flex,#prompt_popup .flex{margin-top:1rem}.popup__header{position:relative;display:grid;gap:.5rem;width:100%;padding:0 1.5rem;align-items:center}.popup__header>*{grid-row:1}.popup__header h3,.popup__header h4{grid-column:1/-1;justify-self:center;align-self:center}.popup__header__close{grid-column:1;margin-left:-1rem;justify-self:flex-start}section{position:relative}section .dark-background{display:grid;grid-template-rows:auto 1fr}ul[type=circle]{padding:1.5rem 2.5rem;list-style:circle}ul[type=circle] li{margin-bottom:1rem}ul[type=circle] li:last-of-type{margin-bottom:0}ul{list-style:none}.top-bottom-padding{padding:1.5rem 0}.margin,.page{margin:0 1rem}.page{display:flex;flex-direction:column}.card{padding:2rem 1.5rem;border-radius:.5rem;background:rgba(var(--text-color), 0.06);margin:1.5rem 0}.card h2{margin-bottom:1.5rem}.transaction-container{display:grid;margin-top:1.5rem;gap:.5rem}.label{text-transform:capitalize;font-size:.8rem;margin-bottom:.3rem;color:rgba(var(--text-color), 0.8);margin-top:1.5rem;font-weight:500}.label:first-of-type{margin-top:0}.label+*{font-weight:700}.header{justify-items:center;flex-direction:column}#homepage{padding-top:0}#first_section{display:grid}header.grid-2{margin-top:2rem}@-webkit-keyframes flyInLeft{from{opacity:0;transform:translateX(-0.5rem)}to{opacity:1;transform:none}}@keyframes flyInLeft{from{opacity:0;transform:translateX(-0.5rem)}to{opacity:1;transform:none}}@-webkit-keyframes flyInRight{from{opacity:0;transform:translateX(0.5rem)}to{opacity:1;transform:none}}@keyframes flyInRight{from{opacity:0;transform:translateX(0.5rem)}to{opacity:1;transform:none}}#highlights{padding:1.5rem 0;display:grid;grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr));gap:1.5rem}#highlights .highlight-item{opacity:0;display:flex;flex-direction:column;padding:1rem 1.5rem;border-left:.1rem solid rgba(var(--text-color), 0.2);--animation-duration: 0.3s}#highlights .highlight-item .label{margin-top:auto}#highlights .highlight-item h1{font-size:2rem;letter-spacing:.1rem;font-weight:500;text-transform:uppercase;overflow-wrap:break-word}#highlights .highlight-item:first-of-type{text-transform:uppercase}#highlights .highlight-item:nth-of-type(2){text-transform:capitalize}#highlights .highlight-item:first-of-type{-webkit-animation:flyInLeft var(--animation-duration) forwards;animation:flyInLeft var(--animation-duration) forwards}#highlights .highlight-item:nth-of-type(2){-webkit-animation:flyInLeft var(--animation-duration) .1s forwards;animation:flyInLeft var(--animation-duration) .1s forwards}#highlights .highlight-item:nth-of-type(3){-webkit-animation:flyInLeft var(--animation-duration) .2s forwards;animation:flyInLeft var(--animation-duration) .2s forwards}#highlights .highlight-item:last-of-type{-webkit-animation:flyInLeft var(--animation-duration) .3s forwards;animation:flyInLeft var(--animation-duration) .3s forwards}#main_header{display:grid;grid-template-columns:1fr auto;grid-template-areas:"search theme";margin-top:1rem;gap:1rem}#logo{grid-area:logo;color:inherit}.app-brand{display:flex;gap:.3rem;align-items:center}.app-brand .icon{height:1.7rem;width:1.7rem}.app-name__company{font-size:.8rem;font-weight:500;color:rgba(var(--text-color), 0.8)}theme-toggle{grid-area:theme;justify-self:end;align-self:center}#search_wrapper{grid-area:search;width:min(28rem,100%);position:relative}#main_search_field{width:100%;--min-height: 2.8rem;font-weight:500}#suggestions{position:absolute;top:100%;left:0;width:100%;background:rgba(var(--foreground-color), 1);border-radius:.5rem;z-index:1;overflow:hidden;max-height:0;transition:max-height .2s ease-in-out}#suggestions:not(:empty){max-height:20rem;overflow-y:auto}.suggestion{padding:.8rem 1rem;display:flex;align-items:center;cursor:pointer}.suggestion:hover,.suggestion:active,.suggestion:focus{background:rgba(var(--text-color), 0.06);outline:none}.suggestion .address{font-size:.8rem;color:rgba(var(--text-color), 0.6);margin-left:auto}#page_header{padding:1rem 0;align-items:center}#page_header button{margin-left:-0.7rem}#page_header h3{text-transform:capitalize}.page{padding:0 0 1rem 0}.page h3.heading{text-transform:capitalize}.page>h3.heading{margin-top:2rem}.balance-card{display:flex;flex-direction:column;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' style='fill:none; stroke: %23ffffff08'%3E%3Ccircle cx='3.5' cy='3.5' r='2.12'/%3E%3Ccircle cx='5' cy='10' r='1'/%3E%3Ccircle cx='8.5' cy='4.5' r='1.5'/%3E%3Ccircle cx='6' cy='33' r='2'/%3E%3Ccircle cx='14' cy='29' r='1'/%3E%3Ccircle cx='9.5' cy='22.5' r='1.5'/%3E%3Ccircle cx='29.5' cy='17.5' r='4.5'/%3E%3Ccircle cx='22' cy='8' r='1'/%3E%3Ccircle cx='15.5' cy='12.5' r='2.5'/%3E%3Ccircle cx='27.5' cy='30.5' r='0.5'/%3E%3Ccircle cx='18.5' cy='35.5' r='2.5'/%3E%3Ccircle cx='32' cy='36' r='1'/%3E%3Ccircle cx='35' cy='25' r='1'/%3E%3Ccircle cx='23' cy='21' r='2'/%3E%3Ccircle cx='36.5' cy='1.5' r='0.5'/%3E%3Ccircle cx='30.5' cy='3.5' r='1.5'/%3E%3Ccircle cx='34.5' cy='6.5' r='1.5'/%3E%3C/svg%3E"),linear-gradient(135deg, rgb(77, 32, 167), rgb(33, 16, 110));background-size:cover;color:#fff;border-radius:.5rem;padding:max(1.5rem,3vw);margin-bottom:2rem}.balance-card h2,.balance-card h3,.balance-card h4,.balance-card h5{opacity:.8}.balance-card h3{font-size:1.5rem}.balance-card .label{color:#fff;opacity:.7}.choice,.status{padding:.5rem .8rem;border-radius:2rem;display:inline-flex;align-items:center;margin-bottom:.5rem;text-transform:capitalize;margin-right:auto}.choice-container{display:flex;flex-wrap:wrap}.choice{border:solid 1px rgba(var(--text-color), 0.2)}.choice:last-of-type{margin-bottom:0}.status{position:relative;display:flex;align-items:center;font-weight:700;font-size:.9rem;margin-bottom:.5rem;letter-spacing:.01em;padding:0}.status::before{content:"";width:.8rem;height:.8rem;border-radius:50%;margin-right:.5rem;display:inline-block}.status.active::before{background-color:var(--green)}.status.closed::before{background-color:var(--danger-color)}.address,.token,.hash,.contract,.block-height{cursor:pointer;color:var(--accent-color)}.address{text-transform:none !important;word-break:break-all}.contract-choice{display:grid;gap:.5rem 1rem}.contract-choice:last-of-type{margin-bottom:0}#token_balance_list{display:flex;flex-wrap:wrap;gap:.5rem}.token-balance{display:flex;flex-direction:column;padding:1rem;background-color:rgba(0,0,0,.2);border-radius:.5rem;font-size:1.2rem}.transaction{display:grid;gap:1.5rem;padding:max(1rem,2vw);border-radius:.5rem;background-color:rgba(var(--foreground-color), 0.8)}.transaction .contract-info{align-items:flex-start;display:grid;gap:1.5rem;min-width:0}.transaction>.icon:first-of-type{fill:none;stroke:rgba(var(--text-color), 0.8);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;overflow:visible;height:2.5rem;width:2.5rem;padding:.7rem;border-radius:1rem;background:rgba(var(--text-color), 0.1)}.transaction time{font-size:.9rem}.badge{font-size:.8rem;padding:.2rem .5rem;border-radius:.5rem;background-color:rgba(var(--text-color), 0.1);color:rgba(var(--text-color), 0.8)}.transfer-steps{display:flex;flex-direction:column;gap:1rem}.transfer-step{display:flex;flex-direction:column;gap:1rem 2rem;border:solid thin rgba(var(--text-color), 0.4);padding:.5rem 1rem;border-radius:.5rem}.transfer-step>:nth-child(2){width:auto;transform:rotate(90deg)}#loading{position:fixed;display:grid;top:0;left:0;bottom:0;right:0;place-content:center;justify-items:center;background:rgba(var(--foreground-color), 1);z-index:10;height:100dvh}#loading h4{margin-top:1.5rem}#all_blocks_page,#top_blocks_container{display:grid;grid-template-columns:repeat(auto-fit, minmax(20rem, 1fr));gap:1rem;margin-top:1rem}.block-card{grid-template-columns:5rem 1fr auto;gap:1rem;background-color:rgba(var(--foreground-color), 1);padding:1rem;border-radius:.5rem}.block-card time{font-size:.8rem;color:rgba(var(--text-color), 0.8)}#token_balance_container{display:grid;gap:.5rem;margin-top:1.5rem}#token_balance_container .holder-balance{padding:1rem;border-radius:.5rem;background:rgba(var(--foreground-color), 1)}#error_page{padding:1.5rem 0}#view-wrappe .view-wrapper{display:grid;align-items:flex-start}#view-wrappe .view-wrapper>*{grid-area:1/1}.info-row{flex-direction:column;margin-bottom:1.3rem}#participant_container,#deposits_container{display:grid;gap:.5rem;background-color:rgba(0,0,0,0);padding:0}.participant,.deposit-card{flex-wrap:wrap;gap:2rem;background-color:rgba(var(--foreground-color), 1);padding:max(1rem,1.5vw);border-radius:.5rem}.participant .address,.deposit-card .address{min-width:12rem}#transaction_page{display:grid;gap:3rem}#transaction_page .card{margin:0;min-width:12rem}#smart_contract_list{display:grid;gap:1rem;margin-top:1rem;grid-template-columns:repeat(auto-fill, minmax(16rem, 1fr))}.sc-card{display:grid;gap:1rem;background-color:rgba(var(--foreground-color), 1);padding:max(1rem,1.5vw);border-radius:.5rem}.sc-card__type{display:flex;font-size:.85rem;font-weight:500;margin-right:auto;align-items:center}.sc-card__type::before{content:"";display:block;width:.15rem;height:1em;border-radius:0 .5rem .5rem 0;margin-right:.5rem;background-color:var(--accent-color)}.sc-card__info-link{display:flex;align-items:center;font-weight:500;font-size:.9rem}.sc-card__info-link .icon{fill:var(--accent-color)}.sc-card>:last-child{justify-content:flex-end;padding-top:1rem}.sc-card>:last-child .button{background-color:rgba(0,0,0,0);border:solid 1px var(--accent-color);font-size:.9rem;padding:.5rem 1rem}.involved-tokens li{padding:.2rem .5rem;border-radius:.2rem;background-color:rgba(var(--text-color), 0.06);font-size:.85rem;font-weight:500}.involved-tokens li a{color:rgba(var(--text-color), 0.8)}.involved-tokens li a:hover{text-decoration:underline}#filter_s_c_popup{--width: min(36rem, 100%)}#filter_s_c_popup__content{margin-bottom:1.5rem}.sc-filter{padding:.5rem .8rem;border-radius:.5rem;background-color:rgba(var(--text-color), 0.06);font-weight:500;font-size:.9rem}.sc-filter.selected{background-color:var(--accent-color);color:rgba(var(--background-color), 1)}.sc-filter.selected:hover{background-color:var(--accent-color) !important}.sc-filter input{display:none}@media only screen and (max-width: 640px){.hide-on-small{display:none}}@media only screen and (min-width: 640px){sm-popup{--width: 24rem}.popup__header{padding:1rem 1.5rem 0 1.5rem}.margin,.page{margin:0 4vw}section header h1{font-size:2rem}#main_header{grid-template-areas:"logo theme"}#search_wrapper{grid-area:1/1/2/-1;margin:0 auto;max-width:calc(100% - 16rem)}#page_header{padding:1.5rem 0}.transaction{grid-template-columns:auto 1fr;contain-intrinsic-height:20rem}.transaction>.icon:first-of-type{grid-area:1/1/3/2}.contract-choice{grid-template-columns:2fr 1fr 1fr;align-items:center}#contract_info{-moz-columns:24rem auto;columns:24rem auto;-moz-column-gap:4rem;column-gap:4rem}.info-row{flex-direction:row;gap:.5rem}.info-row h5{min-width:11rem;margin-bottom:0;margin-top:.2rem !important}.transfer-step{align-items:center;flex-direction:row}.transfer-step>:nth-child(1){flex:1}.transfer-step>:nth-child(2){transform:none}.transfer-step>:nth-child(3){flex:1}}@media only screen and (min-width: 1280px){.margin,.page{margin:0 10vw}}@media(hover: hover){.hover{cursor:pointer}::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background:rgba(var(--text-color), 0.3);border-radius:1rem}::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-color), 0.5)}.interact:not([disabled]){transition:background-color .3s}.interact:not([disabled]):hover{background-color:rgba(var(--text-color), 0.06)}.button:not([disabled]){transition:background-color .3s,filter .3s}.button:not([disabled]):hover{filter:contrast(2)}} \ No newline at end of file +*{padding:0;margin:0;box-sizing:border-box;font-family:"Inter",sans-serif}:root{font-size:clamp(1rem,1.2vmax,1.5rem)}html,body{height:100%}body{--accent-color: #3d5afe;--secondary-color: #ffac2e;--text-color: 54, 54, 54;--foreground-color: 252, 253, 255;--background-color: 241, 243, 248;--danger-color: rgb(255, 75, 75);--green: #1cad59;--yellow: rgb(220, 165, 0);color:rgba(var(--text-color), 1);background-color:rgba(var(--background-color), 1)}body[data-theme=dark]{--accent-color: #92a2ff;--secondary-color: #d60739;--text-color: 200, 200, 200;--foreground-color: 27, 28, 29;--background-color: 21, 22, 22;--danger-color: rgb(255, 106, 106);--green: #00e676;--yellow: rgb(255, 213, 5)}body[data-theme=dark] ::-webkit-calendar-picker-indicator{filter:invert(1)}h1,h2,h3,h4,h5,h6{letter-spacing:-0.01em;font-weight:700}p,strong{line-height:1.7;color:rgba(var(--text-color), 0.9);max-width:70ch;font-size:.9rem}img{-o-object-fit:cover;object-fit:cover}a:where([class]){color:inherit;text-decoration:none}a:where([class]):focus-visible{box-shadow:0 0 0 .1rem rgba(var(--text-color), 1) inset}a{color:var(--accent-color)}a:-webkit-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:-moz-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}input[type=datetime-local]{width:100%;padding:.8rem .6rem;border:none;border-radius:.5rem;font-weight:500;font-family:inherit;font-size:inherit;color:inherit;background-color:rgba(var(--text-color), 0.06)}input[type=datetime-local]:focus{outline:none;box-shadow:0 0 0 .1rem var(--accent-color)}button,.button{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:inline-flex;border:none;background-color:rgba(0,0,0,0);overflow:hidden;color:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;font-size:.9rem;font-weight:500;white-space:nowrap;padding:.5rem 1rem;border-radius:.3rem;justify-content:center;flex-shrink:0}button:focus-visible,.button:focus-visible{outline:var(--accent-color) solid medium}button:not(:disabled),.button:not(:disabled){cursor:pointer}.button{background-color:rgba(var(--text-color), 0.02);border:solid thin rgba(var(--text-color), 0.06)}.button--primary{padding:.6rem 1rem;color:rgba(var(--background-color), 1);background-color:var(--accent-color)}.button--primary .icon{fill:rgba(var(--background-color), 1)}.button--colored{color:var(--accent-color)}.button--colored .icon{fill:var(--accent-color)}.button--danger{background-color:rgba(255,115,115,.062745098);color:var(--danger-color)}.button--danger .icon{fill:var(--danger-color)}.button--small{padding:.4rem .6rem}.button--outlined{border:solid var(--accent-color) 1px;background-color:rgba(0,0,0,0);color:var(--accent-color)}.button--outlined .icon{fill:var(--accent-color)}.button--transparent{background-color:rgba(0,0,0,0)}button:disabled{opacity:.4;cursor:not-allowed;filter:saturate(0)}.cta{text-transform:uppercase;font-size:.8rem;font-weight:700;letter-spacing:.05em;padding:.8rem 1rem}.icon{width:1.2rem;height:1.2rem;fill:rgba(var(--text-color), 0.8);flex-shrink:0}.icon-only{padding:.5rem;border-radius:.3rem;aspect-ratio:1/1}a:-webkit-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:-moz-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}details summary{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;align-items:center;gap:1rem;color:var(--accent-color)}details[open] summary{margin-bottom:1rem}details[open]>summary .down-arrow{transform:rotate(180deg)}sm-input{--border-radius: 0.5rem;--background-color: rgba(var(--foreground-color), 1)}sm-spinner{--size: 1.5rem;--stroke-width: 0.1rem}sm-chips{--gap: 0.3rem}sm-chip{position:relative;font-size:.9rem;--border-radius: 0.5rem;--padding: 0.5rem 0.8rem;--background: rgba(var(--text-color), 0.06);-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:500}sm-chip[selected]{--background: var(--accent-color);color:rgba(var(--background-color), 1)}ul{list-style:none}.interact{position:relative;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.overflow-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wrap-around{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word}.full-bleed{grid-column:1/-1}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0}.flex{display:flex}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.grid{display:grid}.flow-column{grid-auto-flow:column}.gap-0-3{gap:.3rem}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}.gap-1-5{gap:1.5rem}.gap-2{gap:2rem}.gap-3{gap:3rem}.text-align-right{text-align:right}.text-align-left{text-align:left}.align-items-start{align-items:flex-start}.align-items-center{align-items:center}.align-content-start{align-content:flex-start}.align-start{align-content:flex-start}.align-center{align-items:center}.align-end{align-items:flex-end}.text-center{text-align:center}.justify-start{justify-items:start}.justify-content-start{justify-content:start}.justify-content-center{justify-content:center}.justify-items-center{justify-items:center}.justify-right{margin-left:auto}.align-self-start{align-self:start}.align-self-center{align-self:center}.align-self-end{align-self:end}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.flex-direction-column{flex-direction:column}.space-between{justify-content:space-between}.space-evenly{justify-content:space-evenly}.w-100{width:100%}.h-100{height:100%}.padding-block-1{padding-block:1rem}.margin-right-0-3{margin-right:.3rem}.margin-right-0-5{margin-right:.5rem}.margin-right-1{margin-right:1rem}.margin-left-0-5{margin-left:.5rem}.margin-left-auto{margin-left:auto}.margin-right-auto{margin-right:auto}.margin-top-1{margin-top:1rem}.margin-bottom-0-5{margin-bottom:.5rem}.margin-bottom-1{margin-bottom:1rem}.margin-bottom-2{margin-bottom:2rem}.margin-block-0-5{margin-block:.5rem}.margin-block-1{margin-block:1rem}.margin-block-1-5{margin-block:1.5rem}.margin-inline-1{margin-inline:1rem}.margin-inline-1-5{margin-inline:1.5rem}.hidden{display:none !important}.h1{font-size:2.5rem}.h2{font-size:2rem}.h3{font-size:1.4rem}.h4{font-size:1rem}.h5{font-size:.8rem}.grid-3{grid-template-columns:1fr auto auto}.flow-column{grid-auto-flow:column}.w-100{width:100%}.color-0-8{color:rgba(var(--text-color), 0.8)}.weight-400{font-weight:400}.weight-500{font-weight:500}.ws-pre-line{white-space:pre-line}.card{background-color:rgba(var(--foreground-color), 1);border-radius:.5rem;padding:max(1rem,3vw)}.ripple{height:8rem;width:8rem;position:absolute;border-radius:50%;transform:scale(0);background:radial-gradient(circle, rgba(var(--text-color), 0.3) 0%, rgba(0, 0, 0, 0) 50%);pointer-events:none}.interactive{position:relative;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.observe-empty-state:empty{display:none}.observe-empty-state:not(:empty)~.empty-state{display:none}.password-field label{display:flex;flex-shrink:0}.password-field label input:checked~.visible{display:none}.password-field label input:not(:checked)~.invisible{display:none}.multi-state-button{display:grid;text-align:center;align-items:center;justify-items:center}.multi-state-button>*{grid-area:1/1/2/2}.multi-state-button button{z-index:1;width:100%}#confirmation_popup,#prompt_popup{flex-direction:column}#confirmation_popup h4,#prompt_popup h4{font-size:1.2rem;margin-bottom:1rem}#confirmation_popup .flex,#prompt_popup .flex{margin-top:1rem}.popup__header{position:relative;display:grid;gap:.5rem;width:100%;padding:0 1.5rem;align-items:center}.popup__header>*{grid-row:1}.popup__header h3,.popup__header h4{grid-column:1/-1;justify-self:center;align-self:center}.popup__header__close{grid-column:1;margin-left:-1rem;justify-self:flex-start}section{position:relative}section .dark-background{display:grid;grid-template-rows:auto 1fr}ul[type=circle]{padding:1.5rem 2.5rem;list-style:circle}ul[type=circle] li{margin-bottom:1rem}ul[type=circle] li:last-of-type{margin-bottom:0}ul{list-style:none}.top-bottom-padding{padding:1.5rem 0}.margin,.page{margin:0 1rem}.page{display:flex;flex-direction:column}.card{padding:2rem 1.5rem;border-radius:.5rem;background:rgba(var(--text-color), 0.06);margin:1.5rem 0}.card+.card{margin-top:0}.card h2{margin-bottom:1.5rem}#main_header{display:grid;grid-template-columns:1fr auto;grid-template-areas:"search theme";margin-top:1rem;gap:1rem}#logo{grid-area:logo;color:inherit;margin-right:auto}.app-brand{display:flex;gap:.3rem;align-items:center}.app-brand .icon{height:1.7rem;width:1.7rem}.app-name__company{font-size:.8rem;font-weight:500;color:rgba(var(--text-color), 0.8)}theme-toggle{grid-area:theme;justify-self:end;align-self:center}#search_wrapper{grid-area:search;width:min(28rem,100%);position:relative}#main_search_field{width:100%;--min-height: 2.8rem;font-weight:500;border:solid thin rgba(var(--text-color), 0.3);border-radius:.5rem}#suggestions{position:absolute;top:100%;left:0;width:100%;background:rgba(var(--foreground-color), 1);border-radius:.5rem;z-index:1;overflow:hidden;max-height:0;transition:max-height .2s ease-in-out}#suggestions:not(:empty){margin-top:.3rem;max-height:20rem;overflow-y:auto;box-shadow:0 1rem 1.5rem rgba(0,0,0,.16);border:solid thin rgba(var(--text-color), 0.3)}.suggestion{padding:.8rem 1rem;display:flex;align-items:center;color:rgba(var(--text-color), 0.9);font-weight:500;font-size:.9rem;cursor:pointer}.suggestion:hover,.suggestion:active,.suggestion:focus{background:rgba(var(--text-color), 0.06);outline:none}.suggestion .address{font-size:.8rem;color:rgba(var(--text-color), 0.6);margin-left:auto}.transaction-container{display:grid;margin-top:1.5rem;gap:.5rem}.label{text-transform:capitalize;font-size:.8rem;margin-bottom:.3rem;color:rgba(var(--text-color), 0.8);margin-top:1.5rem;font-weight:500}.label:first-of-type{margin-top:0}.label+:is(h1,h2,h3,h4,h5,h6,p,span,sm-copy,a){font-weight:700}.header{justify-items:center;flex-direction:column}#homepage{display:grid;gap:3rem 1rem;padding-top:0}#first_section{display:grid}header.grid-2{margin-top:2rem}@-webkit-keyframes flyInLeft{from{opacity:0;transform:translateX(-0.5rem)}to{opacity:1;transform:none}}@keyframes flyInLeft{from{opacity:0;transform:translateX(-0.5rem)}to{opacity:1;transform:none}}@-webkit-keyframes flyInRight{from{opacity:0;transform:translateX(0.5rem)}to{opacity:1;transform:none}}@keyframes flyInRight{from{opacity:0;transform:translateX(0.5rem)}to{opacity:1;transform:none}}#highlights{display:grid;grid-template-columns:repeat(auto-fill, minmax(14rem, 1fr));gap:1.5rem;margin-top:2rem}#highlights .highlight-item{position:relative;opacity:0;display:flex;flex-direction:column;padding:1rem 1.5rem;border-left:1px solid var(--accent-color);--animation-duration: 0.3s}#highlights .highlight-item::before{content:"";position:absolute;width:.2rem;height:1rem;top:0;left:0;border-radius:0 .1rem .1rem 0;display:inline-block;background-color:var(--accent-color)}#highlights .highlight-item .label{margin-top:auto}#highlights .highlight-item h1{font-size:2rem;letter-spacing:.1rem;font-weight:500;text-transform:uppercase;overflow-wrap:break-word}#highlights .highlight-item:first-of-type{text-transform:uppercase}#highlights .highlight-item:nth-of-type(2){text-transform:capitalize}#highlights .highlight-item:first-of-type{-webkit-animation:flyInLeft var(--animation-duration) forwards;animation:flyInLeft var(--animation-duration) forwards}#highlights .highlight-item:nth-of-type(2){-webkit-animation:flyInLeft var(--animation-duration) .1s forwards;animation:flyInLeft var(--animation-duration) .1s forwards}#highlights .highlight-item:nth-of-type(3){-webkit-animation:flyInLeft var(--animation-duration) .2s forwards;animation:flyInLeft var(--animation-duration) .2s forwards}#highlights .highlight-item:last-of-type{-webkit-animation:flyInLeft var(--animation-duration) .3s forwards;animation:flyInLeft var(--animation-duration) .3s forwards}#top_smart_contracts_container{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill, minmax(20rem, 1fr))}#page_header{padding:1rem 0;align-items:center}#page_header button{margin-left:-0.7rem}#page_header h3{text-transform:capitalize}.page{padding:0 0 1rem 0}.page h3.heading{text-transform:capitalize}.page>h3.heading{margin-top:2rem}.balance-card{display:flex;flex-direction:column;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' style='fill:none; stroke: %23ffffff08'%3E%3Ccircle cx='3.5' cy='3.5' r='2.12'/%3E%3Ccircle cx='5' cy='10' r='1'/%3E%3Ccircle cx='8.5' cy='4.5' r='1.5'/%3E%3Ccircle cx='6' cy='33' r='2'/%3E%3Ccircle cx='14' cy='29' r='1'/%3E%3Ccircle cx='9.5' cy='22.5' r='1.5'/%3E%3Ccircle cx='29.5' cy='17.5' r='4.5'/%3E%3Ccircle cx='22' cy='8' r='1'/%3E%3Ccircle cx='15.5' cy='12.5' r='2.5'/%3E%3Ccircle cx='27.5' cy='30.5' r='0.5'/%3E%3Ccircle cx='18.5' cy='35.5' r='2.5'/%3E%3Ccircle cx='32' cy='36' r='1'/%3E%3Ccircle cx='35' cy='25' r='1'/%3E%3Ccircle cx='23' cy='21' r='2'/%3E%3Ccircle cx='36.5' cy='1.5' r='0.5'/%3E%3Ccircle cx='30.5' cy='3.5' r='1.5'/%3E%3Ccircle cx='34.5' cy='6.5' r='1.5'/%3E%3C/svg%3E"),linear-gradient(135deg, rgb(77, 32, 167), rgb(33, 16, 110));background-size:cover;color:#fff;border-radius:.5rem;padding:max(1.5rem,3vw);margin-bottom:2rem}.balance-card h2,.balance-card h3,.balance-card h4,.balance-card h5{opacity:.8}.balance-card h3{font-size:1.5rem}.balance-card .label{color:#fff;opacity:.7}.choice,.status{padding:.5rem .8rem;border-radius:2rem;display:inline-flex;align-items:center;margin-bottom:.5rem;text-transform:capitalize;margin-right:auto}.choice-container{display:flex;flex-wrap:wrap}.choice{border:solid 1px rgba(var(--text-color), 0.2)}.choice:last-of-type{margin-bottom:0}.status{position:relative;display:flex;align-items:center;font-weight:700;font-size:.9rem;margin-bottom:.5rem;letter-spacing:.01em;padding:0}.status::before{content:"";width:.8rem;height:.8rem;border-radius:50%;margin-right:.5rem;display:inline-block}.status.active::before{background-color:var(--green)}.status.expired::before{background-color:var(--yellow)}.status.closed::before{background-color:var(--danger-color)}.address,.token,.hash,.contract,.block-height{cursor:pointer;color:var(--accent-color)}.address{text-transform:none !important;word-break:break-all;font-weight:700}#winners_container{display:grid;gap:1rem}.contract-winner{display:grid;gap:.5rem 1rem;font-size:.95rem}#token_balance_list{display:flex;flex-wrap:wrap;gap:.5rem}.token-balance{display:flex;flex-direction:column;padding:1rem;background-color:rgba(0,0,0,.2);border-radius:.5rem;font-size:1.2rem}.transaction{display:grid;gap:1.5rem;padding:max(1rem,2vw);border-radius:.5rem;background-color:rgba(var(--foreground-color), 0.8)}.transaction .contract-info{align-items:flex-start;display:grid;gap:1.5rem;min-width:0}.transaction>.icon:first-of-type{fill:none;stroke:rgba(var(--text-color), 0.8);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;overflow:visible;height:2.5rem;width:2.5rem;padding:.7rem;border-radius:1rem;background:rgba(var(--text-color), 0.1)}.transaction time{font-size:.9rem}.badge{font-size:.8rem;padding:.2rem .5rem;border-radius:.5rem;background-color:rgba(var(--text-color), 0.1);color:rgba(var(--text-color), 0.8)}.transfer-steps{display:flex;flex-direction:column;gap:1rem}.transfer-step{display:flex;flex-direction:column;gap:1rem 2rem;border:solid thin rgba(var(--text-color), 0.4);padding:.5rem 1rem;border-radius:.5rem}.transfer-step>:nth-child(2){width:auto;transform:rotate(90deg)}#loading{position:fixed;display:grid;top:0;left:0;bottom:0;right:0;place-content:center;justify-items:center;background:rgba(var(--foreground-color), 1);z-index:10;height:100dvh}#loading h4{margin-top:1.5rem}#all_blocks_page,#top_blocks_container{display:grid;grid-template-columns:repeat(auto-fill, minmax(20rem, 1fr));gap:1rem}.block-card{grid-template-columns:5rem 1fr auto;gap:1rem;background-color:rgba(var(--foreground-color), 1);padding:1rem;border-radius:.5rem}.block-card time{font-size:.8rem;color:rgba(var(--text-color), 0.8)}#token_balance_container{display:grid;gap:.5rem;margin-top:1.5rem}#token_balance_container .holder-balance{padding:1rem;border-radius:.5rem;background:rgba(var(--foreground-color), 1)}#error_page{padding:1.5rem 0}.view-wrapper{display:grid;align-items:flex-start}.view-wrapper>*{grid-area:1/1}.info-row{flex-direction:column;margin-bottom:1.3rem}#participant_container,#deposits_container{display:grid;gap:.5rem;background-color:rgba(0,0,0,0);padding:0}.participant,.deposit-card{flex-wrap:wrap;align-items:center;gap:2rem;background-color:rgba(var(--foreground-color), 1);padding:max(1rem,1.5vw);border-radius:.5rem}.participant .address,.deposit-card .address{min-width:12rem;flex:1}#transaction_page{display:grid;gap:3rem}#transaction_page .card{margin:0;min-width:12rem}#goal_progress_wrapper{position:relative;display:flex;height:.3rem;background-color:rgba(var(--text-color), 0.3);border-radius:1rem}.progress-bar{position:relative;background-color:var(--accent-color);width:var(--progress);border-radius:1rem}.goal-milestone{position:relative;align-items:center;padding-top:1rem;font-size:.9rem}.goal-milestone:last-of-type{margin-left:auto;text-align:end;align-items:flex-end}.smart-contract-list{display:grid;gap:1rem;margin-top:1rem;grid-template-columns:repeat(auto-fill, minmax(18rem, 1fr))}.sc-card{display:flex;flex-direction:column;gap:1rem;background-color:rgba(var(--foreground-color), 1);padding:max(1rem,1.5vw);border-radius:.5rem}.sc-card__type{display:flex;font-size:.85rem;font-weight:500;margin-right:auto;align-items:center}.sc-card__type::before{content:"";display:block;width:.15rem;height:1em;border-radius:0 .5rem .5rem 0;margin-right:.5rem;background-color:var(--accent-color)}.sc-card__info-link{display:flex;align-items:center;font-weight:500;font-size:.9rem}.sc-card__info-link .icon{fill:var(--accent-color)}.sc-card .sc-card__actions{justify-content:flex-end;padding-top:1rem;margin-top:auto}.sc-card .badge{margin-right:auto}.involved-tokens li{padding:.2rem .5rem;border-radius:.2rem;background-color:rgba(var(--text-color), 0.06);font-size:.85rem;font-weight:500}.involved-tokens li a{color:rgba(var(--text-color), 0.8)}.involved-tokens li a:hover{text-decoration:underline}#filter_s_c_popup{--width: min(36rem, 100%)}#filter_s_c_popup__content{margin-bottom:1.5rem}.sc-filter{padding:.5rem .8rem;border-radius:.5rem;background-color:rgba(var(--text-color), 0.06);font-weight:500;font-size:.9rem}.sc-filter.selected{background-color:var(--accent-color);color:rgba(var(--background-color), 1)}.sc-filter.selected:hover{background-color:var(--accent-color) !important}.sc-filter input{display:none}fieldset{padding:.5rem;border-radius:.5rem;border:solid 1px rgba(var(--text-color), 0.3)}fieldset legend{padding:0 .5rem}fieldset label{padding:.3rem .5rem}fieldset label:has(input:not(:disabled):not(:checked)){cursor:pointer}fieldset input[type=radio]{height:1.1em;width:1.1em;margin-right:.5rem;accent-color:var(--accent-color)}#smart_contract_creation_popup{--width: min(32rem, 100%)}#smart_contract_creation_popup::part(popup){view-transition-name:sc-popup}#smart_contract_creation_popup::part(popup-header){view-transition-name:sc-popup-header}::view-transition-old(sc-popup),::view-transition-new(sc-popup){-webkit-animation-duration:.3s;animation-duration:.3s;height:100%;width:100%}.smart-contract-template{display:grid;grid-template-areas:"heading arrow" "description arrow";grid-template-columns:1fr auto;padding:max(1rem,2vw);border:solid 1px rgba(var(--text-color), 0.3);border-radius:.5rem;gap:.5rem;text-align:start;white-space:normal;width:100%;justify-content:flex-start}.smart-contract-template h4{grid-area:heading}.smart-contract-template p{grid-area:description;font-weight:400;line-height:1.3;font-size:.9rem;color:rgba(var(--text-color), 0.8);text-transform:none}.smart-contract-template .icon{margin-top:auto;grid-area:arrow;border:solid 1px rgba(var(--text-color), 0.3);border-radius:3rem;padding:.4rem;height:2rem;width:2rem;fill:var(--accent-color)}.payee-address-wrapper{display:grid;grid-template-columns:1fr auto;gap:.5rem}.payee-address-wrapper:first-of-type{grid-template-areas:"address" "share"}.payee-address-wrapper:not(:first-of-type){grid-template-areas:"address address" "share button"}.payee-address-wrapper .payee-address{grid-area:address}.payee-address-wrapper .payee-share{grid-area:share}.payee-address-wrapper .icon-only{grid-area:button}.payee-address-wrapper .icon-only{height:3.18rem}.choice-wrapper{display:grid;grid-template-columns:1fr auto;gap:.5rem}.choice-wrapper .icon-only{aspect-ratio:1/1;height:3.18rem}#transaction_result{display:grid;gap:1.5rem;height:max(40vh,24rem);align-items:center;justify-content:center;text-align:center;align-content:center}#transaction_result:empty{display:none}#transaction_result h3{text-align:center;width:100%}#transaction_result>.icon{justify-self:center;height:4rem;width:4rem;border-radius:5rem;margin-bottom:1rem;-webkit-animation:popup 1s;animation:popup 1s}#transaction_result>.icon--success{fill:rgba(var(--background-color), 1);padding:1rem;background-color:#0bbe56}#transaction_result>.icon--failed{background-color:rgba(var(--text-color), 0.03);fill:var(--danger-color)}#transaction_result sm-copy{font-size:.8rem}#transaction_result #transaction_link{justify-self:center}@-webkit-keyframes popup{0%{opacity:0;transform:scale(0.2) translateY(600%)}10%{transform:scale(0.2) translateY(5rem);opacity:1}40%{transform:scale(0.2) translateY(0)}80%{transform:scale(1.1) translateY(0)}100%{transform:scale(1) translateY(0)}}@keyframes popup{0%{opacity:0;transform:scale(0.2) translateY(600%)}10%{transform:scale(0.2) translateY(5rem);opacity:1}40%{transform:scale(0.2) translateY(0)}80%{transform:scale(1.1) translateY(0)}100%{transform:scale(1) translateY(0)}}@media only screen and (max-width: 640px){.hide-on-small{display:none}}@media only screen and (min-width: 640px){sm-popup{--width: 24rem}.popup__header{padding:1rem 1.5rem 0 1.5rem}.margin,.page{margin:0 4vw}section header h1{font-size:2rem}#main_header{grid-template-areas:"logo theme"}#search_wrapper{grid-area:1/1/2/-1;margin:0 auto;max-width:calc(100% - 16rem)}#page_header{padding:1.5rem 0}.transaction{grid-template-columns:auto 1fr;contain-intrinsic-height:20rem}.transaction>.icon:first-of-type{grid-area:1/1/3/2}.contract-winner{grid-template-columns:2fr 1fr 1fr;align-items:center}#contract_info{-moz-columns:24rem auto;columns:24rem auto;-moz-column-gap:4rem;column-gap:4rem}.info-row{flex-direction:row;gap:.5rem}.info-row h5{min-width:11rem;margin-bottom:0;margin-top:.2rem !important}.transfer-step{align-items:center;flex-direction:row}.transfer-step>:nth-child(1){flex:1}.transfer-step>:nth-child(2){transform:none}.transfer-step>:nth-child(3){flex:1}.payee-address-wrapper{display:grid;grid-template-columns:1fr 8rem 3rem}.payee-address-wrapper:first-of-type{grid-template-areas:"address share share"}.payee-address-wrapper:not(:first-of-type){grid-template-areas:"address share button"}}@media only screen and (min-width: 1280px){.margin,.page{margin:0 8vw}#homepage{grid-template-columns:1fr 22rem}}@media(hover: hover){.hover{cursor:pointer}::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background:rgba(var(--text-color), 0.3);border-radius:1rem}::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-color), 0.5)}.interact:not([disabled]){transition:background-color .3s}.interact:not([disabled]):hover{background-color:rgba(var(--text-color), 0.06)}.button:not([disabled]){transition:background-color .3s,filter .3s}.button:not([disabled]):hover{filter:contrast(2)}} \ No newline at end of file diff --git a/css/main.scss b/css/main.scss index 5f8b946..16bfd55 100644 --- a/css/main.scss +++ b/css/main.scss @@ -17,7 +17,7 @@ body { body { --accent-color: #3d5afe; --secondary-color: #ffac2e; - --text-color: 34, 34, 34; + --text-color: 54, 54, 54; --foreground-color: 252, 253, 255; --background-color: 241, 243, 248; --danger-color: rgb(255, 75, 75); @@ -55,6 +55,7 @@ strong { line-height: 1.7; color: rgba(var(--text-color), 0.9); max-width: 70ch; + font-size: 0.9rem; } img { @@ -76,7 +77,21 @@ a { a:any-link:focus-visible { outline: rgba(var(--text-color), 1) 0.1rem solid; } - +input[type="datetime-local"] { + width: 100%; + padding: 0.8rem 0.6rem; + border: none; + border-radius: 0.5rem; + font-weight: 500; + font-family: inherit; + font-size: inherit; + color: inherit; + background-color: rgba(var(--text-color), 0.06); + &:focus { + outline: none; + box-shadow: 0 0 0 0.1rem var(--accent-color); + } +} button, .button { user-select: none; @@ -88,10 +103,10 @@ button, color: inherit; -webkit-tap-highlight-color: transparent; align-items: center; - font-size: inherit; + font-size: 0.9rem; font-weight: 500; white-space: nowrap; - padding: 0.8rem; + padding: 0.5rem 1rem; border-radius: 0.3rem; justify-content: center; flex-shrink: 0; @@ -108,6 +123,7 @@ button, background-color: rgba(var(--text-color), 0.02); border: solid thin rgba(var(--text-color), 0.06); &--primary { + padding: 0.6rem 1rem; color: rgba(var(--background-color), 1); background-color: var(--accent-color); @@ -134,8 +150,12 @@ button, } &--outlined { - border: solid rgba(var(--text-color), 0.3) 0.1rem; - background-color: rgba(var(--foreground-color), 1); + border: solid var(--accent-color) 1px; + background-color: transparent; + color: var(--accent-color); + .icon { + fill: var(--accent-color); + } } &--transparent { background-color: transparent; @@ -177,7 +197,7 @@ details summary { user-select: none; cursor: pointer; align-items: center; - justify-content: space-between; + gap: 1rem; color: var(--accent-color); } @@ -351,6 +371,9 @@ ul { .justify-content-center { justify-content: center; } +.justify-items-center { + justify-items: center; +} .justify-right { margin-left: auto; @@ -536,6 +559,18 @@ ul { .observe-empty-state:not(:empty) ~ .empty-state { display: none; } +.password-field { + label { + display: flex; + flex-shrink: 0; + input:checked ~ .visible { + display: none; + } + input:not(:checked) ~ .invisible { + display: none; + } + } +} .multi-state-button { display: grid; text-align: center; @@ -546,6 +581,7 @@ ul { } button { z-index: 1; + width: 100%; } } @@ -622,102 +658,11 @@ ul { border-radius: 0.5rem; background: rgba(var(--text-color), 0.06); margin: 1.5rem 0; - h2 { - margin-bottom: 1.5rem; - } -} -.transaction-container { - display: grid; - margin-top: 1.5rem; - gap: 0.5rem; -} -.label { - text-transform: capitalize; - font-size: 0.8rem; - margin-bottom: 0.3rem; - color: rgba(var(--text-color), 0.8); - margin-top: 1.5rem; - font-weight: 500; - &:first-of-type { + & + & { margin-top: 0; } - & + * { - font-weight: 700; - } -} -.header { - justify-items: center; - flex-direction: column; -} -#homepage { - padding-top: 0; -} -#first_section { - display: grid; -} -header.grid-2 { - margin-top: 2rem; -} -@keyframes flyInLeft { - from { - opacity: 0; - transform: translateX(-0.5rem); - } - to { - opacity: 1; - transform: none; - } -} -@keyframes flyInRight { - from { - opacity: 0; - transform: translateX(0.5rem); - } - to { - opacity: 1; - transform: none; - } -} -#highlights { - padding: 1.5rem 0; - display: grid; - grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); - gap: 1.5rem; - .highlight-item { - opacity: 0; - display: flex; - flex-direction: column; - padding: 1rem 1.5rem; - border-left: 0.1rem solid rgba(var(--text-color), 0.2); - .label { - margin-top: auto; - } - h1 { - font-size: 2rem; - letter-spacing: 0.1rem; - font-weight: 500; - text-transform: uppercase; - overflow-wrap: break-word; - } - &:first-of-type { - text-transform: uppercase; - } - &:nth-of-type(2) { - text-transform: capitalize; - } - --animation-duration: 0.3s; - &:first-of-type { - animation: flyInLeft var(--animation-duration) forwards; - } - &:nth-of-type(2) { - animation: flyInLeft var(--animation-duration) 0.1s forwards; - } - &:nth-of-type(3) { - animation: flyInLeft var(--animation-duration) 0.2s forwards; - } - &:last-of-type { - animation: flyInLeft var(--animation-duration) 0.3s forwards; - } + h2 { + margin-bottom: 1.5rem; } } #main_header { @@ -730,6 +675,7 @@ header.grid-2 { #logo { grid-area: logo; color: inherit; + margin-right: auto; } .app-brand { display: flex; @@ -761,6 +707,8 @@ theme-toggle { width: 100%; --min-height: 2.8rem; font-weight: 500; + border: solid thin rgba(var(--text-color), 0.3); + border-radius: 0.5rem; } #suggestions { position: absolute; @@ -774,14 +722,20 @@ theme-toggle { max-height: 0; transition: max-height 0.2s ease-in-out; &:not(:empty) { + margin-top: 0.3rem; max-height: 20rem; overflow-y: auto; + box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.16); + border: solid thin rgba(var(--text-color), 0.3); } } .suggestion { padding: 0.8rem 1rem; display: flex; align-items: center; + color: rgba(var(--text-color), 0.9); + font-weight: 500; + font-size: 0.9rem; cursor: pointer; &:hover, &:active, @@ -795,6 +749,119 @@ theme-toggle { margin-left: auto; } } +.transaction-container { + display: grid; + margin-top: 1.5rem; + gap: 0.5rem; +} +.label { + text-transform: capitalize; + font-size: 0.8rem; + margin-bottom: 0.3rem; + color: rgba(var(--text-color), 0.8); + margin-top: 1.5rem; + font-weight: 500; + &:first-of-type { + margin-top: 0; + } + & + :is(h1, h2, h3, h4, h5, h6, p, span, sm-copy, a) { + font-weight: 700; + } +} +.header { + justify-items: center; + flex-direction: column; +} +#homepage { + display: grid; + gap: 3rem 1rem; + padding-top: 0; +} +#first_section { + display: grid; +} +header.grid-2 { + margin-top: 2rem; +} +@keyframes flyInLeft { + from { + opacity: 0; + transform: translateX(-0.5rem); + } + to { + opacity: 1; + transform: none; + } +} +@keyframes flyInRight { + from { + opacity: 0; + transform: translateX(0.5rem); + } + to { + opacity: 1; + transform: none; + } +} +#highlights { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); + gap: 1.5rem; + margin-top: 2rem; + .highlight-item { + position: relative; + opacity: 0; + display: flex; + flex-direction: column; + padding: 1rem 1.5rem; + border-left: 1px solid var(--accent-color); + &::before { + content: ""; + position: absolute; + width: 0.2rem; + height: 1rem; + top: 0; + left: 0; + border-radius: 0 0.1rem 0.1rem 0; + display: inline-block; + background-color: var(--accent-color); + } + .label { + margin-top: auto; + } + h1 { + font-size: 2rem; + letter-spacing: 0.1rem; + font-weight: 500; + text-transform: uppercase; + overflow-wrap: break-word; + } + &:first-of-type { + text-transform: uppercase; + } + &:nth-of-type(2) { + text-transform: capitalize; + } + --animation-duration: 0.3s; + &:first-of-type { + animation: flyInLeft var(--animation-duration) forwards; + } + &:nth-of-type(2) { + animation: flyInLeft var(--animation-duration) 0.1s forwards; + } + &:nth-of-type(3) { + animation: flyInLeft var(--animation-duration) 0.2s forwards; + } + &:last-of-type { + animation: flyInLeft var(--animation-duration) 0.3s forwards; + } + } +} +#top_smart_contracts_container { + display: grid; + gap: 1rem; + grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); +} #page_header { padding: 1rem 0; align-items: center; @@ -880,6 +947,11 @@ theme-toggle { background-color: var(--green); } } + &.expired { + &::before { + background-color: var(--yellow); + } + } &.closed { &::before { background-color: var(--danger-color); @@ -897,13 +969,16 @@ theme-toggle { .address { text-transform: none !important; word-break: break-all; + font-weight: 700; } -.contract-choice { +#winners_container { + display: grid; + gap: 1rem; +} +.contract-winner { display: grid; gap: 0.5rem 1rem; - &:last-of-type { - margin-bottom: 0; - } + font-size: 0.95rem; } #token_balance_list { display: flex; @@ -990,9 +1065,8 @@ theme-toggle { #all_blocks_page, #top_blocks_container { display: grid; - grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; - margin-top: 1rem; } .block-card { grid-template-columns: 5rem 1fr auto; @@ -1018,7 +1092,7 @@ theme-toggle { #error_page { padding: 1.5rem 0; } -#view-wrappe .view-wrapper { +.view-wrapper { display: grid; align-items: flex-start; & > * { @@ -1039,12 +1113,14 @@ theme-toggle { .participant, .deposit-card { flex-wrap: wrap; + align-items: center; gap: 2rem; background-color: rgba(var(--foreground-color), 1); padding: max(1rem, 1.5vw); border-radius: 0.5rem; .address { min-width: 12rem; + flex: 1; } } #transaction_page { @@ -1055,17 +1131,42 @@ theme-toggle { min-width: 12rem; } } +#goal_progress_wrapper { + position: relative; + display: flex; + height: 0.3rem; + background-color: rgba(var(--text-color), 0.3); + border-radius: 1rem; +} +.progress-bar { + position: relative; + background-color: var(--accent-color); + width: var(--progress); + border-radius: 1rem; +} +.goal-milestone { + position: relative; + align-items: center; + padding-top: 1rem; + font-size: 0.9rem; + &:last-of-type { + margin-left: auto; + text-align: end; + align-items: flex-end; + } +} #smart_contract_page { } -#smart_contract_list { +.smart-contract-list { display: grid; gap: 1rem; margin-top: 1rem; - grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); } .sc-card { - display: grid; + display: flex; + flex-direction: column; gap: 1rem; background-color: rgba(var(--foreground-color), 1); padding: max(1rem, 1.5vw); @@ -1095,15 +1196,13 @@ theme-toggle { fill: var(--accent-color); } } - > :last-child { + .sc-card__actions { justify-content: flex-end; padding-top: 1rem; - .button { - background-color: transparent; - border: solid 1px var(--accent-color); - font-size: 0.9rem; - padding: 0.5rem 1rem; - } + margin-top: auto; + } + .badge { + margin-right: auto; } } .involved-tokens { @@ -1146,6 +1245,166 @@ theme-toggle { } } +fieldset { + padding: 0.5rem; + border-radius: 0.5rem; + border: solid 1px rgba(var(--text-color), 0.3); + legend { + padding: 0 0.5rem; + } + label { + padding: 0.3rem 0.5rem; + &:has(input:not(:disabled):not(:checked)) { + cursor: pointer; + } + } + input[type="radio"] { + height: 1.1em; + width: 1.1em; + margin-right: 0.5rem; + accent-color: var(--accent-color); + } +} +#smart_contract_creation_popup { + --width: min(32rem, 100%); + &::part(popup) { + view-transition-name: sc-popup; + } + &::part(popup-header) { + view-transition-name: sc-popup-header; + } +} +::view-transition-old(sc-popup), +::view-transition-new(sc-popup) { + animation-duration: 0.3s; + height: 100%; + width: 100%; +} +.smart-contract-template { + display: grid; + grid-template-areas: "heading arrow" "description arrow"; + grid-template-columns: 1fr auto; + padding: max(1rem, 2vw); + border: solid 1px rgba(var(--text-color), 0.3); + border-radius: 0.5rem; + gap: 0.5rem; + text-align: start; + white-space: normal; + width: 100%; + justify-content: flex-start; + h4 { + grid-area: heading; + } + p { + grid-area: description; + font-weight: 400; + line-height: 1.3; + font-size: 0.9rem; + color: rgba(var(--text-color), 0.8); + text-transform: none; + } + .icon { + margin-top: auto; + grid-area: arrow; + border: solid 1px rgba(var(--text-color), 0.3); + border-radius: 3rem; + padding: 0.4rem; + height: 2rem; + width: 2rem; + fill: var(--accent-color); + } +} + +.payee-address-wrapper { + display: grid; + grid-template-columns: 1fr auto; + gap: 0.5rem; + &:first-of-type { + grid-template-areas: "address" "share"; + } + &:not(:first-of-type) { + grid-template-areas: "address address" "share button"; + } + .payee-address { + grid-area: address; + } + .payee-share { + grid-area: share; + } + .icon-only { + grid-area: button; + } + .icon-only { + height: 3.18rem; + } +} +.choice-wrapper { + display: grid; + grid-template-columns: 1fr auto; + gap: 0.5rem; + .icon-only { + aspect-ratio: 1/1; + height: 3.18rem; + } +} +#transaction_result { + display: grid; + gap: 1.5rem; + height: max(40vh, 24rem); + align-items: center; + justify-content: center; + text-align: center; + align-content: center; + &:empty { + display: none; + } + h3 { + text-align: center; + width: 100%; + } + & > .icon { + justify-self: center; + height: 4rem; + width: 4rem; + border-radius: 5rem; + margin-bottom: 1rem; + animation: popup 1s; + &--success { + fill: rgba(var(--background-color), 1); + padding: 1rem; + background-color: #0bbe56; + } + &--failed { + background-color: rgba(var(--text-color), 0.03); + fill: var(--danger-color); + } + } + sm-copy { + font-size: 0.8rem; + } + #transaction_link { + justify-self: center; + } +} +@keyframes popup { + 0% { + opacity: 0; + transform: scale(0.2) translateY(600%); + } + 10% { + transform: scale(0.2) translateY(5rem); + opacity: 1; + } + 40% { + transform: scale(0.2) translateY(0); + } + 80% { + transform: scale(1.1) translateY(0); + } + 100% { + transform: scale(1) translateY(0); + } +} @media only screen and (max-width: 640px) { .hide-on-small { display: none; @@ -1189,7 +1448,7 @@ theme-toggle { grid-area: 1/1/3/2; } } - .contract-choice { + .contract-winner { grid-template-columns: 2fr 1fr 1fr; align-items: center; } @@ -1219,11 +1478,24 @@ theme-toggle { flex: 1; } } + .payee-address-wrapper { + display: grid; + grid-template-columns: 1fr 8rem 3rem; + &:first-of-type { + grid-template-areas: "address share share"; + } + &:not(:first-of-type) { + grid-template-areas: "address share button"; + } + } } @media only screen and (min-width: 1280px) { .margin, .page { - margin: 0 10vw; + margin: 0 8vw; + } + #homepage { + grid-template-columns: 1fr 22rem; } } @media (hover: hover) { diff --git a/index.html b/index.html index 376ec0d..2e366b3 100644 --- a/index.html +++ b/index.html @@ -21,6 +21,14 @@