Skip to content

Instantly share code, notes, and snippets.

@sadewole
Created December 11, 2021 21:17
Show Gist options
  • Save sadewole/6f1e78f5238a8b06c794a07b053af1bb to your computer and use it in GitHub Desktop.
Save sadewole/6f1e78f5238a8b06c794a07b053af1bb to your computer and use it in GitHub Desktop.
Tabs.vue - Styles
<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