forked from WangJia-mm/JavaScript201708
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.less
More file actions
120 lines (90 loc) · 1.78 KB
/
Copy pathcommon.less
File metadata and controls
120 lines (90 loc) · 1.78 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
.animation(@name,@duration:1s,@timing-function:ease,@delay:0s,@count:1,@fill-mode:both) {
-webkit-animation: @arguments;
animation: @arguments;
}
.transition(@property:all,@duration:1s,@timing-function:linear,@delay:0s) {
-webkit-transition: @arguments;
transition: @arguments;
}
.opacity(@val) {
@val2: @val*100;
opacity: @val;
filter: ~'alpha(opacity=@{val2})';
}
.middle(@w,@h) {
position: absolute;
top: 50%;
left: 50%;
margin-top: unit(-(@h/2), rem);
margin-left: unit(-(@w/2), rem);
}
@body-bg: #F4F4F4;
@orange: #FF8B62;
@blue-lighten: #EEF9FE;
@blue-moderate: #75BEF1;
@blue-darken: #44A1E2;
/*--------COMMON CSS---------*/
html {
font-size: 100px;
}
html, body {
height: 100%;
background: @body-bg;
}
.mainBox {
margin: 0 auto;
max-width: 640px;
min-height: 100%;
background: @blue-lighten;
color: #555;
a {
color: #555;
}
}
.markDialog {
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
.box {
.middle(3.2, 2);
width: 3.2rem;
min-height: 2rem;
background: #FFF;
border-radius: .1rem;
h3 {
padding-left: .1rem;
height: .6rem;
line-height: .6rem;
color: #44A1E2;
font-size: .32rem;
font-weight: normal;
background: @blue-lighten;
border-radius: .1rem;
letter-spacing: .04rem;
}
.content {
padding: .2rem;
line-height: .4rem;
font-size: .28rem;
color: #555;
}
}
}
.navBox {
line-height: .7rem;
text-align: right;
background: @blue-moderate;
a {
display: inline-block;
margin-right: .2rem;
font-size: .32rem;
text-decoration: underline;
&:nth-last-of-type(1), &:nth-last-of-type(2) {
display: none;
}
}
}