mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.2 KiB
51 lines
2.2 KiB
/*!
|
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
*/
|
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
import { c as createColorClasses } from './theme.js';
|
|
import { b as getIonMode } from './ionic-global.js';
|
|
|
|
const cardTitleIosCss = ":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.75rem;font-weight:700;line-height:1.2}";
|
|
|
|
const cardTitleMdCss = ":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;line-height:1.2}";
|
|
|
|
const CardTitle = /*@__PURE__*/ proxyCustomElement(class CardTitle extends HTMLElement {
|
|
constructor(registerHost) {
|
|
super();
|
|
if (registerHost !== false) {
|
|
this.__registerHost();
|
|
}
|
|
this.__attachShadow();
|
|
}
|
|
render() {
|
|
const mode = getIonMode(this);
|
|
return (h(Host, { key: 'fca001a86396e83718d5211cd71912fdf40dea2f', role: "heading", "aria-level": "2", class: createColorClasses(this.color, {
|
|
'ion-inherit-color': true,
|
|
[mode]: true,
|
|
}) }, h("slot", { key: '2ba416aed488b2ff462fa75fb3b70373a6dd7da6' })));
|
|
}
|
|
static get style() { return {
|
|
ios: cardTitleIosCss,
|
|
md: cardTitleMdCss
|
|
}; }
|
|
}, [289, "ion-card-title", {
|
|
"color": [513]
|
|
}]);
|
|
function defineCustomElement$1() {
|
|
if (typeof customElements === "undefined") {
|
|
return;
|
|
}
|
|
const components = ["ion-card-title"];
|
|
components.forEach(tagName => { switch (tagName) {
|
|
case "ion-card-title":
|
|
if (!customElements.get(tagName)) {
|
|
customElements.define(tagName, CardTitle);
|
|
}
|
|
break;
|
|
} });
|
|
}
|
|
|
|
const IonCardTitle = CardTitle;
|
|
const defineCustomElement = defineCustomElement$1;
|
|
|
|
export { IonCardTitle, defineCustomElement };
|
|
|