@sb1/ffe-cards 19.1.0 → 19.1.2
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/less/common-card-styling.less +21 -17
- package/less/components.less +3 -3
- package/less/stippled-card.less +13 -6
- package/less/text-card.less +1 -1
- package/package.json +3 -3
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
.common-card-styling() {
|
|
2
|
-
&:extend(.ffe-body-text);
|
|
3
|
-
|
|
4
2
|
background: var(--ffe-v-cards-common-card-background-color);
|
|
5
3
|
box-shadow: 0 1px 4px 0 var(--ffe-v-cards-common-card-box-shadow-color);
|
|
6
4
|
margin: 0 0 var(--ffe-spacing-2xs);
|
|
7
5
|
border: 2px solid transparent;
|
|
8
6
|
border-radius: var(--ffe-v-cards-common-card-border-radius);
|
|
9
|
-
transition:
|
|
7
|
+
transition: all var(--ffe-transition-duration) var(--ffe-ease);
|
|
10
8
|
outline: none;
|
|
11
9
|
width: 100%;
|
|
12
10
|
text-decoration: none;
|
|
@@ -33,21 +31,19 @@
|
|
|
33
31
|
outline: inherit;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
@media (hover: hover) and (pointer: fine) {
|
|
35
|
+
&--clickable:hover {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
border-color: var(--ffe-g-primary-color);
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
.ffe-card-body__text
|
|
48
|
-
):has(.ffe-card__action) {
|
|
49
|
-
text-decoration: underline;
|
|
50
|
-
}
|
|
39
|
+
&
|
|
40
|
+
:where(
|
|
41
|
+
.ffe-card-body__card-name,
|
|
42
|
+
.ffe-card-body__title,
|
|
43
|
+
.ffe-card-body__subtext,
|
|
44
|
+
.ffe-card-body__text
|
|
45
|
+
):has(.ffe-card__action) {
|
|
46
|
+
text-decoration: underline;
|
|
51
47
|
}
|
|
52
48
|
}
|
|
53
49
|
}
|
|
@@ -64,8 +60,16 @@
|
|
|
64
60
|
box-shadow: 0 0 0 2px var(--ffe-g-primary-color);
|
|
65
61
|
}
|
|
66
62
|
|
|
63
|
+
@supports not
|
|
64
|
+
selector(&:has(.ffe-card__action:active, .ffe-card__action:focus)) {
|
|
65
|
+
&--clickable:focus-within {
|
|
66
|
+
border-color: var(--ffe-g-primary-color);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
67
70
|
&:has(.ffe-card__action:active, .ffe-card__action:focus) {
|
|
68
71
|
border-color: var(--ffe-g-primary-color);
|
|
72
|
+
|
|
69
73
|
&
|
|
70
74
|
:where(
|
|
71
75
|
.ffe-card-body__card-name,
|
package/less/components.less
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.ffe-card-body {
|
|
2
2
|
&__card-name {
|
|
3
|
-
margin: 0 0
|
|
3
|
+
margin: 0 0 var(--ffe-spacing-2xs) 0;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
&__text {
|
|
7
|
-
margin:
|
|
7
|
+
margin: var(--ffe-spacing-2xs) 0 0 0;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&__subtext {
|
|
11
11
|
&:extend(.ffe-small-text);
|
|
12
12
|
|
|
13
13
|
color: var(--ffe-v-cards-text-color);
|
|
14
|
-
margin:
|
|
14
|
+
margin: var(--ffe-spacing-2xs) 0 0 0;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&__title {
|
package/less/stippled-card.less
CHANGED
|
@@ -18,12 +18,19 @@
|
|
|
18
18
|
box-shadow: none;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
@supports not
|
|
22
|
+
selector(&:has(.ffe-card__action:active, .ffe-card__action:focus)) {
|
|
23
|
+
&--clickable:focus-within {
|
|
24
|
+
border-style: solid;
|
|
25
|
+
box-shadow: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (hover: hover) and (pointer: fine) {
|
|
30
|
+
&--clickable:hover {
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
border-style: solid;
|
|
33
|
+
box-shadow: none;
|
|
27
34
|
}
|
|
28
35
|
}
|
|
29
36
|
|
package/less/text-card.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-cards",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.2",
|
|
4
4
|
"description": "Kort for bruk i oversikter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test": "npm run lint"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sb1/ffe-core": "^27.5.
|
|
19
|
+
"@sb1/ffe-core": "^27.5.3"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@sb1/ffe-buildtool": "^0.6.4"
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "02233b655c8ecfe9066cc50bd67f0a299e9ab549"
|
|
28
28
|
}
|