]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * @class Ext.carousel.Carousel\r | |
3 | */\r | |
4 | \r | |
5 | // Private variables\r | |
6 | $indicator-light: rgba(#fff, .1);\r | |
7 | $indicator-light-active: rgba(#fff, .3);\r | |
8 | $indicator-dark: rgba(#000, .1);\r | |
9 | $indicator-dark-active: rgba(#000, .3);\r | |
10 | \r | |
11 | /**\r | |
12 | * Creates a theme UI for carousel indicator components.\r | |
13 | *\r | |
14 | * @param {string} $ui-label The name of the UI being created.\r | |
15 | * Can not included spaces or special punctuation (used in class names)\r | |
16 | * @param {color} $color Base color for the UI.\r | |
17 | * @param {string} $gradient Default gradient for the UI.\r | |
18 | * @param {color} $active-color Active color for the UI.\r | |
19 | * @param {string} $active-gradient Active gradient for the UI.\r | |
20 | */\r | |
21 | @mixin sencha-carousel-indicator-ui($ui-label, $color, $gradient, $active-color, $active-gradient) {\r | |
22 | .x-carousel-indicator-#{$ui-label} span {\r | |
23 | @include background-gradient($color, $gradient);\r | |
24 | \r | |
25 | &.x-carousel-indicator-active {\r | |
26 | @include background-gradient($active-color, $active-gradient)\r | |
27 | }\r | |
28 | }\r | |
29 | }\r | |
30 | \r | |
31 | .x-carousel-indicator {\r | |
32 | span {\r | |
33 | width: $carousel-indicator-size;\r | |
34 | height: $carousel-indicator-size;\r | |
35 | @if $include-border-radius {\r | |
36 | @include border-radius($carousel-indicator-size / 2);\r | |
37 | }\r | |
38 | margin: $carousel-indicator-spacing;\r | |
39 | }\r | |
40 | }\r | |
41 | \r | |
42 | .x-carousel-indicator-horizontal {\r | |
43 | height: $carousel-track-size;\r | |
44 | }\r | |
45 | \r | |
46 | .x-carousel-indicator-vertical {\r | |
47 | width: $carousel-track-size;\r | |
48 | }\r | |
49 | \r | |
50 | @include sencha-carousel-indicator-ui('light', $indicator-light, 'flat', $indicator-light-active, 'flat');\r | |
51 | @include sencha-carousel-indicator-ui('dark', $indicator-dark, 'flat', $indicator-dark-active, 'flat');\r |