Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13542 anikendra 1
 
2
/**
3
 * Scaffolding
4
 * --------------------------------------------------
5
 */
6
 
7
*,
8
*:before,
9
*:after {
10
  @include box-sizing(border-box);
11
}
12
 
13
html {
14
  overflow: hidden;
15
  -ms-touch-action: pan-y;
16
  touch-action: pan-y;
17
}
18
 
19
body,
20
.ionic-body {
21
  @include touch-callout(none);
22
  @include font-smoothing(antialiased);
23
  @include text-size-adjust(none);
24
  @include tap-highlight-transparent();
25
  @include user-select(none);
26
 
27
  top: 0;
28
  right: 0;
29
  bottom: 0;
30
  left: 0;
31
  overflow: hidden;
32
 
33
  margin: 0;
34
  padding: 0;
35
 
36
  color: $base-color;
37
  word-wrap: break-word;
38
  font-size: $font-size-base;
39
  font-family: $font-family-base;
40
  line-height: $line-height-computed;
41
  text-rendering: optimizeLegibility;
42
  -webkit-backface-visibility: hidden;
43
  -webkit-user-drag: none;
44
}
45
 
46
body.grade-b,
47
body.grade-c {
48
  // disable optimizeLegibility for low end devices
49
  text-rendering: auto;
50
}
51
 
52
.content {
53
  // used for content areas not using the content directive
54
  position: relative;
55
}
56
 
57
.scroll-content {
58
  position: absolute;
59
  top: 0;
60
  right: 0;
61
  bottom: 0;
62
  left: 0;
63
  overflow: hidden;
64
 
65
  // Hide the top border if any
66
  margin-top: -1px;
67
 
68
  // Prevents any distortion of lines
69
  padding-top:1px;
70
 
71
  width: auto;
72
  height: auto;
73
}
74
 
75
.scroll-content-false,
76
.menu .scroll-content.scroll-content-false{
77
  z-index: $z-index-scroll-content-false;
78
}
79
 
80
.scroll-view {
81
  position: relative;
82
  display: block;
83
  overflow: hidden;
84
 
85
  // Hide the top border if any
86
  margin-top: -1px;
87
}
88
 
89
/**
90
 * Scroll is the scroll view component available for complex and custom
91
 * scroll view functionality.
92
 */
93
.scroll {
94
  @include user-select(none);
95
  @include touch-callout(none);
96
  @include text-size-adjust(none);
97
  @include transform-origin(left, top);
98
}
99
 
100
// hide webkit scrollbars
101
::-webkit-scrollbar {
102
  display:none;
103
}
104
 
105
// Scroll bar styles
106
.scroll-bar {
107
  position: absolute;
108
  z-index: $z-index-scroll-bar;
109
}
110
// hide the scroll-bar during animations
111
.ng-animate .scroll-bar {
112
  visibility: hidden;
113
}
114
.scroll-bar-h {
115
  right: 2px;
116
  bottom: 3px;
117
  left: 2px;
118
  height: 3px;
119
 
120
  .scroll-bar-indicator {
121
    height: 100%;
122
  }
123
}
124
 
125
.scroll-bar-v {
126
  top: 2px;
127
  right: 3px;
128
  bottom: 2px;
129
  width: 3px;
130
 
131
  .scroll-bar-indicator {
132
    width: 100%;
133
  }
134
}
135
.scroll-bar-indicator {
136
  position: absolute;
137
  border-radius: 4px;
138
  background: rgba(0,0,0,0.3);
139
  opacity: 1;
140
  @include transition(opacity .3s linear);
141
 
142
  &.scroll-bar-fade-out {
143
    opacity: 0;
144
  }
145
}
146
.platform-android .scroll-bar-indicator {
147
  // android doesn't have rounded ends on scrollbar
148
  border-radius: 0;
149
}
150
.grade-b .scroll-bar-indicator,
151
.grade-c .scroll-bar-indicator {
152
  // disable rgba background and border radius for low end devices
153
  background: #aaa;
154
 
155
  &.scroll-bar-fade-out {
156
    @include transition(none);
157
  }
158
}
159
 
160
@keyframes refresh-spin {
161
  0% { transform: translate3d(0,0,0) rotate(0); }
162
  100% { transform: translate3d(0,0,0) rotate(180deg); }
163
}
164
 
165
@-webkit-keyframes refresh-spin {
166
  0% {-webkit-transform: translate3d(0,0,0) rotate(0); }
167
  100% {-webkit-transform: translate3d(0,0,0) rotate(180deg); }
168
}
169
 
170
@keyframes refresh-spin-back {
171
  0% { transform: translate3d(0,0,0) rotate(180deg); }
172
  100% { transform: translate3d(0,0,0) rotate(0); }
173
}
174
 
175
@-webkit-keyframes refresh-spin-back {
176
  0% {-webkit-transform: translate3d(0,0,0) rotate(180deg); }
177
  100% {-webkit-transform: translate3d(0,0,0) rotate(0); }
178
}
179
 
