From 7c7f4e5c74ce383074aa3fb4bba336e99fe58515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Mon, 21 May 2018 15:26:15 -0500 Subject: [PATCH] CSS fixes and beginning of new Documentation page --- .vuepress/components/GithubFeed.vue | 26 +++++----- .vuepress/scss/_layout.scss | 22 +++++++++ .vuepress/scss/pages/_documentation.scss | 2 + .vuepress/scss/pages/_home.scss | 60 ++++++++---------------- .vuepress/theme/Layout.vue | 37 +++++++++++---- documentation/index.md | 4 ++ 6 files changed, 90 insertions(+), 61 deletions(-) create mode 100644 .vuepress/scss/pages/_documentation.scss create mode 100644 documentation/index.md diff --git a/.vuepress/components/GithubFeed.vue b/.vuepress/components/GithubFeed.vue index 02733a6..4e0829c 100644 --- a/.vuepress/components/GithubFeed.vue +++ b/.vuepress/components/GithubFeed.vue @@ -11,61 +11,61 @@

- in {{ event.repo.name }} + {{ event.repo.name }} {{ event.created_at | moment('from') }}

@@ -271,7 +271,9 @@ export default { } > p:first-of-type { - box-shadow: 0 2px 5px rgba($black, 0.025); + @media (max-width: 700px) { + box-shadow: 0 2px 5px rgba($black, 0.025); + } code { background-color: $black; diff --git a/.vuepress/scss/_layout.scss b/.vuepress/scss/_layout.scss index 36c983a..5be2714 100644 --- a/.vuepress/scss/_layout.scss +++ b/.vuepress/scss/_layout.scss @@ -72,3 +72,25 @@ h1, h2, h3, h4, h5 { display: none; } } + +.alert { + background-color: $yellow; + line-height: 1.33; + padding-top: 1rem; + padding-right: env(safe-area-inset-right); + padding-bottom: 1rem; + padding-left: env(safe-area-inset-left); + text-align: center; + + @media (min-width: 901px) { + font-size: 1rem; + } + + @media (max-width: 900px) { + font-size: 0.8rem; + } + + a { + font-weight: 600; + } +} diff --git a/.vuepress/scss/pages/_documentation.scss b/.vuepress/scss/pages/_documentation.scss new file mode 100644 index 0000000..9a174c3 --- /dev/null +++ b/.vuepress/scss/pages/_documentation.scss @@ -0,0 +1,2 @@ +.documentation { +} diff --git a/.vuepress/scss/pages/_home.scss b/.vuepress/scss/pages/_home.scss index 9dbfe08..3d7f554 100644 --- a/.vuepress/scss/pages/_home.scss +++ b/.vuepress/scss/pages/_home.scss @@ -33,7 +33,7 @@ margin-bottom: 4rem; } - &.hero { + .hero { align-items: center; background-color: $black; background-image: url("../media/svg/text-logo--white.svg"); @@ -58,27 +58,7 @@ } } - &.alert { - background-color: $yellow; - line-height: 1.33; - padding-top: 1rem; - padding-bottom: 1rem; - text-align: center; - - @media (min-width: 901px) { - font-size: 1rem; - } - - @media (max-width: 900px) { - font-size: 0.8rem; - } - - a { - font-weight: 600; - } - } - - &.features { + .features { grid-area: features; .home__features { @@ -136,11 +116,11 @@ } } - &.intro, - &.docs, - &.contribute, - &.develop, - &.community { + .intro, + .docs, + .contribute, + .develop, + .community { padding-top: 3rem; padding-bottom: 3.5rem; @@ -200,30 +180,30 @@ } } - &.intro, - &.docs, - &.contribute, - &.develop { + .intro, + .docs, + .contribute, + .develop { border-bottom: 1px solid rgba($black, 0.05); } - &.intro, - &.docs { + .intro, + .docs { @media (min-width: 1301px) { padding-left: 10%; } } - &.intro { + .intro { grid-area: intro; } - &.docs { + .docs { grid-area: docs; } - &.community, - &.contribute { + .community, + .contribute { p { @media (min-width: 1301px) { margin-right: auto; @@ -290,7 +270,7 @@ } } - &.contribute { + .contribute { grid-area: contribute; ul { @@ -338,11 +318,11 @@ } } - &.develop { + .develop { grid-area: develop; } - &.community { + .community { grid-area: community; ul { diff --git a/.vuepress/theme/Layout.vue b/.vuepress/theme/Layout.vue index 6758eeb..29c60d6 100644 --- a/.vuepress/theme/Layout.vue +++ b/.vuepress/theme/Layout.vue @@ -1,5 +1,5 @@