import React from 'react'; import Block from '@techytools/ui/components/Block'; import { withBlock } from '@techytools/ui/components/Block'; const Container = withBlock({ ss: ` margin: 1.5rem 0; > * { font-size: 1rem;line-height:1.5rem; } b { color: var(--color-accent); } ` }); const Border = withBlock({ ss: ` border:solid 1px var(--color-accent); padding: 1rem; border-radius: 8px; ` }); const Mq = withBlock({ as: 'code', ss: ` text-indent: 1rem; b { padding-left: 1rem; color: white; opacity: 0.75; font-weight: 400; font-size: 0.9rem; } // b::before { // content: ' = \`/* '; // } // b::after { // content: ' */ \`'; // } `, }); const MediaQueriesDemo = () => ( {` ss all sizes ssLg min-width 931px ssSm max-width 930px ssDesktop min-width 1025px ssMobile max-width 1024px ssLargeTablet min-width 768px and max-width 1024px ssTablet min-width 601px and max-width 1024px ssNotPhone min-width 601px ssPhone max-width 600px ssSmallPhone max-width 400px ssTinyPhone max-width 360px ssLargeDesktop min-width 1440px ssVeryLargeDesktop min-width 1920px ssPortrait height > width ssLandscape width > height >

Each ss prop one corresponds to a theme.mq property:

theme.mq.lg min-width 931px theme.mq.sm max-width 930px theme.mq.desktop min-width 1025px theme.mq.mobile max-width 1024px theme.mq.largeTablet min-width 768px and max-width 1024px theme.mq.tablet min-width 601px and max-width 1024px theme.mq.notPhone min-width 601px theme.mq.phone max-width 600px theme.mq.smallPhone max-width 400px theme.mq.tinyPhone max-width 360px theme.mq.largeDesktop min-width 1440px theme.mq.veryLargeDesktop min-width 1920px theme.mq.portrait height > width theme.mq.landscape width > height
); export default MediaQueriesDemo;