-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
127 lines (111 loc) · 2.14 KB
/
style.css
File metadata and controls
127 lines (111 loc) · 2.14 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
body {
margin: 0;
padding: 0;
background-color: #f9f9f9;
font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}
.container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: flex-start;
gap: 40px;
padding: 60px 40px;
}
.left-panel {
flex: 0 0 70%;
margin-left: auto;
/* 整体偏右居中效果 */
background: #fff;
padding: 2em;
border-radius: 10px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.left-panel h1 {
text-align: center;
margin-top: 0;
}
.left-panel textarea {
width: 100%;
font-size: 16px;
padding: 10px;
border-radius: 4px;
border: 1px solid #ccc;
resize: vertical;
}
/* 二维码区域居中 */
#qrcode-container {
margin: 1.5em auto;
position: relative;
width: 400px;
height: 400px;
background: #f0f0f0;
border: 1px dashed #ccc;
border-radius: 6px;
display: flex;
justify-content: center;
align-items: center;
}
#qrcode-hint {
position: absolute;
color: #999;
font-size: 14px;
text-align: center;
pointer-events: none;
}
canvas {
display: none;
}
.left-panel button {
display: block;
margin: 1em auto 0;
padding: 10px 20px;
font-size: 16px;
background-color: #0078d4;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.left-panel button:hover {
background-color: #005fa3;
}
.right-panel {
flex: 0 0 30%;
background: #fff;
padding: 1.5em;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
text-align: center;
align-self: flex-start;
}
.right-panel h1 {
margin-top: 0;
text-align: left;
}
.right-panel p {
font-size: 14px;
color: #555;
margin-top: 0.8em;
text-align: left;
}
.right-panel img {
max-width: 100%;
border-radius: 8px;
margin-top: 1em;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
@media (max-width: 900px) {
.container {
flex-direction: column;
padding: 20px;
}
.left-panel,
.right-panel {
width: 100%;
margin: 0 auto;
}
.right-panel {
margin-top: 20px;
}
}