@imiobe/plonetheme-smartweb-base 0.3.14 → 0.3.16

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.14",
26
+ "version": "0.3.16",
27
27
  "license": "GPL version 2",
28
28
  "scripts": {
29
29
  "stylelint": "npx stylelint 'src/**/*.{css,less}' 'src/**/*.{css,less}",
@@ -1,3 +1,24 @@
1
+ .display-portrait {
2
+ .swiper-image,
3
+ .is-image {
4
+ aspect-ratio: $portrait-image-aspect-ratio;
5
+ }
6
+ }
7
+
8
+ .display-carre {
9
+ .swiper-image,
10
+ .is-image {
11
+ aspect-ratio: $carre-image-aspect-ratio;
12
+ }
13
+ }
14
+
15
+ .display-paysage {
16
+ .swiper-image,
17
+ .is-image {
18
+ aspect-ratio: $paysage-image-aspect-ratio;
19
+ }
20
+ }
21
+
1
22
  .frontend ul {
2
23
  padding-left: 0;
3
24
  }
@@ -137,3 +137,15 @@ figcaption {
137
137
  align-items: center;
138
138
  justify-content: center;
139
139
  }
140
+
141
+ .faceted-results .display-portrait .card-img-top {
142
+ aspect-ratio: 0.7;
143
+ }
144
+
145
+ .faceted-results .display-carre .card-img-top {
146
+ aspect-ratio: 1;
147
+ }
148
+
149
+ .faceted-results .display-paysage .card-img-top {
150
+ aspect-ratio: 1.67;
151
+ }
@@ -4,6 +4,12 @@ $primary-svg: #235789 !default;
4
4
  $grey-bg: #ebebeb !default;
5
5
  $black-color: #1f1f1f !default;
6
6
 
7
+ // IMG ratio
8
+
9
+ $paysage-image-aspect-ratio: 1.67 !default;
10
+ $portrait-image-aspect-ratio: 0.7 !default;
11
+ $carre-image-aspect-ratio: 1 !default;
12
+
7
13
  //*// TYPOGRAPHY
8
14
 
9
15
  @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap");