提交 | 用户 | 时间
|
58d006
|
1 |
.enable_onpage_help() when(@enable-onpage-help = true) { |
A |
2 |
|
|
3 |
.onpage-help-backdrop { |
|
4 |
position: absolute; |
|
5 |
z-index: 99990; |
|
6 |
top: 0; |
|
7 |
bottom: 0; |
|
8 |
left: 0; |
|
9 |
right: 0; |
|
10 |
|
|
11 |
background-color: #000; |
|
12 |
filter: alpha(opacity=5); |
|
13 |
background-color: rgba(0,0,0,0.05); |
|
14 |
} |
|
15 |
|
|
16 |
.onpage-help-section { |
|
17 |
display: block; |
|
18 |
position: absolute; |
|
19 |
z-index: 100000; |
|
20 |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4DFFFFFF', endColorstr='#4DFFFFFF',GradientType=0 ); |
|
21 |
background-color: rgba(255,255,255,0.3); |
|
22 |
|
|
23 |
border: 1px dashed #8BBCD3; |
|
24 |
border-radius:4px; |
|
25 |
|
|
26 |
transition: background-color 0.2s, border-color 0.2s; |
|
27 |
-webkit-transition: background-color 0.2s, border-color 0.2s; |
|
28 |
|
|
29 |
text-align: center; |
|
30 |
vertical-align: middle; |
|
31 |
|
|
32 |
outline: none !important; |
|
33 |
} |
|
34 |
.onpage-help-section > .ie-hover-fix { |
|
35 |
/* ie8-9 fix*/ |
|
36 |
display: block; |
|
37 |
position: absolute; |
|
38 |
top: 0; |
|
39 |
bottom: 0; |
|
40 |
left: 0; |
|
41 |
right: 0; |
|
42 |
background-color: #FFF; |
|
43 |
filter: alpha(opacity=1); |
|
44 |
} |
|
45 |
|
|
46 |
.onpage-help-section { |
|
47 |
&:focus, &:active { |
|
48 |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33C9D8EA', endColorstr='#33C9D8EA',GradientType=0 ); |
|
49 |
background-color: rgba(201,216,234,0.2); |
|
50 |
border-color: #77ACC4; |
|
51 |
} |
|
52 |
|
|
53 |
&:hover { |
|
54 |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#66C9D8EA', endColorstr='#66C9D8EA',GradientType=0 ); |
|
55 |
background-color: rgba(201,216,234,0.4); |
|
56 |
border-color: #77ACC4; |
|
57 |
border-style: solid; |
|
58 |
} |
|
59 |
|
|
60 |
> .help-icon-1 { |
|
61 |
font-size: @font-size-onpage-help-icon-1; |
|
62 |
display: inline-block; |
|
63 |
position: absolute; |
|
64 |
z-index: 1; |
|
65 |
|
|
66 |
top: 50%; |
|
67 |
left: 50%; |
|
68 |
transform: translate(-50%, -50%); |
|
69 |
-webkit-transform: translate(-50%, -50%); |
|
70 |
|
|
71 |
opacity: 0; |
|
72 |
filter:alpha(opacity=0); |
|
73 |
|
|
74 |
color: #FFF; |
|
75 |
text-shadow: 0 0 2px black; |
|
76 |
|
|
77 |
background-color: #85B8DB; |
|
78 |
border: 2px solid #FFF; |
|
79 |
border-radius: 100%; |
|
80 |
box-shadow: 0 0 2px 1px rgba(0,0,0,0.4); |
|
81 |
|
|
82 |
width: 48px; |
|
83 |
height: 48px; |
|
84 |
line-height: 46px; |
|
85 |
|
|
86 |
transition: opacity 0.2s; |
|
87 |
-webkit-transition: opacity 0.2s; |
|
88 |
} |
|
89 |
|
|
90 |
&:focus > .help-icon-1, |
|
91 |
&:active > .help-icon-1 { |
|
92 |
opacity: 0.5; |
|
93 |
} |
|
94 |
&:hover > .help-icon-1 { |
|
95 |
opacity: 1; |
|
96 |
filter:alpha(opacity=100); |
|
97 |
} |
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
&.help-section-small > .help-icon-1 { |
|
102 |
font-size: @font-size-onpage-help-icon-1-small; |
|
103 |
width: 28px; |
|
104 |
height: 28px; |
|
105 |
line-height: 26px; |
|
106 |
border-radius: 12px; |
|
107 |
} |
|
108 |
&.help-section-smaller > .help-icon-1 { |
|
109 |
font-size: @font-size-onpage-help-icon-1-smaller; |
|
110 |
width: 20px; |
|
111 |
height: 20px; |
|
112 |
line-height: 17px; |
|
113 |
border-radius: 8px; |
|
114 |
} |
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
> .help-icon-2 { |
|
119 |
position: absolute; |
|
120 |
z-index: 2; |
|
121 |
left: -4px; |
|
122 |
top: -4px; |
|
123 |
width: 18px; |
|
124 |
height: 18px; |
|
125 |
line-height: 16px; |
|
126 |
|
|
127 |
display: block; |
|
128 |
|
|
129 |
font-size: @font-size-onpage-help-icon-2; |
|
130 |
color: orange; |
|
131 |
background-color: #FFF; |
|
132 |
border: 1px solid orange; |
|
133 |
|
|
134 |
border-radius: 4px; |
|
135 |
opacity: 1; |
|
136 |
|
|
137 |
transition: all 0.2s; |
|
138 |
-webkit-transition: all 0.2s; |
|
139 |
} |
|
140 |
&:hover > .help-icon-2 { |
|
141 |
color: #59A34E; |
|
142 |
border-color: #59A34E; |
|
143 |
transform: scale(1.25); |
|
144 |
-webkit-transform: scale(1.25); |
|
145 |
} |
|
146 |
|
|
147 |
|
|
148 |
} |
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
.onpage-help-modal { |
|
154 |
z-index: 100010; |
|
155 |
} |
|
156 |
.onpage-help-modal + .modal-backdrop { |
|
157 |
z-index: 100009; |
|
158 |
} |
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
.onpage-help-modal-buttons button{ |
|
163 |
border-radius: 100%; |
|
164 |
border-width: 2px !important; |
|
165 |
|
|
166 |
&:focus { |
|
167 |
outline: none !important; |
|
168 |
} |
|
169 |
&.disabled { |
|
170 |
transform: scale(0.9); |
|
171 |
-webkit-transform: scale(0.9); |
|
172 |
} |
|
173 |
} |
|
174 |
|
|
175 |
|
|
176 |
|
|
177 |
.onpage-help-content { |
|
178 |
max-width: 800px; |
|
179 |
margin: 0 auto; |
|
180 |
} |
|
181 |
|
|
182 |
.code-modal.onpage-help-modal { |
|
183 |
.modal-dialog { |
|
184 |
margin-top: 6px; |
|
185 |
margin-bottom: 6px; |
|
186 |
} |
|
187 |
.modal-header { |
|
188 |
padding-top: 6px; |
|
189 |
padding-bottom: 6px; |
|
190 |
} |
|
191 |
.modal-body { |
|
192 |
padding: 10px 12px |
|
193 |
} |
|
194 |
} |
|
195 |
|
|
196 |
.onpage-help-modal pre { |
|
197 |
border-width: 0; |
|
198 |
box-shadow: none; |
|
199 |
border-radius: 0; |
|
200 |
margin-top: 8px; |
|
201 |
} |
|
202 |
|
|
203 |
.onpage-help-modal .modal-title code { |
|
204 |
font-size: @base-font-size; |
|
205 |
} |
|
206 |
.onpage-help-modal .modal-body { |
|
207 |
font-size: @base-font-size + 1; |
|
208 |
} |
|
209 |
|
|
210 |
|
|
211 |
} |
|
212 |
.enable_onpage_help(); |