Refactor tab component

This commit is contained in:
Paul
2024-03-07 15:28:15 +08:00
parent 7903f42776
commit 666fed59f1
6 changed files with 98 additions and 72 deletions
-31
View File
@@ -27,34 +27,3 @@
background-color: #eee;
}
}
.tab {
.header {
padding: .75em;
position: relative;
text-align: center;
border-bottom: 1px solid #eee;
.back {
top: 0;
left: 0;
bottom: 0;
width: 2em;
font-size: 1.3em;
position: absolute;
transition: background-color .3s;
&:hover {
background-color: #eee;
}
svg {
width: 1em;
}
}
}
.body {
padding: 1em;
}
}