forked from duoshuo/duoshuo-embed.css
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialog.less
More file actions
321 lines (289 loc) · 5.7 KB
/
dialog.less
File metadata and controls
321 lines (289 loc) · 5.7 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
/* Dialog */
#ds-wrapper{
left: 0;
right: 0;
top: 20%;
bottom: 0;
width:100%;
margin: auto;
z-index: 9999;
position: fixed;
_position: absolute; // ie6 position fixed bug
text-align: center;
color: @light;
.ds-dialog, #ds-reset.ds-dialog { // 因为IE6不识别 ID + class的选择符,因此这里再写一遍。
margin: 0 auto;
text-align: left;
_zoom: 1;
//padding: 8px; 由于有max-width:100%, 如果再设置padding就会溢出,似乎这个padding也没有特别用处,就去掉吧
width : 480px; // 默认宽度
max-width:100%; // 适应手机屏幕
}
}
#ds-wrapper #ds-reset{
&.ds-dialog-bind-more {
.ds-service-list {
width: 50%;
}
}
a {
cursor: pointer;
text-decoration: none;
color: @light;
}
/* 已经没有地方用到了
.ds-dialog-header {
position: relative;
padding: 12px 25px;
border-bottom: 1px solid #ddd;
h2 {
font-size: 15px;
margin: 0;
}
}
*/
.ds-dialog-inner {
width: 100%;
position: relative;
border: 1px solid @lighter;
background: #ffffff url(../images/bg_sprites.png) 0 -90px repeat-x;
text-shadow: 0 1px 0 #fff;
box-shadow: inset 0 1px 1px #fff, 0 2px 6px rgba(0,0,0,0.4);
.ds-unread-list{
max-height: 300px;
overflow-y: auto;
}
}
.ds-control-group {
margin: 18px 0;
position: relative;
padding-right : 80px;
max-width: 166px; //为了能够自适应宽度,不直接设置width
input {
color: @light;
width: 100%;
font-size: 13px;
border: 1px solid @lightest;
padding: 4px 80px 6px 6px; // 如果想要输入不覆盖"名字(必填)",则需要增加padding,在个别网页下面仍然有问题:http://alexyang.me/2013/07/01/%E5%88%A9%E7%94%A8%E7%99%BE%E5%BA%A6%E4%BA%91%E7%BC%93%E5%AD%98%E5%8A%A0%E9%80%9Fbae-wordpress.html
box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
&:focus {
border-color: #08b5fb;
}
}
label {
font-size: 13px;
color: @lightest;
letter-spacing: 1px;
position: absolute;
right: 0;
top: 8px;
}
}
tr {
height: 45px;
}
button {
cursor: pointer;
color: @medium;
.gradient(#e6e6e6, #ffffff);
.transition(all);
border: 1px solid #aaa;
display: inline-block;
font-size: 15px;
height: 30px;
width: 100px;
padding : 0;
&:hover {
background-position: 0 -15px;
color: @dark;
}
&:active {
top: 0;
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}
}
h2 {
display: block;
font-weight: normal;
font-size: 16px;
margin: 0 0 15px 0;
color: @medium;
}
.ds-dialog-body {
padding: 30px 30px 25px;
position: relative;
overflow: hidden;
}
/* 放弃左右栏的设计
.ds-dialog-left {
width: 190px;
}
.ds-dialog-right {
border-left: 1px dotted @lightest;
position: absolute;
top: 30px;
right: 0;
width: 305px;
padding-left: 50px;
}
*/
// 发评论的之前用社交帐号登陆
.ds-icons-32{
height: 32px;
margin-bottom: 20px;
overflow:hidden;
a{
float: left;
margin: 0 5px 0 0;
}
}
ul li {
margin: 10px 0;
}
.ds-service-list {
width: 45%;
float: left;
.ds-more-services {
display: none;
}
}
.ds-icon-ok {
background-position: 0 -203px;
width: 12px;
height: 12px;
}
.ds-quote{
margin:10px 0px;
padding: 6px 10px;
background-color: @gray-background;
line-height : 1.5em;
font-size:12px;
}
.ds-textarea-wrapper{
border:1px solid #CCC;
padding: 0 20px 0 0;
position:relative;
margin: 12px 0;
textarea{
width: 100%;
height: 54px;
margin: 0;
resize: none;
padding: 6px 10px;
overflow: auto;
//box-shadow:none; 浏览器原生的box-shadown也挺好看的,暂时留着吧
}
.ds-hidden-text{
top:0;
left:10px;
right:10px;
position:absolute;
visibility:hidden;
word-wrap: break-word;
}
textarea, .ds-hidden-text{
font-size:13px;
line-height: 1.5em;
}
}
.ds-actions{
position:relative;
height:30px;
button{
display:block;
position:absolute;
top:0;
right:0;
}
}
.ds-dialog-close {
position: absolute;
bottom: 13px;
right: 11px;
display: block;
width: 13px;
height: 13px;
overflow: hidden;
background: @spritesheet 0 -163px no-repeat;
_background-image: url(../images/sprites.gif); // ie6 hack
&:hover {
background-position: 0 -176px;
}
}
.ds-logo {
display: inline-block;
width: 64px;
height: 21px;
margin-right: 10px;
background: url(../images/logo.png) 0 0 no-repeat;
}
.ds-dialog-footer {
clear: both;
span {
color: @lighter;
position: relative;
top: -6px;
}
border-top: 1px dotted @lightest;
padding: 10px 15px 6px;
}
.ds-connect {
display: none; //hide for now
}
.ds-unread-list {
li {
position:relative;
margin: 0;
padding: 8px 0;
border-top: 1px solid #eee;
line-height: 1.5em;
color: @light;
a {
color: @highlight;
&:hover {
color: lighten(@highlight, 10%);
}
}
a[rel="author"] {
color: @light;
}
.ds-delete{
display:none;
position:absolute;
right:0;
bottom:10px;
text-indent: -9999px;
width: 14px;
height: 14px;
overflow: hidden;
background: transparent url(../images/delete.gif) no-repeat scroll 0 -14px;
}
&:hover{
.ds-delete{
display:block;
}
}
}
}
&.ds-touch .ds-unread-list li .ds-delete{
display:block;
}
}
#ds-wrapper.ds-no-transition #ds-reset{
&.ds-dialog {
background-image: url(../images/black.png);
}
button {
background: url(../images/bg_sprites.png) repeat-x !important;
&:hover {
background-position: 0 -30px !important;
}
}
}
#ds-wrapper.ds-ie6 #ds-reset{
margin-top: 0;
.ds-dialog-footer span {
top: -3px;
}
}