mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
mobile fixes
This commit is contained in:
parent
c92ec6bd94
commit
b48f3cc89d
@ -5,7 +5,13 @@
|
|||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
box-shadow: 0 6px 17px 0 var(--box-shadow-color);
|
box-shadow: 0 6px 17px 0 var(--box-shadow-color);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: var(--spacer);
|
padding: calc(var(--spacer) / 1.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 40rem) {
|
||||||
|
.box {
|
||||||
|
padding: var(--spacer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a.box:hover,
|
a.box:hover,
|
||||||
|
@ -2,11 +2,18 @@
|
|||||||
max-width: var(--break-point--large);
|
max-width: var(--break-point--large);
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
padding-left: calc(var(--spacer) / 1.2);
|
padding-left: calc(var(--spacer) / 3);
|
||||||
padding-right: calc(var(--spacer) / 1.2);
|
padding-right: calc(var(--spacer) / 3);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 40rem) {
|
||||||
|
.container {
|
||||||
|
padding-left: calc(var(--spacer) / 1.2);
|
||||||
|
padding-right: calc(var(--spacer) / 1.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.container.narrow {
|
.container.narrow {
|
||||||
max-width: 42rem;
|
max-width: 42rem;
|
||||||
}
|
}
|
||||||
|
@ -4,11 +4,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: var(--font-size-h2);
|
font-size: var(--font-size-h3);
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 40rem) {
|
||||||
|
.title {
|
||||||
|
font-size: var(--font-size-h2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
font-size: var(--font-size-large);
|
font-size: var(--font-size-large);
|
||||||
margin-top: calc(var(--spacer) / 4);
|
margin-top: calc(var(--spacer) / 4);
|
||||||
|
@ -12,14 +12,14 @@ export default function Currency(): ReactElement {
|
|||||||
<Input
|
<Input
|
||||||
name="currency"
|
name="currency"
|
||||||
label="Currency"
|
label="Currency"
|
||||||
help="Select your preferred currency."
|
help="Your conversion display currency."
|
||||||
type="select"
|
type="select"
|
||||||
options={appConfig.currencies}
|
options={appConfig.currencies}
|
||||||
value={currency}
|
value={currency}
|
||||||
onChange={(e: ChangeEvent<HTMLSelectElement>) =>
|
onChange={(e: ChangeEvent<HTMLSelectElement>) =>
|
||||||
setCurrency(e.target.value)
|
setCurrency(e.target.value)
|
||||||
}
|
}
|
||||||
small
|
size="small"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
)
|
)
|
||||||
|
@ -15,7 +15,9 @@ export default function Debug(): ReactElement {
|
|||||||
defaultChecked={debug === true}
|
defaultChecked={debug === true}
|
||||||
onChange={() => setDebug(!debug)}
|
onChange={() => setDebug(!debug)}
|
||||||
/>
|
/>
|
||||||
<FormHelp>Show geeky information in some places.</FormHelp>
|
<FormHelp>
|
||||||
|
Show geeky information in some places, and in your console.
|
||||||
|
</FormHelp>
|
||||||
</li>
|
</li>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -16,12 +16,12 @@ export default function Theme({
|
|||||||
<Input
|
<Input
|
||||||
name="theme"
|
name="theme"
|
||||||
label="Theme"
|
label="Theme"
|
||||||
help="Defaults to your OS settings, select a theme to override."
|
help="Defaults to your OS setting, select a theme to override."
|
||||||
type="select"
|
type="select"
|
||||||
options={options}
|
options={options}
|
||||||
value={value}
|
value={value}
|
||||||
onChange={() => darkMode.toggle()}
|
onChange={() => darkMode.toggle()}
|
||||||
small
|
size="small"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
)
|
)
|
||||||
|
@ -36,7 +36,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.preferencesDetails {
|
.preferencesDetails {
|
||||||
padding: calc(var(--spacer) / 2);
|
padding: calc(var(--spacer) / 4) calc(var(--spacer) / 2);
|
||||||
|
max-width: 20rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preferencesDetails li > div,
|
.preferencesDetails li > div,
|
||||||
|
@ -135,7 +135,7 @@ export default function Compute({
|
|||||||
name="algorithm"
|
name="algorithm"
|
||||||
label="Select image to run the algorithm"
|
label="Select image to run the algorithm"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
small
|
size="small"
|
||||||
value={computeType}
|
value={computeType}
|
||||||
options={computeOptions.map((x) => x.name)}
|
options={computeOptions.map((x) => x.name)}
|
||||||
onChange={handleSelectChange}
|
onChange={handleSelectChange}
|
||||||
|
@ -1,11 +1,18 @@
|
|||||||
.tokenlist {
|
.tokenlist {
|
||||||
margin-left: -2rem;
|
margin-left: -2rem;
|
||||||
margin-right: -2rem;
|
margin-right: -2rem;
|
||||||
padding: calc(var(--spacer) / 1.5) var(--spacer) calc(var(--spacer) / 2)
|
padding: calc(var(--spacer) / 1.5) calc(var(--spacer) / 1.5)
|
||||||
var(--spacer);
|
calc(var(--spacer) / 2) calc(var(--spacer) / 1.5);
|
||||||
border-top: 1px solid var(--border-color);
|
border-top: 1px solid var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 40rem) {
|
||||||
|
.tokenlist {
|
||||||
|
padding-left: var(--spacer);
|
||||||
|
padding-right: var(--spacer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.tokenlist.highlight {
|
.tokenlist.highlight {
|
||||||
background: var(--background-highlight);
|
background: var(--background-highlight);
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
fill: var(--brand-grey-light);
|
fill: var(--brand-grey-light);
|
||||||
height: 40px;
|
height: 40px;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
|
filter: drop-shadow(0 4px 6px var(--box-shadow-color));
|
||||||
}
|
}
|
||||||
|
|
||||||
.bookmark:hover,
|
.bookmark:hover,
|
||||||
|
@ -25,7 +25,7 @@ const Default = ({
|
|||||||
name={name}
|
name={name}
|
||||||
postfix="%"
|
postfix="%"
|
||||||
readOnly
|
readOnly
|
||||||
small
|
size="small"
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ export default function Fees({
|
|||||||
min="0.1"
|
min="0.1"
|
||||||
max="10"
|
max="10"
|
||||||
step="0.1"
|
step="0.1"
|
||||||
small
|
size="small"
|
||||||
{...field}
|
{...field}
|
||||||
additionalComponent={<Error meta={meta} />}
|
additionalComponent={<Error meta={meta} />}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user