1+ .media-list {
2+ display : grid;
3+ grid-template-columns : repeat (auto-fill, minmax (var (--media-container-width ), 1fr ));
4+ grid-auto-rows : 1fr ;
5+ grid-gap : var (--padding-small );
6+ }
7+
8+ /* Ensure the shape of the image list entries is square
9+ plus the media header height. */
10+
11+ .media-list : before {
12+ content : "" ;
13+ width : 0 ;
14+ padding-bottom : calc (100% + var (--media-box-header-height ));
15+ grid-row : 1 / 1 ;
16+ grid-column : 1 / 1 ;
17+ }
18+
19+ @media (max-width: $max- limited- deskto p- width) {
20+ .media-list {
21+ grid-template-columns : repeat (auto-fill, minmax (var (--media-small-container-width ), 1fr ));
22+ }
23+ }
24+
25+ .media-list--small {
26+ grid-template-columns : repeat (auto-fill, minmax (var (--media-small-container-width ), 1fr ));
27+ }
28+
29+ .media-list--small-fixed-size {
30+ grid-template-columns : repeat (auto-fill, var (--media-small-container-width ));
31+ }
32+
33+ .media-list--small-fixed-size .media-list : before {
34+ padding-bottom : 0 !important ;
35+ }
36+
37+ .media-grid {
38+ display : grid;
39+ grid-template-columns : 1fr 1fr ;
40+ grid-template-rows : auto;
41+ grid-gap : var (--padding-small );
42+ }
43+
144.media-box {
2- display : inline-flex;
3- flex-flow : column;
4- position : relative;
545 overflow : hidden;
646 border : var (--media-border );
7- margin : 0 6px 6px 0 ;
47+ }
48+
49+ /* Shift the image list by 1 element introduced due to
50+ the .media-list:before rule */
51+
52+ .media-box : first-child {
53+ grid-row : 1 / 1 ;
54+ grid-column : 1 / 1 ;
855}
956
1057.media-box .over {
@@ -47,7 +94,7 @@ a.media-box__header--link:hover {
4794}
4895
4996.media-box__header--small {
50- width : 150 px ;
97+ width : var ( --media-small-container-width ) ;
5198 font-size : 11px ;
5299}
53100
@@ -63,38 +110,59 @@ a.media-box__header--link:hover {
63110 background-color : var (--success-color );
64111}
65112
66- /* TODO: properly fix this */
67- .media-box__content .image-container {
113+ .media-box__content {
68114 width : 100% ;
69- height : 100% ;
115+ padding-top : 100% ;
116+ position : relative;
117+ overflow : hidden;
118+ }
119+
120+ .media-box__content .image-container {
121+ position : absolute;
122+ inset : 0 ;
70123}
71124
72125.media-box__content--featured {
73- width : 326px ;
74- height : 326px ;
126+ width : var (--media-featured-width );
127+ height : auto;
128+ }
129+
130+ .media-box__content--featured .image-container {
131+ max-height : var (--media-featured-width );
75132}
76133
77134.media-box__content--large {
78- width : 254px ;
79- height : 254px ;
135+ max-height : var (--media-medium-container-width );
80136}
81137
82138.media-box__content--small {
83- width : 150px ;
84- height : 150px ;
139+ max-height : var (--media-small-container-width );
140+ }
141+
142+ .media--featured {
143+ display : flex;
144+ justify-content : center;
145+ }
146+
147+ .media--featured .media-box {
148+ max-width : var (--media-featured-width );
149+ max-height : calc (var (--media-featured-width ) + var (--media-box-header-height ));
150+ margin-bottom : var (--padding-small );
85151}
86152
87153.media-box__overlay {
88154 display : block;
89155 position : absolute;
90156 z-index : 4 ;
91- width : 100 % ;
157+ min- width: 95 % ;
92158 text-align : left;
93159 font-weight : bold;
94160 word-wrap : break-word;
161+ line-height : var (--media-box-header-height );
162+ pointer-events : none;
163+ top : 0 ;
95164 color : var (--image-overlay-color );
96165 background : var (--image-overlay-background-color );
97- pointer-events : none;
98166}
99167
100168.thumb_small .media-box__overlay {
0 commit comments