diff --git a/app/assets/css/mixins.css b/app/assets/css/mixins.css new file mode 100644 index 0000000..7956a55 --- /dev/null +++ b/app/assets/css/mixins.css @@ -0,0 +1,21 @@ +/* mixin example */ +@define-mixin text-underline $color { + &::after{ + content: ''; + display: block; + width: 0%; + height: 2px; + + background-color: $color; + opacity: 0; + + transition: width .3s var(--easing-authentic-motion), opacity .3s var(--easing-authentic-motion); + } + + @media (--has-hover){ + &:hover::after{ + width: 100%; + opacity: 1; + } + } +} \ No newline at end of file diff --git a/app/pages/index.vue b/app/pages/index.vue index ef0bfd8..d60e54e 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -1,16 +1,15 @@