Skip to content

Commit 49a9f3f

Browse files
committed
Fix styles
1 parent cadfc10 commit 49a9f3f

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

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

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,43 @@
4141
}
4242
.keyValue {
4343
display: block;
44-
}
44+
}
45+
46+
/* FIXME Taken from Dokka mainline. Remove these styles once Dokka 2.1.0 is released. */
47+
.toc--skip-link {
48+
background-color: #458cff;
49+
color: #fff;
50+
font: 400 13px/24px Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, Oxygen, Droid Sans, Helvetica Neue, Arial;
51+
margin-top: 36px;
52+
padding: 1px;
53+
position: absolute;
54+
z-index: 100;
55+
}
56+
57+
.toc--skip-link:not(:focus) {
58+
overflow: hidden !important;
59+
clip: rect(1px, 1px, 1px, 1px) !important;
60+
border: 0 !important;
61+
height: 1px !important;
62+
padding: 0 !important;
63+
width: 1px !important;
64+
}
65+
66+
.toc--skip-link:focus {
67+
outline: 4px solid rgb(48, 127, 255, 0.5);
68+
outline-offset: 0;
69+
}
70+
71+
.sidebar > .toc--skip-link {
72+
margin-top: 0;
73+
}
74+
75+
.toc--part_hidden > .toc--row > .toc--button ~ .toc--skip-link {
76+
display: none;
77+
}
78+
79+
@media (max-width: 899px) {
80+
.toc--skip-link {
81+
display: none;
82+
}
83+
}

0 commit comments

Comments
 (0)