Skip to content

Commit

Permalink
feat: define display type for web component :host elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Aug 24, 2021
1 parent 08260e0 commit e3bbe84
Show file tree
Hide file tree
Showing 50 changed files with 253 additions and 24 deletions.
10 changes: 10 additions & 0 deletions components/article/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
2 changes: 1 addition & 1 deletion components/article/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-article",
styleUrl: "bem.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class Article {
Expand Down
10 changes: 10 additions & 0 deletions components/badge-counter/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: inline-block;
}
2 changes: 1 addition & 1 deletion components/badge-counter/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Component, Prop, h } from "@stencil/core";

@Component({
tag: "utrecht-badge-counter",
styleUrl: "bem.scss",
styleUrl: "stencil.scss",
shadow: true,
})
export class BadgeCounter {
Expand Down
10 changes: 10 additions & 0 deletions components/badge-data/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: inline-block;
}
2 changes: 1 addition & 1 deletion components/badge-data/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-badge-data",
styleUrl: "bem.scss",
styleUrl: "stencil.scss",
shadow: true,
})
export class BadgeData {
Expand Down
10 changes: 10 additions & 0 deletions components/badge-status/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: inline-block;
}
2 changes: 1 addition & 1 deletion components/badge-status/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Component, Prop, h } from "@stencil/core";

@Component({
tag: "utrecht-badge-status",
styleUrl: "bem.scss",
styleUrl: "stencil.scss",
shadow: true,
})
export class BadgeStatus {
Expand Down
4 changes: 4 additions & 0 deletions components/breadcrumb/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@

@import "./bem";
@import "../link/bem";

:host {
display: block;
}
10 changes: 10 additions & 0 deletions components/button/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: inline-block;
}
2 changes: 1 addition & 1 deletion components/button/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import clsx from "clsx";

@Component({
tag: "utrecht-button",
styleUrl: "bem.scss",
styleUrl: "stencil.scss",
shadow: true,
})
export class Button {
Expand Down
10 changes: 10 additions & 0 deletions components/document/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
2 changes: 1 addition & 1 deletion components/document/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-document",
styleUrl: "bem.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class Document {
Expand Down
4 changes: 4 additions & 0 deletions components/form-field-checkbox/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
@import "./bem";
@import "../form-label/bem";
@import "../checkbox/bem";

:host {
display: block;
}
10 changes: 10 additions & 0 deletions components/form-field-description/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
2 changes: 1 addition & 1 deletion components/form-field-description/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import clsx from "clsx";

@Component({
tag: "utrecht-form-field-description",
styleUrl: "bem.scss",
styleUrl: "stencil.scss",
shadow: true,
})
export class FormFieldDescription {
Expand Down
4 changes: 4 additions & 0 deletions components/form-field-textarea/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
@import "../form-label/bem";
@import "../form-field/bem";
@import "../textarea/bem";

:host {
display: block;
}
4 changes: 4 additions & 0 deletions components/form-field-textbox/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
@import "./bem";
@import "../form-label/bem";
@import "../textbox/bem";

:host {
display: block;
}
10 changes: 10 additions & 0 deletions components/heading-1/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
2 changes: 1 addition & 1 deletion components/heading-1/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-heading-1",
styleUrl: "bem.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class Heading1 {
Expand Down
10 changes: 10 additions & 0 deletions components/heading-2/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
2 changes: 1 addition & 1 deletion components/heading-2/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-heading-2",
styleUrl: "bem.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class Heading2 {
Expand Down
10 changes: 10 additions & 0 deletions components/heading-3/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
2 changes: 1 addition & 1 deletion components/heading-3/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-heading-3",
styleUrl: "bem.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class Heading3 {
Expand Down
10 changes: 10 additions & 0 deletions components/heading-4/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
2 changes: 1 addition & 1 deletion components/heading-4/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-heading-4",
styleUrl: "bem.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class Heading4 {
Expand Down
10 changes: 10 additions & 0 deletions components/heading-5/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
2 changes: 1 addition & 1 deletion components/heading-5/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-heading-5",
styleUrl: "bem.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class Heading5 {
Expand Down
10 changes: 10 additions & 0 deletions components/heading-6/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
4 changes: 4 additions & 0 deletions components/heading/stencil.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
@import "../heading-4/bem";
@import "../heading-5/bem";
@import "../heading-6/bem";

:host {
display: block;
}
10 changes: 10 additions & 0 deletions components/html-content/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./html";

:host {
display: block;
}
2 changes: 1 addition & 1 deletion components/html-content/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-html-content",
styleUrl: "html.scss",
styleUrl: "stencil.scss",
shadow: false,
})
export class HTMLContent {
Expand Down
2 changes: 1 addition & 1 deletion components/icon/facebook.stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-icon-facebook",
styleUrl: "stencil.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class IconFacebook {
Expand Down
2 changes: 1 addition & 1 deletion components/icon/instagram.stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-icon-instagram",
styleUrl: "stencil.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class IconInstagram {
Expand Down
2 changes: 1 addition & 1 deletion components/icon/linkedin.stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-icon-linkedin",
styleUrl: "stencil.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class IconLinkedin {
Expand Down
9 changes: 9 additions & 0 deletions components/icon/stencil.css → components/icon/stencil.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

:host {
display: inline-block;
}

svg {
color: var(--utrecht-icon-color, var(--utrecht-document-color, currentColor));
height: var(--utrecht-icon-size, 100%);
Expand Down
2 changes: 1 addition & 1 deletion components/icon/twitter.stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-icon-twitter",
styleUrl: "stencil.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class IconTwitter {
Expand Down
2 changes: 1 addition & 1 deletion components/icon/whatsapp.stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-icon-whatsapp",
styleUrl: "stencil.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class IconWhatsapp {
Expand Down
10 changes: 10 additions & 0 deletions components/logo/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: inline;
}
2 changes: 1 addition & 1 deletion components/logo/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-logo",
styleUrl: "bem.css",
styleUrl: "stencil.scss",
shadow: true,
})
export class Logo {
Expand Down
10 changes: 10 additions & 0 deletions components/page-footer/stencil.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license EUPL-1.2
* Copyright (c) 2021 Robbert Broersma
*/

@import "./bem";

:host {
display: block;
}
Loading

0 comments on commit e3bbe84

Please sign in to comment.