content layout updated to improve mobile

This commit is contained in:
tmshv committed 2020-02-22 02:54:50 +03:00
1 parent 86c7c63c6c
commit 70e8bd6460
10 files changed
+9 -27

No files matched your search

-3
View File
@@ -27,9 +27,6 @@ const Page: NextPage<Props> = props => {
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
contentStyle={{
marginTop: 'var(--size-l)'
}}
> >
<Head> <Head>
<title>{props.data.title}</title> <title>{props.data.title}</title>
-3
View File
@@ -31,9 +31,6 @@ const Page: NextPage<Props> = props => {
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
wide={true} wide={true}
contentStyle={{
margin: 'var(--size-l) var(--size-xl)'
}}
> >
<Head> <Head>
<title>{props.title}</title> <title>{props.title}</title>
-3
View File
@@ -38,9 +38,6 @@ const Page: NextPage<Props> = props => {
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
wide={true} wide={true}
contentStyle={{
margin: 'var(--size-l) var(--size-xl)'
}}
> >
<Head> <Head>
<title>{props.title}</title> <title>{props.title}</title>
-3
View File
@@ -28,9 +28,6 @@ const Page: NextPage<Props> = props => {
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
contentStyle={{
marginTop: 'var(--size-l)'
}}
> >
<Head> <Head>
<title>{props.data.title}</title> <title>{props.data.title}</title>
-3
View File
@@ -103,9 +103,6 @@ const Page: NextPage<IProps> = props => (
<App <App
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
contentStyle={{
marginTop: 'var(--size-l)'
}}
> >
<Head> <Head>
<title>{props.title}</title> <title>{props.title}</title>
-3
View File
@@ -74,9 +74,6 @@ const Page: NextPage<IProps> = props => (
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
wide={true} wide={true}
contentStyle={{
margin: 'var(--size-l) var(--size-xl)'
}}
> >
<Head> <Head>
<title>{props.title}</title> <title>{props.title}</title>
-3
View File
@@ -24,9 +24,6 @@ const Page: NextPage<IProps> = props => (
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
wide={true} wide={true}
contentStyle={{
margin: 'var(--size-l) var(--size-xl)',
}}
> >
<Head> <Head>
<title>{props.title}</title> <title>{props.title}</title>
-3
View File
@@ -18,9 +18,6 @@ const Page: NextPage<Props> = props => (
menu={buildMenu(props.pageUrl, menuModel)} menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true} showAuthor={true}
wide={true} wide={true}
contentStyle={{
marginTop: 'var(--size-l)'
}}
> >
<Head> <Head>
<title>{props.title}</title> <title>{props.title}</title>
+6 -2
View File
@@ -22,8 +22,10 @@
--tablet-max-width: 64em; --tablet-max-width: 64em;
/* CONTENT */ /* CONTENT */
--content-wide: 100%;
--content-width: 60%; --content-width: 60%;
--content-margin: 0;
--content-wide-width: 100%;
--content-wide-margin: var(--size-l) var(--size-xl);
--embed-video-ratio: 56.25%; --embed-video-ratio: 56.25%;
@@ -193,7 +195,9 @@ a.invisible {
--font-size-h2: 1.5rem; --font-size-h2: 1.5rem;
--font-size-h3: 1.25rem; --font-size-h3: 1.25rem;
--content-wide: 90%; --content-width: 100%;
--content-margin: var(--size-l);
--content-wide-margin: var(--size-l) var(--size-l);
--kazimir-image-increase: 0px; --kazimir-image-increase: 0px;
} }
+3 -1
View File
@@ -1,9 +1,11 @@
.content { .content {
width: var(--content-width); width: var(--content-width);
margin: var(--content-margin);
} }
.content_wide { .content_wide {
--content-width: var(--content-wide); --content-width: var(--content-wide-width);
--content-margin: var(--content-wide-margin);
} }
/* Animation on load */ /* Animation on load */