From 926266c7af106345ba28c6b13a8e1c1e9cc11acc Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 18 Apr 2021 11:55:38 +0900 Subject: fix style --- src/client/style.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/style.scss b/src/client/style.scss index eadf56bf37..4c101c1dab 100644 --- a/src/client/style.scss +++ b/src/client/style.scss @@ -323,6 +323,11 @@ hr { margin: var(--root-margin, 32px) auto; max-width: min(var(--baseContentWidth), calc(100% - (var(--root-margin, 32px) * 2))); + // 子marginが突き抜けるのを防ぐため + // https://stackoverflow.com/questions/1762539/margin-on-child-element-moves-parent-element + padding-top: 1px; + margin-top: calc(var(--root-margin, 32px) - 1px); + @media (max-width: 500px) { --root-margin: 10px; } @@ -344,7 +349,7 @@ hr { } ._flat_ { - --root-margin: 0; + --root-margin: 0px; --baseContentWidth: 100%; --panelShadow: none; @@ -365,7 +370,7 @@ hr { @media (max-width: 500px) { ._root { - --root-margin: 0; + --root-margin: 0px; } } } -- cgit v1.2.3-freya From 5c51185388ba9e252019a328897c0d2f9f24a149 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 18 Apr 2021 11:55:44 +0900 Subject: refactoring --- src/client/components/date-separated-list.vue | 8 -------- src/client/ui/deck/column.vue | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'src/client') diff --git a/src/client/components/date-separated-list.vue b/src/client/components/date-separated-list.vue index 012ed42385..0f2823d392 100644 --- a/src/client/components/date-separated-list.vue +++ b/src/client/components/date-separated-list.vue @@ -171,12 +171,4 @@ export default defineComponent({ } } } - -._inContainer_ .sqadhkmv > * { - margin: 0 !important; - border: none; - border-bottom: solid 0.5px var(--divider); - border-radius: 0; - box-shadow: none; -} diff --git a/src/client/ui/deck/column.vue b/src/client/ui/deck/column.vue index 3fae7c27ee..7a08b65a64 100644 --- a/src/client/ui/deck/column.vue +++ b/src/client/ui/deck/column.vue @@ -1,6 +1,6 @@