mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
fix style
This commit is contained in:
parent
9ac17978ff
commit
cdfef287cf
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue