Skip to content

Commit e27e844

Browse files
committed
更新synthetic的css,把背景換成webp
1 parent e442558 commit e27e844

15 files changed

Lines changed: 73 additions & 27 deletions

librian/librian本體/前端/src/加載畫面.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import "../黑科技/synthetic_css/synthetic_offline.sass"
22

33
#加載畫面
4-
background-image: url('../黑科技/synthetic_css/紙背景花紋.jpg')
4+
background-image: url('../黑科技/synthetic_css/紙背景花紋.webp')
55
color: 000
66
display: none
77
flex-direction: column

librian/librian本體/前端/src/各種面板.sass

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
=面板
44
@extend div, .synth
5-
background-image: url('../黑科技/synthetic_css/紙背景花紋.jpg')
5+
background-image: url('../黑科技/synthetic_css/紙背景花紋.webp')
66
background-attachment: scroll
77
color: #000
88
font-size: 24px
@@ -26,11 +26,10 @@
2626
padding: 8px
2727
margin: 8px
2828
border-radius: 8px
29-
3029
hr
3130
width: 90%
3231
border: none
33-
border-top: 1px solid rgba(120, 50 ,0 ,0.5)
32+
border-top: 1px solid rgba(120, 50, 0, 0.5)
3433
.檔
3534
display: flex
3635
justify-content: space-between

librian/librian本體/前端/黑科技/synthetic_css/_synthetic_offline.sass

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
background-image: url($x)
44
background-size: cover
55
background-attachment: fixed
6-
6+
7+
78
body
89
&.syn
9-
+bg('紙背景花紋.jpg')
10+
+bg('紙背景花紋.webp')
1011
font-family: 'Noto Serif SC'
1112
button, input, textarea
1213
font-family: 'Noto Serif SC'
@@ -39,7 +40,7 @@ header
3940

4041
div
4142
&.syn
42-
+bg('紙背景花紋模糊.jpg')
43+
+bg('紙背景花紋模糊.webp')
4344
box-shadow: 0px 0px 1vw rgba(0, 0, 0, 0.6)
4445
&.synth
4546
@extend .syn
@@ -58,6 +59,22 @@ div
5859
background: rgba(255,255,200,0.65)
5960
backdrop-filter: blur(4px)
6061

62+
table
63+
&.syn
64+
border-radius: 2px
65+
border-collapse: collapse
66+
border-style: hidden
67+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5)
68+
th
69+
background-color: rgba(0, 0, 0, 0.08)
70+
td,th
71+
padding: 0.2em 1em
72+
text-align: center
73+
vertical-align: center
74+
border: 1px solid rgba(0, 0, 0, 0.5)
75+
&.synth
76+
@extend .syn
77+
6178
button, a
6279
&.syn
6380
$shadow_range: 0.8vw
@@ -70,18 +87,21 @@ button, a
7087
color: inherit
7188
cursor: pointer
7289

73-
+bg('./紙背景花紋模糊.jpg')
90+
+bg('./紙背景花紋模糊.webp')
7491

7592
box-shadow: 0px 0px $shadow_range rgba(0, 0, 0, 0.6), 0px 0px $shadow_range/2 rgba(0, 0, 0, 0) inset
7693
filter: brightness(1.05) hue-rotate(-6deg)
7794

7895
transition: box-shadow 0.2s, filter 0.1s
79-
&:hover
96+
&:hover:not(:disabled)
8097
box-shadow: 0px 0px $shadow_range/2 rgba(0, 0, 0, 0.7), 0px 0px $shadow_range/2 rgba(0, 0, 0, 0) inset
8198
filter: brightness(1.1) hue-rotate(-12deg)
8299
&:active
83100
box-shadow: 0px 0px $shadow_range/2 rgba(0, 0, 0, 0), 0px 0px $shadow_range/2 rgba(0, 0, 0, 0.6) inset
84101
filter: blur(0.1vw)
102+
&:disabled
103+
cursor: not-allowed
104+
color: rgba(0, 0, 0, 0.6)
85105

86106
&.synth
87107
@extend .syn
@@ -186,7 +206,7 @@ input[type="checkbox"]
186206
&.synth
187207
@extend .syn
188208

189-
input[type="text"], input[type="password"]
209+
input[type="text"], input[type="password"], input[type="number"]
190210
&.syn
191211
background: rgba(0,0,0,0)
192212
outline: none
@@ -232,7 +252,7 @@ progress
232252
backdrop-filter: saturate(0.8) contrast(1.8) brightness(1.3)
233253

234254
&::-moz-progress-bar
235-
+bg('紙背景花紋模糊.jpg')
255+
+bg('紙背景花紋模糊.webp')
236256
border-radius: 3px
237257
filter: brightness(0.8) saturate(0.8) contrast(1.8) brightness(1.3)
238258

librian/librian本體/前端/黑科技/synthetic_css/synthetic_offline.css

Lines changed: 37 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
332 KB
Loading
Binary file not shown.
39.1 KB
Loading

librian/librian本體/前端/默認標題畫面/樣式.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ body {
2727
animation-delay: 0.2s;
2828
animation-fill-mode: both;
2929
background-color: #dec6a1;
30-
background-image: url('../dist/紙背景花紋.jpg');
30+
background-image: url('../dist/紙背景花紋.webp');
3131
background-size: cover;
3232
background-attachment: fixed;
3333
}
@@ -41,7 +41,7 @@ a {
4141
text-decoration: none;
4242
color: inherit;
4343
cursor: pointer;
44-
background-image: url('../dist/紙背景花紋模糊.jpg');
44+
background-image: url('../dist/紙背景花紋模糊.webp');
4545
background-size: cover;
4646
background-attachment: fixed;
4747
box-shadow: 0px 0px 0.8vw rgba(0, 0, 0, 0.6), 0px 0px 0.4vw rgba(0, 0, 0, 0) inset;
@@ -78,7 +78,7 @@ a:active {
7878
-webkit-mask-image: url('虛僞的假面.png');
7979
-webkit-mask-size: cover;
8080
filter: hue-rotate(var(--s));
81-
background: url('../dist/紙背景花紋模糊.jpg');
81+
background: url('../dist/紙背景花紋模糊.webp');
8282
background-size: cover;
8383
width: 100%;
8484
height: 100%;

librian/librian本體/資源/導出pdf用/紙樣式.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ small {
1111
size: A4;
1212
margin: 1.5cm;
1313
margin-bottom: 2cm;
14-
background: url('./紙背景花紋印刷.jpg');
14+
background: url('./紙背景花紋印刷.webp');
1515
background-size: 125%;
1616
background-position: 50% 50%;
1717
counter-increment: page;
@@ -84,7 +84,7 @@ p>* {
8484
}
8585

8686
.代, .插入 {
87-
background: url('./紙背景插入.jpg');
87+
background: url('./紙背景插入.webp');
8888
background-size: cover;
8989
background-position: fixed;
9090
border: 1px solid rgba(0, 0, 0, 0.4);

0 commit comments

Comments
 (0)