@imiobe/plonetheme-smartweb-base 0.3.7 → 0.3.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.
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "plone",
24
24
  "smartweb"
25
25
  ],
26
- "version": "0.3.7",
26
+ "version": "0.3.9",
27
27
  "license": "GPL version 2",
28
28
  "scripts": {
29
29
  "stylelint": "npx stylelint 'src/**/*.{css,less}' 'src/**/*.{css,less}",
@@ -38,23 +38,20 @@
38
38
  "@popperjs/core": "^2.11.6"
39
39
  },
40
40
  "release-it": {
41
- "plugins": {
42
- "@release-it/conventional-changelog": {
43
- "preset": "angular",
44
- "infile": "CHANGELOG.md",
45
- "path": "base"
46
- }
41
+ "hooks": {
42
+ "before:git:release": "node update-changelog.js ${version} && git add CHANGELOG.md"
47
43
  },
48
44
  "git": {
49
45
  "commitMessage": "chore: release ${version}",
50
46
  "tagName": "v${version}",
51
- "changelog": "git log --pretty=format:\"* %s (%h)\" $(git describe --tags --abbrev=0)...HEAD -- base/"
47
+ "changelog": "git log --pretty=format:\"* %s (%h)\" $(git describe --tags --abbrev=0)...HEAD -- ."
52
48
  },
53
49
  "npm": {
54
50
  "publish": true
55
51
  },
56
52
  "github": {
57
- "release": true
53
+ "release": true,
54
+ "releaseNotes": "git log --pretty=format:'* %s (%h)' $(git describe --tags --abbrev=0)...HEAD -- ."
58
55
  }
59
56
  }
60
57
  }
@@ -27,5 +27,5 @@ h6 {
27
27
  }
28
28
 
29
29
  #edit-bar .nav-link {
30
- font-size: 16px !important;
30
+ font-size: 1rem !important;
31
31
  }
@@ -73,7 +73,7 @@
73
73
  .kssattr-fieldset-icons div#formfield-form-widgets-svg_icon {
74
74
  display: flex;
75
75
  flex-wrap: wrap;
76
- gap: 1%;
76
+ gap: 0 1%;
77
77
  }
78
78
 
79
79
  .kssattr-fieldset-icons div#formfield-form-widgets-svg_icon .form-text {
@@ -119,7 +119,7 @@
119
119
  display: inline-block;
120
120
  content: "\F282";
121
121
  font-family: Bootstrap-icons;
122
- font-size: 12px;
122
+ font-size: 0.75rem;
123
123
  margin-left: 0.5rem;
124
124
  text-decoration: none;
125
125
  transition: all 0.2s ease;
@@ -133,7 +133,7 @@
133
133
  display: inline-block;
134
134
  content: "\F282";
135
135
  font-family: Bootstrap-icons;
136
- font-size: 12px;
136
+ font-size: 0.75rem;
137
137
  margin-left: 0.5rem;
138
138
  text-decoration: none;
139
139
  transform: rotate(-180deg);
@@ -20,7 +20,7 @@ body.is-in-subsite {
20
20
  }
21
21
 
22
22
  #subsite-logo {
23
- font-size: 20px;
23
+ font-size: 1.25rem;
24
24
  text-transform: uppercase;
25
25
  display: inline-block;
26
26
  background: $subsite-logo-background;
@@ -81,7 +81,7 @@ div#formfield-form-widgets-basic_cookies {
81
81
  text-decoration: none;
82
82
  display: flex;
83
83
  align-items: center;
84
- font-size: 20px;
84
+ font-size: 1.25rem;
85
85
 
86
86
  &::after {
87
87
  content: "";
@@ -228,10 +228,6 @@ textarea {
228
228
  text-decoration: none;
229
229
  }
230
230
 
231
- .userrole-anonymous .pat-sortable .sortable-section {
232
- border: 0 solid transparent !important;
233
- }
234
-
235
231
  .faceted-form {
236
232
  padding: 0;
237
233
  }
@@ -443,13 +439,6 @@ body#visual-portal-wrapper.userrole-anonymous.portaltype-imio-smartweb-procedure
443
439
  }
444
440
 
