Skip to content

Commit

Permalink
use one base css
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaefli committed Nov 26, 2024
1 parent 62551e7 commit 1ea104b
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, Prop, h } from "@stencil/core";
@Component({
tag: "tc-bulletpoint-list",
shadow: true,
styleUrl: "../../util/base.css",
})
export class BulletpointList {
@Prop({ attribute: "title" }) header: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { parseTags } from "../../util/util";
@Component({
tag: "tc-collapsible",
shadow: true,
styleUrl: "../../util/base.css",
})
export class TcCollapsible {
@Prop() colTitle: string;
Expand Down
14 changes: 7 additions & 7 deletions packages/tc-web/src/components/tc-grid-container/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

## Properties

| Property | Attribute | Description | Type | Default |
| ----------------- | ------------------ | ----------- | -------- | ---------------------- |
| `backgroundColor` | `background-color` | | `string` | `"rgb(255, 255, 255)"` |
| `columns` | `columns` | | `number` | `1` |
| `gap` | `gap` | | `string` | `""` |
| `lgColumns` | `lg-columns` | | `number` | `4` |
| `mdColumns` | `md-columns` | | `number` | `2` |
| Property | Attribute | Description | Type | Default |
| ----------------- | ------------------ | ----------- | ------------------------------ | ---------------------- |
| `backgroundColor` | `background-color` | | `string` | `"rgb(255, 255, 255)"` |
| `columns` | `columns` | | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | `1` |
| `gap` | `gap` | | `"lg" \| "md" \| "sm" \| "xl"` | `"md"` |
| `lgColumns` | `lg-columns` | | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | `4` |
| `mdColumns` | `md-columns` | | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | `2` |


----------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, Prop, h } from "@stencil/core";
@Component({
tag: "tc-grid-container",
shadow: true,
styleUrl: "../../util/base.css",
})
export class TcGridContainer {
@Prop() mdColumns: 1 | 2 | 3 | 4 | 5 | 6 = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, Prop, h } from "@stencil/core";
@Component({
tag: "tc-grid-item",
shadow: true,
styleUrl: "../../util/base.css",
})
export class GridItem {
@Prop() imageSrc: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, Prop, h } from "@stencil/core";
@Component({
tag: "tc-img-quote-card",
shadow: true,
styleUrl: "../../util/base.css",
})
export class ImgQuoteCard {
@Prop() quote: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, Prop, h } from "@stencil/core";
@Component({
tag: "tc-img-text-card",
shadow: true,
styleUrl: "../../util/base.css",
})
export class TcImgTextCard {
@Prop() imageSrc: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { parseTags } from "../../util/util";
@Component({
tag: "tc-job-listing",
shadow: true,
styleUrl: "../../util/base.css",
})
export class JobListing {
@Prop() jobTitle: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Property | Attribute | Description | Type | Default |
| ----------------- | ------------------ | ----------- | -------- | ----------- |
| `backgroundColor` | `background-color` | | `string` | `undefined` |
| `segTitle` | `seg-title` | | `string` | `undefined` |
| `segTitle` | `title` | | `string` | `undefined` |


----------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Component, Prop, h, Host } from "@stencil/core";
@Component({
tag: "segment-container",
shadow: true,
styleUrl: "../../util/base.css",
})
export class SegmentContainer {
@Prop({ attribute: "title" }) segTitle: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, Prop, h } from "@stencil/core";
@Component({
tag: "tc-open-positions",
shadow: true,
styleUrl: "../../util/base.css",
})
export class OpenPositions {
@Prop() level: string; // Corrected the property name spelling.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, Prop, h } from "@stencil/core";
@Component({
tag: "tc-svg-icon-card",
shadow: true,
styleUrl: "../../util/base.css",
})
export class SVGIconCard {
@Prop({ attribute: "title" }) advantageTitle: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/tc-web/src/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
3 changes: 3 additions & 0 deletions packages/tc-web/src/util/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:host {
display: block;
}

0 comments on commit 1ea104b

Please sign in to comment.