Skip to content

Commit ac5bf47

Browse files
committed
Style changes
1 parent bc75b9f commit ac5bf47

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

docs/dokka-presets/css/aws-styles.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@
2929
z-index: 999; /* Ensure it's on top */
3030
}
3131

32-
@media (max-width: 550px) {
33-
.content[data-togglable] {
34-
display: none;
35-
}
32+
/*
33+
Dokka does not break links or code blocks properly by default. Add word-wrap to prevent left/right scrollbar from
34+
appearing on small screens.
35+
*/
36+
.main-content a:not([data-name]) {
37+
word-wrap: break-word;
38+
}
39+
.symbol {
40+
overflow-wrap: break-word;
41+
}
42+
.keyValue {
43+
display: block;
3644
}

docs/dokka-presets/scripts/accessibility.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,3 @@ function applySkipLinks() {
6767
observer.observe(document.body, observerConfig);
6868
}
6969
window.addEventListener('navigationLoaded', applySkipLinks);
70-
71-
/**
72-
* Ensure that content (specifically, code blocks) reflows on small page sizes.
73-
* Fixes accessibility violation: "Ensure pages reflow without requiring two-dimensional scrolling without loss of content or functionality"
74-
*/
75-
function ensureContentReflow() {
76-
// Ensure `content` sections are reflowable
77-
document.querySelectorAll('.content[data-togglable]').forEach(function(content) {
78-
console.log("Adding content.style.display = 'block' to " + content.id)
79-
content.style.display = 'block'
80-
});
81-
}
82-
window.addEventListener('navigationLoaded', ensureContentReflow);

0 commit comments

Comments
 (0)