mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-25 15:46:06 +09:00
fix style
This commit is contained in:
parent
9ac17978ff
commit
cdfef287cf
@ -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 New Issue
Block a user