diff --git a/src/routes/home/index.js b/src/routes/home/index.js index 1b9bba1..0dd83c0 100644 --- a/src/routes/home/index.js +++ b/src/routes/home/index.js @@ -2,14 +2,17 @@ import React from 'react' import Page from '../../components/page' export default () => ( -
+
-

Wikipadia

+

Wikipadia

WikiPadia is a beautiful, customisable Wikipedia reader. It was specifically built for leisurely reading on an iPad.

+

+ Source code +

diff --git a/src/styles/_home.scss b/src/styles/_home.scss new file mode 100644 index 0000000..9c257d9 --- /dev/null +++ b/src/styles/_home.scss @@ -0,0 +1,118 @@ +.home-page { + .blurb { + text-align: center; + } + + .container + .container { + padding-top: 0; + + .page-title { + display: none; + } + } + + .loading { + &:before, + &:after { + top: 0; + } + } + + .page { + .root h2 .mw-headline:before { + display: none; + } + } + + #mp-topbanner { + > div { + display: none; + } + + ul { + margin: 0; + padding: 0; + text-align: center; + + &:before { + content: 'Categories'; + display: block; + font-family: $title-stack; + margin-bottom: 1rem; + font-size: 1.25rem; + } + + li { + display: inline-block; + + a { + padding: 0.25rem; + } + } + } + } + + #mp-upper { + tr { + display: flex; + + td { + flex: 50%; + } + } + } + + #mp-left { + padding-right: 1.5rem; + + + td { + display: none !important; + } + } + + #mp-right { + padding-left: 1.5rem; + } + + #mp-upper, + #mp-lower, + #mp-upper td, + #mp-lower td { + display: block; + } + + #mp-otd p:first-child { + text-align: center; + } + + #mp-tfp img { + width: 100%; + } + + #mp-sister-content .plainlinks tbody { + display: flex; + flex-wrap: wrap; + text-align: center; + justify-content: center; + + tr { + margin: 1rem; + } + } + + #lang > ul { + display: flex; + flex-wrap: wrap; + margin: 0; + padding: 0; + + li { + display: block; + margin-right: 1.5rem; + } + } + + #metalink { + text-align: center; + } +} diff --git a/src/styles/_main.scss b/src/styles/_main.scss deleted file mode 100644 index e69de29..0000000 diff --git a/src/styles/_thumbs.scss b/src/styles/_thumbs.scss index 06336a4..11d70f7 100644 --- a/src/styles/_thumbs.scss +++ b/src/styles/_thumbs.scss @@ -1,12 +1,8 @@ +.mp-thumb, .thumb { margin: 2em auto; text-align: center; - .thumbinner { - margin: auto; - width: auto; - } - .thumbcaption { font-size: 75%; margin: 1rem auto; @@ -16,7 +12,13 @@ } } +.thumbinner { + margin: auto; + width: auto; +} + .infobox :only-child > .image, +.mp-thumb .image, .thumb { display: block; diff --git a/src/styles/styles.scss b/src/styles/styles.scss index 7f679de..9101296 100644 --- a/src/styles/styles.scss +++ b/src/styles/styles.scss @@ -9,7 +9,7 @@ $header-height: 3.25rem; @import 'layout'; @import 'typography'; -@import 'main'; +@import 'home'; @import 'page'; @import 'themes'; @import 'loading';