-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
113 lines (97 loc) · 2.42 KB
/
styles.css
File metadata and controls
113 lines (97 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh; /* 使body占据整个视窗高度 */
margin: 0;
background-color: #f2e8db; /* 背景色 */
}
/* 垂直居中的样式应用于 .media-container */
.media-container {
width: 360px;
height: 360px;
margin: 20px auto;
border: 2px solid #786c5a;
border-radius: 10px;
overflow: hidden;
position: relative;
display: flex;
align-items: center; /* 垂直居中 */
justify-content: center; /* 水平居中 */
background-color: #ffffff;
}
.media-container>canvas {
width: 1080px;
height: 1080px;
transform: scale(0.3333);
position: absolute;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center;
}
/* 初始状态下的按钮样式(深色) */
button {
background-color: #786c5a; /* 初始深色背景 */
color: #ffffff; /* 文字颜色 */
border: none;
border-radius: 5px; /* 添加圆角 */
padding: 10px 20px;
cursor: pointer;
}
/* 鼠标悬停时的样式(更深的颜色) */
button:hover {
background-color: #5c503f; /* 鼠标悬停时的深色背景色 */
}
/* 当按钮被禁用时的样式(浅色) */
button:disabled {
background-color: #a39f9f; /* 禁用时的浅色背景色 */
color: #ffffff; /* 按钮文字颜色 */
}
/* 隐藏默认的文件上传按钮 */
input[type="file"] {
display: none;
}
/* 创建自定义的文件上传按钮样式 */
.custom-file-input {
background-color: #786c5a; /* 背景色 */
color: #ffffff; /* 文字颜色 */
padding: 10px 20px;
border: none;
border-radius: 5px; /* 圆角 */
cursor: pointer;
transition: background-color 0.3s; /* 鼠标悬停过渡效果 */
}
/* 鼠标悬停时的样式 */
.custom-file-input:hover {
background-color: #5c503f; /* 鼠标悬停时的背景色 */
}
.bg {
position: fixed;
right: 0;
bottom:32px;
width: 150px;
height: 60px;
margin: 0 auto;
}
.slideShine {
width: 200px;
font-size: 32px;
font-weight: bold;
text-align: center;
background: rgb(92, 80, 63,.8) -webkit-linear-gradient(left, rgb(92, 80, 63,.2), #fff,rgb(92, 80, 63,.2)) 0 0 no-repeat;
-webkit-background-size: 80px;
-webkit-background-clip: text;
-webkit-text-fill-color: rgb(92, 80, 63,0.2);
-webkit-animation: slideShine 3s infinite;
}
@-webkit-keyframes slideShine {
0% {
background-position: -50% 0;
}
100% {
background-position: 150% 100%;
}
}