445
441
  @media screen and (min-width: 768px) {
446
- .portaltype-imio-smartweb-procedure .sectionlinks,
447
- .portaltype-imio-smartweb-page .sectionlinks,
448
- .portaltype-imio-smartweb-procedure .sectionfiles,
449
- .portaltype-imio-smartweb-page .sectionfiles {
450
- background: transparent;
451
- }
452
-
453
442
  .portaltype-imio-smartweb-procedure .sectionlinks::after,
454
443
  .portaltype-imio-smartweb-page .sectionlinks::after,
455
444
  .portaltype-imio-smartweb-procedure .sectionfiles::after,
@@ -44,11 +44,11 @@
44
44
  & > a,
45
45
  input[name="consent"],
46
46
  input[name="refuse"] {
47
- background: #1863dc;
48
- color: #fff;
49
- border: 2px solid #1863dc;
47
+ background: $cookie-banner-bg;
48
+ color: $cookie-banner-color;
49
+ border: $cookie-banner-border;
50
50
  padding: 1rem 2rem;
51
- font-size: 13px;
51
+ font-size: 0.8125rem;
52
52
  cursor: pointer;
53
53
  text-decoration: none;
54
54
  display: inline-block;
@@ -56,9 +56,10 @@
56
56
 
57
57
  &:hover,
58
58
  &:focus {
59
- background: #ededed;
60
- color: #1863dc;
59
+ background: $cookie-banner-hv-bg;
60
+ color: $cookie-banner-hv-color;
61
61
  outline: none;
62
+ border: $cookie-banner-hv-border;
62
63
  }
63
64
  }
64
65
  }
@@ -1,28 +1,7 @@
1
- .container.header-section.hide-in-preview {
2
- padding: 0.5rem;
3
- border-radius: 0;
4
- border: 1px solid #ddd;
5
- }
6
-
7
1
  .manage-section a {
8
2
  margin-right: 0.5rem;
9
3
  }
10
4
 
11
- .pat-sortable > :hover {
12
- cursor: move;
13
- }
14
-
15
- .pat-sortable .sortable-section {
16
- border: 1px solid transparent !important;
17
- }
18
-
19
- .pat-sortable .sortable-section {
20
- padding-top: 0;
21
- padding-bottom: 0;
22
- margin-top: 0;
23
- margin-bottom: 0;
24
- }
25
-
26
5
  .header-section .manage-section a {
27
6
  text-decoration: none;
28
7
  }
