1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-24 19:26:26 +02:00

The details page supports smaller screens

This commit is contained in:
Phuoc Nguyen
2020-02-04 11:55:49 +07:00
parent 6505d1e478
commit 8af4debb53
96 changed files with 107 additions and 140 deletions

View File

@@ -18,7 +18,7 @@ const CoverCard: React.FC<CoverCardProps> = ({ pattern }) => {
return ( return (
<Link <Link
to={`/patterns/${slug(pattern)}`} to={`/patterns/${slug(pattern)}`}
className='w-1/2 md:w-1/5 lg:w-1/6' className='w-1/2 sm:w-1/4 md:w-1/5 lg:w-1/6'
style={{ style={{
alignItems: 'center', alignItems: 'center',
display: 'flex', display: 'flex',

View File

@@ -19,64 +19,31 @@ const DetailsLayout: React.FC<DetailsLayoutProps> = ({ title, children }) => {
return ( return (
<Layout> <Layout>
<div style={{ position: 'absolute', right: 0, top: '24px' }}> <div className='flex sm:text-2xl p-4 xl:pl-0'>
<ProductHuntBadge />
</div>
<div
style={{
alignItems: 'center',
backgroundColor: '#00449E',
borderRadius: '4px',
color: '#FFF',
display: 'inline-flex',
margin: '32px 0',
}}
>
<Link <Link
to="/" to="/"
style={{ style={{
color: '#FFF',
padding: '8px 16px',
textDecoration: 'none', textDecoration: 'none',
}} }}
> >
.home Home
</Link> </Link>
<div>~</div> <span className='mx-2'>/</span>
<Link <Link
to="/patterns" to="/patterns"
style={{ style={{
color: '#FFF',
padding: '8px 16px',
textDecoration: 'none', textDecoration: 'none',
}} }}
> >
.explore Explore
</Link> </Link>
<span className='mx-2'>/</span>
<h1>{title}</h1>
</div> </div>
<div <div className='flex justify-center pb-5'>
style={{ <ProductHuntBadge />
border: '1px solid rgba(0, 0, 0, 0.2)', </div>
borderBottomColor: 'transparent', <div className='xl:border-l xl:border-t xl:border-r xl:border-gray-400'>
position: 'relative',
}}
>
<h1
style={{
backgroundColor: '#FFF',
fontSize: '36px',
fontWeight: 600,
left: '50%',
lineHeight: 1.5,
margin: 0,
padding: '0 16px',
position: 'absolute',
top: 0,
transform: 'translate(-50%, -50%)',
}}
>
{title}
</h1>
{children} {children}
</div> </div>
</Layout> </Layout>

View File

@@ -23,10 +23,10 @@ const Footer: React.FC<{}> = () => {
<SubscribeForm /> <SubscribeForm />
</div> </div>
<div <div
className='md:flex xl:border-l xl:border-r xl:border-b xl:border-gray-400 xl:mb-16' className='sm:flex md:border-b md:border-gray-400 xl:border-l xl:border-r xl:border-b xl:border-gray-400 xl:mb-16'
> >
<div <div
className='border-t border-gray-400 md:border-r' className='border-t border-gray-400 sm:border-r'
style={{ style={{
display: 'flex', display: 'flex',
flex: 1, flex: 1,
@@ -184,7 +184,7 @@ const Footer: React.FC<{}> = () => {
style={{ marginLeft: 'auto', textDecoration: 'none' }} style={{ marginLeft: 'auto', textDecoration: 'none' }}
target="_blank" target="_blank"
> >
github.com/phuoc-ng/csslayout phuoc-ng/csslayout
</a> </a>
<div>;</div> <div>;</div>
</li> </li>

View File

@@ -24,7 +24,7 @@ const ExplorePage = () => {
<meta name="description" content="CSS layouts and patterns" /> <meta name="description" content="CSS layouts and patterns" />
<meta name="keywords" content="css display, css flexbox, css grid, css layouts, flex, flexbox, flexbox cheatsheet, web design, web template" /> <meta name="keywords" content="css display, css flexbox, css grid, css layouts, flex, flexbox, flexbox cheatsheet, web design, web template" />
</Helmet> </Helmet>
<div className='text-2xl p-4 xl:pl-0'> <div className='sm:text-2xl p-4 xl:pl-0'>
<Link <Link
to="/" to="/"
style={{ style={{

View File

@@ -62,7 +62,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create an accordion with CSS flexbox" /> <meta name="description" content="Create an accordion with CSS flexbox" />
<meta name="keywords" content="css accordion, css flexbox" /> <meta name="keywords" content="css accordion, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create arrow buttons with CSS" /> <meta name="description" content="Create arrow buttons with CSS" />
<meta name="keywords" content="css arrow buttons" /> <meta name="keywords" content="css arrow buttons" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -38,7 +38,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create an avatar list with CSS flexbox" /> <meta name="description" content="Create an avatar list with CSS flexbox" />
<meta name="keywords" content="css avatar, css flexbox" /> <meta name="keywords" content="css avatar, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create an avatar component with CSS flexbox" /> <meta name="description" content="Create an avatar component with CSS flexbox" />
<meta name="keywords" content="css avatar, css flexbox" /> <meta name="keywords" content="css avatar, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a badge component with CSS flexbox" /> <meta name="description" content="Create a badge component with CSS flexbox" />
<meta name="keywords" content="css badge, css flexbox" /> <meta name="keywords" content="css badge, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a breadcrumb with CSS flexbox" /> <meta name="description" content="Create a breadcrumb with CSS flexbox" />
<meta name="keywords" content="css breadcrumb, css flexbox" /> <meta name="keywords" content="css breadcrumb, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create an icon button with CSS flexbox" /> <meta name="description" content="Create an icon button with CSS flexbox" />
<meta name="keywords" content="css flexbox, css icon button" /> <meta name="keywords" content="css flexbox, css icon button" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a card layout with CSS flexbox" /> <meta name="description" content="Create a card layout with CSS flexbox" />
<meta name="keywords" content="css card layout, css flexbox, css layout" /> <meta name="keywords" content="css card layout, css flexbox, css layout" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a card with CSS flexbox" /> <meta name="description" content="Create a card with CSS flexbox" />
<meta name="keywords" content="css card, css flexbox" /> <meta name="keywords" content="css card, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Center an element with CSS flexbox" /> <meta name="description" content="Center an element with CSS flexbox" />
<meta name="keywords" content="css centering, css flexbox" /> <meta name="keywords" content="css centering, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a chip component with CSS flexbox" /> <meta name="description" content="Create a chip component with CSS flexbox" />
<meta name="keywords" content="css chip, css flexbox, css tag" /> <meta name="keywords" content="css chip, css flexbox, css tag" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
You can use a <Link to='/patterns/close-button'>close button</Link> to remove a chip. You can use a <Link to='/patterns/close-button'>close button</Link> to remove a chip.
</div> </div>

View File

@@ -53,7 +53,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a circular navigation with CSS flexbox" /> <meta name="description" content="Create a circular navigation with CSS flexbox" />
<meta name="keywords" content="css circular navigation, css flexbox" /> <meta name="keywords" content="css circular navigation, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a close button with CSS flexbox" /> <meta name="description" content="Create a close button with CSS flexbox" />
<meta name="keywords" content="css close button, css flexbox" /> <meta name="keywords" content="css close button, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a cookie banner with CSS flexbox" /> <meta name="description" content="Create a cookie banner with CSS flexbox" />
<meta name="keywords" content="css cookie banner, css flexbox" /> <meta name="keywords" content="css cookie banner, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a corner ribbon with CSS flexbox" /> <meta name="description" content="Create a corner ribbon with CSS flexbox" />
<meta name="keywords" content="css flexbox, css ribbon" /> <meta name="keywords" content="css flexbox, css ribbon" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create an element with curved background" /> <meta name="description" content="Create an element with curved background" />
<meta name="keywords" content="css border radius, css curved background" /> <meta name="keywords" content="css border radius, css curved background" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -66,7 +66,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a custom checkbox button with CSS flexbox" /> <meta name="description" content="Create a custom checkbox button with CSS flexbox" />
<meta name="keywords" content="css checkbox, css flexbox" /> <meta name="keywords" content="css checkbox, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -67,7 +67,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a custom radio button with CSS flexbox" /> <meta name="description" content="Create a custom radio button with CSS flexbox" />
<meta name="keywords" content="css flexbox, css radio" /> <meta name="keywords" content="css flexbox, css radio" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a diagonal section with CSS" /> <meta name="description" content="Create a diagonal section with CSS" />
<meta name="keywords" content="css diagonal section, css transform skew" /> <meta name="keywords" content="css diagonal section, css transform skew" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Dock an element at corner with CSS" /> <meta name="description" content="Dock an element at corner with CSS" />
<meta name="keywords" content="css docked, css flexbox" /> <meta name="keywords" content="css docked, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -21,7 +21,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create dot leaders with CSS flexbox" /> <meta name="description" content="Create dot leaders with CSS flexbox" />
<meta name="keywords" content="css dot leader, css flexbox" /> <meta name="keywords" content="css dot leader, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -41,7 +41,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create dot navigation with CSS flexbox" /> <meta name="description" content="Create dot navigation with CSS flexbox" />
<meta name="keywords" content="css dot navigation, css flexbox" /> <meta name="keywords" content="css dot navigation, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a drawer navigation with CSS" /> <meta name="description" content="Create a drawer navigation with CSS" />
<meta name="keywords" content="css drawer, css off-canvas" /> <meta name="keywords" content="css drawer, css off-canvas" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
This pattern is also known as off-canvas. This pattern is also known as off-canvas.
</div> </div>

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a dropping area with CSS flexbox" /> <meta name="description" content="Create a dropping area with CSS flexbox" />
<meta name="keywords" content="css dropping area, css flexbox" /> <meta name="keywords" content="css dropping area, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a drop cap with CSS" /> <meta name="description" content="Create a drop cap with CSS" />
<meta name="keywords" content="css drop cap" /> <meta name="keywords" content="css drop cap" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -23,7 +23,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a dropdown with CSS" /> <meta name="description" content="Create a dropdown with CSS" />
<meta name="keywords" content="css dropdown, css menu" /> <meta name="keywords" content="css dropdown, css menu" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Move the mouse over the button to see the dropdown. Move the mouse over the button to see the dropdown.
</div> </div>

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Fading long section to indicate there is more content" /> <meta name="description" content="Fading long section to indicate there is more content" />
<meta name="keywords" content="css fading overflow, css linear gradient" /> <meta name="keywords" content="css fading overflow, css linear gradient" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Fading a long section to indicate there is more content. Fading a long section to indicate there is more content.
</div> </div>

View File

@@ -21,7 +21,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a feature comparison list with CSS flexbox" /> <meta name="description" content="Create a feature comparison list with CSS flexbox" />
<meta name="keywords" content="css feature comparison, css flexbox" /> <meta name="keywords" content="css feature comparison, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -21,7 +21,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a feature list with CSS flexbox" /> <meta name="description" content="Create a feature list with CSS flexbox" />
<meta name="keywords" content="css feature list, css flexbox" /> <meta name="keywords" content="css feature list, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Fix an element at corner with CSS" /> <meta name="description" content="Fix an element at corner with CSS" />
<meta name="keywords" content="css fixed" /> <meta name="keywords" content="css fixed" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div style={{ height: '100%', position: 'relative' }}> <div style={{ height: '100%', position: 'relative' }}>

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Fix an element at the middle of side with CSS" /> <meta name="description" content="Fix an element at the middle of side with CSS" />
<meta name="keywords" content="css fixed" /> <meta name="keywords" content="css fixed" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a floating label with CSS" /> <meta name="description" content="Create a floating label with CSS" />
<meta name="keywords" content="css floating label, placeholder shown" /> <meta name="keywords" content="css floating label, placeholder shown" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Type something in the input to see how the label is shown up. Type something in the input to see how the label is shown up.
</div> </div>

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a full background element with CSS" /> <meta name="description" content="Create a full background element with CSS" />
<meta name="keywords" content="css background size cover, css full background" /> <meta name="keywords" content="css background size cover, css full background" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a full screen menu with CSS flexbox" /> <meta name="description" content="Create a full screen menu with CSS flexbox" />
<meta name="keywords" content="css fixed, css flexbox, css menu" /> <meta name="keywords" content="css fixed, css flexbox, css menu" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a holy grail layout with CSS flexbox" /> <meta name="description" content="Create a holy grail layout with CSS flexbox" />
<meta name="keywords" content="css flexbox, css holy grail layout, css layout" /> <meta name="keywords" content="css flexbox, css holy grail layout, css layout" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create an initial avatar with CSS" /> <meta name="description" content="Create an initial avatar with CSS" />
<meta name="keywords" content="css avatar" /> <meta name="keywords" content="css avatar" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
To center the content, you also can use other technique demonstrated in To center the content, you also can use other technique demonstrated in
the <Link to='/patterns/centering'>Centering</Link> pattern. the <Link to='/patterns/centering'>Centering</Link> pattern.

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create an input add-on with CSS flexbox" /> <meta name="description" content="Create an input add-on with CSS flexbox" />
<meta name="keywords" content="css flexbox, css input add-on" /> <meta name="keywords" content="css flexbox, css input add-on" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -50,7 +50,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a keyboard shortcut with CSS" /> <meta name="description" content="Create a keyboard shortcut with CSS" />
<meta name="keywords" content="kbd tag, keyboard shortcut" /> <meta name="keywords" content="kbd tag, keyboard shortcut" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
We use the native <code>kbd</code> tag to display the keyboard shortcut. We use the native <code>kbd</code> tag to display the keyboard shortcut.
</div> </div>

View File

@@ -16,7 +16,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create lined paper with CSS" /> <meta name="description" content="Create lined paper with CSS" />
<meta name="keywords" content="css linear gradient, css lined paper, css multiple horizontal lines" /> <meta name="keywords" content="css linear gradient, css lined paper, css multiple horizontal lines" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a media object with CSS flexbox" /> <meta name="description" content="Create a media object with CSS flexbox" />
<meta name="keywords" content="css flexbox, media object" /> <meta name="keywords" content="css flexbox, media object" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -23,7 +23,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a mega menu with CSS" /> <meta name="description" content="Create a mega menu with CSS" />
<meta name="keywords" content="css mega menu" /> <meta name="keywords" content="css mega menu" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Move the mouse over the seccond navigation item to see the mega menu. Move the mouse over the seccond navigation item to see the mega menu.
</div> </div>

View File

@@ -22,7 +22,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a menu with CSS flexbox" /> <meta name="description" content="Create a menu with CSS flexbox" />
<meta name="keywords" content="css flexbox, css menu" /> <meta name="keywords" content="css flexbox, css menu" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a modal with CSS flexbox" /> <meta name="description" content="Create a modal with CSS flexbox" />
<meta name="keywords" content="css dialog, css flexbox, css modal" /> <meta name="keywords" content="css dialog, css flexbox, css modal" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
You can use the <Link to='/patterns/close-button'>close button</Link> to You can use the <Link to='/patterns/close-button'>close button</Link> to
represent the button for closing the modal. represent the button for closing the modal.

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create nested dropdown menu with CSS" /> <meta name="description" content="Create nested dropdown menu with CSS" />
<meta name="keywords" content="css dropdown menu, css multi-level dropdown menu, css nested dropdown menu" /> <meta name="keywords" content="css dropdown menu, css multi-level dropdown menu, css nested dropdown menu" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Hover on the Patterns &rarr; Navigation to see the sub dropdowns. Hover on the Patterns &rarr; Navigation to see the sub dropdowns.
</div> </div>

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a notification with CSS flexbox" /> <meta name="description" content="Create a notification with CSS flexbox" />
<meta name="keywords" content="css alert, css flexbox, css notification" /> <meta name="keywords" content="css alert, css flexbox, css notification" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
You can use the <Link to='/patterns/close-button'>close button</Link> to You can use the <Link to='/patterns/close-button'>close button</Link> to
represent the button for closing the notification. represent the button for closing the notification.

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create an overlay play button with CSS flexbox" /> <meta name="description" content="Create an overlay play button with CSS flexbox" />
<meta name="keywords" content="css flexbox" /> <meta name="keywords" content="css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a pagination with CSS flexbox" /> <meta name="description" content="Create a pagination with CSS flexbox" />
<meta name="keywords" content="css flexbox, css pagination" /> <meta name="keywords" content="css flexbox, css pagination" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a popover arrow with CSS" /> <meta name="description" content="Create a popover arrow with CSS" />
<meta name="keywords" content="css arrow, css popover" /> <meta name="keywords" content="css arrow, css popover" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a presence indicator with CSS" /> <meta name="description" content="Create a presence indicator with CSS" />
<meta name="keywords" content="css indicator" /> <meta name="keywords" content="css indicator" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create previous and next buttons with CSS flexbox" /> <meta name="description" content="Create previous and next buttons with CSS flexbox" />
<meta name="keywords" content="css flexbox, css pagination" /> <meta name="keywords" content="css flexbox, css pagination" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -22,7 +22,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a pricing table with CSS flexbox" /> <meta name="description" content="Create a pricing table with CSS flexbox" />
<meta name="keywords" content="css flexbox, css pricing table" /> <meta name="keywords" content="css flexbox, css pricing table" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
You can <Link to='/patterns/ribbon'>add</Link> <Link to='/patterns/corner-ribbon'>a ribbon</Link> to You can <Link to='/patterns/ribbon'>add</Link> <Link to='/patterns/corner-ribbon'>a ribbon</Link> to
indicate the most popular option. indicate the most popular option.

View File

@@ -22,7 +22,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a progress bar with CSS flexbox" /> <meta name="description" content="Create a progress bar with CSS flexbox" />
<meta name="keywords" content="css flexbox, css progress bar" /> <meta name="keywords" content="css flexbox, css progress bar" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -38,7 +38,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a property list with CSS flexbox" /> <meta name="description" content="Create a property list with CSS flexbox" />
<meta name="keywords" content="css flexbox, property list" /> <meta name="keywords" content="css flexbox, property list" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -58,7 +58,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a questions and answers section with CSS flexbox" /> <meta name="description" content="Create a questions and answers section with CSS flexbox" />
<meta name="keywords" content="css accordion, css faq, css flexbox" /> <meta name="keywords" content="css accordion, css faq, css flexbox" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -77,7 +77,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a radial progress bar with CSS flexbox" /> <meta name="description" content="Create a radial progress bar with CSS flexbox" />
<meta name="keywords" content="css clip rect, css flexbox, css progress bar" /> <meta name="keywords" content="css clip rect, css flexbox, css progress bar" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -52,7 +52,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a radio button group with CSS flexbox" /> <meta name="description" content="Create a radio button group with CSS flexbox" />
<meta name="keywords" content="css flexbox, css radio button" /> <meta name="keywords" content="css flexbox, css radio button" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -22,7 +22,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a radio switch with CSS flexbox" /> <meta name="description" content="Create a radio switch with CSS flexbox" />
<meta name="keywords" content="css flexbox, css radio switch, css switch" /> <meta name="keywords" content="css flexbox, css radio switch, css switch" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a star rating with CSS flexbox" /> <meta name="description" content="Create a star rating with CSS flexbox" />
<meta name="keywords" content="css flexbox, css star rating" /> <meta name="keywords" content="css flexbox, css star rating" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -16,7 +16,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create resizable indicators with CSS" /> <meta name="description" content="Create resizable indicators with CSS" />
<meta name="keywords" content="css resizable, css resize cursor" /> <meta name="keywords" content="css resizable, css resize cursor" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
You can move the mouse over each squares located at the corners and the middle of sides to see You can move the mouse over each squares located at the corners and the middle of sides to see
the cursors which indicate the associated side can be resized. the cursors which indicate the associated side can be resized.

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a ribbon with CSS" /> <meta name="description" content="Create a ribbon with CSS" />
<meta name="keywords" content="css ribbon" /> <meta name="keywords" content="css ribbon" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create same height columns with CSS flexbox" /> <meta name="description" content="Create same height columns with CSS flexbox" />
<meta name="keywords" content="css flexbox, css layout, css same height columns" /> <meta name="keywords" content="css flexbox, css layout, css same height columns" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a search box with CSS flexbox" /> <meta name="description" content="Create a search box with CSS flexbox" />
<meta name="keywords" content="css flexbox, css search box" /> <meta name="keywords" content="css flexbox, css search box" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a separator with CSS flexbox" /> <meta name="description" content="Create a separator with CSS flexbox" />
<meta name="keywords" content="css divider, css flexbox, css separator" /> <meta name="keywords" content="css divider, css flexbox, css separator" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a sidebar with CSS flexbox" /> <meta name="description" content="Create a sidebar with CSS flexbox" />
<meta name="keywords" content="css flexbox, css layout, css sidebar" /> <meta name="keywords" content="css flexbox, css layout, css sidebar" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}>Try to scroll the main content!</div> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>Try to scroll the main content!</div>
<BrowserFrame <BrowserFrame
content={( content={(

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a simple grid with CSS flexbox" /> <meta name="description" content="Create a simple grid with CSS flexbox" />
<meta name="keywords" content="css flexbox, css flexbox grid, css grid, css layout" /> <meta name="keywords" content="css flexbox, css flexbox grid, css grid, css layout" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a slider with CSS flexbox" /> <meta name="description" content="Create a slider with CSS flexbox" />
<meta name="keywords" content="css flexbox, css slider" /> <meta name="keywords" content="css flexbox, css slider" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -24,7 +24,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a spin button with CSS flexbox" /> <meta name="description" content="Create a spin button with CSS flexbox" />
<meta name="keywords" content="css flexbox, css spin button" /> <meta name="keywords" content="css flexbox, css spin button" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a split navigation with CSS flexbox" /> <meta name="description" content="Create a split navigation with CSS flexbox" />
<meta name="keywords" content="css flexbox, css menu, css navigation, css split navigation" /> <meta name="keywords" content="css flexbox, css menu, css navigation, css split navigation" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a split screen with CSS flexbox" /> <meta name="description" content="Create a split screen with CSS flexbox" />
<meta name="keywords" content="css flexbox, css layout, css split screen" /> <meta name="keywords" content="css flexbox, css layout, css split screen" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div style={{ display: 'flex', height: '100%' }}> <div style={{ display: 'flex', height: '100%' }}>

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create stacked cards with CSS" /> <meta name="description" content="Create stacked cards with CSS" />
<meta name="keywords" content="css card, css stacked cards, css transform rotate" /> <meta name="keywords" content="css card, css stacked cards, css transform rotate" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -16,7 +16,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create stamp border with CSS" /> <meta name="description" content="Create stamp border with CSS" />
<meta name="keywords" content="css radial gradient, css stamp border" /> <meta name="keywords" content="css radial gradient, css stamp border" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a statistic component with CSS flexbox" /> <meta name="description" content="Create a statistic component with CSS flexbox" />
<meta name="keywords" content="css flexbox, css statistic" /> <meta name="keywords" content="css flexbox, css statistic" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a status light with CSS flexbox" /> <meta name="description" content="Create a status light with CSS flexbox" />
<meta name="keywords" content="css flexbox, css status light" /> <meta name="keywords" content="css flexbox, css status light" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -27,7 +27,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a stepper input with CSS flexbox" /> <meta name="description" content="Create a stepper input with CSS flexbox" />
<meta name="keywords" content="css flexbox, css stepper input" /> <meta name="keywords" content="css flexbox, css stepper input" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a sticky footer with CSS flexbox" /> <meta name="description" content="Create a sticky footer with CSS flexbox" />
<meta name="keywords" content="css flexbox, css layout, css sticky, css sticky footer" /> <meta name="keywords" content="css flexbox, css layout, css sticky, css sticky footer" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
The footer always sticks to the bottom if the main content is short. The footer always sticks to the bottom if the main content is short.
</div> </div>

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a sticky header with CSS" /> <meta name="description" content="Create a sticky header with CSS" />
<meta name="keywords" content="css layout, css position sticky, css sticky header" /> <meta name="keywords" content="css layout, css position sticky, css sticky header" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Try to scroll the main content to see the header sticks to the top of page. Try to scroll the main content to see the header sticks to the top of page.
</div> </div>

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create sticky sections with CSS" /> <meta name="description" content="Create sticky sections with CSS" />
<meta name="keywords" content="css layout, css sticky, css sticky sections" /> <meta name="keywords" content="css layout, css sticky, css sticky sections" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Try to scroll the main content to see each section sticks to the top of page. Try to scroll the main content to see each section sticks to the top of page.
</div> </div>

View File

@@ -22,7 +22,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create sticky table column with CSS" /> <meta name="description" content="Create sticky table column with CSS" />
<meta name="keywords" content="css position sticky, css sticky table column" /> <meta name="keywords" content="css position sticky, css sticky table column" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Try to scroll the main content of table horizontally to see the first column sticks to the left. Try to scroll the main content of table horizontally to see the first column sticks to the left.
</div> </div>

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create sticky table headers with CSS" /> <meta name="description" content="Create sticky table headers with CSS" />
<meta name="keywords" content="css position sticky, css sticky table headers" /> <meta name="keywords" content="css position sticky, css sticky table headers" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Try to scroll the main content of table to see the header sticks to the top. Try to scroll the main content of table to see the header sticks to the top.
</div> </div>

View File

@@ -21,7 +21,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a switch with CSS flexbox" /> <meta name="description" content="Create a switch with CSS flexbox" />
<meta name="keywords" content="css custom checkbox, css flexbox, css switch, css switcher" /> <meta name="keywords" content="css custom checkbox, css flexbox, css switch, css switcher" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px'}}> <div style={{ lineHeight: 1.5, marginBottom: '16px'}}>
The checkbox is placed inside a label. So when clicking on the label, The checkbox is placed inside a label. So when clicking on the label,
the checkbox will be checked even though it's hidden. the checkbox will be checked even though it's hidden.

View File

@@ -43,7 +43,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create tabs with CSS flexbox" /> <meta name="description" content="Create tabs with CSS flexbox" />
<meta name="keywords" content="css flexbox, css navigation, css tab" /> <meta name="keywords" content="css flexbox, css navigation, css tab" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => {
content="css border radius, css teardrop, css water drop shape, css water droplet" content="css border radius, css teardrop, css water drop shape, css water droplet"
/> />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a timeline with CSS flexbox" /> <meta name="description" content="Create a timeline with CSS flexbox" />
<meta name="keywords" content="css flexbox, css timeline" /> <meta name="keywords" content="css flexbox, css timeline" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a toggle password visibility with CSS flexbox" /> <meta name="description" content="Create a toggle password visibility with CSS flexbox" />
<meta name="keywords" content="css flexbox, toggle password visibility" /> <meta name="keywords" content="css flexbox, toggle password visibility" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -22,7 +22,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a tooltip with CSS" /> <meta name="description" content="Create a tooltip with CSS" />
<meta name="keywords" content="css tooltip" /> <meta name="keywords" content="css tooltip" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
Move the mouser over the main element to see the tooltip. Move the mouser over the main element to see the tooltip.
</div> </div>

View File

@@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create triangle buttons with CSS" /> <meta name="description" content="Create triangle buttons with CSS" />
<meta name="keywords" content="css triangle buttons" /> <meta name="keywords" content="css triangle buttons" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create an upload button with CSS flexbox" /> <meta name="description" content="Create an upload button with CSS flexbox" />
<meta name="keywords" content="css file input, css flexbox, css upload button" /> <meta name="keywords" content="css file input, css flexbox, css upload button" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
You can click the button to choose a file. You can click the button to choose a file.
</div> </div>

View File

@@ -16,7 +16,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Add validation icons to input with CSS" /> <meta name="description" content="Add validation icons to input with CSS" />
<meta name="keywords" content="css validation icon" /> <meta name="keywords" content="css validation icon" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Add video background with CSS flexbox" /> <meta name="description" content="Add video background with CSS flexbox" />
<meta name="keywords" content="css flexbox, object fit cover" /> <meta name="keywords" content="css flexbox, object fit cover" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<div style={{ lineHeight: 1.5, marginBottom: '16px' }}> <div style={{ lineHeight: 1.5, marginBottom: '16px' }}>
In this pattern, the video is displayed in the background. In this pattern, the video is displayed in the background.
</div> </div>

View File

@@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a watermask with CSS" /> <meta name="description" content="Create a watermask with CSS" />
<meta name="keywords" content="css watermask" /> <meta name="keywords" content="css watermask" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => {
<meta name="description" content="Create a wizard with CSS flexbox" /> <meta name="description" content="Create a wizard with CSS flexbox" />
<meta name="keywords" content="css flexbox, css stepper, css wizard" /> <meta name="keywords" content="css flexbox, css stepper, css wizard" />
</Helmet> </Helmet>
<div style={{ padding: '64px 32px' }}> <div className='p-8 pb-20'>
<BrowserFrame <BrowserFrame
content={( content={(
<div <div

View File

@@ -18,10 +18,10 @@ const BrowserFrame: React.FC<BrowserFrameProps> = ({ content, source }) => {
return ( return (
<div <div
className='shadow-2xl'
style={{ style={{
border: '1px solid rgba(0, 0, 0, 0.2)', border: '1px solid rgba(0, 0, 0, 0.2)',
borderRadius: '4px', borderRadius: '4px',
boxShadow: '0 16px 40px -8px rgba(0, 0, 0, .5)',
}} }}
> >
<div <div