Created
December 11, 2021 21:17
-
-
Save sadewole/6f1e78f5238a8b06c794a07b053af1bb to your computer and use it in GitHub Desktop.
Tabs.vue - Styles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style scoped> | |
.tabs { | |
display: inline-block; | |
position: relative; | |
box-sizing: border-box; | |
width: 100%; | |
height: 56px; | |
outline: none; | |
} | |
.tabs__list { | |
position: relative; | |
display: flex; | |
z-index: 2; | |
} | |
.tabs__overlay { | |
z-index: 1; | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
transform: skewX(-20deg); | |
background: rgba(0, 0, 0, 0.5); | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment