From 87322c58f4a26f7818052f1653a3ec65bbb14188 Mon Sep 17 00:00:00 2001 From: Yves Gatesoupe Date: Thu, 16 Jul 2020 23:34:37 +0200 Subject: [PATCH] File cleanup --- .eleventy.js | 4 ---- src/scss/components/_form.scss | 8 ------- src/scss/components/_intro.scss | 4 ++++ src/scss/components/_member.scss | 4 ++++ src/scss/components/_nav.scss | 2 -- src/scss/components/_pagination.scss | 29 -------------------------- src/scss/components/_post.scss | 2 -- src/scss/components/_site-foot.scss | 5 +---- src/scss/components/_skip-link.scss | 1 - src/scss/components/_video-player.scss | 1 - 10 files changed, 9 insertions(+), 51 deletions(-) delete mode 100644 src/scss/components/_pagination.scss diff --git a/.eleventy.js b/.eleventy.js index f1a77b9..3380c11 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -103,15 +103,11 @@ module.exports = function(config) { } }); - // Watch sass - // config.addWatchTarget("./src/scss/"); - return { dir: { input: 'src', output: 'dist' }, passthroughFileCopy: true, - // pathPrefix: '/preprod' //TODO remove when prod }; }; diff --git a/src/scss/components/_form.scss b/src/scss/components/_form.scss index 1d017e8..6a3c3b3 100644 --- a/src/scss/components/_form.scss +++ b/src/scss/components/_form.scss @@ -1,5 +1,3 @@ -/* Form */ - .home .form-container { svg > path:first-child { fill: #f1f0f6; @@ -64,7 +62,6 @@ textarea { select { background-image: url("data:image/svg+xml,%3Csvg width='32' height='48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M23 32l-7.794-12h15.588L23 32z' fill='%23333'/%3E%3C/svg%3E"); background-repeat: no-repeat; - /* arrow icon position (1em from the right, 50% vertical) , then gradient position*/ background-position: right 1.5rem top 50%; background-size: 2rem 3rem; -moz-appearance: none; @@ -103,7 +100,6 @@ legend { } .field-list__field-group { - // margin-bottom: 2rem; transition: transform 150ms; &__description { @@ -125,10 +121,6 @@ legend { list-style: none; margin: 0; - label { - // font-weight: normal; - } - .field-list__field-group__description { margin: 0 0 0 1.35rem; } diff --git a/src/scss/components/_intro.scss b/src/scss/components/_intro.scss index f030231..6980652 100644 --- a/src/scss/components/_intro.scss +++ b/src/scss/components/_intro.scss @@ -25,6 +25,10 @@ font-size: 2.5rem; display: inline-block; + &::after { + display: none; + } + &--compact { max-width: 20ex; } diff --git a/src/scss/components/_member.scss b/src/scss/components/_member.scss index 0af41aa..7af1878 100644 --- a/src/scss/components/_member.scss +++ b/src/scss/components/_member.scss @@ -6,6 +6,10 @@ h1 { font-size: 2rem; + + &::after { + display: none; + } } .position { diff --git a/src/scss/components/_nav.scss b/src/scss/components/_nav.scss index e21bfc7..dbf6525 100644 --- a/src/scss/components/_nav.scss +++ b/src/scss/components/_nav.scss @@ -1,8 +1,6 @@ .nav { &__list { overflow-x: auto; - - // Add padding and neg margin to allow focus style visibility padding: .5rem; margin: -.5rem; -webkit-overflow-scrolling: touch; diff --git a/src/scss/components/_pagination.scss b/src/scss/components/_pagination.scss deleted file mode 100644 index c7e277a..0000000 --- a/src/scss/components/_pagination.scss +++ /dev/null @@ -1,29 +0,0 @@ -.pagination { - flex-wrap: wrap; - - a { - color: var(--color-theme-primary); - - &:not(:hover) { - text-decoration: none; - } - - // Flip content if direction is backwards - &[data-direction='backwards'] { - flex-direction: row-reverse; - - svg { - transform: rotate(-180deg); - } - } - - // If only child and forwards, push out to the right - &[data-direction='forwards']:only-child { - margin-left: auto; - } - } - - svg { - pointer-events: none; - } -} diff --git a/src/scss/components/_post.scss b/src/scss/components/_post.scss index 4e74b30..a24ec68 100644 --- a/src/scss/components/_post.scss +++ b/src/scss/components/_post.scss @@ -73,8 +73,6 @@ video { width: 100%; max-width: map-get($metrics, 'wrap-max-width'); - // margin-left: 50%; /*changing this value to 47% removes the horizontal scrollbar once the viewport is < 930px */ - // transform: translateX (-50%); /* changing this value to 49% allows for the suggestion above to also eliminate the horizontal scroll. */ position: relative; } diff --git a/src/scss/components/_site-foot.scss b/src/scss/components/_site-foot.scss index 89aece9..4024b2d 100644 --- a/src/scss/components/_site-foot.scss +++ b/src/scss/components/_site-foot.scss @@ -30,6 +30,7 @@ .footer-link { color: var(--color-white); + font-weight: 600; } a { @@ -41,8 +42,4 @@ outline-color: var(--color-white); } } - - &__credit { - // text-align: center; - } } diff --git a/src/scss/components/_skip-link.scss b/src/scss/components/_skip-link.scss index 20a3ef3..6bd377d 100644 --- a/src/scss/components/_skip-link.scss +++ b/src/scss/components/_skip-link.scss @@ -1,4 +1,3 @@ -// Hide skip link visually by default .skip-link:not(:focus) { @extend %visually-hidden; } diff --git a/src/scss/components/_video-player.scss b/src/scss/components/_video-player.scss index 9ce9d17..fe3d9b1 100644 --- a/src/scss/components/_video-player.scss +++ b/src/scss/components/_video-player.scss @@ -16,7 +16,6 @@ height: 100%; } - // If it’s bleeding out in a post, it needs more padding .post & { padding-top: 63%; }