Skip to content

Commit 3ce9dfb

Browse files
author
shuai
committed
fix: optimization hr's style
1 parent eddedfd commit 3ce9dfb

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

ui/src/index.scss

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,39 @@ img[src=''] {
208208

209209
.fmt {
210210
width: 100%;
211+
hr {
212+
height: 1.5rem;
213+
border: none;
214+
position: relative;
215+
overflow: visible;
216+
text-align: center;
217+
opacity: 1;
218+
flex: none;
219+
&::before {
220+
content: '';
221+
position: absolute;
222+
left: 50%;
223+
top: 50%;
224+
transform: translate(calc(-50% - 16px), -50%);
225+
width: 3px;
226+
height: 3px;
227+
background-color: var(--bs-border-color);
228+
border-radius: 50%;
229+
}
230+
231+
&::after {
232+
content: '';
233+
position: absolute;
234+
left: 50%;
235+
top: 50%;
236+
transform: translate(-50%, -50%);
237+
width: 3px;
238+
height: 3px;
239+
background-color: var(--bs-border-color);
240+
border-radius: 50%;
241+
box-shadow: 16px 0 0 var(--bs-border-color);
242+
}
243+
}
211244
h1 {
212245
@extend .fs-3;
213246
margin-top: 2rem;

0 commit comments

Comments
 (0)