@colijnit/catalog 301.1.7 → 301.1.9

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.
@@ -1,7 +1,95 @@
1
1
  @include export-module('co-catalog-categories-layout') {
2
2
  .co-catalog-categories {
3
+ display: block;
4
+ width: 100%;
3
5
  font-family: $co-catalog-categories-font-family;
4
6
  font-size: $co-catalog-categories-font-size;
7
+ .catalog-categories-wrapper {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 30px;
11
+ }
12
+ .navigation-group {
13
+ display: flex;
14
+ flex-direction: column;
15
+ flex: 1 1 100%;
16
+ min-width: 0;
17
+ row-gap: $co-catalog-categories-group-row-gap;
18
+ .navigation-group-header {
19
+ display: flex;
20
+ align-items: center;
21
+ column-gap: $co-catalog-categories-group-header-column-gap;
22
+ margin: $co-catalog-categories-group-header-margin;
23
+ }
24
+ .navigation-group-title {
25
+ font-family: $co-catalog-categories-group-title-font-family;
26
+ font-size: $co-catalog-categories-group-title-font-size;
27
+ font-weight: $co-catalog-categories-group-title-font-weight;
28
+ }
29
+ .navigation-group-search {
30
+ width: $co-catalog-categories-group-search-width;
31
+ height: $co-catalog-categories-group-search-height;
32
+ .co-input-text {
33
+ border-radius: 5px;
34
+ &:before {
35
+ box-shadow: none;
36
+ border-radius: 5px;
37
+ }
38
+ }
39
+ }
40
+ .navigation-group-items {
41
+ display: flex;
42
+ flex-direction: row;
43
+ flex-wrap: nowrap;
44
+ overflow-x: auto;
45
+ width: 0;
46
+ min-width: 100%;
47
+ column-gap: $co-catalog-categories-group-column-gap;
48
+ padding: 0 0 15px 0;
49
+ }
50
+ .navigation-group-item {
51
+ cursor: pointer;
52
+ flex: 0 0 auto;
53
+ display: flex;
54
+ flex-direction: column;
55
+ justify-content: center;
56
+ align-items: center;
57
+ text-align: center;
58
+ overflow: hidden;
59
+ row-gap: $co-catalog-categories-group-item-row-gap;
60
+ width: $co-catalog-categories-group-item-width;
61
+ height: $co-catalog-categories-group-item-height;
62
+ padding: $co-catalog-categories-group-item-padding;
63
+ border-style: solid;
64
+ border-width: $co-catalog-categories-group-item-border-width;
65
+ position: relative;
66
+ border-radius: 5px;
67
+ &:hover {
68
+ color: $co-catalog-categories-group-hover-color;
69
+ }
70
+ }
71
+ .navigation-group-item-count {
72
+ font-size: $co-catalog-categories-group-item-count-font-size;
73
+ position: absolute;
74
+ top: 0;
75
+ right: 0;
76
+ width: 26px;
77
+ height: 16px;
78
+ display: flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+ background: #1A73E8;
82
+ color: #fff;
83
+ }
84
+ .navigation-group-item-description {
85
+ display: -webkit-box;
86
+ -webkit-line-clamp: 2;
87
+ -webkit-box-orient: vertical;
88
+ overflow: hidden;
89
+ text-overflow: ellipsis;
90
+ width: 100%;
91
+ }
92
+ }
5
93
 
6
94
  .categories-wrapper {
7
95
  display: grid;
@@ -30,3 +30,26 @@ $co-catalog-categories-turnovergroup-image-hover-filter: brightness(100%) !defau
30
30
  $co-catalog-categories-turnovergroup-description-text-overflow: ellipsis !default;
31
31
  $co-catalog-categories-turnovergroup-description-overflow: hidden !default;
32
32
  $co-catalog-categories-turnovergroup-description-white-space: nowrap !default;
33
+
34
+ // The preselection step that is shown on its own, without anything underneath it.
35
+ // It lives with this component, so its look can be set per component.
36
+ $co-catalog-categories-group-row-gap: 5px !default;
37
+ $co-catalog-categories-group-column-gap: 10px !default;
38
+ $co-catalog-categories-group-hover-color: $ca-color-action !default;
39
+
40
+ $co-catalog-categories-group-header-column-gap: 15px !default;
41
+ $co-catalog-categories-group-header-margin: 0 0 10px 0 !default;
42
+ $co-catalog-categories-group-title-font-family: $ca-font-family !default;
43
+ $co-catalog-categories-group-title-font-size: $ca-font-size-big !default;
44
+ $co-catalog-categories-group-title-font-weight: 600 !default;
45
+ $co-catalog-categories-group-search-width: 150px !default;
46
+ $co-catalog-categories-group-search-height: 28px !default;
47
+
48
+ $co-catalog-categories-group-item-width: 100px !default;
49
+ $co-catalog-categories-group-item-height: 75px !default;
50
+ $co-catalog-categories-group-item-padding: 5px !default;
51
+ $co-catalog-categories-group-item-row-gap: 3px !default;
52
+ $co-catalog-categories-group-item-border-width: 1px !default;
53
+ $co-catalog-categories-group-item-border-color: $ca-color-border !default;
54
+ $co-catalog-categories-group-item-count-font-size: 8px !default;
55
+ $co-catalog-categories-group-item-count-color: #FFF !default;
@@ -1,5 +1,13 @@
1
1
  @include export-module('co-catalog-categories-theme') {
2
2
  .co-catalog-categories {
3
+ .navigation-group {
4
+ .navigation-group-item {
5
+ border-color: $co-catalog-categories-group-item-border-color;
6
+ }
7
+ .navigation-group-item-count {
8
+ color: $co-catalog-categories-group-item-count-color;
9
+ }
10
+ }
3
11
  .category-item {
4
12
  .category-description {
5
13
  color: $co-catalog-categories-category-description-font-color;
@@ -5,25 +5,31 @@
5
5
  font-family: $co-catalog-external-sources-font-family;
6
6
  font-size: $co-catalog-external-sources-font-size;
7
7
 
8
+ .external-sources-loader {
9
+ display: flex;
10
+ justify-content: center;
11
+ padding: $co-catalog-external-sources-padding;
12
+ }
13
+
8
14
  .pinned-label {
9
15
  font-size: $co-catalog-external-sources-font-size-big;
10
16
  font-weight: bold;
11
17
  }
12
18
 
13
19
  .pinned-divider-padding {
14
- padding-top: 30px;
15
- padding-bottom: 20px;
20
+ padding-top: 10px;
21
+ padding-bottom: 10px;
16
22
  }
17
23
 
18
24
  .pinned-divider {
19
25
  height: 1px;
20
26
  width: 100%;
21
- background-color: black;
27
+ background-color: #ececec;
22
28
  }
23
29
 
24
30
  .catalog-external-sources-wrapper {
25
31
  display: grid;
26
- grid-template-columns: repeat(auto-fit, minmax(10px, $co-catalog-external-sources-image-size));
32
+ grid-template-columns: repeat(auto-fit, minmax(10px, $co-catalog-external-sources-image-width));
27
33
  overflow: hidden;
28
34
  padding: $co-catalog-external-sources-padding;
29
35
  grid-gap: $co-catalog-external-sources-column-gap;
@@ -39,17 +45,29 @@
39
45
  min-height: $co-catalog-external-sources-image-size;
40
46
 
41
47
  .co-image {
42
- height: 100%;
43
- width: 100%;
48
+ height: $co-catalog-external-sources-image-size;
49
+ width: $co-catalog-external-sources-image-width;
44
50
  border-style: $co-catalog-external-sources-item-border-style;
45
51
  border-width: $co-catalog-external-sources-item-border-width;
46
52
  border-radius: $co-catalog-external-sources-item-border-radius;
47
-
53
+ padding: $co-catalog-external-sources-item-image-padding;
48
54
  img {
49
55
  height: 100%;
50
56
  width: 100%;
51
57
  filter: $co-catalog-external-sources-image-filter;
52
58
  border-radius: $co-catalog-external-sources-item-border-radius;
59
+ object-fit: cover;
60
+ }
61
+ .no-image-wrapper {
62
+ font-size: 10px;
63
+ row-gap: 5px;
64
+ span {
65
+ font-size: 10px;
66
+ }
67
+ .co-icon {
68
+ width: 30px;
69
+ height: 30px;
70
+ }
53
71
  }
54
72
  }
55
73
 
@@ -62,7 +80,7 @@
62
80
  font-weight: $co-catalog-external-sources-description-font-weight;
63
81
  text-shadow: $co-catalog-external-sources-description-text-shadow;
64
82
  text-transform: $co-catalog-external-sources-description-text-transform;
65
- margin: $co-catalog-external-sources-description-margin;
83
+ padding: $co-catalog-external-sources-description-margin;
66
84
  }
67
85
 
68
86
  &:hover {
@@ -74,6 +92,23 @@
74
92
  }
75
93
  }
76
94
 
95
+ // One row of its own, as a preselection step is shown on the landing page: the catalogs
96
+ // scroll sideways instead of wrapping over the width of the page.
97
+ &.in-row {
98
+ .catalog-external-sources-wrapper {
99
+ display: flex;
100
+ flex-wrap: nowrap;
101
+ overflow-x: auto;
102
+ width: 0;
103
+ min-width: 100%;
104
+ column-gap: $co-catalog-external-sources-column-gap;
105
+ }
106
+ .external-source-item {
107
+ flex: 0 0 auto;
108
+ width: $co-catalog-external-sources-image-width;
109
+ }
110
+ }
111
+
77
112
  .catalog-external-sources-wrapper-unavailable {
78
113
  margin-top: $co-catalog-external-sources-column-gap;
79
114
  .external-source-item-unavailable {
@@ -1,20 +1,21 @@
1
1
  $co-catalog-external-sources-font-family: $ca-font-family !default;
2
2
  $co-catalog-external-sources-font-size: $ca-font-size !default;
3
3
  $co-catalog-external-sources-font-size-big: $ca-font-size-big !default;
4
- $co-catalog-external-sources-image-size: 150px !default;
5
- $co-catalog-external-sources-padding: 0 !default;
4
+ $co-catalog-external-sources-image-size: 75px !default;
5
+ $co-catalog-external-sources-image-width: 100px !default;
6
+ $co-catalog-external-sources-padding: 15px 0 15px 0 !default;
6
7
  $co-catalog-external-sources-column-gap: 10px !default;
7
8
 
8
9
  $co-catalog-external-sources-item-border-style: solid !default;
9
10
  $co-catalog-external-sources-item-border-color: $ca-color-border !default;
10
11
  $co-catalog-external-sources-item-border-width: 1px !default;
11
- $co-catalog-external-sources-item-border-radius: 10px !default;
12
-
13
- $co-catalog-external-sources-image-filter: brightness(80%) !default;
14
- $co-catalog-external-sources-image-hover-filter: brightness(100%) !default;
15
- $co-catalog-external-sources-description-margin: 10px 0 !default;
16
- $co-catalog-external-sources-description-font-size: $ca-font-size !default;
12
+ $co-catalog-external-sources-item-border-radius: 5px !default;
13
+ $co-catalog-external-sources-item-image-padding: 5px !default;
14
+ $co-catalog-external-sources-image-filter: brightness(100%) !default;
15
+ $co-catalog-external-sources-image-hover-filter: brightness(80%) !default;
16
+ $co-catalog-external-sources-description-margin: 5px 0 !default;
17
+ $co-catalog-external-sources-description-font-size: 12px !default;
17
18
  $co-catalog-external-sources-description-font-color: $ca-color-font !default;
18
- $co-catalog-external-sources-description-font-weight: bold !default;
19
- $co-catalog-external-sources-description-text-transform: capitalize !default;
19
+ $co-catalog-external-sources-description-font-weight: normal !default;
20
+ $co-catalog-external-sources-description-text-transform: uppercase !default;
20
21
  $co-catalog-external-sources-description-text-shadow: none /*0 2px 3px rgba(1, 1, 1, .55)*/ !default;
@@ -3,9 +3,6 @@
3
3
  font-family: $co-catalog-navigation-font-family;
4
4
  font-size: $co-catalog-navigation-font-size;
5
5
  color: $co-catalog-navigation-font-color;
6
- margin: $co-catalog-navigation-margin;
7
- background: #f5f5fce0;
8
- padding: 10px 15px;
9
6
  .home-link {
10
7
  font-family: $co-catalog-navigation-home-font-family;
11
8
  font-size: $co-catalog-navigation-home-font-size;
@@ -21,19 +18,31 @@
21
18
  display: flex;
22
19
  align-items: center;
23
20
  gap: 7px;
21
+ // The part that folds the menu open; the menu itself hangs beside it, out of its reach.
22
+ .navigation-item-button {
23
+ display: flex;
24
+ align-items: center;
25
+ gap: 7px;
26
+ span {
27
+ font-size: 14px;
28
+ font-weight: 600;
29
+ }
30
+ }
24
31
  span {
25
- font-weight: 600;
26
- font-size: 14px;
32
+ font-size: 12px;
27
33
  }
28
34
  co-icon {
29
- width: 22px;
30
- height: 22px;
35
+ width: 18px;
36
+ height: 18px;
31
37
  &.collection {
32
- width: 18px;
33
- height: 18px;
38
+ width: 14px;
39
+ height: 14px;
34
40
  }
35
41
  svg {
36
- fill: #484f60;
42
+ fill: #000;
43
+ }
44
+ svg [fill] {
45
+ fill: #000;
37
46
  }
38
47
  }
39
48
  .home-link {
@@ -69,6 +78,88 @@
69
78
  color: $co-catalog-navigation-category-hover-color;
70
79
  }
71
80
  }
81
+ .navigation-group {
82
+ display: flex;
83
+ flex-direction: column;
84
+ flex: 1 1 100%;
85
+ min-width: 0;
86
+ row-gap: $co-catalog-navigation-group-row-gap;
87
+ .navigation-group-header {
88
+ display: flex;
89
+ align-items: center;
90
+ column-gap: $co-catalog-navigation-group-header-column-gap;
91
+ margin: $co-catalog-navigation-group-header-margin;
92
+ }
93
+ .navigation-group-title {
94
+ font-family: $co-catalog-navigation-group-title-font-family;
95
+ font-size: $co-catalog-navigation-group-title-font-size;
96
+ font-weight: $co-catalog-navigation-group-title-font-weight;
97
+ }
98
+ .navigation-group-search {
99
+ width: $co-catalog-categories-group-search-width;
100
+ height: $co-catalog-categories-group-search-height;
101
+ .co-input-text {
102
+ border-radius: 5px;
103
+ &:before {
104
+ box-shadow: none;
105
+ border-radius: 5px;
106
+ }
107
+ }
108
+ }
109
+ .navigation-group-items {
110
+ display: flex;
111
+ flex-direction: row;
112
+ flex-wrap: nowrap;
113
+ overflow-x: auto;
114
+ width: 0;
115
+ min-width: 100%;
116
+ column-gap: $co-catalog-navigation-group-column-gap;
117
+ padding: 0 0 15px 0;
118
+ margin: 0 0 15px 0;
119
+ }
120
+ .navigation-group-item {
121
+ cursor: pointer;
122
+ flex: 0 0 auto;
123
+ display: flex;
124
+ flex-direction: column;
125
+ justify-content: center;
126
+ align-items: center;
127
+ text-align: center;
128
+ overflow: hidden;
129
+ row-gap: $co-catalog-navigation-group-item-row-gap;
130
+ width: $co-catalog-navigation-group-item-width;
131
+ height: $co-catalog-navigation-group-item-height;
132
+ padding: $co-catalog-navigation-group-item-padding;
133
+ border-style: solid;
134
+ border-width: $co-catalog-navigation-group-item-border-width;
135
+ position: relative;
136
+ border-radius: 5px;
137
+ &:hover {
138
+ color: $co-catalog-navigation-group-hover-color;
139
+ }
140
+ }
141
+ .navigation-group-item-count {
142
+ font-size: $co-catalog-navigation-group-item-count-font-size;
143
+ position: absolute;
144
+ top: 0;
145
+ right: 0;
146
+ width: 26px;
147
+ height: 16px;
148
+ display: flex;
149
+ justify-content: center;
150
+ align-items: center;
151
+ background: #1A73E8;
152
+ color: #fff;
153
+ }
154
+ .navigation-group-item-description {
155
+ display: -webkit-box;
156
+ -webkit-line-clamp: 2;
157
+ -webkit-box-orient: vertical;
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ width: 100%;
161
+ }
162
+ }
72
163
  .navigation-turnovergroup-wrapper {
73
164
  display: flex;
74
165
  flex-direction: column;
@@ -28,4 +28,27 @@ $co-catalog-navigation-category-border-color: $ca-color-border !default;
28
28
  $co-catalog-navigation-category-hover-color: $ca-color-action !default;
29
29
 
30
30
  $co-catalog-navigation-turnovergroup-row-gap: 5px !default;
31
+
31
32
  $co-catalog-navigation-turnovergroup-hover-color: $ca-color-action !default;
33
+
34
+ // The preselection step that is shown on its own, without anything underneath it.
35
+ // It lives with this component, so its look can be set per component.
36
+ $co-catalog-navigation-group-row-gap: 5px !default;
37
+ $co-catalog-navigation-group-column-gap: 10px !default;
38
+ $co-catalog-navigation-group-hover-color: $ca-color-action !default;
39
+
40
+ $co-catalog-navigation-group-header-column-gap: 15px !default;
41
+ $co-catalog-navigation-group-header-margin: 10px 0 10px 0 !default;
42
+ $co-catalog-navigation-group-title-font-family: $ca-font-family !default;
43
+ $co-catalog-navigation-group-title-font-size: $ca-font-size-big !default;
44
+ $co-catalog-navigation-group-title-font-weight: 600 !default;
45
+ $co-catalog-navigation-group-search-width: 200px !default;
46
+
47
+ $co-catalog-navigation-group-item-width: 100px !default;
48
+ $co-catalog-navigation-group-item-height: 75px !default;
49
+ $co-catalog-navigation-group-item-padding: 5px !default;
50
+ $co-catalog-navigation-group-item-row-gap: 3px !default;
51
+ $co-catalog-navigation-group-item-border-width: 1px !default;
52
+ $co-catalog-navigation-group-item-border-color: $ca-color-border !default;
53
+ $co-catalog-navigation-group-item-count-font-size: 8px !default;
54
+ $co-catalog-navigation-group-item-count-color: #FFF !default;
@@ -3,5 +3,13 @@
3
3
  .home-link {
4
4
  color: $co-catalog-navigation-home-font-color;
5
5
  }
6
+ .navigation-group {
7
+ .navigation-group-item {
8
+ border-color: $co-catalog-navigation-group-item-border-color;
9
+ }
10
+ .navigation-group-item-count {
11
+ color: $co-catalog-navigation-group-item-count-color;
12
+ }
13
+ }
6
14
  }
7
15
  }
@@ -5,7 +5,14 @@
5
5
  flex-direction: column;
6
6
  width: 100%;
7
7
  //height: 100%;
8
-
8
+ .navigation-sort-wrapper {
9
+ background: $co-catalog-search-navigation-sort-background;
10
+ padding: $co-catalog-search-navigation-sort-padding;
11
+ display: flex;
12
+ justify-content: space-between;
13
+ margin: $co-catalog-search-navigation-sort-margin;
14
+ align-items: center;
15
+ }
9
16
  .catalog-search-wrapper {
10
17
  display: flex;
11
18
  width: 100%;
@@ -40,3 +40,7 @@ $co-catalog-search-view-modes-button-size: 30px !default;
40
40
  $co-catalog-search-view-modes-button-radius: 3px !default;
41
41
  $co-catalog-search-view-modes-button-background: #3e7eff !default;
42
42
 
43
+ $co-catalog-search-navigation-sort-background: rgba(245, 245, 252, 0.8784313725) !default;
44
+ $co-catalog-search-navigation-sort-padding: 10px 15px !default;
45
+ $co-catalog-search-navigation-sort-margin: 10px 0 30px 0 !default;
46
+
@@ -58,6 +58,12 @@
58
58
  font-weight: bold;
59
59
  }
60
60
 
61
+ // Keep a full line of height when the value is empty, so tiles stay aligned
62
+ .brand,
63
+ .product {
64
+ min-height: 1lh;
65
+ }
66
+
61
67
  .one-liner {
62
68
  display: flex;
63
69
  justify-content: space-between;
@@ -57,6 +57,12 @@
57
57
  font-weight: bold;
58
58
  }
59
59
 
60
+ // Keep a full line of height when the value is empty, so tiles stay aligned
61
+ .brand,
62
+ .product {
63
+ min-height: 1lh;
64
+ }
65
+
60
66
  .article-info {
61
67
  display: grid;
62
68
  grid-template-columns: repeat(2, 1fr);
@@ -58,6 +58,12 @@
58
58
  font-weight: bold;
59
59
  }
60
60
 
61
+ // Keep a full line of height when the value is empty, so tiles stay aligned
62
+ .brand,
63
+ .product {
64
+ min-height: 1lh;
65
+ }
66
+
61
67
  .one-liner {
62
68
  display: flex;
63
69
  justify-content: space-between;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/catalog",
3
- "version": "301.1.7",
3
+ "version": "301.1.9",
4
4
  "license": "MIT",
5
5
  "description": "iOne Catalog module based on Angular 20",
6
6
  "repository": "npm/npm",