1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Blink fixes (#267)

* badge fixes

* button fixes
This commit is contained in:
Matthias Kretschmann 2020-11-20 09:48:49 +01:00 committed by GitHub
parent 97ec21d2e0
commit 000a369fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 6 deletions

View File

@ -1,10 +1,11 @@
.badge { .badge {
display: inline-block; display: inline-block;
font-size: var(--font-size-mini); font-size: var(--font-size-mini);
font-family: var(--font-family-base);
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
line-height: 1; line-height: 1 !important;
text-transform: uppercase; text-transform: uppercase;
padding: 0.2rem 0.2rem 0.1rem 0.2rem; padding: 0.2rem;
border-radius: var(--border-radius); border-radius: var(--border-radius);
color: var(--brand-white); color: var(--brand-white);
background: var(--brand-purple); background: var(--brand-purple);

View File

@ -1,5 +1,8 @@
import React, { ReactElement } from 'react' import React, { ReactElement } from 'react'
import styles from './Badge.module.css' import styles from './Badge.module.css'
import classNames from 'classnames/bind'
const cx = classNames.bind(styles)
export default function Badge({ export default function Badge({
label, label,
@ -8,5 +11,10 @@ export default function Badge({
label: string label: string
className?: string className?: string
}): ReactElement { }): ReactElement {
return <span className={`${styles.badge} ${className}`}>{label}</span> const styleClasses = cx({
badge: true,
[className]: className
})
return <span className={styleClasses}>{label}</span>
} }

View File

@ -1,6 +1,7 @@
.price { .price {
display: inline-block; display: inline-block;
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
font-family: var(--font-family-base);
font-size: var(--font-size-large); font-size: var(--font-size-large);
color: var(--font-color-text); color: var(--font-color-text);
line-height: 1.2; line-height: 1.2;
@ -25,7 +26,7 @@
font-size: var(--font-size-small); font-size: var(--font-size-small);
} }
.badge { .price .badge {
vertical-align: middle; vertical-align: middle;
margin-left: calc(var(--spacer) / 6); margin-left: calc(var(--spacer) / 6);
background: var(--color-secondary); background: var(--color-secondary);

View File

@ -29,6 +29,7 @@
} }
.title { .title {
line-height: 1.3 !important;
font-size: var(--font-size-large); font-size: var(--font-size-large);
margin-top: calc(var(--spacer) / 12); margin-top: calc(var(--spacer) / 12);
margin-bottom: 0; margin-bottom: 0;

View File

@ -21,7 +21,9 @@
} }
.button, .button,
.button:hover { .button:hover,
.button:focus,
.button:active {
display: inline-block; display: inline-block;
color: var(--color-secondary); color: var(--color-secondary);
font-size: var(--font-size-mini); font-size: var(--font-size-mini);

View File

@ -3,7 +3,9 @@
} }
.swapButton, .swapButton,
.swapButton:hover { .swapButton:hover,
.swapButton:focus,
.swapButton:active {
padding: 0; padding: 0;
display: block; display: block;
width: calc(100% + 4rem); width: calc(100% + 4rem);
@ -13,6 +15,7 @@
border-top: 1px solid var(--border-color); border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
padding: calc(var(--spacer) / 3) 0 calc(var(--spacer) / 6) 0; padding: calc(var(--spacer) / 3) 0 calc(var(--spacer) / 6) 0;
transform: none;
} }
.swapButton svg { .swapButton svg {

View File

@ -24,6 +24,11 @@
margin-top: calc(var(--spacer) / 2); margin-top: calc(var(--spacer) / 2);
} }
.assetCarousel [class*='alice-carousel__stage-item'] *,
.assetCarousel [class*='alice-carousel__stage-item'] {
line-height: var(--line-height);
}
.empty { .empty {
color: var(--color-secondary); color: var(--color-secondary);
font-size: var(--font-size-small); font-size: var(--font-size-small);