Skip to content

Commit 278eda8

Browse files
authored
Fixes for website feedback (#4522)
1 parent 4306bf4 commit 278eda8

File tree

4 files changed

+101
-2
lines changed

4 files changed

+101
-2
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
.post-single--compare .post-content table:not(.highlighttable, .highlight table, .gist .highlight) {
2+
width: 100%;
3+
margin: 20px 0 28px;
4+
border-collapse: separate;
5+
border-spacing: 0;
6+
border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
7+
border-radius: 14px;
8+
overflow: hidden;
9+
background: color-mix(in srgb, var(--entry) 84%, white);
10+
box-shadow: 0 12px 30px -24px color-mix(in srgb, var(--primary) 35%, transparent);
11+
}
12+
13+
body.dark .post-single--compare .post-content table:not(.highlighttable, .highlight table, .gist .highlight) {
14+
background: color-mix(in srgb, var(--entry) 92%, black);
15+
}
16+
17+
.post-single--compare .post-content table thead th {
18+
border-bottom: 2px solid color-mix(in srgb, var(--primary) 40%, var(--border));
19+
background: color-mix(in srgb, var(--primary) 10%, var(--entry));
20+
color: var(--primary);
21+
font-weight: 700;
22+
letter-spacing: 0.01em;
23+
}
24+
25+
body.dark .post-single--compare .post-content table thead th {
26+
background: color-mix(in srgb, var(--primary) 20%, var(--entry));
27+
}
28+
29+
.post-single--compare .post-content table th,
30+
.post-single--compare .post-content table td {
31+
border-right: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
32+
border-bottom: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
33+
padding: 22px 24px !important;
34+
vertical-align: top;
35+
}
36+
37+
@media (max-width: 900px) {
38+
.post-single--compare .post-content table th,
39+
.post-single--compare .post-content table td {
40+
padding: 18px 20px !important;
41+
}
42+
}
43+
44+
.post-single--compare .post-content table th:last-child,
45+
.post-single--compare .post-content table td:last-child {
46+
border-right: 0;
47+
}
48+
49+
.post-single--compare .post-content table tbody tr:last-child td {
50+
border-bottom: 0;
51+
}
52+
53+
.post-single--compare .post-content table tbody tr:nth-child(odd) {
54+
background: color-mix(in srgb, var(--entry) 90%, white);
55+
}
56+
57+
.post-single--compare .post-content table tbody tr:nth-child(even) {
58+
background: color-mix(in srgb, var(--entry) 96%, var(--primary) 4%);
59+
}
60+
61+
body.dark .post-single--compare .post-content table tbody tr:nth-child(odd) {
62+
background: color-mix(in srgb, var(--entry) 96%, black);
63+
}
64+
65+
body.dark .post-single--compare .post-content table tbody tr:nth-child(even) {
66+
background: color-mix(in srgb, var(--entry) 90%, var(--primary) 8%);
67+
}
68+
69+
.post-single--compare .post-content table tbody tr:hover {
70+
background: color-mix(in srgb, var(--primary) 12%, var(--entry));
71+
}
72+
73+
.post-single--compare .post-content table tbody td:first-child {
74+
font-weight: 600;
75+
color: var(--primary);
76+
}
77+
78+
@media (max-width: 900px) {
79+
.post-single--compare .post-content table:not(.highlighttable, .highlight table, .gist .highlight) {
80+
display: block;
81+
min-width: 700px;
82+
max-width: 100%;
83+
overflow-x: auto;
84+
-webkit-overflow-scrolling: touch;
85+
}
86+
}

docs/website/assets/css/extended/cn1-home.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ body:not(.dark) .cn1-brand-logo {
214214
z-index: 80;
215215
}
216216

217+
.cn1-homepage #menu .sub-menu li {
218+
margin: 0;
219+
padding: 0;
220+
}
221+
217222
.cn1-homepage #menu .sub-menu li + li {
218223
border-top: 1px solid var(--cn1-home-submenu-border);
219224
}
@@ -225,6 +230,7 @@ body:not(.dark) .cn1-brand-logo {
225230
font-size: 17px;
226231
font-weight: 600;
227232
display: block;
233+
text-align: left;
228234
}
229235

230236
.cn1-homepage .cn1-nav-toggle {
@@ -368,6 +374,11 @@ body:not(.dark) .cn1-brand-logo {
368374
z-index: 80;
369375
}
370376

377+
.cn1-header #menu .sub-menu li {
378+
margin: 0;
379+
padding: 0;
380+
}
381+
371382
.cn1-header #menu .sub-menu li + li {
372383
border-top: 1px solid var(--cn1-home-submenu-border);
373384
}
@@ -379,6 +390,7 @@ body:not(.dark) .cn1-brand-logo {
379390
font-size: 17px;
380391
font-weight: 600;
381392
display: block;
393+
text-align: left;
382394
}
383395

384396
.cn1-header #menu > li.has-children:hover > .sub-menu,
@@ -1860,11 +1872,13 @@ body:not(.dark) .cn1-theme-toggle-btn {
18601872
.cn1-homepage #menu .sub-menu a {
18611873
padding: 15px 28px;
18621874
font-size: 15px;
1875+
text-align: left;
18631876
}
18641877

18651878
.cn1-header #menu .sub-menu a {
18661879
padding: 15px 28px;
18671880
font-size: 15px;
1881+
text-align: left;
18681882
}
18691883

18701884
.cn1-header #menu > li.has-children.open > .sub-menu {

docs/website/content/howdoi/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ url: /how-do-i/
44
type: howdoi
55
---
66

7-
Browse tutorials and short videos.

docs/website/data/cn1libs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"source_url": "https://raw.githubusercontent.com/codenameone/CodenameOneLibs/refs/heads/master/CN1Libs.xml",
3-
"generated_at_utc": "2026-02-14T14:53:30.361631+00:00",
3+
"generated_at_utc": "2026-02-15T08:42:00.130599+00:00",
44
"status": "ok",
55
"error": "",
66
"count": 85,

0 commit comments

Comments
 (0)