2024-05-27 21:53:55 +00:00
|
|
|
@overflow-affordnance-size: 2rem;
|
|
|
|
|
|
|
|
.mask-gradient(@direction, @color1, @color2, @color3: null , @color4: null) {
|
|
|
|
-webkit-mask-image: linear-gradient( @direction, @color1, @color2 );
|
|
|
|
mask-image: linear-gradient( @direction, @color1, @color2 );
|
|
|
|
|
|
|
|
& when not(@color3 = null), not(@color4 = null) {
|
|
|
|
-webkit-mask-image: linear-gradient( @direction, @color1, @color2, @color3, @color4 );
|
|
|
|
mask-image: linear-gradient( @direction, @color1, @color2, @color3, @color4 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-27 20:10:25 +00:00
|
|
|
// Elements enhanced by overflowElements.js
|
|
|
|
.citizen-overflow {
|
|
|
|
&-wrapper {
|
|
|
|
overflow-x: auto;
|
2023-05-09 21:02:47 +00:00
|
|
|
|
2024-05-29 21:47:13 +00:00
|
|
|
.wikitable {
|
2024-05-27 20:10:25 +00:00
|
|
|
display: table;
|
2024-05-29 21:47:13 +00:00
|
|
|
max-width: none;
|
2024-05-27 20:10:25 +00:00
|
|
|
overflow: initial;
|
|
|
|
}
|
2023-05-09 21:02:47 +00:00
|
|
|
}
|
2023-04-30 23:54:31 +00:00
|
|
|
|
|
|
|
&--left {
|
2024-05-27 21:53:55 +00:00
|
|
|
.mask-gradient(90deg, transparent, #000 @overflow-affordnance-size);
|
2023-04-30 23:54:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--right {
|
2024-05-27 21:53:55 +00:00
|
|
|
.mask-gradient(270deg, transparent, #000 @overflow-affordnance-size);
|
2023-04-30 23:54:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--left&--right {
|
2024-05-27 21:53:55 +00:00
|
|
|
.mask-gradient(90deg, transparent, #000 @overflow-affordnance-size, #000 ~'calc( 100% - @{overflow-affordnance-size} )', transparent);
|
2023-04-30 23:54:31 +00:00
|
|
|
}
|
2023-04-30 23:55:44 +00:00
|
|
|
}
|