content style update: rm thin; rm menu padding

This commit is contained in:
tmshv committed 2020-02-21 21:33:49 +03:00
1 parent f2b548aee8
commit 1bdea85b1b
14 files changed
+16 -92

No files matched your search

+1 -2
View File
@@ -18,8 +18,7 @@ const Index = props => (
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true} layout={'wide'}
layout={'thin'}
> >
<Head> <Head>
<title>{props.title}</title> <title>{props.title}</title>
+1 -2
View File
@@ -23,8 +23,7 @@ const Page: NextPage<Props> = props => {
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true} layout={'wide'}
layout={'thin'}
> >
<Head> <Head>
<title>{props.data.title}</title> <title>{props.data.title}</title>
+1 -2
View File
@@ -27,8 +27,7 @@ const Page: NextPage<Props> = props => {
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true} layout={'wide'}
layout={'thin'}
> >
<Head> <Head>
<title>{props.data.title}</title> <title>{props.data.title}</title>
-1
View File
@@ -30,7 +30,6 @@ const Page: NextPage<Props> = props => {
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true}
layout={'wide'} layout={'wide'}
> >
<Head> <Head>
-1
View File
@@ -36,7 +36,6 @@ const Page: NextPage<Props> = props => {
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true}
layout={'wide'} layout={'wide'}
> >
<Head> <Head>
-1
View File
@@ -28,7 +28,6 @@ const Page: NextPage<Props> = props => {
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true}
layout={'wide'} layout={'wide'}
> >
<Head> <Head>
+1 -2
View File
@@ -103,8 +103,7 @@ const Page: NextPage<IProps> = props => (
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true} layout={'wide'}
layout={'thin'}
> >
<Head> <Head>
<title>{props.title}</title> <title>{props.title}</title>
-1
View File
@@ -73,7 +73,6 @@ const Page: NextPage<IProps> = props => (
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true}
layout={'wide'} layout={'wide'}
> >
<Head> <Head>
-1
View File
@@ -22,7 +22,6 @@ const Page: NextPage<IProps> = props => (
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true}
layout={'wide'} layout={'wide'}
> >
<Head> <Head>
-1
View File
@@ -17,7 +17,6 @@ const Page: NextPage<Props> = props => (
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true}
layout={'wide'} layout={'wide'}
> >
<Head> <Head>
+1 -2
View File
@@ -28,8 +28,7 @@ const Index: NextPage<IProps> = props => {
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
menuPadding={true} layout={'wide'}
layout={'thin'}
> >
<Head> <Head>
<title>{props.title}</title> <title>{props.title}</title>
+9 -6
View File
@@ -15,8 +15,7 @@ const Navigation = dynamic(() => import('../Navigation').then(mod => mod.Navigat
export interface IAppProps { export interface IAppProps {
menu: any menu: any
showAuthor: boolean showAuthor: boolean
menuPadding: boolean layout: 'full' | 'wide'
layout: 'full' | 'wide' | 'thin'
} }
export const App: React.FC<IAppProps> = props => { export const App: React.FC<IAppProps> = props => {
@@ -38,10 +37,14 @@ export const App: React.FC<IAppProps> = props => {
/> />
)} )}
> >
<div className={cx('content', `content_${props.layout}`, { <div
'content--padding-top--menu': props.menuPadding, className={cx('content', `content_${props.layout}`, {
'reduced-motion': motionDisabled, 'reduced-motion': motionDisabled,
})}> })}
style={{
paddingTop: 'var(--menu-thickness)'
}}
>
{props.children} {props.children}
</div> </div>
+2 -6
View File
@@ -24,11 +24,8 @@
--tablet-max-width: 64em; --tablet-max-width: 64em;
/* CONTENT */ /* CONTENT */
--content-full: 100%; --content-wide: 60%;
--content-wide: 90%; --content-width: 100%;
--content-semi-wide: 70%;
--content-thin: 60%;
--content-width: var(--content-full);
--embed-video-ratio: 56.25%; --embed-video-ratio: 56.25%;
@@ -198,7 +195,6 @@ a.invisible {
--font-size-h2: 1.5rem; --font-size-h2: 1.5rem;
--font-size-h3: 1.25rem; --font-size-h3: 1.25rem;
--content-thin: 90%;
--content-wide: 90%; --content-wide: 90%;
--kazimir-image-increase: 0px; --kazimir-image-increase: 0px;
-64
View File
@@ -1,29 +1,11 @@
.content { .content {
// margin: 0 auto 1em;
width: var(--content-width); width: var(--content-width);
} }
.content_full {
--content-width: var(--content-full);
}
.content_wide { .content_wide {
--content-width: var(--content-wide); --content-width: var(--content-wide);
} }
.content_semi-wide {
--content-width: var(--content-semi-wide);
}
.content_thin {
--content-width: var(--content-thin);
}
.content--padding-top--menu {
padding-top: var(--menu-thickness);
}
// Animation on load // Animation on load
@keyframes smallSlideInFromTop { @keyframes smallSlideInFromTop {
@@ -44,49 +26,3 @@
.content.reduced-motion { .content.reduced-motion {
animation: none; animation: none;
} }
@media screen and (min-width: var(--tablet-min-width)) and (max-width: var(--tablet-max-width)) {
$thin-value: 70%;
$wide-value: 95%;
$semi-wide-value: 80%;
.content {
overflow-x: scroll;
&.content_wide {
width: $wide-value;
}
&.content_semi-wide {
width: $semi-wide-value;
}
&.content_thin {
width: $thin-value;
}
&.content--padding-top--menu {
padding-top: var(--double-margin);
}
}
@media screen and (orientation: portrait) {
$wide-value: 100%;
$thin-value: 80%;
$semi-wide-value: 95%;
.content {
&.content_wide {
width: $wide-value;
}
&.content_semi-wide {
width: $semi-wide-value;
}
&.content_thin {
width: $thin-value;
}
}
}
}