active_administration 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +2 -1
  4. data/active_administration.gemspec +2 -1
  5. data/app/assets/javascripts/active_administration/README.md +0 -0
  6. data/app/assets/javascripts/active_administration/metro-accordion.js +70 -0
  7. data/app/assets/javascripts/active_administration/metro-button-set.js +88 -0
  8. data/app/assets/javascripts/active_administration/metro-calendar.js +437 -0
  9. data/app/assets/javascripts/active_administration/metro-carousel.js +304 -0
  10. data/app/assets/javascripts/active_administration/metro-core.js +39 -0
  11. data/app/assets/javascripts/active_administration/metro-countdown.js +200 -0
  12. data/app/assets/javascripts/active_administration/metro-date-format.js +137 -0
  13. data/app/assets/javascripts/active_administration/metro-datepicker.js +138 -0
  14. data/app/assets/javascripts/active_administration/metro-dialog.js +221 -0
  15. data/app/assets/javascripts/active_administration/metro-drag-tile.js +46 -0
  16. data/app/assets/javascripts/active_administration/metro-dropdown.js +112 -0
  17. data/app/assets/javascripts/active_administration/metro-fluentmenu.js +57 -0
  18. data/app/assets/javascripts/active_administration/metro-global.js +4 -0
  19. data/app/assets/javascripts/active_administration/metro-hint.js +104 -0
  20. data/app/assets/javascripts/active_administration/metro-initiator.js +271 -0
  21. data/app/assets/javascripts/active_administration/metro-input-control.js +318 -0
  22. data/app/assets/javascripts/active_administration/metro-listview.js +53 -0
  23. data/app/assets/javascripts/active_administration/metro-live-tile.js +162 -0
  24. data/app/assets/javascripts/active_administration/metro-loader.js +46 -0
  25. data/app/assets/javascripts/active_administration/metro-locale.js +132 -0
  26. data/app/assets/javascripts/active_administration/metro-notify.js +120 -0
  27. data/app/assets/javascripts/active_administration/metro-panel.js +41 -0
  28. data/app/assets/javascripts/active_administration/metro-plugin-template.js +21 -0
  29. data/app/assets/javascripts/active_administration/metro-progressbar.js +97 -0
  30. data/app/assets/javascripts/active_administration/metro-pull.js +38 -0
  31. data/app/assets/javascripts/active_administration/metro-rating.js +99 -0
  32. data/app/assets/javascripts/active_administration/metro-scroll.js +756 -0
  33. data/app/assets/javascripts/active_administration/metro-slider.js +304 -0
  34. data/app/assets/javascripts/active_administration/metro-stepper.js +105 -0
  35. data/app/assets/javascripts/active_administration/metro-streamer.js +214 -0
  36. data/app/assets/javascripts/active_administration/metro-tab-control.js +96 -0
  37. data/app/assets/javascripts/active_administration/metro-table.js +74 -0
  38. data/app/assets/javascripts/active_administration/metro-tile-transform.js +65 -0
  39. data/app/assets/javascripts/active_administration/metro-times.js +190 -0
  40. data/app/assets/javascripts/active_administration/metro-touch-handler.js +65 -0
  41. data/app/assets/javascripts/active_administration/metro-treeview.js +64 -0
  42. data/app/assets/javascripts/active_administration/metro-wizard.js +148 -0
  43. data/app/assets/stylesheets/active_administration/accordion.less +64 -0
  44. data/app/assets/stylesheets/active_administration/balloon.less +88 -0
  45. data/app/assets/stylesheets/active_administration/breadcrumbs.less +118 -0
  46. data/app/assets/stylesheets/active_administration/buttons.less +383 -0
  47. data/app/assets/stylesheets/active_administration/calendar.less +123 -0
  48. data/app/assets/stylesheets/active_administration/carousel.less +118 -0
  49. data/app/assets/stylesheets/active_administration/colors.less +589 -0
  50. data/app/assets/stylesheets/active_administration/countdown.less +57 -0
  51. data/app/assets/stylesheets/active_administration/dataTables.less +134 -0
  52. data/app/assets/stylesheets/active_administration/fluent-menu.less +231 -0
  53. data/app/assets/stylesheets/active_administration/forms.less +414 -0
  54. data/app/assets/stylesheets/active_administration/funcs.less +178 -0
  55. data/app/assets/stylesheets/active_administration/grid.less +91 -0
  56. data/app/assets/stylesheets/active_administration/hint.less +120 -0
  57. data/app/assets/stylesheets/active_administration/iconFont-content.less +1353 -0
  58. data/app/assets/stylesheets/active_administration/iconFont.less +47 -0
  59. data/app/assets/stylesheets/active_administration/icons.less +10 -0
  60. data/app/assets/stylesheets/active_administration/images.less +75 -0
  61. data/app/assets/stylesheets/active_administration/layout.less +137 -0
  62. data/app/assets/stylesheets/active_administration/lists.less +258 -0
  63. data/app/assets/stylesheets/active_administration/menus.less +469 -0
  64. data/app/assets/stylesheets/active_administration/metro-bootstrap-responsive.less +300 -0
  65. data/app/assets/stylesheets/active_administration/metro-bootstrap.less +68 -0
  66. data/app/assets/stylesheets/active_administration/misc.less +72 -0
  67. data/app/assets/stylesheets/active_administration/navigation-bar.less +317 -0
  68. data/app/assets/stylesheets/active_administration/notice.less +52 -0
  69. data/app/assets/stylesheets/active_administration/notify.less +43 -0
  70. data/app/assets/stylesheets/active_administration/pagination.less +83 -0
  71. data/app/assets/stylesheets/active_administration/panels.less +38 -0
  72. data/app/assets/stylesheets/active_administration/progress-bar.less +25 -0
  73. data/app/assets/stylesheets/active_administration/rating.less +103 -0
  74. data/app/assets/stylesheets/active_administration/reset.less +219 -0
  75. data/app/assets/stylesheets/active_administration/scroll.less +141 -0
  76. data/app/assets/stylesheets/active_administration/sidebar.less +158 -0
  77. data/app/assets/stylesheets/active_administration/slider.less +106 -0
  78. data/app/assets/stylesheets/active_administration/stepper.less +80 -0
  79. data/app/assets/stylesheets/active_administration/streamer.less +250 -0
  80. data/app/assets/stylesheets/active_administration/tab-control.less +79 -0
  81. data/app/assets/stylesheets/active_administration/tables.less +170 -0
  82. data/app/assets/stylesheets/active_administration/tiles.less +599 -0
  83. data/app/assets/stylesheets/active_administration/transform.less +23 -0
  84. data/app/assets/stylesheets/active_administration/treeview.less +96 -0
  85. data/app/assets/stylesheets/active_administration/typography.less +382 -0
  86. data/app/assets/stylesheets/active_administration/utils.less +180 -0
  87. data/app/assets/stylesheets/active_administration/variables.less +250 -0
  88. data/app/assets/stylesheets/active_administration/window.less +225 -0
  89. data/app/assets/stylesheets/active_administration/wizard.less +53 -0
  90. data/lib/active_admin/version.rb +1 -1
  91. metadata +103 -10
