mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 02:13:09 +02:00
fix style
This commit is contained in:
parent
7c26fbbb2e
commit
926266c7af
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