Created
December 12, 2021 19:37
-
-
Save sadewole/9a015e7390380ac7f4feec7012ffea05 to your computer and use it in GitHub Desktop.
Tab.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> | |
.tab { | |
flex: 1 1 auto; | |
height: 58px; | |
outline: none; | |
} | |
.tab__input { | |
position: absolute; | |
overflow: hidden; | |
clip: rect(0 0 0 0); | |
width: 1px; | |
height: 1px; | |
margin: -1px; | |
padding: 0; | |
border: 0; | |
} | |
.tab__input:checked + .tab__label .tab__label--overlay { | |
background: rgba(19, 0, 128, 0.363); | |
} | |
.tab__label { | |
position: relative; | |
height: 100%; | |
cursor: pointer; | |
text-align: center; | |
letter-spacing: 1px; | |
text-transform: uppercase; | |
font-size: 13px; | |
font-weight: 600; | |
font-style: normal; | |
line-height: 42px; | |
display: flex; | |
justify-content: center; | |
flex-direction: column; | |
} | |
.tab__labelText { | |
z-index: 2; | |
} | |
.tab__label--overlay { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
transform: skewX(-20deg); | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment