File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change @@ -67,16 +67,3 @@ function applySkipLinks() {
6767 observer . observe ( document . body , observerConfig ) ;
6868}
6969window . 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 ) ;
You can’t perform that action at this time.
0 commit comments