mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
2082001ff8
* Initial tests set up This adds tests using uvu (we can switch if people want) and restructures things a bit so that it's easier to test. Like in snowpack you set up a little project. In our tests you can say: ```js const result = await runtime.load('/blog/hello-world') ``` And analyze the result. I included a `test-helpers.js` which has a function that will turn HTML into a cheerio instance, for inspecting the result HTML. * Bring snowpack example in * Formatting
53 lines
1.2 KiB
SCSS
53 lines
1.2 KiB
SCSS
@use './var' as *;
|
|
|
|
$easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
|
|
$easeInExpo: cubic-bezier(0.7, 0, 0.84, 0);
|
|
$easeInOutSine: cubic-bezier(0.37, 0, 0.63, 1);
|
|
$easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
|
|
$easeInOutBack: cubic-bezier(0.68, -0.6, 0.32, 1.6);
|
|
$easeInCirc: cubic-bezier(0.55, 0, 1, 0.45);
|
|
$easeOutExpo: cubic-bezier(0.16, 1, 0.3, 1);
|
|
$easeInQuad: cubic-bezier(0.11, 0, 0.5, 0);
|
|
$quintic: cubic-bezier(0.76, 0.05, 0.86, 0.06);
|
|
$transition-fast: 40ms;
|
|
$transition-medium: 500ms;
|
|
$transition-slow: 1s;
|
|
|
|
@mixin animation-hover-pop {
|
|
transition: transform $transition-fast $easeInExpo,
|
|
box-shadow $transition-fast linear;
|
|
&:hover {
|
|
box-shadow: 0 2px 2px 0 #2e5e82aa;
|
|
transform: translateY(-1px);
|
|
}
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
color: #2a85ca;
|
|
border-color: #2a85ca;
|
|
}
|
|
|
|
100% {
|
|
}
|
|
}
|
|
|
|
@mixin animation-copy-button {
|
|
transition: transform $transition-fast $easeInExpo,
|
|
border-color $transition-fast linear, box-shadow $transition-fast linear;
|
|
|
|
svg,
|
|
span {
|
|
transition: color $transition-fast linear;
|
|
}
|
|
|
|
&:hover {
|
|
box-shadow: 0 2px 2px 0 #2e5e8266;
|
|
transform: translateY(-1px);
|
|
border-color: #2a85ca;
|
|
svg,
|
|
span {
|
|
color: #2a85ca;
|
|
}
|
|
}
|
|
}
|