Skip to content

Commit 05b292a

Browse files
authored
Fixed website on mobile (#4520)
1 parent e6cc88e commit 05b292a

File tree

2 files changed

+103
-8
lines changed

2 files changed

+103
-8
lines changed

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

Lines changed: 102 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ body:not(.dark) .cn1-brand-logo {
628628
border-radius: 12px;
629629
padding: 30px 28px;
630630
min-height: 300px;
631+
min-width: 0;
631632
text-align: center;
632633
display: flex;
633634
flex-direction: column;
@@ -722,9 +723,9 @@ body:not(.dark) .cn1-brand-logo {
722723
font-variation-settings: normal;
723724
font-weight: 500;
724725
line-height: 12px;
725-
white-space: nowrap;
726+
white-space: normal;
726727
overflow-wrap: break-word;
727-
text-wrap-mode: nowrap;
728+
word-break: break-word;
728729
}
729730

730731
.cn1-card__links {
@@ -1958,30 +1959,124 @@ body:not(.dark) .cn1-theme-toggle-btn {
19581959
grid-template-columns: 1fr;
19591960
}
19601961

1962+
.cn1-loved__grid {
1963+
gap: 18px;
1964+
}
1965+
1966+
.cn1-loved__grid > img {
1967+
max-width: 420px;
1968+
margin: 0 auto;
1969+
}
1970+
1971+
.cn1-loved__grid .cn1-carousel {
1972+
width: 100%;
1973+
max-width: 560px;
1974+
margin: 0 auto;
1975+
}
1976+
1977+
.cn1-loved__grid .cn1-carousel__track {
1978+
display: flex;
1979+
width: 100%;
1980+
}
1981+
1982+
.cn1-loved__grid .cn1-carousel__slide {
1983+
min-width: 100%;
1984+
}
1985+
1986+
.cn1-loved__grid .cn1-carousel__slide blockquote {
1987+
max-width: 100%;
1988+
padding: 18px 16px;
1989+
font-size: 16px;
1990+
line-height: 1.4;
1991+
}
1992+
1993+
.cn1-loved__grid .cn1-carousel__slide h3 {
1994+
font-size: 18px;
1995+
}
1996+
1997+
.cn1-loved__grid .cn1-carousel__slide h3 + p {
1998+
font-size: 14px;
1999+
}
2000+
19612001
.cn1-cta-row article + article {
19622002
border-left: 0;
19632003
border-top: 1px solid #1f6dff;
19642004
}
19652005

2006+
.cn1-cta-row article {
2007+
grid-template-columns: 1fr;
2008+
justify-items: center;
2009+
text-align: center;
2010+
gap: 14px;
2011+
padding: 24px 18px;
2012+
}
2013+
2014+
.cn1-cta-row article h3 {
2015+
font-size: 18px;
2016+
line-height: 1.3;
2017+
}
2018+
2019+
.cn1-bottom-links {
2020+
grid-template-columns: 1fr;
2021+
gap: 22px;
2022+
margin-top: 40px;
2023+
padding: 34px 18px 40px;
2024+
}
2025+
2026+
.cn1-bottom-links__col,
2027+
.cn1-bottom-links__brand,
2028+
.cn1-bottom-links__stats {
2029+
min-width: 0;
2030+
}
2031+
2032+
.cn1-bottom-links__col h3 {
2033+
text-align: center;
2034+
}
2035+
19662036
.cn1-bottom-links__col ul {
19672037
columns: 1;
2038+
margin-top: 14px;
2039+
}
2040+
2041+
.cn1-bottom-links__col li {
2042+
padding-left: 0;
2043+
text-align: center;
2044+
}
2045+
2046+
.cn1-bottom-links__col li::before {
2047+
display: none;
2048+
}
2049+
2050+
.cn1-bottom-links__col a {
2051+
display: block;
2052+
padding-left: 0;
2053+
white-space: normal;
2054+
word-break: normal;
2055+
overflow-wrap: anywhere;
2056+
line-height: 1.35;
19682057
}
19692058

19702059
.cn1-bottom-links__stats,
19712060
.cn1-bottom-links__brand {
1972-
text-align: left;
2061+
text-align: center;
19732062
}
19742063

1975-
.cn1-bottom-links__brand .cn1-footer-logo {
1976-
display: none;
2064+
.cn1-bottom-links__stats p {
2065+
margin: 0 0 16px;
19772066
}
19782067

1979-
.cn1-bottom-links {
1980-
padding: 34px 18px 40px;
2068+
.cn1-bottom-links__brand .cn1-footer-logo {
2069+
display: block;
2070+
width: 160px;
2071+
margin: 0 auto;
19812072
}
19822073

19832074
.cn1-footer-meta {
19842075
padding: 0 18px 20px;
19852076
flex-direction: column;
19862077
}
2078+
2079+
.cn1-footer-meta p {
2080+
text-align: center;
2081+
}
19872082
}

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-14T06:19:52.265877+00:00",
3+
"generated_at_utc": "2026-02-14T14:53:30.361631+00:00",
44
"status": "ok",
55
"error": "",
66
"count": 85,

0 commit comments

Comments
 (0)