Skip to content

Commit a790f94

Browse files
committed
fix: minor UI styling improvements
- Update doc layout and typography styles - Refine header navigation appearance - Adjust main table content responsive behavior
1 parent 88954d7 commit a790f94

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

docs/ui/src/css/doc.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@
281281
.doc table.tableblock th,
282282
.doc table.tableblock td {
283283
padding: 0.5rem;
284+
transition: background-color 0.2s ease-in-out;
284285
}
285286

286287
.doc table.tableblock,

docs/ui/src/css/header.css

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,35 +103,34 @@ body {
103103

104104
.navbar-burger span {
105105
background-color: var(--navbar-font-color);
106-
height: 1.5px;
106+
height: 2px;
107107
width: 1rem;
108-
}
109-
110-
.navbar-burger:not(.is-active) span {
108+
transform-origin: center;
109+
backface-visibility: hidden;
111110
transition:
112-
transform ease-out 0.25s,
113-
opacity 0s 0.25s,
114-
margin-top ease-out 0.25s 0.25s;
111+
transform 0.25s ease,
112+
opacity 0.25s ease,
113+
margin-top 0.25s ease;
115114
}
116115

117116
.navbar-burger span + span {
118117
margin-top: 0.25rem;
119118
}
120119

121120
.navbar-burger.is-active span + span {
122-
margin-top: -1.5px;
121+
margin-top: -2px;
123122
}
124123

125124
.navbar-burger.is-active span:nth-child(1) {
126-
transform: rotate(45deg);
125+
transform: rotate(45deg) translateY(0.5px);
127126
}
128127

129128
.navbar-burger.is-active span:nth-child(2) {
130129
opacity: 0;
131130
}
132131

133132
.navbar-burger.is-active span:nth-child(3) {
134-
transform: rotate(-45deg);
133+
transform: rotate(-45deg) translateY(-0.5px);
135134
}
136135

137136
.navbar-item,

docs/ui/src/css/main.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ body.-toc aside.toc.sidebar {
33
}
44

55
@media screen and (max-width: 1023.5px) {
6-
aside.toc.sidebar {
7-
display: none;
8-
}
9-
106
main > .content {
117
overflow-x: auto;
128
}
139
}
1410

11+
@media screen and (max-width: 1300px) {
12+
aside.toc.sidebar {
13+
display: none;
14+
}
15+
}
16+
1517
@media screen and (min-width: 1024px) {
1618
main {
1719
flex: auto;

0 commit comments

Comments
 (0)