diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-14 02:12:46 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-14 02:12:46 +0900 |
| commit | 3db37e1d52e7253c02ccc1608196d067edf96bf0 (patch) | |
| tree | cff68484911f354b182aa48bedf04e4e94b505e1 | |
| parent | Tweak UI (diff) | |
| download | sharkey-3db37e1d52e7253c02ccc1608196d067edf96bf0.tar.gz sharkey-3db37e1d52e7253c02ccc1608196d067edf96bf0.tar.bz2 sharkey-3db37e1d52e7253c02ccc1608196d067edf96bf0.zip | |
Tweak UI
| -rw-r--r-- | src/client/components/note.vue | 11 | ||||
| -rw-r--r-- | src/client/pages/page.vue | 4 | ||||
| -rw-r--r-- | src/client/style.scss | 8 |
3 files changed, 7 insertions, 16 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue index e51085307a..0e153033ca 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -863,7 +863,6 @@ export default defineComponent({ .tkcbzcuz { position: relative; transition: box-shadow 0.1s ease; - overflow: hidden; overflow: clip; contain: content; @@ -1001,11 +1000,6 @@ export default defineComponent({ position: sticky; top: calc(22px + var(--stickyTop, 0px)); left: 0; - - /* iOSはoverflow: clipをサポートしていない影響でposition: stickyが動作しない */ - @supports (-webkit-touch-callout: none) { - top: 0; - } } > .main { @@ -1150,11 +1144,6 @@ export default defineComponent({ width: 50px; height: 50px; top: calc(14px + var(--stickyTop, 0px)); - - /* iOSはoverflow: clipをサポートしていない影響でposition: stickyが動作しない */ - @supports (-webkit-touch-callout: none) { - top: 0; - } } } } diff --git a/src/client/pages/page.vue b/src/client/pages/page.vue index bae72c0539..57bbeba6b2 100644 --- a/src/client/pages/page.vue +++ b/src/client/pages/page.vue @@ -1,5 +1,7 @@ <template> <div class="xcukqgmh _root" v-if="page" :key="page.id" v-size="{ max: [450] }"> + <div class="_magnet"></div> + <div class="_block main"> <!-- <div class="header"> @@ -191,7 +193,7 @@ export default defineComponent({ } > .footer { - padding: var(--padding); + margin: var(--padding); font-size: 85%; opacity: 0.75; } diff --git a/src/client/style.scss b/src/client/style.scss index b11c3103cd..e9c28f1827 100644 --- a/src/client/style.scss +++ b/src/client/style.scss @@ -249,10 +249,6 @@ hr { margin: var(--margin) 0; } -._magnet { - margin-bottom: calc(var(--margin) * -1); -} - ._gap { margin: var(--margin) 0; } @@ -370,6 +366,10 @@ hr { border-radius: var(--radius); } + ._magnet { + margin-bottom: calc(var(--margin) * -1); + } + @media (max-width: 500px) { ._root { --root-margin: 0; |