From 576b1bcf2e7485c59ec152ba96bf33de605b7654 Mon Sep 17 00:00:00 2001 From: Emma Garland Date: Mon, 5 Jun 2017 10:48:52 +0100 Subject: [PATCH] Load more button now functional --- .../src/scss/sections/_contributors.scss | 16 +++++++++++++++- .../Views/Partials/Community/Scripts.cshtml | 18 +++++++++++------- .../Partials/Home/GitHubContributors.cshtml | 1 + 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/OurUmbraco.Client/src/scss/sections/_contributors.scss b/OurUmbraco.Client/src/scss/sections/_contributors.scss index 81293943..fc617670 100644 --- a/OurUmbraco.Client/src/scss/sections/_contributors.scss +++ b/OurUmbraco.Client/src/scss/sections/_contributors.scss @@ -1,4 +1,18 @@ -.contributor { +#github-contributors { + &:not(.all) { + .contributor:nth-child(n+17) { + display: none; + } + } + &.all { + .button { display: none; } + } + .button { + margin: 20px auto; + } +} + +.contributor { margin-bottom: 15px; .avatar { diff --git a/OurUmbraco.Site/Views/Partials/Community/Scripts.cshtml b/OurUmbraco.Site/Views/Partials/Community/Scripts.cshtml index 34dfc1d5..ec839f2e 100644 --- a/OurUmbraco.Site/Views/Partials/Community/Scripts.cshtml +++ b/OurUmbraco.Site/Views/Partials/Community/Scripts.cshtml @@ -1,16 +1,20 @@