2020-04-25 11:16:58 +08:00
|
|
|
@require "animated.styl"
|
2020-04-28 23:20:17 +08:00
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
$ils-container-margin-bottom = 30px;
|
|
|
|
$ils-container-border-radius = 5px;
|
2020-09-05 22:41:10 +08:00
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
hover-style(scaleX, scaleY) {
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
transition();
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2020-11-15 22:06:32 +08:00
|
|
|
box-shadow: 2px 2px 8px var(--shadow-color);
|
2020-08-06 10:44:29 +08:00
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
&:hover {
|
2020-08-06 10:44:29 +08:00
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
if (hexo-config('style.hover.scale')) {
|
|
|
|
transform: scaleX(scaleX) scaleY(scaleY);
|
2020-04-24 22:49:10 +08:00
|
|
|
}
|
2020-06-06 11:32:00 +08:00
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
if (hexo-config('style.hover.shadow')) {
|
2020-11-15 22:06:32 +08:00
|
|
|
box-shadow: 3px 3px 12px var(--shadow-hover-color);
|
2020-11-13 14:43:22 +08:00
|
|
|
}
|
2020-04-24 22:49:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-05 22:41:10 +08:00
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
ils-container(scaleX, scaleY, padding) {
|
|
|
|
background: var(--background-color);
|
2020-04-30 00:14:16 +08:00
|
|
|
padding: padding;
|
2020-11-13 14:43:22 +08:00
|
|
|
border-radius: $ils-container-border-radius;
|
|
|
|
margin-bottom: $ils-container-margin-bottom;
|
|
|
|
|
|
|
|
hover-style(scaleX, scaleY);
|
2020-09-05 22:41:10 +08:00
|
|
|
|
|
|
|
+ils-tablet() {
|
2020-11-13 14:43:22 +08:00
|
|
|
padding: padding * 0.8;
|
|
|
|
border-radius: $ils-container-border-radius * 0.8;
|
|
|
|
margin-bottom: $ils-container-margin-bottom * 0.8;
|
|
|
|
hover-style(scaleX * 0.8, scaleY * 0.8);
|
2020-09-05 22:41:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
+ils-mobile() {
|
2020-11-13 14:43:22 +08:00
|
|
|
padding: padding * 0.6;
|
|
|
|
border-radius: $ils-container-border-radius * 0.6;
|
|
|
|
margin-bottom: $ils-container-margin-bottom * 0.6;
|
|
|
|
hover-style(scaleX * 0.6, scaleY * 0.6);
|
2020-09-05 22:41:10 +08:00
|
|
|
}
|
|
|
|
|
2020-04-24 22:49:10 +08:00
|
|
|
}
|