-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
168 lines (137 loc) · 3.22 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
body {
max-width: 1200px;
}
.page header {
border: #005a9c solid 2px;
background: #005a9c;
color: white;
text-align: center;
}
.page header .title {
font-size: 2.5em;
font-weight: bold;
font-family: serif;
}
.page header .tagline {
font-style: italic;
}
.page footer {
border: #005a9c solid 2px;
background: #005a9c;
font-family: serif;
color: white;
font-style: italic;
padding-left: 1em;
}
.page .body {
display: grid;
grid-template-columns: auto auto;
border: #eee solid 2px;
}
.page .body nav {
margin: 0;
padding: 6px;
width: 25em;
height: 60em;
background: #eee;
}
.page .body nav.focus {
padding: 4px;
border: 2px solid #005a9c;
}
.page .body .page {
margin: 0.25em;
padding: 0.25em;
height: 30em;
}
.page .body .page h1 {
margin: 0;
padding: 0;
}
.page .main {
padding: 1em;
}
.treeview-navigation ul,
.treeview-navigation li {
margin: 0;
padding: 0;
}
li:not(:has(ul)){
margin-left: 1.15em !important;
}
.treeview-navigation li li span.label {
padding-left: 1em;
}
.treeview-navigation li li li span.label {
padding-left: 2em;
}
.treeview-navigation[role="tree"] {
margin: 0;
padding: 0;
list-style: none;
}
.treeview-navigation[role="tree"] li {
margin: 0;
padding: 0;
list-style: none;
}
.treeview-navigation a[role="treeitem"] ul {
margin: 0;
padding: 0;
}
.treeview-navigation
a[role="treeitem"][aria-expanded="false"] + navigation-list > [role="group"] {
display: none;
}
.treeview-navigation a[role="treeitem"][aria-expanded="true"] + navigation-list > [role="group"] {
display: block;
}
.treeview-navigation a[role="treeitem"] > span svg {
transform: translate(0, 0);
}
.treeview-navigation a[role="treeitem"][aria-expanded="false"] > span svg {
transform: rotate(270deg) translate(2px, 2px);
}
.treeview-navigation a[role="treeitem"] {
margin: 0;
padding: 4px;
padding-left: 9px;
text-decoration: none;
color: #005a9c;
border: none;
display: block;
}
.treeview-navigation a[role="treeitem"][aria-current] {
border-left: 5px solid #005a9c;
padding-left: 4px;
background-color: #ddd;
}
.treeview-navigation a[role="treeitem"] span.icon svg polygon {
stroke-width: 2px;
fill: currentcolor;
stroke: transparent;
}
/* disable default keyboard focus styling for treeitems
Keyboard focus is styled with the following CSS */
.treeview-navigation a[role="treeitem"]:focus {
outline: 0;
padding: 2px;
padding-left: 7px;
border: 2px #005a9c solid;
}
.treeview-navigation a[role="treeitem"][aria-current]:focus {
padding-left: 4px;
border-left-width: 5px;
}
.treeview-navigation a[role="treeitem"]:hover {
background-color: #adddff;
text-decoration: underline;
padding-left: 4px;
border-left: 5px solid #333;
}
.treeview-navigation a[role="treeitem"] span.icon:hover {
color: #333;
}
.treeview-navigation a[role="treeitem"] span.icon svg polygon:hover {
stroke: currentcolor;
}