revert(tasarim): squircle kaldırıldı, köşeler eski ölçülerine döndü (→ 2.5.12)
All checks were successful
Deploy / deploy (push) Successful in 11m30s
All checks were successful
Deploy / deploy (push) Successful in 11m30s
Bilal: "tarayıcı desteği olmadığı için mobilde çok kötü oluyor". Safari ve Firefox corner-shape çizmiyor; squircle'ı taklit etmek için büyütülen köşeler (kart 32, geniş yüzey 56 px, logo %44) telefonda şişkin, logo neredeyse daire görünüyordu. - globals.css: @supports corner-shape bloğu, .kt-squircle ve --radius-5xl silindi; --radius-2xl/3xl/4xl 18/22/26 px'e döndü. - md:/lg:rounded-5xl ve md:rounded-t-5xl 19 dosyadan kalktı; gösterge kareleri rounded-3xl, keşfet kartı rounded-2xl, program çekmecesi KOSE 24. - Logo KOSE 25 → 13; morf anahtar karelerinden cornerShape kalktı; Piksel gövdesi (piksel-blob logoKaresi) düz daire yayı, k = 13/28. - Akordeon karosu 18 px, kt-squircle sınıfı kalktı. - İç içe köşe kuralı (rounded-ic-*, --kt-kose) korundu. DESIGN §4.4, §4.34, §7, §11.3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,8 +45,8 @@ const KaroBaglami = React.createContext<{ karo: boolean; sira: string[] }>({
|
||||
sira: [],
|
||||
})
|
||||
|
||||
/** Karo köşesi: satır ölçeği `rounded-2xl` = 32 px (DESIGN.md §2, `--radius-2xl`). */
|
||||
const KARO_KOSE_PX = 32
|
||||
/** Karo köşesi: satır ölçeği `rounded-2xl` = 18 px (DESIGN.md §2, `--radius-2xl`). */
|
||||
const KARO_KOSE_PX = 18
|
||||
/** Açılan karonun komşularından ayrılma payı (Skiper 103 ölçümü: margin-block 10 px). */
|
||||
const KARO_ARALIK_PX = 10
|
||||
|
||||
@@ -132,13 +132,12 @@ function AccordionItem({
|
||||
const altAcik = i < son && acikMi(sira[i + 1])
|
||||
const ust = acik || i === 0 || ustAcik ? KARO_KOSE_PX : 0
|
||||
const alt = acik || i === son || altAcik ? KARO_KOSE_PX : 0
|
||||
// Köşe ve boşluk satır içi stil olduğu için squircle sınıfı elle verilir
|
||||
// (globals.css: `.kt-squircle`); kapalı komşular 1 px biner.
|
||||
// Köşe ve boşluk satır içi stil (motion); kapalı komşular 1 px biner.
|
||||
return (
|
||||
<OgeDegeriBaglami.Provider value={props.value}>
|
||||
<AccordionPrimitive.Item asChild data-slot="accordion-item" {...props}>
|
||||
<motion.div
|
||||
className={cn("kt-squircle", className)}
|
||||
className={className}
|
||||
initial={false}
|
||||
animate={{
|
||||
marginTop: acik ? KARO_ARALIK_PX : i === 0 || ustAcik ? 0 : -1,
|
||||
|
||||
@@ -582,7 +582,7 @@ function Sayfa({
|
||||
data-slot="alt-sayfa"
|
||||
className={cn(
|
||||
// `after`: kenarın altına uzanan yüzey — yukarı esnemede sayfanın altında boşluk görünmez.
|
||||
"group/alt-sayfa fixed inset-x-0 bottom-0 z-50 mx-auto flex w-full flex-col rounded-t-3xl md:rounded-t-5xl border border-b-0 border-slate-200 bg-card text-slate-900 shadow-2xl outline-none will-change-transform after:pointer-events-none after:absolute after:inset-x-0 after:top-full after:h-40 after:bg-card data-[state=closed]:pointer-events-none! sm:max-w-2xl",
|
||||
"group/alt-sayfa fixed inset-x-0 bottom-0 z-50 mx-auto flex w-full flex-col rounded-t-3xl border border-b-0 border-slate-200 bg-card text-slate-900 shadow-2xl outline-none will-change-transform after:pointer-events-none after:absolute after:inset-x-0 after:top-full after:h-40 after:bg-card data-[state=closed]:pointer-events-none! sm:max-w-2xl",
|
||||
className,
|
||||
)}
|
||||
style={{ y, opacity: varlik, maxHeight: `${kesirler[ust] * 100}dvh` }}
|
||||
|
||||
Reference in New Issue
Block a user