vitepress-theme-tui
Version:
A terminal UI theme for VitePress
59 lines (50 loc) • 1.51 kB
CSS
@layer components {
a.VPButton,
a.VPButton.small,
a.VPButton.medium,
a.VPButton.large {
border-radius: var(--vp-tui-hero-button-border-radius) ;
}
.VPFeatures .items {
row-gap: 16px ;
}
.VPFeature {
border-radius: var(--vp-tui-hero-feature-border-radius) ;
background-color: var(--vp-tui-hero-feature-bg) ;
border: var(--vp-tui-hero-feature-border-width) solid var(--vp-tui-hero-feature-border-color) ;
}
.VPFeature .title {
margin-top: -36px ;
background-color: var(--vp-tui-hero-feature-title-bg) ;
align-self: flex-start ;
justify-self: flex-start ;
}
.VPFeature .title:before,
.VPFeature .title:after {
content: '' ;
width: 8px ;
height: 8px ;
display: inline-block ;
overflow: hidden ;
}
.VPFeature .details {
color: var(--vp-tui-hero-feature-fg) ;
}
.VPFeature .icon {
display: flex ;
align-items: center ;
justify-content: center ;
margin-top: -50px ;
background-color: var(--vp-tui-hero-feature-title-bg) ;
align-self: flex-start ;
justify-self: flex-start ;
}
.VPFeature .icon + .title {
margin-left: 48px ;
margin-top: -54px ;
}
.VPFeature .icon img {
max-width: 100% ;
height: auto ;
}
}