Skip to content

Commit 8bfc640

Browse files
authored
Merge pull request #228 from znz/fix-eol-warning-overlap
EOL 警告バナーが sticky ヘッダに隠れないようにする
2 parents 23650cb + f0cd923 commit 8bfc640

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

theme/default/style.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,16 @@ hr {
448448
right: 10px;
449449
}
450450

451+
/* EOL 警告バナー(statichtml --eol-warning、body の先頭に入る)。
452+
#rurema-topbar と同じく負マージンで body の余白(上 20px・左右 2%)を
453+
突き破って全幅にする。下マージン 20px は直後の topbar の margin-top -20px と
454+
相殺され、topbar がバナーの真下に密着する(バナーが無いページでは
455+
topbar 自身の負マージンが従来どおり body の余白を打ち消す) */
451456
.eol-warning {
452457
background-color: #aa3333;
453458
color: white;
454-
padding: 0.4em;
455-
margin: 0;
459+
padding: 0.4em 2%;
460+
margin: -20px -2% 20px;
456461
}
457462

458463
.eol-warning a {

0 commit comments

Comments
 (0)