Skip to content

Commit 721f390

Browse files
committed
chore: 增加样式
1 parent e7e4327 commit 721f390

2 files changed

Lines changed: 5711 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
@import url('pdf_viewer.css');
2+
3+
.bb-pdf-reader {
4+
--bb-pdf-view-height: 600px;
5+
--bb-pdf-toolbar-height: 60px;
6+
--bb-toolbar-background-color: #3c3c3c;
7+
position: relative;
8+
height: calc(var(--bb-pdf-view-height) + var(--bb-pdf-toolbar-height));
9+
}
10+
11+
.bb-view-toolbar {
12+
height: var(--bb-pdf-toolbar-height);
13+
background-color: var(--bb-toolbar-background-color);
14+
display: flex;
15+
align-items: center;
16+
color: #fff;
17+
}
18+
19+
.bb-view-title {
20+
display: flex;
21+
align-items: center;
22+
flex-wrap: nowrap;
23+
padding: 0 1rem;
24+
}
25+
26+
.bb-view-bar {
27+
margin-inline-end: 2rem;
28+
}
29+
30+
.bb-view-subject {
31+
white-space: nowrap;
32+
display: block;
33+
overflow: hidden;
34+
text-overflow: ellipsis;
35+
max-width: 300px;
36+
}
37+
38+
.bb-view-pages {
39+
flex: 1;
40+
min-width: 0;
41+
width: 1%;
42+
display: flex;
43+
align-items: center;
44+
justify-content: center;
45+
}
46+
47+
.bb-view-num {
48+
width: 36px;
49+
text-align: center;
50+
background-color: #000;
51+
border: none;
52+
}
53+
54+
.bb-view-slash {
55+
margin: 0 .5rem;
56+
}
57+
58+
.bb-view-divider {
59+
width: .6px;
60+
height: calc(var(--bb-pdf-toolbar-height) / 3);
61+
background-color: #777;
62+
margin: 0 .5rem;
63+
}
64+
65+
.bb-view-container {
66+
overflow: auto;
67+
position: absolute;
68+
background-color: #000;
69+
width: 100%;
70+
height: var(--bb-pdf-view-height);
71+
}

0 commit comments

Comments
 (0)