floscout-testnet/css/main.css
sairaj mote 09a3c0d3bf v1.0.1
2020-05-14 12:35:10 +05:30

853 lines
15 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;1,700&family=Roboto:wght@400;500;700&display=swap");
*,
::before,
::after {
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}
body {
--primary-color: #1E88E5;
--text: 17, 17, 17;
--text-light: 85, 85, 85;
--foreground: 255, 255, 255;
--background: #efefef;
--dark-shade: #dadada;
font-size: 16px;
color: rgba(var(--text), 1);
background: rgba(var(--foreground), 1);
}
body[data-theme='dark'] {
--text: 218, 218, 218;
--text-light: 170, 170, 170;
--foreground: 20, 20, 20;
--background: #111;
--dark-shade: #1a1a1a;
}
.transition {
-webkit-transition: all 0.6s;
transition: all 0.6s;
}
h5 {
font-weight: 500;
}
input[type=text]::-ms-clear {
display: none;
width: 0;
height: 0;
}
input[type=text]::-ms-reveal {
display: none;
width: 0;
height: 0;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
display: none;
}
input[type=number] {
-moz-appearance: textfield;
}
input:invalid {
outline: none;
-webkit-box-shadow: none;
box-shadow: none;
}
::-moz-focus-inner {
border: none;
}
button {
border: none;
border-radius: 0.4em;
text-transform: uppercase;
font-weight: 600;
letter-spacing: 0.06em;
background: rgba(var(--text), 0.1);
cursor: pointer;
padding: 0.8rem 1.5rem;
color: rgba(var(--text), 1);
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center;
}
.flex {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.grid {
display: -ms-grid;
display: grid;
}
.grid-2 {
-ms-grid-columns: auto auto;
grid-template-columns: auto auto;
gap: 1em;
}
.hide {
opacity: 0;
pointer-events: none;
}
.hide-completely {
display: none !important;
}
.breakable {
overflow-wrap: break-word;
letter-spacing: 0.06em;
}
.uppercase {
text-transform: uppercase;
}
.toggle {
position: relative;
cursor: pointer;
z-index: 1;
}
.toggle input[type='checkbox'] {
display: none;
}
.toggle .switch {
overflow: hidden;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
justify-items: center;
padding: 0.2rem;
min-height: 1.6rem;
max-height: 1.6rem;
border-radius: 0.5rem;
position: relative;
}
.toggle .circle {
border-radius: 0.5rem;
-webkit-transition: -webkit-transform 0.3s;
transition: -webkit-transform 0.3s;
transition: transform 0.3s;
transition: transform 0.3s, -webkit-transform 0.3s;
fill: rgba(var(--text), 0.8);
overflow: visible;
stroke-linecap: round;
stroke-linejoin: round;
height: 1.2rem;
width: 1.2rem;
}
.toggle .circle:first-of-type {
margin-bottom: 0.4rem;
}
.toggle .circle line {
stroke: rgba(var(--text), 0.8);
stroke-width: 6;
}
.toggle input:checked ~ .switch .circle {
-webkit-transform: translateY(-1.7rem);
transform: translateY(-1.7rem);
}
section {
position: relative;
}
section .dark-background {
display: -ms-grid;
display: grid;
-ms-grid-rows: auto 1fr;
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;
}
ul .balance {
margin-bottom: 2rem;
}
ul .balance:last-of-type {
margin-bottom: 0;
}
.padding {
padding: 0 1.5rem;
}
.top-bottom-padding {
padding: 1.5rem 0;
}
.margin {
margin: 0 1.5rem;
}
.margin-left-auto {
margin-left: auto;
}
.card {
padding: 2rem 1.5rem;
border-radius: 0.5rem;
border: solid 1px rgba(var(--text), 0.16);
margin: 1.5rem 0;
}
.card h4 {
margin-bottom: 0.4rem;
font-weight: 400;
text-transform: capitalize;
}
.label {
font-family: 'Montserrat' ,sans-serif;
text-transform: capitalize;
font-size: 0.8rem;
margin-bottom: 0.4rem;
line-height: 1.4em;
opacity: 0.7;
margin-top: 1.5rem;
}
.label:first-of-type {
margin-top: 0;
}
.header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 2em 0;
}
.header h1 {
font-size: 1.2rem;
text-transform: capitalize;
}
.header .montserrat {
font-weight: 600;
}
#logo {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
letter-spacing: 0.1em;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
#logo h4 {
font-weight: 400;
}
#logo #main_logo {
height: 1.2rem;
width: 1.2rem;
margin-right: 0.2rem;
fill: rgba(var(--text), 1);
}
#homepage {
padding-top: 0;
}
#first_section {
display: -ms-grid;
display: grid;
-ms-grid-rows: auto 1fr auto;
grid-template-rows: auto 1fr auto;
min-height: 100vh;
}
#main_search {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
text-align: center;
}
#main_search p {
opacity: 0.6;
text-align: left;
margin: 1rem 1.5rem 1.5rem 1.5rem;
}
#main_search h1 {
font-size: 4rem;
text-align: left;
margin-top: 2rem;
}
#main_search .input {
position: relative;
display: -ms-grid;
display: grid;
-ms-grid-columns: auto 1fr;
grid-template-columns: auto 1fr;
z-index: 1;
width: 100%;
margin: 1rem;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 1rem;
gap: 1em;
border-radius: 0.5rem;
background: rgba(var(--text), 0.06);
}
#main_search input {
border: none;
width: 100%;
background: transparent;
outline: none;
font-size: 1rem;
color: rgba(var(--text), 1);
}
.icon {
height: 1.2em;
overflow: visible;
width: 1.5em;
fill: none;
stroke: rgba(var(--text), 1);
stroke-linecap: round;
stroke-linejoin: round;
opacity: 0.5;
stroke-width: 6;
}
.icon.search line {
stroke-width: 8;
}
.icon#back_btn {
margin-right: 1rem;
}
#highlights {
padding: 1.5rem 0;
display: -ms-grid;
display: grid;
-ms-grid-columns: 1fr 1fr;
grid-template-columns: 1fr 1fr;
grid-template-areas: 'token token'
'total wallet'
'contract contract';
gap: 1.5rem;
}
#highlights .highlight-item {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
padding: 1.5rem;
border-radius: 0.5rem;
background: rgba(var(--foreground), 1);
border: 1px solid rgba(var(--text), 0.2);
}
#highlights .highlight-item .label {
margin-top: auto;
}
#highlights .highlight-item h1 {
font-size: 2rem;
letter-spacing: 0.1rem;
font-weight: 500;
text-transform: uppercase;
overflow-wrap: break-word;
}
#highlights .highlight-item:first-of-type, #highlights .highlight-item:last-of-type {
cursor: pointer;
}
#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 {
-ms-grid-row: 1;
-ms-grid-column: 1;
-ms-grid-column-span: 2;
grid-area: token;
}
#highlights .highlight-item:nth-of-type(2) {
-ms-grid-row: 2;
-ms-grid-column: 1;
grid-area: total;
}
#highlights .highlight-item:nth-of-type(3) {
-ms-grid-row: 2;
-ms-grid-column: 2;
grid-area: wallet;
}
#highlights .highlight-item:last-of-type {
-ms-grid-row: 3;
-ms-grid-column: 1;
-ms-grid-column-span: 2;
grid-area: contract;
}
.montserrat {
font-family: 'montserrat', sans-serif;
font-weight: normal;
letter-spacing: 0.06em;
}
#top_transaction_container {
display: -ms-grid;
display: grid;
-ms-grid-columns: (minmax(20rem, 1fr))[auto-fill];
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
gap: 1.5em;
padding-bottom: 2em;
padding-top: 2em;
}
.transaction {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
padding: 1.5rem;
border-radius: 0.5rem;
border: solid 1px rgba(var(--text), 0.1);
}
.transaction .transaction-header {
margin-bottom: 2em;
-ms-grid-columns: auto 1fr;
grid-template-columns: auto 1fr;
}
.transaction .transaction-header h5 {
text-transform: capitalize;
}
.transaction .transaction-header h2 {
text-transform: uppercase;
margin-top: 0.2em;
letter-spacing: 0.06em;
}
.transaction .transaction-header .icon {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.transaction .transaction-header .icon svg {
height: 1.5em;
width: 1.5em;
opacity: 0.6;
margin-left: auto;
cursor: pointer;
fill: rgba(var(--text), 1);
}
.transaction .transaction-header .icon svg:hover {
opacity: 1;
}
.transaction h5 {
text-transform: uppercase;
margin-bottom: 0.4em;
opacity: 0.8;
font-size: 0.8em;
}
.transaction h4 {
cursor: pointer;
margin-bottom: 1.5em;
font-weight: 500;
}
.transaction h4:hover {
-webkit-filter: brightness(150%);
filter: brightness(150%);
}
.transaction h3 {
margin-top: 2em;
text-align: right;
}
#latest_transaction_section {
background: rgba(var(--foreground), 1);
}
#latest_transaction_section header {
-ms-grid-columns: 1fr auto;
grid-template-columns: 1fr auto;
position: -webkit-sticky;
position: sticky;
top: 0;
background: inherit;
z-index: 2;
}
#page_header {
padding: 1.5rem 0;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
font-family: 'Montserrat', sans-serif;
}
#page_header h3 {
font-weight: 500;
}
.page {
padding: 1.5rem 0;
}
.page h3.heading {
margin-top: 2rem;
font-family: 'Montserrat', sans-serif;
}
p {
overflow-wrap: break-word;
line-height: 1.6em;
text-transform: capitalize;
}
.balance-card {
background: linear-gradient(135deg, #5E35B1, #311B92);
color: white;
border-radius: 0.5rem;
-webkit-box-shadow: 0 0.5rem 1rem rgba(94, 53, 177, 0.4);
box-shadow: 0 0.5rem 1rem rgba(94, 53, 177, 0.4);
padding: 2rem 1.5rem;
}
.balance-card .flo-logo {
fill: white;
height: 1.5rem;
width: 1.5rem;
opacity: 0.8;
margin-bottom: 1rem;
}
.balance-card h2, .balance-card h4 {
display: inline-block;
width: auto;
}
.balance-card h4 {
margin-left: 0.5rem;
font-weight: 400;
}
.balance-card p {
margin-top: 1.5rem;
opacity: 0.8;
letter-spacing: 0.1em;
}
.status {
padding: 0.5rem 0.8rem;
border-radius: 2rem;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
font-size: 0.8rem;
margin-bottom: 0.5rem;
}
.status.done {
background: #00C853;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center;
color: white;
}
.status.done .icon {
margin-right: 0.5rem;
height: 1em;
width: 1em;
stroke: white;
opacity: 1;
}
.status.closed {
background: rgba(var(--foreground), 1);
border: solid 1px rgba(var(--text), 0.1);
}
#transaction_page .grid-2 {
-ms-grid-columns: 1fr auto;
grid-template-columns: 1fr auto;
}
.address, .token, .hash, .contract, .block {
cursor: pointer;
color: var(--primary-color);
}
.tabs {
position: relative;
margin-top: 2rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
overflow-x: auto;
}
.tabs .tab {
cursor: pointer;
font-family: 'Montserrat', sans-serif;
opacity: 0.6;
padding-bottom: 0.5rem;
margin-right: 1rem;
-webkit-tap-highlight-color: transparent;
white-space: nowrap;
border-bottom: transparent;
}
.tabs .tab:last-of-type {
margin-right: 0;
}
.tabs .tab.active {
opacity: 1;
border-bottom: 0.1em solid rgba(var(--text), 0.8);
}
.contract-choice {
margin-bottom: 2rem;
}
.contract-choice:last-of-type {
margin-bottom: 0;
}
.contract-choice h3 {
text-transform: capitalize;
font-weight: 400;
margin-bottom: 0.5rem;
}
#homepage {
margin: 0 1.5rem;
}
@media only screen and (min-width: 640px) {
.padding {
padding: 0 6vw;
}
.margin {
margin: 0 6vw;
}
#homepage {
margin: 0 4vw;
}
.input {
width: 80vw !important;
}
section header h1 {
font-size: 2rem;
}
#main_search h1 {
font-size: 6rem;
text-align: center;
}
#highlights {
gap: 2rem;
-ms-grid-columns: (auto)[2];
grid-template-columns: repeat(2, auto);
grid-template-areas: 'token total' ' wallet contract';
}
#highlights .highlight-item h1 {
font-size: 2.5rem;
}
#highlights .highlight-item:first-of-type {
-ms-grid-row: 1;
-ms-grid-column: 1;
grid-area: token;
}
#highlights .highlight-item:nth-of-type(2) {
-ms-grid-row: 1;
-ms-grid-column: 2;
grid-area: total;
}
#highlights .highlight-item:nth-of-type(3) {
-ms-grid-row: 2;
-ms-grid-column: 1;
grid-area: wallet;
}
#highlights .highlight-item:last-of-type {
-ms-grid-row: 2;
-ms-grid-column: 2;
grid-area: contract;
}
}
@media only screen and (min-width: 1280px) {
.padding {
padding: 0 8vw;
}
.margin {
margin: 0 16vw;
}
#homepage {
margin: 0 8vw;
}
.input {
width: 50vw !important;
}
#highlights {
-ms-grid-columns: (auto)[4];
grid-template-columns: repeat(4, auto);
grid-template-areas: 'token total wallet contract';
}
#highlights .highlight-item:first-of-type {
-ms-grid-row: 1;
-ms-grid-column: 1;
grid-area: token;
}
#highlights .highlight-item:nth-of-type(2) {
-ms-grid-row: 1;
-ms-grid-column: 2;
grid-area: total;
}
#highlights .highlight-item:nth-of-type(3) {
-ms-grid-row: 1;
-ms-grid-column: 3;
grid-area: wallet;
}
#highlights .highlight-item:last-of-type {
-ms-grid-row: 1;
-ms-grid-column: 4;
grid-area: contract;
}
}
@media only screen and (min-width: 1920px) {
body {
font-size: 24px;
}
.padding {
padding: 0 12vw;
}
.margin {
margin: 0 26vw;
}
#homepage {
margin: 0 12vw;
}
}
@media only screen and (min-width: 2048px) {
body {
font-size: 24px;
}
.padding {
padding: 0 24vw;
}
.margin {
margin: 0 32vw;
}
#homepage {
margin: 0 24vw;
}
#first_section {
min-height: auto;
}
}
@media only screen and (max-width: 320px) {
body {
font-size: 14px;
}
}
@media (hover: hover) {
button {
-webkit-transition: background-color 0.3s;
transition: background-color 0.3s;
}
button:hover {
background: rgba(var(--text), 1);
color: var(--background);
}
#logo {
cursor: pointer;
}
}
/*# sourceMappingURL=main.css.map */