File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 44 position : relative;
55}
66
7- @container (width > 0) {
8- # user-heatmap {
9- /* Set element to fixed height so that it does not resize after load. The calculation is complex
10- because the element does not scale with a fixed aspect ratio. */
11- height : calc ((100cqw / 5 ) - (100cqw / 25 ) + 20px );
7+ @supports (container-type : inline-size) {
8+ @container (width > 0) {
9+ # user-heatmap {
10+ /* Set element to fixed height so that it does not resize after load. The calculation is complex
11+ because the element does not scale with a fixed aspect ratio. */
12+ height : calc ((100cqw / 5 ) - (100cqw / 25 ) + 20px );
13+ }
14+ }
15+ }
16+
17+ /* Fallback for browsers that don't support container queries */
18+ @supports not (container-type : inline-size) {
19+ # user-heatmap .is-loading {
20+ aspect-ratio : 5.415 ;
21+ }
22+ .user .profile # user-heatmap .is-loading {
23+ aspect-ratio : 5.645 ;
1224 }
1325}
1426
You can’t perform that action at this time.
0 commit comments