UNPKG

1.89 kBCSSView Raw
1.adm-index-bar {
2 --color: var(--adm-color-text);
3 overflow: hidden;
4 height: 100%;
5 position: relative;
6 background-color: var(--adm-color-background);
7 --sticky-offset-top: 0;
8}
9.adm-index-bar-body {
10 overflow: scroll;
11 height: 100%;
12 width: 100%;
13}
14.adm-index-bar-body::-webkit-scrollbar {
15 display: none;
16}
17.adm-index-bar-anchor-title {
18 display: flex;
19 flex-direction: column;
20 justify-content: center;
21 height: 35px;
22 padding: 0 12px;
23 color: var(--adm-color-weak);
24 font-size: var(--adm-font-size-main);
25 background-color: var(--adm-color-fill-content);
26}
27.adm-index-bar-sidebar {
28 position: absolute;
29 top: 50%;
30 right: 0;
31 transform: translateY(-50%);
32 z-index: 910;
33 overflow: visible;
34 color: var(--adm-color-weak);
35 font-size: var(--adm-font-size-4);
36 -webkit-user-select: none;
37 user-select: none;
38 touch-action: none;
39}
40.adm-index-bar-sidebar-bubble {
41 position: absolute;
42 top: 50%;
43 right: 60px;
44 width: 47px;
45 height: 47px;
46 color: var(--adm-color-text-light-solid);
47 font-size: 25px;
48 line-height: 47px;
49 text-align: center;
50 background: var(--adm-color-light);
51 border-radius: 50%;
52 transform: translateY(-50%);
53}
54.adm-index-bar-sidebar-row {
55 cursor: pointer;
56 width: auto;
57 text-align: right;
58 position: relative;
59 padding: 0 12px;
60}
61.adm-index-bar-sidebar-row > * {
62 pointer-events: none;
63}
64.adm-index-bar-sidebar-item {
65 display: inline-flex;
66 width: 16px;
67 height: 16px;
68 line-height: 16px;
69 justify-content: center;
70 align-items: center;
71}
72.adm-index-bar-sidebar-item-active {
73 color: var(--adm-color-text-light-solid);
74 background-color: var(--adm-color-primary);
75 border-radius: 50%;
76}
77.adm-index-bar-sidebar-interacting {
78 width: 100%;
79}
80.adm-index-bar-sticky .adm-index-bar-anchor-title {
81 position: -webkit-sticky;
82 position: sticky;
83 z-index: 900;
84 top: var(--sticky-offset-top);
85 left: 0;
86}