@@ -57,3 +36,11 @@ figcaption {
57
36
  .section-map .leaflet-container {
58
37
  z-index: 0;
59
38
  }
39
+
40
+ .container.header-section.hide-in-preview {
41
+ background-color: #f5f5f5;
42
+ border: 0 solid #ddd;
43
+ border-radius: 5px;
44
+ margin: 1rem auto;
45
+ padding: 0.2rem;
46
+ }
@@ -1,7 +1,7 @@
1
1
  // /* vues facettes */
2
2
  .widget-fieldset legend {
3
3
  font-weight: bold;
4
- font-size: 14px;
4
+ font-size: 0.875rem;
5
5
  }
6
6
 
7
7
  .faceted-form fieldset {
@@ -63,7 +63,7 @@
63
63
  .faceted-criteria-reset {
64
64
  a {
65
65
  color: #000 !important;
66
- font-size: 14px;
66
+ font-size: 0.875rem;
67
67
  display: flex;
68
68
  align-items: center;
69
69
 
@@ -172,21 +172,21 @@
172
172
  }
173
173
  }
174
174
 
175
- // MINISIES
176
-
177
- .to-portal {
175
+ .contact_leadimage.contact_placeholder {
176
+ background-color: #e9e9e9;
178
177
  position: relative;
179
- text-align: center;
180
- padding: 0.25em 0;
181
- }
182
-
183
- .to-portal a {
184
- color: $to-portal-link-color;
185
- text-decoration: none;
186
- }
187
178
 
188
- .to-portal a:hover {
189
- text-decoration: underline;
179
+ &::after {
180
+ content: "\F220";
181
+ font-family: bootstrap-icons !important;
182
+ text-align: center;
183
+ position: absolute;
184
+ font-size: 100px;
185
+ color: #c0c1c2;
186
+ left: 50%;
187
+ transform: translate(-50%, -50%);
188
+ top: 50%;
189
+ }
190
190
  }
191
191
 
192
192
  ///// correctifs
@@ -196,12 +196,10 @@
196
196
  margin-right: 0.5rem;
197
197
  }
198
198
 
199
- // @media screen and (min-width: 992px){
200
-
201
- // .has_subtree.dropdown>ul {
202
-
203
- // overflow-y: auto;
204
-
205
- // }
199
+ html #portal-footer-wrapper #portal-footer .show-on-focus.skip-before-footer {
200
+ color: #000 !important;
201
+ }
206
202
 
207
- // }
203
+ .leaflet-container {
204
+ z-index: 0;
205
+ }
@@ -36,3 +36,7 @@ footer li {
36
36
  #portal-footer-wrapper {
37
37
  padding: 0;
38
38
  }
39
+
40
+ #smartweb-minisite-footer {
41
+ position: relative;
42
+ }
@@ -0,0 +1,34 @@
1
+ .to-portal {
2
+ position: relative;
3
+ text-align: center;
4
+ padding: 0;
5
+ }
6
+
7
+ .to-portal a {
8
+ background: $to-portal-link-bg;
9
+ padding: 10px;
10
+ border-radius: 0 0 10px 10px;
11
+ color: $to-portal-link-color;
12
+ text-decoration: none;
13
+ transition: color 0.2s ease;
14
+ line-height: 1;
15
+ display: flex;
16
+ width: max-content;
17
+ justify-content: center;
18
+ align-items: center;
19
+ margin: 0 auto;
20
+ }
21
+
22
+ .to-portal a:hover,
23
+ .to-portal a:focus {
24
+ background: $to-portal-link-hv-bg;
25
+ padding: 10px;
26
+ border-radius: 0 0 10px 10px;
27
+ color: $to-portal-link-hv-color;
28
+ }
29
+
30
+ .portal-link-arrow {
31
+ font-size: 1.25rem;
32
+ line-height: 1;
33
+ vertical-align: middle;
34
+ }
@@ -11,7 +11,7 @@
11
11
  & > div {
12
12
  display: flex;
13
13
  gap: 10px;
14
- font-size: 15px;
14
+ font-size: 0.9375rem;
15
15
  font-weight: 500;
16
16
 
17
17
  .r-card-date-last {
@@ -42,24 +42,37 @@
42
42
 
43
43
  // style back button
44
44
 
45
- .r-content > button {
46
- background: transparent;
47
- margin: 1rem 0;
48
- border: 0;
49
- display: flex;
50
- align-items: center;
45
+ .r-back-button {
46
+ height: 40px;
47
+ aspect-ratio: 1;
48
+ border-radius: 5px;
49
+ background-color: $react-arrow-btn-bg;
50
+ color: $react-arrow-btn-color;
51
+ margin: 10px 0;
52
+ font-size: 1.4375rem;
53
+ border: none;
51
54
 
52
55
  &::before {
53
- content: "";
54
- width: 9px;
55
- height: 6px;
56
- display: block;
57
- background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="8.444" height="5.2"><path d="M.247.254a.831.831 0 0 1 1.2 0l2.78 2.854L7.011.254A.831.831 0 0 1 8.2.264a.882.882 0 0 1 .01 1.215L4.825 4.946a.835.835 0 0 1-.6.254 1.529 1.529 0 0 1-.6-.254L.247 1.479a.882.882 0 0 1 0-1.226Z" fill="%23000"/></svg>');
58
- background-size: contain;
59
- background-position: center;
60
- background-repeat: no-repeat;
61
- margin-right: 0.4rem;
62
- transform: rotate(90deg);
56
+ display: none;
57
+ }
58
+ }
59
+
60
+ .r-back-button:hover {
61
+ background: $react-arrow-btn-hv-bg;
62
+ outline: 2px solid $grey-bg;
63
+ }
64
+
65
+ body .r-item-arrow-more {
66
+ background-color: $react-arrow-btn-next-bg;
67
+ color: $react-arrow-btn-color;
68
+ }
69
+
70
+ .r-list-item-group {
71
+ &:hover {
72
+ .r-item-arrow-more {
73
+ outline: solid 2px #ebebeb;
74
+ background-color: #ebebeb;
75
+ }
63
76
  }
64
77
  }
65
78
 
@@ -107,7 +107,7 @@ body.template-block_view #content-core {
107
107
  font-family: bootstrap-icons !important;
108
108
  display: block;
109
109
  position: relative;
110
- font-size: 26px;
110
+ font-size: 1.625rem;
111
111
  color: #ccc;
112
112
  opacity: 0%;
113
113
  margin-left: auto;
@@ -131,7 +131,7 @@ body.template-block_view #content-core {
131
131
 
132
132
  .list-card-title {
133
133
  margin-bottom: 0;
134
- font-size: 25px;
134
+ font-size: 1.5625rem;
135
135
  }
136
136
 
137
137
  .list-card-text {
@@ -1,11 +1,54 @@
1
+ #messagesviewlet .portalMessage,
2
+ #localmessagesviewlet .portalMessage {
3
+ align-items: center;
4
+ }
5
+
1
6
  #messagesviewlet .portalMessage.info,
2
7
  #localmessagesviewlet .portalMessage.info {
3
- background-color: $primary;
8
+ background-color: $message-info-bg;
9
+ color: $message-info-color;
10
+
11
+ span {
12
+ color: $message-info-color;
13
+ }
14
+
15
+ .close-button {
16
+ &::after {
17
+ color: $message-info-color;
18
+ }
19
+ }
4
20
  }
5
21
 
6
- #messagesviewlet .portalMessage,
7
- #localmessagesviewlet .portalMessage {
8
- align-items: center;
22
+ #messagesviewlet .portalMessage.warning,
23
+ #localmessagesviewlet .portalMessage.warning {
24
+ background-color: $message-warning-bg;
25
+ color: $message-warning-color;
26
+
27
+ span {
28
+ color: $message-warning-color;
29
+ }
30
+
31
+ .close-button {
32
+ &::after {
33
+ color: $message-warning-color;
34
+ }
35
+ }
36
+ }
37
+
38
+ #messagesviewlet .portalMessage.error,
39
+ #localmessagesviewlet .portalMessage.error {
40
+ background-color: $message-error-bg;
41
+ color: $message-error-color;
42
+
43
+ span {
44
+ color: $message-error-color;
45
+ }
46
+
47
+ .close-button {
48
+ &::after {
49
+ color: $message-error-color;
50
+ }
51
+ }
9
52
  }
