@illinois-toolkit/ilw-hero 1.0.0-alpha1 → 1.0.0-beta
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/builder/ilw-hero.json
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
"description": "The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.",
|
|
8
8
|
"toolkit-version": "",
|
|
9
9
|
"production-version": "",
|
|
10
|
-
"development-version": "1.0
|
|
10
|
+
"development-version": "1.0-beta"
|
|
11
11
|
}
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
"type": "web component",
|
|
6
6
|
"element-name": "ilw-hero",
|
|
7
7
|
"description": "The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.",
|
|
8
|
-
"version": "1.0
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
8
|
+
"builder-version": "1.0-beta",
|
|
9
|
+
"version": "1.0.0-beta",
|
|
10
|
+
"date": "9/13/2024",
|
|
11
|
+
"css": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.0-beta/ilw-hero.css",
|
|
12
|
+
"js": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.0-beta/ilw-hero.js",
|
|
12
13
|
"production": false,
|
|
13
14
|
"notes": "",
|
|
14
15
|
"parent-style": "",
|
package/dist/ilw-hero.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--ilw-hero--height: 223px;--ilw-hero--font: 700 2.25rem/2.25rem var(--il-font-sans);--ilw-hero--background: var(--il-blue);--ilw-hero--text-color: white;--ilw-hero--text-width: 40%;--ilw-hero--shadow-color: rgba(0, 0, 0, 1)}ilw-hero{display:block}ilw-hero img,ilw-hero *[slot=background]{display:block;position:relative;width:100%;height:100%;object-fit:cover;object-position:center}ilw-hero h1,ilw-hero h2,ilw-hero h3{all:initial;font:var(--ilw-hero--font);color:var(--ilw-hero--text-color);text-shadow:2px 2px 2px var(--ilw-hero--shadow-color);text-align:inherit}ilw-hero[theme=orange]{--ilw-hero--background: var(--il-orange);--ilw-hero--button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: var(--il-blue)}ilw-hero[theme=white]{--ilw-hero--background: white;--ilw-hero--button-background-color: white;--ilw-hero--button-foreground-color: var(--il-blue);--ilw-hero--button-border-color: var(--il-blue);--ilw-hero--focused-button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: white;--ilw-hero--focused-button-border-color: var(--il-blue);--ilw-hero--text-color: #252525;--ilw-hero--shadow-color: rgba(255, 255, 255, 1)}ilw-hero[focus=top] img{object-position:top}ilw-hero[focus=bottom] img{object-position:bottom}ilw-hero[focus=left] img{object-position:left}ilw-hero[focus=right] img{object-position:right}
|
|
1
|
+
:root{--ilw-hero--height: 223px;--ilw-hero--font: 700 2.25rem/2.25rem var(--il-font-sans);--ilw-hero--background: var(--il-blue);--ilw-hero--text-color: white;--ilw-hero--text-width: 40%;--ilw-hero--shadow-color: rgba(0, 0, 0, 1)}ilw-hero{display:block;container-type:inline-size}ilw-hero img,ilw-hero *[slot=background]{display:block;position:relative;width:100%;height:100%;object-fit:cover;object-position:center}ilw-hero h1,ilw-hero h2,ilw-hero h3{all:initial;font:var(--ilw-hero--font);color:var(--ilw-hero--text-color);text-shadow:2px 2px 2px var(--ilw-hero--shadow-color);text-align:inherit}ilw-hero[theme=orange]{--ilw-hero--background: var(--il-orange);--ilw-hero--button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: var(--il-blue)}ilw-hero[theme=white]{--ilw-hero--background: white;--ilw-hero--button-background-color: white;--ilw-hero--button-foreground-color: var(--il-blue);--ilw-hero--button-border-color: var(--il-blue);--ilw-hero--focused-button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: white;--ilw-hero--focused-button-border-color: var(--il-blue);--ilw-hero--text-color: #252525;--ilw-hero--shadow-color: rgba(255, 255, 255, 1)}ilw-hero[focus=top] img{object-position:top}ilw-hero[focus=bottom] img{object-position:bottom}ilw-hero[focus=left] img{object-position:left}ilw-hero[focus=right] img{object-position:right}@media (min-width: 576px){:root{--ilw-hero--height: 315px;--ilw-hero--font: 700 3rem/3rem var(--il-font-sans)}}@media (min-width: 767px){:root{--ilw-hero--height: 557px;--ilw-hero--font: 700 4rem/4rem var(--il-font-sans)}ilw-hero[shadow] h1,ilw-hero[shadow] h2,ilw-hero[shadow] h3{background:radial-gradient(#000000e6,#0000001a);padding:1rem!important}ilw-hero[theme=white][shadow] h1,ilw-hero[theme=white][shadow] h2,ilw-hero[theme=white][shadow] h3{background:radial-gradient(#ffffffe6,#ffffff1a)}}@media (min-width: 992px){:root{--ilw-hero--font: 700 4.5rem/4.5rem var(--il-font-sans)}}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@illinois-toolkit/ilw-hero",
|
|
3
3
|
"description": "Illinois Toolkit: The Hero Image component adds a large picture at the top of the page.",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.0.0-
|
|
5
|
+
"version": "1.0.0-beta",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"src/**",
|
package/src/ilw-hero.css
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
ilw-hero {
|
|
11
11
|
display: block;
|
|
12
|
+
container-type: inline-size;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
ilw-hero img, ilw-hero *[slot="background"] {
|
|
@@ -58,9 +59,6 @@ ilw-hero[focus="left"] img {
|
|
|
58
59
|
ilw-hero[focus="right"] img {
|
|
59
60
|
object-position: right;
|
|
60
61
|
}
|
|
61
|
-
ilw-hero[width="fixed"] {
|
|
62
|
-
container-type: inline-size;
|
|
63
|
-
}
|
|
64
62
|
|
|
65
63
|
@media (min-width: 576px) {
|
|
66
64
|
:root {
|