PluginProbe
WPWaterMark 轻水印插件 / 5.0.0
WPWaterMark 轻水印插件 v5.0.0
5.2.4 5.2.2 5.2.1 5.1.7 5.1.6 trunk 4.3 5.0.0 5.0.1 5.1.2 5.1.3 5.1.4 5.1.5
wpwatermark / css / admin.css

admin.css in WPWaterMark 轻水印插件 5.0.0, at css/admin.css

213 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* 设置页面样式 */
2 .wpwatermark-settings .form-table th {
3 width: 200px;
4 }
5
6 .wpwatermark-settings .preview-section {
7 margin-top: 30px;
8 padding: 20px;
9 background: #fff;
10 border: 1px solid #ccd0d4;
11 box-shadow: 0 1px 1px rgba(0,0,0,.04);
12 }
13
14 .wpwatermark-settings .preview-section h2 {
15 margin-top: 0;
16 }
17
18 .wpwatermark-settings .preview-image {
19 margin-top: 15px;
20 max-width: 800px;
21 }
22
23 .wpwatermark-settings .preview-image img {
24 max-width: 100%;
25 height: auto;
26 }
27
28 /* 水印位置选择器样式 */
29 .watermark-position-grid {
30 display: grid;
31 grid-template-columns: repeat(3, 1fr);
32 gap: 5px;
33 max-width: 300px;
34 margin: 10px 0;
35 }
36
37 .watermark-position-grid label {
38 display: flex;
39 align-items: center;
40 justify-content: center;
41 padding: 10px;
42 background: #f5f5f5;
43 border: 1px solid #ddd;
44 cursor: pointer;
45 }
46
47 .watermark-position-grid label:hover {
48 background: #e5e5e5;
49 }
50
51 .watermark-position-grid label.selected {
52 background: #2271b1;
53 color: #fff;
54 border-color: #2271b1;
55 }
56
57 /* 表单�
58 �素样式优化 */
59 .wpwatermark-settings input[type="number"] {
60 width: 80px;
61 }
62
63 .wpwatermark-settings .wp-picker-container {
64 display: inline-block;
65 vertical-align: middle;
66 }
67
68 .wpwatermark-settings .description {
69 margin-top: 5px;
70 color: #666;
71 }
72
73 /* 性能统计样式 */
74 .performance-stats {
75 margin-top: 20px;
76 padding: 15px;
77 background: #fff;
78 border: 1px solid #ccd0d4;
79 box-shadow: 0 1px 1px rgba(0,0,0,.04);
80 }
81
82 .performance-stats h3 {
83 margin-top: 0;
84 }
85
86 .performance-stats table {
87 width: 100%;
88 border-collapse: collapse;
89 margin-top: 10px;
90 }
91
92 .performance-stats th,
93 .performance-stats td {
94 padding: 8px;
95 text-align: left;
96 border-bottom: 1px solid #eee;
97 }
98
99 .performance-stats th {
100 font-weight: 600;
101 color: #23282d;
102 }
103
104 /* 响应式优化 */
105 @media screen and (max-width: 782px) {
106 .wpwatermark-settings .form-table th {
107 width: auto;
108 }
109
110 .watermark-position-grid {
111 max-width: 100%;
112 }
113 }
114
115 .wpwatermark-wrap {
116 margin: 10px 20px 0 2px;
117 max-width: 1200px;
118 }
119
120 .wpwatermark-header {
121 background: #fff;
122 border: 1px solid #ccd0d4;
123 box-shadow: 0 1px 1px rgba(0,0,0,.04);
124 margin-bottom: 20px;
125 padding: 15px;
126 }
127
128 .wpwatermark-header h2 {
129 margin: 0;
130 font-size: 1.3em;
131 font-weight: 600;
132 }
133
134 .wpwatermark-form {
135 background: #fff;
136 border: 1px solid #ccd0d4;
137 padding: 20px;
138 }
139
140 .wpwatermark-form .form-table {
141 margin-top: 0;
142 }
143
144 .wpwatermark-form .form-table th {
145 padding: 20px 10px;
146 }
147
148 .wpwatermark-position-selector {
149 display: grid;
150 grid-template-columns: repeat(3, 1fr);
151 gap: 5px;
152 max-width: 200px;
153 margin: 10px 0;
154 }
155
156 .wpwatermark-position-selector button {
157 padding: 10px;
158 border: 1px solid #ddd;
159 background: #f5f5f5;
160 cursor: pointer;
161 }
162
163 .wpwatermark-position-selector button.active {
164 background: #2271b1;
165 color: #fff;
166 border-color: #2271b1;
167 }
168
169 .wpwatermark-preview {
170 margin: 20px 0;
171 padding: 20px;
172 background: #f5f5f5;
173 border: 1px solid #ddd;
174 text-align: center;
175 }
176
177 .wpwatermark-preview img {
178 max-width: 100%;
179 height: auto;
180 }
181
182 /* WordPress Color Picker 样式覆盖 */
183 .wp-picker-container {
184 display: inline-block;
185 }
186
187 .wp-picker-container .wp-color-result.button {
188 margin: 0 6px;
189 }
190
191 /* WordPress Media Uploader 样式 */
192 .wpwatermark-media-preview {
193 margin: 10px 0;
194 max-width: 150px;
195 }
196
197 .wpwatermark-media-preview img {
198 max-width: 100%;
199 height: auto;
200 border: 1px solid #ddd;
201 padding: 2px;
202 }
203
204 /* 响应式布局 */
205 @media screen and (max-width: 782px) {
206 .wpwatermark-form .form-table th {
207 padding: 10px 0;
208 }
209
210 .wpwatermark-position-selector {
211 max-width: 150px;
212 }
213 }