richie 2.34.1.dev51__py2.py3-none-any.whl → 2.34.1.dev52__py2.py3-none-any.whl

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.

Potentially problematic release.


This version of richie might be problematic. Click here for more details.

@@ -4,6 +4,7 @@
4
4
 
5
5
  // Course-glimpse-list related variables
6
6
  $r-course-glimpse-gutter: 0.8rem !default;
7
+ $r-course-glimpse-title-line-height: 1.3em;
7
8
 
8
9
  .course-glimpse-list {
9
10
  @include make-container-max-widths();
@@ -174,7 +175,7 @@ $course-glimpse-content-padding-sides: 0.7rem !default;
174
175
  font-family: $r-font-family-montserrat;
175
176
  font-weight: $font-weight-boldest;
176
177
  flex: 1 0 1.3em * 3; // 3 lines;
177
- line-height: 1.3em;
178
+ line-height: $r-course-glimpse-title-line-height;
178
179
  margin-bottom: 1rem;
179
180
  }
180
181
 
@@ -199,11 +200,14 @@ $course-glimpse-content-padding-sides: 0.7rem !default;
199
200
  }
200
201
 
201
202
  &__title-text {
203
+ --max-lines: 3;
202
204
  -webkit-box-orient: vertical;
203
- -webkit-line-clamp: 3;
205
+ -webkit-line-clamp: var(--max-lines);
206
+ line-clamp: var(--max-lines);
204
207
  display: block;
205
208
  display: -webkit-box;
206
209
  overflow: hidden;
210
+ min-height: calc($r-course-glimpse-title-line-height * var(--max-lines));
207
211
  }
208
212
 
209
213
  &__link:focus &__title-text {