@limetech/lime-elements 39.4.1 → 39.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-card.cjs.entry.js +16 -2
- package/dist/cjs/limel-file-viewer.cjs.entry.js +140 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/card/card.css +4 -0
- package/dist/collection/components/card/card.js +36 -1
- package/dist/collection/components/email-viewer/email-loader.js +150 -14
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-card.entry.js +16 -2
- package/dist/esm/limel-file-viewer.entry.js +140 -14
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-656b8f6e.entry.js → p-8d265f52.entry.js} +1 -1
- package/dist/lime-elements/p-fe40b09d.entry.js +1 -0
- package/dist/types/components/card/card.d.ts +7 -0
- package/dist/types/components/email-viewer/email-loader.d.ts +29 -0
- package/dist/types/components.d.ts +15 -0
- package/package.json +1 -1
- package/dist/lime-elements/p-cc13084d.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as r,h as i,H as t,a as o}from"./p-DBTJNfo7.js";import{i as a}from"./p-CrvUOVvg.js";import{g as s}from"./p-CgNJbSP4.js";import{g as n}from"./p-5eP2N9QI.js";const d=class{constructor(i){e(this,i),this.actionSelected=r(this,"actionSelected"),this.actions=[],this.clickable=!1,this.orientation="portrait",this.selected=!1,this.canScrollUp=!1,this.canScrollDown=!1,this.setMarkdownElement=e=>{var r;e!==this.markdownElement&&(this.markdownElement&&(null===(r=this.markdownResizeObserver)||void 0===r||r.disconnect(),this.markdownElement.removeEventListener("scroll",this.checkIfScrollable)),this.markdownElement=e,this.markdownElement&&(this.markdownResizeObserver=new ResizeObserver(this.checkIfScrollable),this.markdownResizeObserver.observe(this.markdownElement),this.markdownElement.addEventListener("scroll",this.checkIfScrollable,{passive:!0}),this.checkIfScrollable()))},this.checkIfScrollable=()=>{if(!this.markdownElement)return;const e=this.markdownElement.scrollHeight,r=this.markdownElement.clientHeight,i=this.markdownElement.scrollTop,t=e>r,o=t&&!(i+r>=e-2),a=t&&!(i<=1);this.canScrollDown!==o&&(this.canScrollDown=o),this.canScrollUp!==a&&(this.canScrollUp=a)},this.handleActionSelect=e=>{e.stopPropagation(),a(e.detail)&&this.actionSelected.emit(e.detail)},this.handleKeyDown=e=>{e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.host.click()))}}componentWillLoad(){const{handleMouseEnter:e,handleMouseLeave:r}=n(this.host);this.handleMouseEnter=e,this.handleMouseLeave=r}disconnectedCallback(){var e,r;null===(e=this.markdownResizeObserver)||void 0===e||e.disconnect(),null===(r=this.markdownElement)||void 0===r||r.removeEventListener("scroll",this.checkIfScrollable)}componentDidLoad(){this.setMarkdownElement(this.markdownElement)}render(){return i(t,{key:"a2dafb50c62b195eaa6e113c9fe19d86469e9a50",onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},i("section",{key:"a49f867517ad28fd7a2cdfc4c55310c2efac8e11",tabindex:this.clickable?0:void 0,role:this.clickable?"button":void 0,"aria-pressed":this.clickable?String(this.selected):void 0,onKeyDown:this.clickable?this.handleKeyDown:void 0},this.renderImage(),i("div",{key:"349b4d6fee7d71c67143298e8fcff4b833d38357",class:"body"},this.renderHeader(),this.renderSlot(),this.renderValue(),this.renderActionBar()),i("limel-3d-hover-effect-glow",{key:"252edc2030a277a808ea5cd200b0c54c7eb9c8a6"})))}renderImage(){var e;if(null===(e=this.image)||void 0===e?void 0:e.src)return i("div",{class:"image-wrapper"},i("img",{src:this.image.src,alt:this.image.alt,loading:"lazy"}))}renderHeader(){if(this.heading||this.subheading||this.icon)return i("header",null,this.renderIcon(),i("div",{class:"headings"},this.renderHeading(),this.renderSubheading()))}renderIcon(){var e;const r=s(this.icon),t="string"==typeof this.icon||null===(e=this.icon)||void 0===e?void 0:e.color;if(r)return i("limel-icon",{style:{color:`${t}`},badge:!0,name:r})}renderHeading(){if(this.heading)return i("h1",{class:"title"},this.heading)}renderSubheading(){if(this.subheading)return i("h2",null,this.subheading)}renderSlot(){return i("slot",{name:"component"})}renderValue(){if(this.value)return i("div",{class:{"markdown-wrapper":!0,"can-scroll-up":this.canScrollUp,"can-scroll-down":this.canScrollDown}},i("limel-markdown",{class:"body-text",ref:this.setMarkdownElement,value:this.value}))}renderActionBar(){if(0!==this.actions.length)return i("limel-action-bar",{actions:this.actions,onItemSelected:this.handleActionSelect})}get host(){return o(this)}};d.style='@charset "UTF-8";*{box-sizing:border-box;min-width:0;min-height:0}:host(limel-card){display:flex;border-radius:var(--card-border-radius, 0.95rem)}section{box-sizing:border-box;display:flex;gap:0.5rem;flex-direction:column}:host(limel-card[orientation=landscape]) section{flex-direction:row}section{width:100%;border-radius:var(--card-border-radius, 0.95rem);border:1px solid rgb(var(--contrast-500));padding:0.25rem;background-color:var(--card-background-color, rgb(var(--contrast-300)))}section:hover{border-color:transparent;background-color:var(--card-background-color--hovered, var(--card-background-color, rgb(var(--contrast-200))))}.body{flex-grow:1;display:flex;flex-direction:column;gap:0.5rem}.image-wrapper{flex-shrink:0;display:flex;align-items:center;justify-content:center}:host(limel-card[orientation=portrait]) .image-wrapper{width:100%}:host(limel-card[orientation=landscape]) .image-wrapper{flex-shrink:0;max-width:40%;height:100%}:host(limel-card[orientation=landscape]) .image-wrapper img{height:100%}img{transition:filter 0.6s ease;object-fit:cover;border-radius:calc(var(--card-border-radius, 0.95rem) / 1.4);min-width:0.5rem;min-height:0.5rem;max-width:100%;max-height:100%}section:hover img,section:focus-visible img{transition-duration:0.2s;filter:saturate(1.3)}.markdown-wrapper{position:relative;flex-grow:1;display:flex;flex-direction:column}.markdown-wrapper limel-markdown{overflow-y:auto;flex-grow:1;padding:0.5rem 0.75rem}.markdown-wrapper::before{top:0;background:radial-gradient(farthest-side at 50% 0%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0))}.markdown-wrapper::after{bottom:0;background:radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0))}.markdown-wrapper::before,.markdown-wrapper::after{content:"";pointer-events:none;position:absolute;right:0;left:0;height:0.75rem;opacity:0;transition:opacity 0.6s ease;background-repeat:no-repeat}.markdown-wrapper.can-scroll-up::before,.markdown-wrapper.can-scroll-down::after{opacity:1}header{flex-shrink:0;display:flex;justify-content:center;gap:0.5rem;padding:0.25rem 0.75rem}:host(limel-card[orientation=landscape]) header{padding-top:0.5rem}header:has(limel-icon){padding-left:0.25rem}header .headings{flex-grow:1;display:flex;flex-direction:column;gap:0.125rem}header .title{padding-right:1.25rem}header limel-icon{flex-shrink:0;width:2rem}header h1{font-size:1.125rem;font-weight:500;color:var(--card-heading-color, rgb(var(--contrast-1100)));letter-spacing:-0.03125rem}header h2{font-size:var(--limel-theme-default-font-size);font-weight:400;color:var(--card-subheading-color, rgb(var(--contrast-1000)))}header h1,header h2{word-break:break-word;hyphens:auto;-webkit-hyphens:auto;margin:0}limel-action-bar{flex-shrink:0;--action-bar-background-color:transparent;margin-left:auto}limel-3d-hover-effect-glow{border-radius:var(--card-border-radius, 0.95rem)}:host(limel-card){isolation:isolate;transform-style:preserve-3d;perspective:1000px}@media (prefers-reduced-motion){:host(limel-card){perspective:2000px}}section{position:relative;transition-duration:0.8s;transition-property:transform, box-shadow, background-color;transition-timing-function:ease-out;transform:scale3d(1, 1, 1) rotate3d(0, 0, 0, 0deg)}section:focus{outline:none}section:hover,section:focus,section:focus-visible,section:focus-within{will-change:background-color, box-shadow, transform}section:hover,section:focus,section:focus-visible,section:active{transition-duration:0.2s}section:hover,section:focus-visible{box-shadow:var(--button-shadow-hovered), var(--shadow-depth-16)}section:hover{transform:scale3d(1.01, 1.01, 1.01) rotate3d(var(--limel-3d-hover-effect-rotate3d))}section:focus-visible{outline:none;transform:scale3d(1.01, 1.01, 1.01)}section:hover limel-3d-hover-effect-glow{--limel-3d-hover-effect-glow-opacity:0.5}@media (prefers-reduced-motion){section:hover limel-3d-hover-effect-glow{--limel-3d-hover-effect-glow-opacity:0.2}}:host(limel-card[clickable]) section{cursor:pointer;box-shadow:var(--button-shadow-normal)}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus-visible{box-shadow:var(--button-shadow-hovered), var(--shadow-depth-16)}:host(limel-card[clickable]) section:active{transform:scale3d(1, 1, 1) rotate3d(0, 0, 0, 0deg);box-shadow:var(--button-shadow-pressed)}:host(limel-card[clickable]) section:focus-visible{box-shadow:var(--shadow-depth-8-focused), var(--button-shadow-hovered)}:host(limel-card[clickable]) section:focus-visible:active{box-shadow:var(--shadow-depth-8-focused), var(--button-shadow-pressed)}:host(limel-card[selected]) section,:host(limel-card[selected]) section:hover,:host(limel-card[selected]) section:focus-visible,:host(limel-card[selected]) section:active{box-shadow:var(--shadow-focused-state)}';export{d as limel_card}
|
|
@@ -12,6 +12,7 @@ import { ActionBarItem } from '../action-bar/action-bar.types';
|
|
|
12
12
|
* @exampleComponent limel-example-card-image
|
|
13
13
|
* @exampleComponent limel-example-card-actions
|
|
14
14
|
* @exampleComponent limel-example-card-clickable
|
|
15
|
+
* @exampleComponent limel-example-card-selected
|
|
15
16
|
* @exampleComponent limel-example-card-orientation
|
|
16
17
|
* @exampleComponent limel-example-card-slot
|
|
17
18
|
* @exampleComponent limel-example-card-styling
|
|
@@ -57,6 +58,11 @@ export declare class Card {
|
|
|
57
58
|
* specially useful when the card has an image.
|
|
58
59
|
*/
|
|
59
60
|
orientation: 'landscape' | 'portrait';
|
|
61
|
+
/**
|
|
62
|
+
* When `true`, the card displays a visual selected state (highlighted border shadow).
|
|
63
|
+
* Should be used together with `clickable` to let users toggle selection.
|
|
64
|
+
*/
|
|
65
|
+
selected: boolean;
|
|
60
66
|
/**
|
|
61
67
|
* Fired when a action bar item has been clicked.
|
|
62
68
|
*/
|
|
@@ -82,6 +88,7 @@ export declare class Card {
|
|
|
82
88
|
private renderSlot;
|
|
83
89
|
private renderValue;
|
|
84
90
|
private handleActionSelect;
|
|
91
|
+
private handleKeyDown;
|
|
85
92
|
private renderActionBar;
|
|
86
93
|
}
|
|
87
94
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -16,4 +16,33 @@ import { Email } from './email-viewer.types';
|
|
|
16
16
|
* @returns A simplified `Email` object for rendering.
|
|
17
17
|
*/
|
|
18
18
|
export declare function loadEmail(url: string): Promise<Email>;
|
|
19
|
+
declare function extractAttachments(email: any): {
|
|
20
|
+
attachments: Email['attachments'];
|
|
21
|
+
cidUrlById: Map<string, string>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Normalizes a Content-ID by removing surrounding angle brackets.
|
|
25
|
+
*
|
|
26
|
+
* Example: `<image@id>` -> `image@id`
|
|
27
|
+
*
|
|
28
|
+
* @param contentId - The Content-ID to normalize, optionally surrounded by angle brackets.
|
|
29
|
+
*/
|
|
30
|
+
declare function normalizeContentId(contentId?: string): string;
|
|
31
|
+
declare function replaceCidReferences(html: string, cidUrlById: Map<string, string>): string;
|
|
32
|
+
declare function decodeCidReference(cid: string): string;
|
|
33
|
+
declare function getAttachmentBytes(content: unknown): Uint8Array | undefined;
|
|
34
|
+
declare function resolveDataUrlMimeType(mimeType: unknown, bytes: Uint8Array, filename?: string): string;
|
|
35
|
+
declare function detectImageMimeTypeFromBytes(bytes: Uint8Array): string | undefined;
|
|
36
|
+
declare function detectImageMimeTypeFromFilename(filename?: string): string | undefined;
|
|
37
|
+
export declare const emailLoaderHelpers: {
|
|
38
|
+
normalizeContentId: typeof normalizeContentId;
|
|
39
|
+
decodeCidReference: typeof decodeCidReference;
|
|
40
|
+
replaceCidReferences: typeof replaceCidReferences;
|
|
41
|
+
getAttachmentBytes: typeof getAttachmentBytes;
|
|
42
|
+
detectImageMimeTypeFromBytes: typeof detectImageMimeTypeFromBytes;
|
|
43
|
+
detectImageMimeTypeFromFilename: typeof detectImageMimeTypeFromFilename;
|
|
44
|
+
resolveDataUrlMimeType: typeof resolveDataUrlMimeType;
|
|
45
|
+
extractAttachments: typeof extractAttachments;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
19
48
|
//# sourceMappingURL=email-loader.d.ts.map
|
|
@@ -432,6 +432,7 @@ export namespace Components {
|
|
|
432
432
|
* @exampleComponent limel-example-card-image
|
|
433
433
|
* @exampleComponent limel-example-card-actions
|
|
434
434
|
* @exampleComponent limel-example-card-clickable
|
|
435
|
+
* @exampleComponent limel-example-card-selected
|
|
435
436
|
* @exampleComponent limel-example-card-orientation
|
|
436
437
|
* @exampleComponent limel-example-card-slot
|
|
437
438
|
* @exampleComponent limel-example-card-styling
|
|
@@ -465,6 +466,11 @@ export namespace Components {
|
|
|
465
466
|
* @default 'portrait'
|
|
466
467
|
*/
|
|
467
468
|
"orientation": 'landscape' | 'portrait';
|
|
469
|
+
/**
|
|
470
|
+
* When `true`, the card displays a visual selected state (highlighted border shadow). Should be used together with `clickable` to let users toggle selection.
|
|
471
|
+
* @default false
|
|
472
|
+
*/
|
|
473
|
+
"selected": boolean;
|
|
468
474
|
/**
|
|
469
475
|
* Subheading of the card to provide a short description of the context.
|
|
470
476
|
*/
|
|
@@ -4234,6 +4240,7 @@ declare global {
|
|
|
4234
4240
|
* @exampleComponent limel-example-card-image
|
|
4235
4241
|
* @exampleComponent limel-example-card-actions
|
|
4236
4242
|
* @exampleComponent limel-example-card-clickable
|
|
4243
|
+
* @exampleComponent limel-example-card-selected
|
|
4237
4244
|
* @exampleComponent limel-example-card-orientation
|
|
4238
4245
|
* @exampleComponent limel-example-card-slot
|
|
4239
4246
|
* @exampleComponent limel-example-card-styling
|
|
@@ -6617,6 +6624,7 @@ declare namespace LocalJSX {
|
|
|
6617
6624
|
* @exampleComponent limel-example-card-image
|
|
6618
6625
|
* @exampleComponent limel-example-card-actions
|
|
6619
6626
|
* @exampleComponent limel-example-card-clickable
|
|
6627
|
+
* @exampleComponent limel-example-card-selected
|
|
6620
6628
|
* @exampleComponent limel-example-card-orientation
|
|
6621
6629
|
* @exampleComponent limel-example-card-slot
|
|
6622
6630
|
* @exampleComponent limel-example-card-styling
|
|
@@ -6654,6 +6662,11 @@ declare namespace LocalJSX {
|
|
|
6654
6662
|
* @default 'portrait'
|
|
6655
6663
|
*/
|
|
6656
6664
|
"orientation"?: 'landscape' | 'portrait';
|
|
6665
|
+
/**
|
|
6666
|
+
* When `true`, the card displays a visual selected state (highlighted border shadow). Should be used together with `clickable` to let users toggle selection.
|
|
6667
|
+
* @default false
|
|
6668
|
+
*/
|
|
6669
|
+
"selected"?: boolean;
|
|
6657
6670
|
/**
|
|
6658
6671
|
* Subheading of the card to provide a short description of the context.
|
|
6659
6672
|
*/
|
|
@@ -10311,6 +10324,7 @@ declare namespace LocalJSX {
|
|
|
10311
10324
|
"value": string;
|
|
10312
10325
|
"clickable": boolean;
|
|
10313
10326
|
"orientation": 'landscape' | 'portrait';
|
|
10327
|
+
"selected": boolean;
|
|
10314
10328
|
}
|
|
10315
10329
|
interface LimelChartAttributes {
|
|
10316
10330
|
"language": Languages;
|
|
@@ -11077,6 +11091,7 @@ declare module "@stencil/core" {
|
|
|
11077
11091
|
* @exampleComponent limel-example-card-image
|
|
11078
11092
|
* @exampleComponent limel-example-card-actions
|
|
11079
11093
|
* @exampleComponent limel-example-card-clickable
|
|
11094
|
+
* @exampleComponent limel-example-card-selected
|
|
11080
11095
|
* @exampleComponent limel-example-card-orientation
|
|
11081
11096
|
* @exampleComponent limel-example-card-slot
|
|
11082
11097
|
* @exampleComponent limel-example-card-styling
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as r,h as i,H as t,a as o}from"./p-DBTJNfo7.js";import{i as a}from"./p-CrvUOVvg.js";import{g as s}from"./p-CgNJbSP4.js";import{g as n}from"./p-5eP2N9QI.js";const d=class{constructor(i){e(this,i),this.actionSelected=r(this,"actionSelected"),this.actions=[],this.clickable=!1,this.orientation="portrait",this.canScrollUp=!1,this.canScrollDown=!1,this.setMarkdownElement=e=>{var r;e!==this.markdownElement&&(this.markdownElement&&(null===(r=this.markdownResizeObserver)||void 0===r||r.disconnect(),this.markdownElement.removeEventListener("scroll",this.checkIfScrollable)),this.markdownElement=e,this.markdownElement&&(this.markdownResizeObserver=new ResizeObserver(this.checkIfScrollable),this.markdownResizeObserver.observe(this.markdownElement),this.markdownElement.addEventListener("scroll",this.checkIfScrollable,{passive:!0}),this.checkIfScrollable()))},this.checkIfScrollable=()=>{if(!this.markdownElement)return;const e=this.markdownElement.scrollHeight,r=this.markdownElement.clientHeight,i=this.markdownElement.scrollTop,t=e>r,o=t&&!(i+r>=e-2),a=t&&!(i<=1);this.canScrollDown!==o&&(this.canScrollDown=o),this.canScrollUp!==a&&(this.canScrollUp=a)},this.handleActionSelect=e=>{e.stopPropagation(),a(e.detail)&&this.actionSelected.emit(e.detail)}}componentWillLoad(){const{handleMouseEnter:e,handleMouseLeave:r}=n(this.host);this.handleMouseEnter=e,this.handleMouseLeave=r}disconnectedCallback(){var e,r;null===(e=this.markdownResizeObserver)||void 0===e||e.disconnect(),null===(r=this.markdownElement)||void 0===r||r.removeEventListener("scroll",this.checkIfScrollable)}componentDidLoad(){this.setMarkdownElement(this.markdownElement)}render(){return i(t,{key:"a5b8b7c2bead5c54c7970b6d382704922c066e73",onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},i("section",{key:"cb7c4392b7d92bc47ee533c24a1ca92818aa7076",tabindex:this.clickable?0:""},this.renderImage(),i("div",{key:"484d033da40562d5a460d629ba7cfa6116d9461d",class:"body"},this.renderHeader(),this.renderSlot(),this.renderValue(),this.renderActionBar()),i("limel-3d-hover-effect-glow",{key:"e86f33835e34306ec046d7c5fcf7fdb0f667fa86"})))}renderImage(){var e;if(null===(e=this.image)||void 0===e?void 0:e.src)return i("div",{class:"image-wrapper"},i("img",{src:this.image.src,alt:this.image.alt,loading:"lazy"}))}renderHeader(){if(this.heading||this.subheading||this.icon)return i("header",null,this.renderIcon(),i("div",{class:"headings"},this.renderHeading(),this.renderSubheading()))}renderIcon(){var e;const r=s(this.icon),t="string"==typeof this.icon||null===(e=this.icon)||void 0===e?void 0:e.color;if(r)return i("limel-icon",{style:{color:`${t}`},badge:!0,name:r})}renderHeading(){if(this.heading)return i("h1",{class:"title"},this.heading)}renderSubheading(){if(this.subheading)return i("h2",null,this.subheading)}renderSlot(){return i("slot",{name:"component"})}renderValue(){if(this.value)return i("div",{class:{"markdown-wrapper":!0,"can-scroll-up":this.canScrollUp,"can-scroll-down":this.canScrollDown}},i("limel-markdown",{class:"body-text",ref:this.setMarkdownElement,value:this.value}))}renderActionBar(){if(0!==this.actions.length)return i("limel-action-bar",{actions:this.actions,onItemSelected:this.handleActionSelect})}get host(){return o(this)}};d.style='@charset "UTF-8";*{box-sizing:border-box;min-width:0;min-height:0}:host(limel-card){display:flex;border-radius:var(--card-border-radius, 0.95rem)}section{box-sizing:border-box;display:flex;gap:0.5rem;flex-direction:column}:host(limel-card[orientation=landscape]) section{flex-direction:row}section{width:100%;border-radius:var(--card-border-radius, 0.95rem);border:1px solid rgb(var(--contrast-500));padding:0.25rem;background-color:var(--card-background-color, rgb(var(--contrast-300)))}section:hover{border-color:transparent;background-color:var(--card-background-color--hovered, var(--card-background-color, rgb(var(--contrast-200))))}.body{flex-grow:1;display:flex;flex-direction:column;gap:0.5rem}.image-wrapper{flex-shrink:0;display:flex;align-items:center;justify-content:center}:host(limel-card[orientation=portrait]) .image-wrapper{width:100%}:host(limel-card[orientation=landscape]) .image-wrapper{flex-shrink:0;max-width:40%;height:100%}:host(limel-card[orientation=landscape]) .image-wrapper img{height:100%}img{transition:filter 0.6s ease;object-fit:cover;border-radius:calc(var(--card-border-radius, 0.95rem) / 1.4);min-width:0.5rem;min-height:0.5rem;max-width:100%;max-height:100%}section:hover img,section:focus-visible img{transition-duration:0.2s;filter:saturate(1.3)}.markdown-wrapper{position:relative;flex-grow:1;display:flex;flex-direction:column}.markdown-wrapper limel-markdown{overflow-y:auto;flex-grow:1;padding:0.5rem 0.75rem}.markdown-wrapper::before{top:0;background:radial-gradient(farthest-side at 50% 0%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0))}.markdown-wrapper::after{bottom:0;background:radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0))}.markdown-wrapper::before,.markdown-wrapper::after{content:"";pointer-events:none;position:absolute;right:0;left:0;height:0.75rem;opacity:0;transition:opacity 0.6s ease;background-repeat:no-repeat}.markdown-wrapper.can-scroll-up::before,.markdown-wrapper.can-scroll-down::after{opacity:1}header{flex-shrink:0;display:flex;justify-content:center;gap:0.5rem;padding:0.25rem 0.75rem}:host(limel-card[orientation=landscape]) header{padding-top:0.5rem}header:has(limel-icon){padding-left:0.25rem}header .headings{flex-grow:1;display:flex;flex-direction:column;gap:0.125rem}header .title{padding-right:1.25rem}header limel-icon{flex-shrink:0;width:2rem}header h1{font-size:1.125rem;font-weight:500;color:var(--card-heading-color, rgb(var(--contrast-1100)));letter-spacing:-0.03125rem}header h2{font-size:var(--limel-theme-default-font-size);font-weight:400;color:var(--card-subheading-color, rgb(var(--contrast-1000)))}header h1,header h2{word-break:break-word;hyphens:auto;-webkit-hyphens:auto;margin:0}limel-action-bar{flex-shrink:0;--action-bar-background-color:transparent;margin-left:auto}limel-3d-hover-effect-glow{border-radius:var(--card-border-radius, 0.95rem)}:host(limel-card){isolation:isolate;transform-style:preserve-3d;perspective:1000px}@media (prefers-reduced-motion){:host(limel-card){perspective:2000px}}section{position:relative;transition-duration:0.8s;transition-property:transform, box-shadow, background-color;transition-timing-function:ease-out;transform:scale3d(1, 1, 1) rotate3d(0, 0, 0, 0deg)}section:focus{outline:none}section:hover,section:focus,section:focus-visible,section:focus-within{will-change:background-color, box-shadow, transform}section:hover,section:focus,section:focus-visible,section:active{transition-duration:0.2s}section:hover,section:focus-visible{box-shadow:var(--button-shadow-hovered), var(--shadow-depth-16)}section:hover{transform:scale3d(1.01, 1.01, 1.01) rotate3d(var(--limel-3d-hover-effect-rotate3d))}section:focus-visible{outline:none;transform:scale3d(1.01, 1.01, 1.01)}section:hover limel-3d-hover-effect-glow{--limel-3d-hover-effect-glow-opacity:0.5}@media (prefers-reduced-motion){section:hover limel-3d-hover-effect-glow{--limel-3d-hover-effect-glow-opacity:0.2}}:host(limel-card[clickable]) section{cursor:pointer;box-shadow:var(--button-shadow-normal)}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus-visible{box-shadow:var(--button-shadow-hovered), var(--shadow-depth-16)}:host(limel-card[clickable]) section:active{transform:scale3d(1, 1, 1) rotate3d(0, 0, 0, 0deg);box-shadow:var(--button-shadow-pressed)}:host(limel-card[clickable]) section:focus-visible{box-shadow:var(--shadow-depth-8-focused), var(--button-shadow-hovered)}:host(limel-card[clickable]) section:focus-visible:active{box-shadow:var(--shadow-depth-8-focused), var(--button-shadow-pressed)}';export{d as limel_card}
|