-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtopbar.css
More file actions
200 lines (173 loc) · 5.03 KB
/
Copy pathtopbar.css
File metadata and controls
200 lines (173 loc) · 5.03 KB
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#utplsql-topbar {
background: #1565c0;
padding: 0 1rem;
display: flex;
align-items: center;
height: 2rem;
font-size: 0.7rem;
font-family: var(--md-text-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
position: sticky;
top: 0;
z-index: 10;
box-shadow: 0 1px 3px rgba(0,0,0,0.25);
letter-spacing: 0.03em;
}
#utplsql-topbar a {
color: rgba(255,255,255,0.72);
text-decoration: none;
padding: 0 0.5rem;
line-height: 2rem;
white-space: nowrap;
transition: color 0.15s;
}
#utplsql-topbar a:hover,
#utplsql-topbar a.utplsql-active {
color: #fff;
}
#utplsql-topbar .utplsql-brand {
font-weight: 700;
color: #fff;
padding-right: 0.75rem;
margin-right: 0.25rem;
border-right: 1px solid rgba(255,255,255,0.25);
display: flex;
align-items: center;
gap: 0.4rem;
}
#utplsql-topbar .utplsql-brand-icon {
display: block;
width: 1.3rem;
height: 1.3rem;
flex-shrink: 0;
background-image: url('icon-transparent.png');
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
#utplsql-topbar .utplsql-controls {
margin-left: auto;
display: flex;
align-items: center;
gap: 0.1rem;
}
#utplsql-topbar .utplsql-controls button {
background: none;
border: none;
cursor: pointer;
color: rgba(255,255,255,0.72);
padding: 0 0.4rem;
height: 2rem;
display: flex;
align-items: center;
transition: color 0.15s;
border-radius: 0.2rem;
}
#utplsql-topbar .utplsql-controls button:hover {
color: #fff;
}
#utplsql-topbar .utplsql-controls button svg {
width: 1rem;
height: 1rem;
fill: currentColor;
display: block;
}
/* Material header sits below the topbar */
.md-header,
.md-header--shadow {
top: 2rem !important;
}
/* NOTE: .md-header__button and .md-header__option hiding is intentionally
NOT here — it is injected by topbar.js only after the topbar is built,
so that a JS failure leaves Material's original navigation intact. */
/* ── Org-site only ────────────────────────────────────────────────────────
The org site sets data-utplsql-site="org" on <html> in its template.
Sub-sites keep Material's title (version selector lives there) and tabs
(the only way to navigate between top-level sections like User Guide /
Reporting / About).
─────────────────────────────────────────────────────────────────────── */
/* Hide Material's logo/title on the org site — brand lives in the topbar */
[data-utplsql-site="org"] .md-header__title {
display: none !important;
}
/* Hide tab bar on the org site — the shared topbar handles section nav */
[data-utplsql-site="org"] .md-tabs {
display: none !important;
}
/* Back-to-top button: push below topbar + header so it isn't hidden behind them */
.md-top {
top: 4.4rem !important;
}
/* Sidebar offset: org site has topbar + header (~2 + 2.4 = 4.4rem), no tabs.
Sub-sites have topbar + header + tabs (~2 + 2.4 + 2.4 = 6.8rem). */
[data-utplsql-site="org"] .md-sidebar {
top: 4.4rem !important;
}
.md-sidebar {
top: 6.8rem !important;
}
/* Hamburger button — hidden by default, shown via media query on mobile */
#utplsql-topbar .utplsql-hamburger {
display: none;
background: none;
border: none;
cursor: pointer;
color: rgba(255,255,255,0.72);
padding: 0 0.4rem;
height: 2rem;
align-items: center;
flex-shrink: 0;
transition: color 0.15s;
}
#utplsql-topbar .utplsql-hamburger:hover {
color: #fff;
}
#utplsql-topbar .utplsql-hamburger svg {
width: 1.2rem;
height: 1.2rem;
fill: currentColor;
display: block;
}
/* Org site links injected into Material's sidebar drawer — desktop: hidden */
#utplsql-drawer-nav {
display: none;
}
@media screen and (max-width: 76.1875em) {
/* Hide nav links on mobile — sidebar drawer handles navigation */
#utplsql-topbar a:not(.utplsql-brand) {
display: none;
}
/* Show hamburger */
#utplsql-topbar .utplsql-hamburger {
display: flex;
}
/* Material's mobile search overlay is position:fixed from top:0.
Shift the whole search container (form + output together) below our topbar. */
.md-search__inner {
padding-top: 2rem !important;
}
/* Org site nav section at the top of the drawer */
#utplsql-drawer-nav {
display: block;
padding: 0.6rem 0.8rem 0.4rem;
border-bottom: 1px solid var(--md-default-fg-color--lightest, rgba(0,0,0,.12));
margin-bottom: 0.4rem;
}
#utplsql-drawer-nav .utplsql-drawer-heading {
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--md-default-fg-color--light);
padding-bottom: 0.3rem;
}
#utplsql-drawer-nav a {
display: block;
padding: 0.25rem 0;
color: var(--md-typeset-a-color);
text-decoration: none;
font-size: 0.75rem;
}
#utplsql-drawer-nav a:hover {
color: var(--md-accent-fg-color);
}
}