cf-elements 1.0.0 → 1.0.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/bg-styles.css +63 -0
- package/package.json +4 -3
package/bg-styles.css
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ============================================================================
|
|
3
|
+
* FUNNELWIND - Background Style Classes
|
|
4
|
+
* ============================================================================
|
|
5
|
+
*
|
|
6
|
+
* These classes match ClickFunnels background image styling options.
|
|
7
|
+
* Apply via bg-style attribute on cf-* components.
|
|
8
|
+
*
|
|
9
|
+
* ============================================================================
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* Cover - fills container, may crop */
|
|
13
|
+
.bgCover {
|
|
14
|
+
background-size: cover !important;
|
|
15
|
+
background-repeat: no-repeat !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Cover + Centered (default) */
|
|
19
|
+
.bgCoverCenter {
|
|
20
|
+
background-size: cover !important;
|
|
21
|
+
background-position: center center !important;
|
|
22
|
+
background-repeat: no-repeat !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Parallax - fixed background attachment */
|
|
26
|
+
.bgCoverV2 {
|
|
27
|
+
background-attachment: fixed !important;
|
|
28
|
+
background-size: cover !important;
|
|
29
|
+
background-position: center center !important;
|
|
30
|
+
background-repeat: no-repeat !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* 100% width, auto height */
|
|
34
|
+
.bgW100 {
|
|
35
|
+
background-size: 100% auto !important;
|
|
36
|
+
background-repeat: no-repeat !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* 100% width and height (stretch) */
|
|
40
|
+
.bgW100H100 {
|
|
41
|
+
background-size: 100% 100% !important;
|
|
42
|
+
background-repeat: no-repeat !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* No repeat - original size */
|
|
46
|
+
.bgNoRepeat {
|
|
47
|
+
background-repeat: no-repeat !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Repeat/tile in both directions */
|
|
51
|
+
.bgRepeat {
|
|
52
|
+
background-repeat: repeat !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Repeat horizontally only */
|
|
56
|
+
.bgRepeatX {
|
|
57
|
+
background-repeat: repeat-x !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Repeat vertically only */
|
|
61
|
+
.bgRepeatY {
|
|
62
|
+
background-repeat: repeat-y !important;
|
|
63
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cf-elements",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Zero-dependency Web Components library that generates ClickFunnels compatible HTML with inline styles",
|
|
5
5
|
"main": "cf-elements.js",
|
|
6
6
|
"browser": "cf-elements.js",
|
|
7
7
|
"unpkg": "cf-elements.js",
|
|
8
8
|
"jsdelivr": "cf-elements.js",
|
|
9
9
|
"files": [
|
|
10
|
-
"cf-elements.js"
|
|
10
|
+
"cf-elements.js",
|
|
11
|
+
"bg-styles.css"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
14
|
"test": "echo \"No tests yet\""
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
"license": "MIT",
|
|
25
26
|
"repository": {
|
|
26
27
|
"type": "git",
|
|
27
|
-
"url": "https://github.com/barnumpt/cf-elements.git"
|
|
28
|
+
"url": "git+https://github.com/barnumpt/cf-elements.git"
|
|
28
29
|
},
|
|
29
30
|
"homepage": "https://barnumpt.app/docs/funnelwind",
|
|
30
31
|
"bugs": {
|