Skip to content

Commit ca391a7

Browse files
committed
starlight tabs 样式设计
1 parent c08dd71 commit ca391a7

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/assets/styles/app.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,25 @@ a {
7979
z-index: 999;
8080
}
8181

82-
/* Details/Summary Styles */
82+
/* startlight tabs Styles */
83+
starlight-tabs {
84+
position: relative;
85+
border-top: 1px solid hsl(var(--border));
86+
border-bottom: 1px solid hsl(var(--border));
87+
margin-top: .5em;
88+
}
89+
90+
/* Add a decorative pattern in the middle of the top border */
91+
starlight-tabs::before {
92+
content: '✻ ✻ ✻';
93+
position: absolute;
94+
top: 0;
95+
left: 50%;
96+
transform: translate(-50%, -50%);
97+
background-color: hsl(var(--background));
98+
padding: 0 0.5rem;
99+
color: hsl(var(--muted-foreground));
100+
}
83101

84102

85103
/* inline code css*/

0 commit comments

Comments
 (0)