10
53
 
11
54
  #messagesviewlet,
@@ -13,6 +56,18 @@
13
56
  float: none;
14
57
  padding-top: 0;
15
58
 
59
+ .close-button {
60
+ width: 26px;
61
+ aspect-ratio: 1;
62
+
63
+ &::after {
64
+ content: "\F623";
65
+ font-family: Bootstrap-icons;
66
+ background: transparent;
67
+ font-weight: 400;
68
+ }
69
+ }
70
+
16
71
  .portalMessage {
17
72
  display: block;
18
73
  max-width: 1320px;
@@ -23,44 +78,12 @@
23
78
  margin-bottom: 0.5rem;
24
79
  margin-top: 0.5rem;
25
80
 
26
- a {
27
- color: #fff;
28
- }
29
-
30
81
  p:first-of-type {
31
82
  display: inline;
32
- padding-right: 0.7rem;
33
- }
34
-
35
- .close-button {
36
- width: 26px;
37
- height: 26px;
38
- background: transparent;
39
- display: inline-block;
40
- white-space: nowrap;
41
- top: 0;
42
- bottom: inherit;
43
- transform: none;
44
- margin-top: 0.35rem;
45
-
46
- &::after {
47
- content: "" !important;
48
- background: transparent
49
- url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
50
- center/1em auto no-repeat;
51
- background-size: 50%;
52
- }
53
-
54
- &:hover,
55
- &:focus {
56
- &::after {
57
- opacity: 70%;
58
- }
59
- }
83
+ padding-right: 1.2rem;
60
84
  }
61
85
 
62
86
  .messagesviewlet-type {
63
- color: #fff;
64
87
  padding: 0;
65
88
  margin: 0;
66
89
  font-weight: bold;
@@ -74,22 +97,7 @@
74
97
  }
75
98
  }
76
99
 
77
- #messagesviewlet {
78
- grid-area: messageviewlet;
79
- }
80
-
100
+ #messagesviewlet,
81
101
  #localmessagesviewlet {
