apps/web: remove page elements order changing
This commit is contained in:
parent
56fcb384f3
commit
ec32c0dea6
@ -1,30 +1,12 @@
|
||||
import { max, min } from '@/styles/mq';
|
||||
import styled, { css } from 'styled-components';
|
||||
import { min } from '@/styles/mq';
|
||||
import styled from 'styled-components';
|
||||
import { Box } from 'ui/grid';
|
||||
|
||||
const order = css`
|
||||
${max('laptop')} {
|
||||
#settings {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
#form {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
#output {
|
||||
order: 3;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const Grid = styled(Box)`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
|
||||
${order}
|
||||
|
||||
${min('laptop')} {
|
||||
display: grid;
|
||||
align-items: flex-start;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/* eslint-disable canonical/sort-keys */
|
||||
const threshold = 1;
|
||||
const threshold = 0;
|
||||
|
||||
const screens = {
|
||||
tablet: 768,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { screens, threshold } from '@/config/ui';
|
||||
|
||||
export function min(breakpoint: keyof typeof screens) {
|
||||
return `@media (min-width: calc(${screens[breakpoint]}px))`;
|
||||
return `@media (min-width: calc(${screens[breakpoint]}px + ${threshold}px))`;
|
||||
}
|
||||
export function max(breakpoint: keyof typeof screens) {
|
||||
return `@media (max-width: calc(${screens[breakpoint]}px - ${threshold}px))`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user