Skip to content

Commit 8283df7

Browse files
committed
Optimize display of trick
1 parent 1ab0788 commit 8283df7

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

include/layout.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ function get_news_changes()
566566
function doc_toc($lang): void {
567567
$file = __DIR__ . "/../manual/$lang/toc/index.inc";
568568
if (!file_exists($file)) {
569-
$lang = "en"; // Fallback on english if the translation doesn't exist
569+
$lang = "en"; // Fallback on English if the translation doesn't exist
570570
$file = __DIR__ . "/../manual/en/toc/index.inc";
571571
}
572572
require __DIR__ . "/../manual/$lang/toc/index.inc";

styles/theme-base.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,10 @@ div.soft-deprecation-notice blockquote.sidebar {
13371337
height: 100%;
13381338
width: 100%;
13391339
position: fixed;
1340-
top: 64px;
1340+
top: 0;
1341+
overflow-y: auto;
1342+
-webkit-overflow-scrolling: touch;
1343+
overscroll-behavior: contain;
13411344
z-index: 5000;
13421345
}
13431346
#goto div,
@@ -1351,6 +1354,14 @@ div.soft-deprecation-notice blockquote.sidebar {
13511354
display: inline-block;
13521355
vertical-align: top;
13531356
}
1357+
#trick dt {
1358+
margin: .5rem 0 .25rem;
1359+
line-height: 1.4;
1360+
}
1361+
#trick dd {
1362+
margin: 0 0 .75rem 1rem;
1363+
line-height: 1.6;
1364+
}
13541365
#trick a {
13551366
color: #E6E6E6;
13561367
display: block;

styles/theme-medium.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ div.warning a:focus {
467467
right: 0;
468468
bottom: 0;
469469
left: 0;
470-
z-index: 1030;
470+
z-index: 5001;
471471

472472
justify-content: center;
473473

0 commit comments

Comments
 (0)