diff options
| author | William Hergès <william@herges.fr> | 2025-09-06 22:10:53 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-09-06 22:10:53 +0200 |
| commit | 869073cfdc35aeccb1767d4bf45d48f8eadb8f87 (patch) | |
| tree | b4bba6ac5267ecb79d4f8c415e3c01bd7b8e3931 | |
| parent | f6ff8f4d1ae95bb229b3142a689cb6a68d12198f (diff) | |
feat(ring): not fixed on home
| -rw-r--r-- | scss/main.scss | 6 | ||||
| -rw-r--r-- | templates/base/base.gohtml | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/scss/main.scss b/scss/main.scss index 43db9db..2e6bd3f 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -262,7 +262,7 @@ li { } .rings { - position: fixed; + position: absolute; right: 4rem; bottom: 4rem; display: flex; @@ -272,10 +272,12 @@ li { gap: 1rem; height: 3rem; @media only screen and (max-width: vars.$bp-little) { - position: absolute; left: 2rem; right: 2rem; } + &.fixed { + position: fixed; + } } .ring { diff --git a/templates/base/base.gohtml b/templates/base/base.gohtml index 994e06a..785bbaf 100644 --- a/templates/base/base.gohtml +++ b/templates/base/base.gohtml @@ -24,7 +24,7 @@ </div> {{ $rings := getRings }} {{ if ne $rings nil }} - <div class="rings"> + <div class="rings {{ if ne .SEO.URL "/" }}fixed{{ end }}"> {{ range $ring := $rings }} <a href="{{ $ring.Link }}" target="_blank" class="ring"> <img src="{{ getImage $ring.Image }}" alt="{{ $ring.Name }} logo"> |
