-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmslider.less
More file actions
198 lines (178 loc) · 3.58 KB
/
mslider.less
File metadata and controls
198 lines (178 loc) · 3.58 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
/* CONTEUDO
>> SLIDER
_____________ */
main .sliderBox{
background-color: #fff;
height: 374px;
position: relative;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
.bt-anterior, .bt-proximo{
background: url("../images/ico/slider_botoes_sprites.png") no-repeat;
display: block;
height: 26px;
margin-top: -13px;
position: absolute;
overflow: hidden;
text-indent: -999em;
top: 50%;
width: 15px;
}
.inativo{
.opacity;
}
.bt-anterior{
background-position: left bottom;
left: -32px;
}
.bt-proximo{
background-position: right top;
right: -32px;
}
article{
display: none;
float: left;
overflow: hidden;
padding: 36px 46px;
width: 868px;
&.ativo{
display: block;
left: 0 !important;
position: relative !important;
.mover{
left: 0;
}
}
&.full{
padding: 0;
width: 100%;
}
figure{
position: relative;
}
.mover{
float: left;
left: 2000px;
position: relative;
}
}
div.rolagem{
overflow: hidden;
}
div.indice{
height: 5px;
left: 0;
position: absolute;
bottom: 0;
width: 100%;
ul li{
background: url("../images/bkg/slider_indice.png") no-repeat 0 0;
display: block;
float: left;
height: 5px;
width: 192px;
&.ativo{
background-position: -240px 0;
}
}
}
}
/* LESS
>> Funções
______________ */
.border_radius(@radiusT: 5px, @radiusR: 5px, @radiusB: 5px, @radiusL: 5px){
-webkit-border-radius: @radiusT @radiusR @radiusB @radiusL;
-moz-border-radius: @radiusT @radiusR @radiusB @radiusL;
border-radius: @radiusT @radiusR @radiusB @radiusL;
}
.noPadding(@pad: 0px){
padding: @pad;
}
.noMargin(@mar: 0px){
margin: @mar;
}
.noBackground(@bac: none){
background: @bac;
}
.hiddenText(){
display:block;
overflow:hidden;
text-indent:-999em;
}
.setFont(@font: TitilliumWeb_Regular){ // Colocar fonte default do site
font-family: @font;
}
.centerContent(@wid: 940px){ // Centraliza o conteúdo com a largura do conteúdo passado como parametro
margin: 0 auto;
position: relative;
width: @wid;
}
.center(){ // Centraliza conteúdo geral {Altere o valor da largura caso o site precise.}
clear: both;
margin: 0 auto;
width: 960px;
}
.clearTag(@cle: both){
clear: @cle;
}
.listNone(@type: none){
list-style: @type;
}
.opacity(@val: 0.5){
@ie: @val * 100;
opacity: @val;
filter: ~"alpha(opacity=@{ie})";
}
.transition(@type: opacity, @time: 0.5s, @tm: 0s, @anim: ease-in-out ){ /*, @type2: display, @time2: 0, @tm2: 0s*/
transition: @type @time @anim @tm; /*, @type2 @time2 @tm2*/
-moz-transition: @type @time @anim @tm; /* Firefox 4 */
-webkit-transition: @type @time @anim @tm; /* Safari and Chrome */
-o-transition: @type @time @anim @tm; /* Opera */
}
.fullscreen(){
&:-webkit-full-screen {
.fullValues;
}
&:-moz-full-screen {
.fullValues;
}
&:-ms-full-screen {
.fullValues;
}
&:-o-full-screen {
.fullValues;
}
&:full-screen {
.fullValues;
}
}
.fullValues(){
position: fixed;
left: 0;
top: 0;
height: 100%;
width: 100%;
z-index: 99999;
}
.textShadow(@l: 0px, @t: -2px, @r: 2px, @color: #000){
text-shadow:0px 5px 9px #000000;
}
.boxShadow(@lateral: 10px, @b: 10px, @c: 5px, @color: #888){
box-shadow: @lateral @b @c @color;
}
.boldItalic(@bol: 700){ // Colocar texto italico com o bold adequado { Nem sempre é utilizado essa funcionalidade no site. }
font-style: italic;
font-weight: @bol;
}
.pie(){
behavior: url(PIE_uncompressed.htc);
}
/* LESS
>> Variáveis { Determina as cores do website }
________________ */
@white_color: #feffff;
@gray_color: #6c7c8a;
@yellow_color: #ebb844;
@red_color: #ee5d41;
/* --------------- */