82
- grid-area: localmessageviewlet;
83
- }
84
-
85
- .portalMessage.info {
86
- background: #27789c;
87
- }
88
-
89
- .portalMessage.warning {
90
- background: #c06d01;
91
- }
92
-
93
- .portalMessage.error {
94
- background: #ae2609;
102
+ grid-area: messageviewlet;
95
103
  }
@@ -48,6 +48,7 @@ $roboto-base-path: "@theme/assets/fonts/";
48
48
  @import "./common/messviewlet";
49
49
  @import "./common/com-react";
50
50
  @import "./common/com-footer";
51
+ @import "./common/com-portal-link";
51
52
 
52
53
  ///// List
53
54
 
@@ -264,3 +264,13 @@
264
264
  height: auto !important;
265
265
  }
266
266
  }
267
+
268
+ // common
269
+
270
+ .contact_titles h2 {
271
+ word-break: break-word;
272
+ }
273
+
274
+ .contact_map {
275
+ z-index: 0;
276
+ }
@@ -186,7 +186,7 @@
186
186
 
187
187
  .section_files_text {
188
188
  font-weight: bold;
189
- font-size: 18px;
189
+ font-size: 1.125rem;
190
190
  max-width: 300px;
191
191
  margin: 1rem 1.5rem;
192
192
  word-wrap: anywhere;
@@ -25,12 +25,12 @@ $row-gap-tamp: 10px;
25
25
  }
26
26
 
27
27
  .table_date {
28
- font-size: 12px;
28
+ font-size: 0.75rem;
29
29
  }
30
30
 
31
31
  .table_title {
32
32
  font-weight: 700;
33
- font-size: 18px;
33
+ font-size: 1.125rem;
34
34
  padding-bottom: 20px;
35
35
  }
36
36
  }
@@ -143,7 +143,7 @@
143
143
 
144
144
  .section_files_text {
145
145
  font-weight: bold;
146
- font-size: 18px;
146
+ font-size: 1.125rem;
147
147
  max-width: 300px;
148
148
  margin: 1rem 1.5rem;
149
149
 
@@ -94,13 +94,13 @@ body.faceted-map {
94
94
  .geo-item-title {
95
95
  color: #1f1f1f;
96
96
  font-weight: bold;
97
- font-size: 15px;
97
+ font-size: 0.9375rem;
98
98
  text-decoration: none;
99
99
  }
100
100
 
101
101
  .geo-item-description {
102
102
  margin-top: 0.3rem;
103
- font-size: 15px;
103
+ font-size: 0.9375rem;
104
104
  color: #1f1f1f;
105
105
  }
106
106
  }
@@ -31,40 +31,15 @@ mark {
31
31
  margin-bottom: $section-text-h3-margin-bottom;
32
32
  }
33
33
 
34
+ ul,
34
35
  ol {
35
- list-style-type: none;
36
- counter-reset: item;
37
-
38
- & > li {
39
- display: table;
40
- padding-left: 1rem;
41
-
42
- &::before {
43
- content: counters(item, ".") " ";
44
- counter-increment: item;
45
- display: inline-block;
46
- width: 2em;
47
- text-align: right;
48
- position: relative;
49
- left: -2.5em;
50
- margin-right: -2em;
51
- }
52
- }
36
+ padding-left: 1rem;
53
37
  }
54
38
 
55
- ul li {
39
+ ul li,
40
+ ol li {
56
41
  position: relative;
57
- display: table;
58
- padding-left: 1rem;
59
42
  margin: 0.25rem 0;
60
- list-style: none;
61
-
62
- &::before {
63
- position: absolute;
64
- top: -2px;
65
- left: 0;
66
- content: $list-style-custom;
67
- }
68
43
  }
69
44
 
70
45
  .section-text {
@@ -190,7 +165,7 @@ blockquote::before {
190
165
  top: 9px;
191
166
  height: 10px;
192
167
  content: '"';
193
- font-size: 32px;
168
+ font-size: 2rem;
194
169
  font-weight: 600;
195
170
  line-height: 0;
196
171
  margin-right: 0.75rem;
@@ -201,7 +176,7 @@ blockquote::after {
201
176
  top: 8px;
202
177
  height: 10px;
203
178
  content: '"';
204
- font-size: 32px;
179
+ font-size: 2rem;
205
180
  font-weight: 600;
206
181
  line-height: 0;
207
182
  margin-left: 0.5rem;