@@ -0,0 +1,141 @@
1
+ .scrollbar-button {
2
+ background-color: #ffffff;
3
+ border: 1px #ababab solid;
4
+ }
5
+
6
+ .scrollbar {
7
+ position: relative;
8
+ overflow: hidden;
9
+ }
10
+ .scrollbar-container {
11
+ position: relative;
12
+ overflow: hidden;
13
+ }
14
+
15
+ .scrollbar-v, .scrollbar-h {
16
+ position: absolute;
17
+ background: #f3f3f3;
18
+ }
19
+
20
+ .scrollbar-v {
21
+ width: 15px;
22
+ height: 100%;
23
+ right: 0;
24
+ top: 0;
25
+ }
26
+
27
+ .scrollbar-h {
28
+ height: 15px;
29
+ width: 100%;
30
+ left: 0;
31
+ bottom: 0;
32
+ }
33
+
34
+ .scrollbar-v-up, .scrollbar-v-down, .scrollbar-h-up, .scrollbar-h-down, .scrollbar-line-v-btn, .scrollbar-line-h-btn {
35
+ cursor: pointer;
36
+ position: absolute;
37
+ .scrollbar-button;
38
+ }
39
+
40
+ .scrollbar-line-v-btn, .scrollbar-line-h-btn {
41
+ &:hover {
42
+ background-color: #f0f0f0;
43
+ }
44
+ }
45
+
46
+ .scrollbar-v-up, .scrollbar-h-up {
47
+ width: 15px;
48
+ height: 15px;
49
+ left: 0;
50
+ top: 0;
51
+ }
52
+
53
+ .scrollbar-v-down, .scrollbar-h-down {
54
+ width: 15px;
55
+ height: 15px;
56
+ left: 0;
57
+ bottom: 0;
58
+ }
59
+
60
+ .scrollbar-h-down {
61
+ left: auto;
62
+ right: 0;
63
+ }
64
+
65
+ .scrollbar-line-v, .scrollbar-line-h {
66
+ position: absolute;
67
+ z-index: 3;
68
+ }
69
+
70
+ .scrollbar-line-v {
71
+ width: 100%;
72
+ left: 0;
73
+ top: 15px;
74
+ }
75
+
76
+ .scrollbar-line-h {
77
+ height: 15px;
78
+ left: 15px;
79
+ top: 0;
80
+ }
81
+
82
+ .scrollbar-line-v-btn {
83
+ width: 100%;
84
+ left: 0 !important;
85
+ top: 0;
86
+ }
87
+
88
+ .scrollbar-line-h-btn {
89
+ height: 100%;
90
+ left: 0;
91
+ top: 0 !important;
92
+ }
93
+
94
+ .scrollbar-both {
95
+ position: absolute;
96
+ width: 15px;
97
+ height: 15px;
98
+ right: 0;
99
+ bottom: 0;
100
+ }
101
+
102
+ .scrollbar-line-h, .scrollbar-line-v, .scrollbar-both {
103
+ background-color: #f3f3f3;
104
+ }
105
+
106
+ .scrollbar-v-up, .scrollbar-v-down, .scrollbar-h-up, .scrollbar-h-down {
107
+ &:before {
108
+ position: absolute;
109
+ content: "";
110
+ font-family: @sysIconFontName;
111
+ font-size: 14px;
112
+ }
113
+ }
114
+
115
+ .scrollbar-v-up {
116
+ &:before {
117
+ content: "\e010";
118
+ }
119
+ }
120
+
121
+ .scrollbar-v-down {
122
+ &:before {
123
+ content: "\e012";
124
+ }
125
+ }
126
+
127
+ .scrollbar-h-up {
128
+ &:before {
129
+ content: "\e010";
130
+ margin-top: -1px;
131
+ .rotate(-90deg);
132
+ }
133
+ }
134
+
135
+ .scrollbar-h-down {
136
+ &:before {
137
+ content: "\e010";
138
+ margin-top: -1px;
139
+ .rotate(90deg);
140
+ }
141
+ }
@@ -0,0 +1,158 @@
1
+ .sidebar {
2
+ margin: 0;
3
+ padding: 0;
4
+ background-color: #3D3D3D;
5
+ width: 100%;
6
+ height: 100%;
7
+
8
+ & > ul {
9
+ margin: 0;
10
+ padding: 0;
11
+ list-style: none;
12
+
13
+ li {
14
+ display: block;
15
+ border: 0;
16
+ border-bottom: 1px #5c5c5c solid;
17
+ position: relative;
18
+
19
+ &.title {
20
+ padding: 20px 20px 10px 20px;
21
+ .subheader-secondary;
22
+ color: @white;
23
+ }
24
+
25
+ a {
26
+ display: block;
27
+ position: relative;
28
+ padding: 10px 20px;
29
+ text-decoration: none;
30
+ color: @grayLighter;
31
+ background-color: #3D3D3D;
32
+
33
+ &:hover {
34
+ background-color: #262626;
35
+ color: @white;
36
+ }
37
+
38
+ &.dropdown-toggle {
39
+ &:after {
40
+ right: 10px;
41
+ bottom: 5px;
42
+ }
43
+ }
44
+
45
+ [class*="icon-"] {
46
+ margin-right: 15px;
47
+ }
48
+ }
49
+
50
+ &.stick {
51
+ position: relative;
52
+ &:before {
53
+ content: "";
54
+ position: absolute;
55
+ width: 7px;
56
+ height: 40px;
57
+ left: -7px;
58
+ text-indent: -9999px;
59
+ border-top-left-radius: 5px;
60
+ border-bottom-left-radius: 5px;
61
+ background-color: inherit;
62
+ }
63
+ }
64
+ &.disabled {
65
+ a {
66
+ background-color: lighten(#3D3D3D, 30%);
67
+ cursor: default;
68
+ color: @gray;
69
+ }
70
+ }
71
+ &.active {
72
+ a {
73
+ background-color: @darkRed;
74
+ color: @white;
75
+ }
76
+ }
77
+ }
78
+
79
+ ul {
80
+ .dropdown-menu;
81
+ box-shadow: none;
82
+ position: relative !important;
83
+ background-color: lighten(#262626, 75%);
84
+ min-width: 100%;
85
+ li {
86
+ border: 0;
87
+ a {
88
+ background-color: lighten(#262626, 75%);
89
+ }
90
+ &.divider {
91
+ background-color: lighten(#5c5c5c, 40%);
92
+ &:hover {
93
+ background-color: lighten(#5c5c5c, 40%);
94
+ }
95
+ }
96
+ &.disabled {
97
+ a {
98
+ color: @grayLight;
99
+ &:hover {
100
+ color: @grayLight;
101
+ }
102
+ }
103
+ }
104
+ }
105
+
106
+ &.open {
107
+ display: block;
108
+ }
109
+ }
110
+ }
111
+ }
112
+
113
+ .sidebar.light {
114
+ background-color: @white;
115
+ .border;
116
+ li {
117
+ border-bottom-color: @grayLighter;
118
+
119
+ &.title {
120
+ color: @dark;
121
+ }
122
+
123
+ a {
124
+ color: @dark;
125
+ background-color: @white;
126
+
127
+ &:hover {
128
+ background-color: @blue;
129
+ }
130
+ }
131
+
132
+ ul {
133
+ background-color: @white;
134
+ border: 1px transparent solid;
135
+ }
136
+
137
+ .divider {
138
+ background-color: @grayLighter;
139
+ &:hover {
140
+ background-color: @grayLighter;
141
+ }
142
+ }
143
+
144
+ &.disabled {
145
+ a {
146
+ background-color: @white;
147
+ cursor: default;
148
+ color: @grayLight;
149
+ }
150
+ }
151
+ &.active {
152
+ a {
153
+ background-color: @cyan;
154
+ color: @white;
155
+ }
156
+ }
157
+ }
158
+ }
@@ -0,0 +1,106 @@
1
+ .slider {
2
+ height: 12px;
3
+ width: auto;
4
+ position: relative;
5
+ background-color: @sliderBackgroundColor;
6
+ margin-bottom: 10px;
7
+
8
+ .marker {
9
+ height: 12px;
10
+ width: 12px;
11
+ cursor: pointer;
12
+ position: absolute;
13
+ top: 0;
14
+ left: 0;
15
+ background-color: @sliderMarkerColor;
16
+ z-index: 2;
17
+
18
+ &:focus, &:active, &hover {
19
+ outline: 2px @red solid;
20
+ }
21
+ }
22
+
23
+ .complete {
24
+ height: 100%;
25
+ width: auto;
26
+ background-color: @sliderCompleteColor;
27
+ z-index: 1;
28
+ transition: background .3s ease;
29
+ }
30
+
31
+ &>.hint {
32
+ background-color: @white;
33
+ position: absolute;
34
+ z-index: 3;
35
+ border: 1px #ccc solid;
36
+ padding: 2px 4px;
37
+ top: -40px;
38
+ min-width: 30px;
39
+ text-align: center;
40
+ #font > .segoe-light;
41
+ font-size: 14px;
42
+ .shadow;
43
+ display: none;
44
+ }
45
+
46
+ &.permanent-hint {
47
+ & > .hint {
48
+ display: block;
49
+ }
50
+ }
51
+
52
+ &.hint-bottom {
53
+ .hint {
54
+ top: 100%;
55
+ margin-top: 5px;
56
+ }
57
+ }
58
+
59
+ &.vertical {
60
+ height: 100px;
61
+ width: 12px;
62
+
63
+ .marker {
64
+ left: 0 !important;
65
+ }
66
+
67
+ .complete {
68
+ position: absolute;
69
+ height: auto;
70
+ width: 100% !important;
71
+ bottom: 0;
72
+ left: 0;
73
+ }
74
+
75
+ .hint {
76
+ left: 100%;
77
+ margin-left: 5px;
78
+ margin-top: 0;
79
+ }
80
+
81
+ &.hint-left {
82
+ .hint {
83
+ left: -40px;
84
+ }
85
+ }
86
+ }
87
+
88
+ &:hover {
89
+ .complete {
90
+ background-color: @sliderCompleteHoverColor;
91
+ }
92
+ }
93
+
94
+ &:active, &:active + .marker:active {
95
+ .complete {
96
+ background-color: @sliderCompleteHoverColor;
97
+ }
98
+ }
99
+
100
+ &.place-left {
101
+ margin-right: 20px;
102
+ }
103
+ &.place-right {
104
+ margin-left: 20px;
105
+ }
106
+ }
@@ -0,0 +1,80 @@
1
+ .stepper {
2
+ margin: 10px 0;
3
+ .clearfix;
4
+
5
+ & > ul {
6
+ counter-reset:li;
7
+ border-top: 1px @dark dotted;
8
+ position: relative;
9
+ padding: 0;
10
+ margin: 30px 0;
11
+ width: 100%;
12
+
13
+ li {
14
+ list-style: none;
15
+ float: left;
16
+ width: 2em;
17
+ height: 2em;
18
+ margin-top: -1em;
19
+ position: absolute;
20
+ //border: 1px red dotted;
21
+ left: 0;
22
+ background:#666;
23
+ cursor: pointer;
24
+
25
+ &:before {
26
+ content:counter(li);
27
+ counter-increment:li;
28
+ position:absolute;
29
+ box-sizing:border-box;
30
+ padding:.3em 10px;
31
+ color:#fff;
32
+ font-weight:bold;
33
+ font-family:"Helvetica Neue", Arial, sans-serif;
34
+ font-size: 1.5rem;
35
+ text-align:center;
36
+ }
37
+
38
+ &:hover {
39
+ background-color: @grayLight;
40
+ }
41
+
42
+ &.current, &.complete {
43
+ transition: all 0.2s ease;
44
+ }
45
+
46
+ &.current {
47
+ background-color: @cyan;
48
+ //.scale(1.5);
49
+
50
+ &:hover {
51
+ background-color: @lighterBlue;
52
+ }
53
+ }
54
+ &.complete {
55
+ background-color: @green;
56
+
57
+ &:before {
58
+ }
59
+
60
+ &:hover {
61
+ background-color: @lightGreen;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ &.rounded {
67
+ li {
68
+ border-radius: 100%;
69
+ }
70
+ }
71
+ &.diamond {
72
+ li {
73
+ .rotate(45deg);
74
+ &:before {
75
+ .rotate(-45deg);
76
+ }
77
+ }
78
+
79
+ }
80
+ }