180
// Scroll refresher (for pull to refresh)
181
.scroll-refresher {
182
  position: absolute;
183
  top: -60px;
184
  right: 0;
185
  left: 0;
186
  overflow: hidden;
187
  margin: auto;
188
  height: 60px;
189
 
190
  .ionic-refresher-content {
191
    position: absolute;
192
    bottom: 15px;
193
    left: 0;
194
    width: 100%;
195
    color: $scroll-refresh-icon-color;
196
    text-align: center;
197
 
198
    font-size: 30px;
199
 
200
    .text-refreshing,
201
    .text-pulling {
202
      font-size: 16px;
203
      line-height: 16px;
204
    }
205
    &.ionic-refresher-with-text {
206
      bottom: 10px;
207
    }
208
  }
209
 
210
  .icon-refreshing,
211
  .icon-pulling {
212
    width: 100%;
213
    -webkit-backface-visibility: hidden;
214
    -webkit-transform-style: preserve-3d;
215
    backface-visibility: hidden;
216
    transform-style: preserve-3d;
217
  }
218
  .icon-pulling {
219
    @include animation-name(refresh-spin-back);
220
    @include animation-duration(200ms);
221
    @include animation-timing-function(linear);
222
    @include animation-fill-mode(none);
223
    -webkit-transform: translate3d(0,0,0) rotate(0deg);
224
    transform: translate3d(0,0,0) rotate(0deg);
225
  }
226
  .icon-refreshing,
227
  .text-refreshing {
228
    display: none;
229
  }
230
  .icon-refreshing {
231
    @include animation-duration(1.5s);
232
  }
233
 
234
  &.active {
235
    .icon-pulling:not(.pulling-rotation-disabled) {
236
      @include animation-name(refresh-spin);
237
      -webkit-transform: translate3d(0,0,0) rotate(-180deg);
238
      transform: translate3d(0,0,0) rotate(-180deg);
239
    }
240
    &.refreshing {
241
      @include transition(transform .2s);
242
      @include transition(-webkit-transform .2s);
243
      -webkit-transform: scale(1,1);
244
      transform: scale(1,1);
245
      .icon-pulling,
246
      .text-pulling {
247
        display: none;
248
      }
249
      .icon-refreshing,
250
      .text-refreshing {
251
        display: block;
252
      }
253
      &.refreshing-tail{
254
        -webkit-transform: scale(0,0);
255
        transform: scale(0,0);
256
      }
257
    }
258
  }
259
}
260
 
261
ion-infinite-scroll {
262
  height: 60px;
263
  width: 100%;
264
  opacity: 0;
265
  display: block;
266
 
267
  @include transition(opacity 0.25s);
268
  @include display-flex();
269
  @include flex-direction(row);
270
  @include justify-content(center);
271
  @include align-items(center);
272
 
273
  .icon {
274
    color: #666666;
275
    font-size: 30px;
276
    color: $scroll-refresh-icon-color;
277
  }
278
 
279
  &.active {
280
    opacity: 1;
281
  }
282
}
283
 
284
.overflow-scroll {
285
  overflow-x: hidden;
286
  overflow-y: scroll;
287
  -webkit-overflow-scrolling: touch;
288
  top: 0;
289
  right: 0;
290
  bottom: 0;
291
  left: 0;
292
  position: absolute;
293
 
294
  .scroll {
295
    position: static;
296
    height: 100%;
297
    -webkit-transform: translate3d(0, 0, 0);   // fix iOS bug where relative children of scroller disapear while scrolling.  see: http://stackoverflow.com/questions/9807620/ipad-safari-scrolling-causes-html-elements-to-disappear-and-reappear-with-a-dela
298
  }
299
}
300
 
301
 
302
// Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
303
// Note: For these to work, content must come after both bars in the markup
304
/* If you change these, change platform.scss as well */
305
.has-header {
306
  top: $bar-height;
307
}
308
// Force no header
309
.no-header {
310
  top: 0;
311
}
312
 
313
.has-subheader {
314
  top: $bar-height + $bar-subheader-height;
315
}
316
.has-tabs-top {
317
  top: $bar-height + $tabs-height;
318
}
319
.has-header.has-subheader.has-tabs-top {
320
  top: $bar-height + $bar-subheader-height + $tabs-height;
321
}
322
 
323
.has-footer {
324
  bottom: $bar-footer-height;
325
}
326
.has-subfooter {
327
  bottom: $bar-footer-height + $bar-subfooter-height;
328
}
329
 
330
.has-tabs,
331
.bar-footer.has-tabs {
332
  bottom: $tabs-height;
333
}
334
 
335
.has-footer.has-tabs {
336
  bottom: $tabs-height + $bar-footer-height;
337
}
338
 
339
// A full screen section with a solid background
340
.pane {
341
  @include translate3d(0,0,0);
342
  @include transition-duration(0);
343
  z-index: $z-index-pane;
344
}
345
.view {
346
  z-index: $z-index-view;
347
}
348
.pane,
349
.view {
350
  position: absolute;
351
  top: 0;
352
  right: 0;
353
  bottom: 0;
354
  left: 0;
355
  width: 100%;
356
  height: 100%;
357
  background-color: $base-background-color;
358
  overflow: hidden;
359
}
360
.view-container {
361
  position: absolute;
362
  display: block;
363
  width: 100%;
364
  height: 100%;
365
}