From 4d10c5c91ea9b8cb70823f8f2ef367d570184db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Bachmann?= Date: Sat, 17 Jan 2026 19:45:59 +0000 Subject: [PATCH] Readme show more --- custom_components/bahmcloud_store/panel/styles.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/custom_components/bahmcloud_store/panel/styles.css b/custom_components/bahmcloud_store/panel/styles.css index 6558e7d..2ec0f64 100644 --- a/custom_components/bahmcloud_store/panel/styles.css +++ b/custom_components/bahmcloud_store/panel/styles.css @@ -13,3 +13,12 @@ a { color: inherit; } .md { max-width: 100%; overflow-x: auto; } .md table { display:block; max-width:100%; overflow-x:auto; } .md img { max-width: 100%; height: auto; } + +/* README UX (E2): collapsible preview (standalone page only) */ +.readmeWrap{ border:1px solid #ddd; border-radius:10px; padding:12px; background: #f7f7f7; max-width:100%; } +.readmeWrap.collapsed{ max-height:260px; overflow:hidden; position:relative; } +.readmeWrap.collapsed::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:56px; background: linear-gradient(to bottom, rgba(247,247,247,0), #f7f7f7); pointer-events:none; } +.readmeWrap.expanded{ max-height:70vh; overflow:auto; } +.readmeActions{ display:flex; justify-content:flex-end; margin-top:10px; } +button.link{ border:none; background:transparent; padding:6px 10px; color:#1E88E5; } +button.link:hover{ text-decoration:underline; }