Skip to content

Commit e1f91d3

Browse files
author
Clemens Vasters
committed
Fix UX issues: broken link, tablet layout overlap, mobile responsiveness
1 parent 3f3c487 commit e1f91d3

3 files changed

Lines changed: 74 additions & 6 deletions

File tree

_layouts/sdk-index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<span class="spec-sep">|</span>
2727
<a href="https://json-structure.github.io/validation/draft-vasters-json-structure-validation.html">Validation</a>
2828
<span class="spec-sep">|</span>
29-
<a href="https://json-structure.github.io/conditional-composition/draft-vasters-json-structure-conditional-composition.html">Conditional Composition</a>
29+
<a href="https://json-structure.github.io/conditional-composition/draft-vasters-json-structure-cond-composition-02/draft-vasters-json-structure-cond-composition.html">Conditional Composition</a>
3030
</div>
3131
</div>
3232
<div class="wrapper">

_layouts/sdk.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<span class="spec-sep">|</span>
2727
<a href="https://json-structure.github.io/validation/draft-vasters-json-structure-validation.html">Validation</a>
2828
<span class="spec-sep">|</span>
29-
<a href="https://json-structure.github.io/conditional-composition/draft-vasters-json-structure-conditional-composition.html">Conditional Composition</a>
29+
<a href="https://json-structure.github.io/conditional-composition/draft-vasters-json-structure-cond-composition-02/draft-vasters-json-structure-cond-composition.html">Conditional Composition</a>
3030
</div>
3131
</div>
3232
<div class="wrapper">

assets/css/style.scss

Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
border-bottom: 1px solid #ddd;
1515
padding: 8px 0;
1616
font-size: 13px;
17+
overflow-x: auto;
18+
-webkit-overflow-scrolling: touch;
1719
}
1820

1921
.spec-header-content {
2022
max-width: 900px;
2123
margin: 0 auto;
2224
padding: 0 20px;
2325
text-align: center;
26+
white-space: nowrap;
2427
}
2528

2629
.spec-header-title {
@@ -126,7 +129,58 @@ body {
126129
margin-bottom: 10px;
127130
}
128131

129-
/* Responsive adjustments */
132+
/* Responsive adjustments - Tablet */
133+
@media screen and (max-width: 960px) {
134+
.wrapper {
135+
width: auto !important;
136+
margin: 0 !important;
137+
padding: 0 20px !important;
138+
}
139+
140+
.wrapper header {
141+
position: relative !important;
142+
width: 100% !important;
143+
float: none !important;
144+
padding-right: 0 !important;
145+
text-align: center;
146+
margin-bottom: 20px;
147+
}
148+
149+
.wrapper section {
150+
width: 100% !important;
151+
float: none !important;
152+
margin-left: 0 !important;
153+
border: none !important;
154+
}
155+
156+
.sidebar-nav {
157+
display: flex;
158+
flex-wrap: wrap;
159+
justify-content: center;
160+
gap: 10px;
161+
border-top: none;
162+
padding-top: 10px;
163+
}
164+
165+
.sidebar-nav h3 {
166+
width: 100%;
167+
text-align: center;
168+
margin: 10px 0 5px 0;
169+
}
170+
171+
.sidebar-nav ul {
172+
display: flex;
173+
flex-wrap: wrap;
174+
justify-content: center;
175+
gap: 8px 15px;
176+
}
177+
178+
.sidebar-nav li {
179+
margin: 0;
180+
}
181+
}
182+
183+
/* Responsive adjustments - Mobile */
130184
@media screen and (max-width: 480px) {
131185
.spec-header {
132186
font-size: 11px;
@@ -135,15 +189,29 @@ body {
135189

136190
.spec-header-content {
137191
padding: 0 10px;
192+
text-align: left;
138193
}
139194

140195
.spec-sep {
141196
margin: 0 2px;
142197
}
143198

144199
body {
145-
padding-top: 60px;
200+
padding-top: 50px;
146201
}
202+
203+
.wrapper {
204+
padding: 0 10px !important;
205+
}
206+
}
207+
208+
/* Table responsiveness */
209+
.sdk-content table,
210+
section table {
211+
display: block;
212+
width: 100%;
213+
overflow-x: auto;
214+
-webkit-overflow-scrolling: touch;
147215
}
148216

149217
/* Active navigation state */
@@ -230,8 +298,8 @@ body {
230298
background: transparent;
231299
}
232300

233-
/* Make sidebar scroll with content instead of being fixed */
234-
@media screen and (min-width: 768px) {
301+
/* Make sidebar scroll with content instead of being fixed - only on large screens */
302+
@media screen and (min-width: 961px) {
235303
.wrapper header {
236304
position: absolute !important;
237305
}

0 commit comments

Comments
 (0)