@coopdigital/styles 0.0.6

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.
@@ -0,0 +1,58 @@
1
+ .coop-button {
2
+ display: inline-block;
3
+ display: inline-flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ min-height: 3.25rem;
7
+ padding: 1rem 1.25rem;
8
+ color: white;
9
+ background: #005878;
10
+ font-size: 1.125rem;
11
+ font-family: Avenir-Next, "Helvetica Neue", Helvetica, Arial, sans-serif;
12
+ font-weight: 500;
13
+ line-height: 1.2;
14
+ text-align: center;
15
+ border: 0;
16
+ border-radius: 8px;
17
+ transition: 0.15s ease-in-out;
18
+ transition-property: background-color, color;
19
+ outline: none;
20
+ text-decoration: none;
21
+ cursor: pointer;
22
+ }
23
+ @media (--mq-medium) {
24
+ .coop-button {
25
+ min-height: 3.75rem;
26
+ padding: 1rem 2.5rem;
27
+ font-size: 1.25rem;
28
+ }
29
+ }
30
+
31
+ .coop-button:hover,
32
+ .coop-button:focus {
33
+ background: #003e55;
34
+ color: #fff;
35
+ border: 0;
36
+ text-decoration: underline;
37
+ }
38
+
39
+ .coop-button:focus {
40
+ transition: none;
41
+ outline: 2px solid #8d44d8;
42
+ outline-offset: 4px;
43
+ }
44
+
45
+ .coop-button:active {
46
+ background: #001f2b;
47
+ color: #fff;
48
+ outline: 0;
49
+ }
50
+
51
+ .coop-button--full-width {
52
+ width: 100%;
53
+ }
54
+
55
+ .coop-button--primary {
56
+ background: #0f8482;
57
+ color: #fff;
58
+ }
package/dist/main.css ADDED
@@ -0,0 +1,3 @@
1
+ body {
2
+ background-color: white;
3
+ }
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@coopdigital/styles",
3
+ "type": "module",
4
+ "version": "0.0.6",
5
+ "private": false,
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "src"
12
+ ],
13
+ "scripts": {
14
+ "test": "vitest run",
15
+ "test:coverage": "vitest run --coverage",
16
+ "build": "tsx scripts build"
17
+ },
18
+ "author": "",
19
+ "license": "ISC",
20
+ "description": "",
21
+ "devDependencies": {
22
+ "glob": "^11.0.1",
23
+ "sass-embedded": "^1.83.4"
24
+ },
25
+ "gitHead": "ae740e763a208a720d9363b560c10fa3c1b0611a"
26
+ }
@@ -0,0 +1,57 @@
1
+ .coop-button {
2
+ display: inline-block;
3
+ display: inline-flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ min-height: 3.25rem;
7
+ padding: 1rem 1.25rem;
8
+ color: white;
9
+ background: #005878;
10
+ font-size: 1.125rem;
11
+ font-family: Avenir-Next, "Helvetica Neue", Helvetica, Arial, sans-serif;
12
+ font-weight: 500;
13
+ line-height: 1.2;
14
+ text-align: center;
15
+ border: 0;
16
+ border-radius: 8px;
17
+ transition: 0.15s ease-in-out;
18
+ transition-property: background-color, color;
19
+ outline: none;
20
+ text-decoration: none;
21
+ cursor: pointer;
22
+
23
+ @media (--mq-medium) {
24
+ min-height: 3.75rem;
25
+ padding: 1rem 2.5rem;
26
+ font-size: 1.25rem;
27
+ }
28
+ }
29
+
30
+ .coop-button:hover,
31
+ .coop-button:focus {
32
+ background: #003e55;
33
+ color: #fff;
34
+ border: 0;
35
+ text-decoration: underline;
36
+ }
37
+
38
+ .coop-button:focus {
39
+ transition: none;
40
+ outline: 2px solid #8d44d8;
41
+ outline-offset: 4px;
42
+ }
43
+
44
+ .coop-button:active {
45
+ background: #001f2b;
46
+ color: #fff;
47
+ outline: 0;
48
+ }
49
+
50
+ .coop-button--full-width {
51
+ width: 100%;
52
+ }
53
+
54
+ .coop-button--primary {
55
+ background: #0f8482;
56
+ color: #fff;
57
+ }
package/src/main.scss ADDED
@@ -0,0 +1,3 @@
1
+ body {
2
+ background-color: white;
3
+ }