semantic-ui-sass 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,15 +14,6 @@
14
14
  $.fn.nag = function(parameters) {
15
15
  var
16
16
  $allModules = $(this),
17
- settings = $.extend(true, {}, $.fn.nag.settings, parameters),
18
-
19
- className = settings.className,
20
- selector = settings.selector,
21
- error = settings.error,
22
- namespace = settings.namespace,
23
-
24
- eventNamespace = '.' + namespace,
25
- moduleNamespace = namespace + '-module',
26
17
  moduleSelector = $allModules.selector || '',
27
18
 
28
19
  time = new Date().getTime(),
@@ -36,6 +27,16 @@ $.fn.nag = function(parameters) {
36
27
  $(this)
37
28
  .each(function() {
38
29
  var
30
+ settings = $.extend(true, {}, $.fn.nag.settings, parameters),
31
+
32
+ className = settings.className,
33
+ selector = settings.selector,
34
+ error = settings.error,
35
+ namespace = settings.namespace,
36
+
37
+ eventNamespace = '.' + namespace,
38
+ moduleNamespace = namespace + '-module',
39
+
39
40
  $module = $(this),
40
41
 
41
42
  $close = $module.find(selector.close),
@@ -16,10 +16,6 @@ $.fn.popup = function(parameters) {
16
16
  $allModules = $(this),
17
17
  $document = $(document),
18
18
 
19
- settings = ( $.isPlainObject(parameters) )
20
- ? $.extend(true, {}, $.fn.popup.settings, parameters)
21
- : $.fn.popup.settings,
22
-
23
19
  moduleSelector = $allModules.selector || '',
24
20
 
25
21
  time = new Date().getTime(),
@@ -34,6 +30,19 @@ $.fn.popup = function(parameters) {
34
30
  $allModules
35
31
  .each(function() {
36
32
  var
33
+ settings = ( $.isPlainObject(parameters) )
34
+ ? $.extend(true, {}, $.fn.popup.settings, parameters)
35
+ : $.fn.popup.settings,
36
+
37
+ selector = settings.selector,
38
+ className = settings.className,
39
+ error = settings.error,
40
+ metadata = settings.metadata,
41
+ namespace = settings.namespace,
42
+
43
+ eventNamespace = '.' + settings.namespace,
44
+ moduleNamespace = settings.namespace + '-module',
45
+
37
46
  $module = $(this),
38
47
 
39
48
  $window = $(window),
@@ -44,15 +53,6 @@ $.fn.popup = function(parameters) {
44
53
 
45
54
  searchDepth = 0,
46
55
 
47
- eventNamespace = '.' + settings.namespace,
48
- moduleNamespace = settings.namespace + '-module',
49
-
50
- selector = settings.selector,
51
- className = settings.className,
52
- error = settings.error,
53
- metadata = settings.metadata,
54
- namespace = settings.namespace,
55
-
56
56
  element = this,
57
57
  instance = $module.data(moduleNamespace),
58
58
  module
@@ -155,18 +155,18 @@ $.fn.popup = function(parameters) {
155
155
  .html(html)
156
156
  ;
157
157
  if(settings.inline) {
158
- module.verbose('Inserting popup element inline');
158
+ module.verbose('Inserting popup element inline', $popup);
159
159
  $popup
160
160
  .insertAfter($module)
161
161
  ;
162
162
  }
163
163
  else {
164
- module.verbose('Appending popup element to body');
164
+ module.verbose('Appending popup element to body', $popup);
165
165
  $popup
166
166
  .appendTo( $('body') )
167
167
  ;
168
168
  }
169
- $.proxy(settings.onInit, $popup)();
169
+ $.proxy(settings.onCreate, $popup)();
170
170
  }
171
171
  else {
172
172
  module.error(error.content);
@@ -361,8 +361,9 @@ $.fn.popup = function(parameters) {
361
361
  });
362
362
  // tentatively place on stage
363
363
  $popup
364
- .attr('class', position + ' ' + className.popup + ' ' + className.loading)
365
364
  .css(positioning)
365
+ .removeClass(className.position)
366
+ .addClass(position)
366
367
  ;
367
368
  // check if is offstage
368
369
  offstagePosition = module.get.offstagePosition();
@@ -397,9 +398,6 @@ $.fn.popup = function(parameters) {
397
398
  $module
398
399
  .addClass(className.visible)
399
400
  ;
400
- $popup
401
- .removeClass(className.loading)
402
- ;
403
401
  if(settings.transition && $.fn.transition !== undefined) {
404
402
  $popup
405
403
  .transition(settings.transition + ' in', settings.duration)
@@ -451,9 +449,6 @@ $.fn.popup = function(parameters) {
451
449
  ;
452
450
  }
453
451
  $.proxy(settings.onHide, $popup)();
454
- if(!settings.inline) {
455
- module.remove();
456
- }
457
452
  },
458
453
 
459
454
  reset: function() {
@@ -462,6 +457,9 @@ $.fn.popup = function(parameters) {
462
457
  .attr('style', '')
463
458
  .removeAttr('style')
464
459
  ;
460
+ if(!settings.inline) {
461
+ module.remove();
462
+ }
465
463
  },
466
464
 
467
465
  gracefully: {
@@ -660,7 +658,7 @@ $.fn.popup.settings = {
660
658
  performance : true,
661
659
  namespace : 'popup',
662
660
 
663
- onInit : function(){},
661
+ onCreate : function(){},
664
662
  onShow : function(){},
665
663
  onHide : function(){},
666
664
 
@@ -702,7 +700,8 @@ $.fn.popup.settings = {
702
700
  className : {
703
701
  popup : 'ui popup',
704
702
  visible : 'visible',
705
- loading : 'loading'
703
+ loading : 'loading',
704
+ position : 'top left center bottom right'
706
705
  },
707
706
 
708
707
  selector : {
@@ -16,17 +16,6 @@ $.fn.rating = function(parameters) {
16
16
  $allModules = $(this),
17
17
  moduleSelector = $allModules.selector || '',
18
18
 
19
- settings = $.extend(true, {}, $.fn.rating.settings, parameters),
20
-
21
- namespace = settings.namespace,
22
- className = settings.className,
23
- metadata = settings.metadata,
24
- selector = settings.selector,
25
- error = settings.error,
26
-
27
- eventNamespace = '.' + namespace,
28
- moduleNamespace = 'module-' + namespace,
29
-
30
19
  time = new Date().getTime(),
31
20
  performance = [],
32
21
 
@@ -38,11 +27,22 @@ $.fn.rating = function(parameters) {
38
27
  $allModules
39
28
  .each(function() {
40
29
  var
41
- $module = $(this),
42
- $icon = $module.find(selector.icon),
30
+ settings = $.extend(true, {}, $.fn.rating.settings, parameters),
31
+
32
+ namespace = settings.namespace,
33
+ className = settings.className,
34
+ metadata = settings.metadata,
35
+ selector = settings.selector,
36
+ error = settings.error,
37
+
38
+ eventNamespace = '.' + namespace,
39
+ moduleNamespace = 'module-' + namespace,
40
+
41
+ $module = $(this),
42
+ $icon = $module.find(selector.icon),
43
43
 
44
- element = this,
45
- instance = $module.data(moduleNamespace),
44
+ element = this,
45
+ instance = $module.data(moduleNamespace),
46
46
  module
47
47
  ;
48
48
 
@@ -14,16 +14,6 @@
14
14
  $.fn.search = function(source, parameters) {
15
15
  var
16
16
  $allModules = $(this),
17
- settings = $.extend(true, {}, $.fn.search.settings, parameters),
18
-
19
-
20
- className = settings.className,
21
- selector = settings.selector,
22
- error = settings.error,
23
- namespace = settings.namespace,
24
-
25
- eventNamespace = '.' + namespace,
26
- moduleNamespace = namespace + '-module',
27
17
  moduleSelector = $allModules.selector || '',
28
18
 
29
19
  time = new Date().getTime(),
@@ -37,15 +27,25 @@ $.fn.search = function(source, parameters) {
37
27
  $(this)
38
28
  .each(function() {
39
29
  var
40
- $module = $(this),
41
- $prompt = $module.find(selector.prompt),
42
- $searchButton = $module.find(selector.searchButton),
43
- $results = $module.find(selector.results),
44
- $result = $module.find(selector.result),
45
- $category = $module.find(selector.category),
46
-
47
- element = this,
48
- instance = $module.data(moduleNamespace),
30
+ settings = $.extend(true, {}, $.fn.search.settings, parameters),
31
+
32
+ className = settings.className,
33
+ selector = settings.selector,
34
+ error = settings.error,
35
+ namespace = settings.namespace,
36
+
37
+ eventNamespace = '.' + namespace,
38
+ moduleNamespace = namespace + '-module',
39
+
40
+ $module = $(this),
41
+ $prompt = $module.find(selector.prompt),
42
+ $searchButton = $module.find(selector.searchButton),
43
+ $results = $module.find(selector.results),
44
+ $result = $module.find(selector.result),
45
+ $category = $module.find(selector.category),
46
+
47
+ element = this,
48
+ instance = $module.data(moduleNamespace),
49
49
 
50
50
  module
51
51
  ;
@@ -15,19 +15,6 @@ $.fn.shape = function(parameters) {
15
15
  var
16
16
  $allModules = $(this),
17
17
 
18
- moduleSelector = $allModules.selector || '',
19
- settings = $.extend(true, {}, $.fn.shape.settings, parameters),
20
-
21
- // internal aliases
22
- namespace = settings.namespace,
23
- selector = settings.selector,
24
- error = settings.error,
25
- className = settings.className,
26
-
27
- // define namespaces for modules
28
- eventNamespace = '.' + namespace,
29
- moduleNamespace = 'module-' + namespace,
30
-
31
18
  time = new Date().getTime(),
32
19
  performance = [],
33
20
 
@@ -40,6 +27,19 @@ $.fn.shape = function(parameters) {
40
27
  $allModules
41
28
  .each(function() {
42
29
  var
30
+ moduleSelector = $allModules.selector || '',
31
+ settings = $.extend(true, {}, $.fn.shape.settings, parameters),
32
+
33
+ // internal aliases
34
+ namespace = settings.namespace,
35
+ selector = settings.selector,
36
+ error = settings.error,
37
+ className = settings.className,
38
+
39
+ // define namespaces for modules
40
+ eventNamespace = '.' + namespace,
41
+ moduleNamespace = 'module-' + namespace,
42
+
43
43
  // selector cache
44
44
  $module = $(this),
45
45
  $sides = $module.find(selector.sides),
@@ -14,18 +14,6 @@
14
14
  $.fn.sidebar = function(parameters) {
15
15
  var
16
16
  $allModules = $(this),
17
-
18
- settings = ( $.isPlainObject(parameters) )
19
- ? $.extend(true, {}, $.fn.sidebar.settings, parameters)
20
- : $.fn.sidebar.settings,
21
-
22
- selector = settings.selector,
23
- className = settings.className,
24
- namespace = settings.namespace,
25
- error = settings.error,
26
-
27
- eventNamespace = '.' + namespace,
28
- moduleNamespace = 'module-' + namespace,
29
17
  moduleSelector = $allModules.selector || '',
30
18
 
31
19
  time = new Date().getTime(),
@@ -40,6 +28,18 @@ $.fn.sidebar = function(parameters) {
40
28
  $allModules
41
29
  .each(function() {
42
30
  var
31
+ settings = ( $.isPlainObject(parameters) )
32
+ ? $.extend(true, {}, $.fn.sidebar.settings, parameters)
33
+ : $.fn.sidebar.settings,
34
+
35
+ selector = settings.selector,
36
+ className = settings.className,
37
+ namespace = settings.namespace,
38
+ error = settings.error,
39
+
40
+ eventNamespace = '.' + namespace,
41
+ moduleNamespace = 'module-' + namespace,
42
+
43
43
  $module = $(this),
44
44
 
45
45
  $body = $('body'),
@@ -606,40 +606,40 @@ $.fn.transition = function() {
606
606
  $.fn.transition.settings = {
607
607
 
608
608
  // module info
609
- name : 'Transition',
609
+ name : 'Transition',
610
610
 
611
611
  // debug content outputted to console
612
- debug : true,
612
+ debug : false,
613
613
 
614
614
  // verbose debug output
615
- verbose : true,
615
+ verbose : true,
616
616
 
617
617
  // performance data output
618
- performance : true,
618
+ performance : true,
619
619
 
620
620
  // event namespace
621
- namespace : 'transition',
621
+ namespace : 'transition',
622
622
 
623
623
  // animation complete event
624
- complete : function() {},
624
+ complete : function() {},
625
625
 
626
626
  // animation duration
627
- animation : 'fade',
628
- duration : '700ms',
627
+ animation : 'fade',
628
+ duration : '700ms',
629
629
 
630
630
  // queue up animations
631
- queue : true,
631
+ queue : true,
632
632
 
633
- className : {
634
- transition : 'ui transition',
633
+ className : {
635
634
  animating : 'animating',
636
- looping : 'looping',
637
- loading : 'loading',
638
635
  disabled : 'disabled',
639
636
  hidden : 'hidden',
640
- visible : 'visible',
641
637
  inward : 'in',
642
- outward : 'out'
638
+ loading : 'loading',
639
+ looping : 'looping',
640
+ outward : 'out',
641
+ transition : 'ui transition',
642
+ visible : 'visible'
643
643
  },
644
644
 
645
645
  // possible errors
@@ -15,10 +15,6 @@ $.fn.video = function(parameters) {
15
15
  var
16
16
  $allModules = $(this),
17
17
 
18
- settings = ( $.isPlainObject(parameters) )
19
- ? $.extend(true, {}, $.fn.video.settings, parameters)
20
- : $.fn.video.settings,
21
-
22
18
  moduleSelector = $allModules.selector || '',
23
19
 
24
20
  time = new Date().getTime(),
@@ -28,21 +24,25 @@ $.fn.video = function(parameters) {
28
24
  methodInvoked = (typeof query == 'string'),
29
25
  queryArguments = [].slice.call(arguments, 1),
30
26
 
31
- selector = settings.selector,
32
- className = settings.className,
33
- error = settings.error,
34
- metadata = settings.metadata,
35
- namespace = settings.namespace,
36
-
37
- eventNamespace = '.' + namespace,
38
- moduleNamespace = namespace + '-module',
39
-
40
27
  invokedResponse
41
28
  ;
42
29
 
43
30
  $allModules
44
31
  .each(function() {
45
32
  var
33
+ settings = ( $.isPlainObject(parameters) )
34
+ ? $.extend(true, {}, $.fn.video.settings, parameters)
35
+ : $.fn.video.settings,
36
+
37
+ selector = settings.selector,
38
+ className = settings.className,
39
+ error = settings.error,
40
+ metadata = settings.metadata,
41
+ namespace = settings.namespace,
42
+
43
+ eventNamespace = '.' + namespace,
44
+ moduleNamespace = namespace + '-module',
45
+
46
46
  $module = $(this),
47
47
  $placeholder = $module.find(selector.placeholder),
48
48
  $playButton = $module.find(selector.playButton),
@@ -139,52 +139,68 @@ body > .ui.grid {
139
139
  --------------------*/
140
140
 
141
141
  /* Sizing Combinations */
142
- .ui.grid .one.wide.column {
142
+ .ui.grid > .row > .one.wide.column,
143
+ .ui.grid > .one.wide.column {
143
144
  width: 6.25%;
144
145
  }
145
- .ui.grid .two.wide.column {
146
+ .ui.grid > .row > .two.wide.column,
147
+ .ui.grid > .two.wide.column {
146
148
  width: 12.5%;
147
149
  }
148
- .ui.grid .three.wide.column {
150
+ .ui.grid > .row > .three.wide.column,
151
+ .ui.grid > .three.wide.column {
149
152
  width: 18.75%;
150
153
  }
151
- .ui.grid .four.wide.column {
154
+ .ui.grid > .row > .four.wide.column,
155
+ .ui.grid > .four.wide.column {
152
156
  width: 25%;
153
157
  }
154
- .ui.grid .five.wide.column {
158
+ .ui.grid > .row > .five.wide.column,
159
+ .ui.grid > .five.wide.column {
155
160
  width: 31.25%;
156
161
  }
157
- .ui.grid .six.wide.column {
162
+ .ui.grid > .row > .six.wide.column,
163
+ .ui.grid > .six.wide.column {
158
164
  width: 37.5%;
159
165
  }
160
- .ui.grid .seven.wide.column {
166
+ .ui.grid > .row > .seven.wide.column,
167
+ .ui.grid > .seven.wide.column {
161
168
  width: 43.75%;
162
169
  }
163
- .ui.grid .eight.wide.column {
170
+ .ui.grid > .row > .eight.wide.column,
171
+ .ui.grid > .eight.wide.column {
164
172
  width: 50%;
165
173
  }
166
- .ui.grid .nine.wide.column {
174
+ .ui.grid > .row > .nine.wide.column,
175
+ .ui.grid > .nine.wide.column {
167
176
  width: 56.25%;
168
177
  }
169
- .ui.grid .ten.wide.column {
178
+ .ui.grid > .row > .ten.wide.column,
179
+ .ui.grid > .ten.wide.column {
170
180
  width: 62.5%;
171
181
  }
172
- .ui.grid .eleven.wide.column {
182
+ .ui.grid > .row > .eleven.wide.column,
183
+ .ui.grid > .eleven.wide.column {
173
184
  width: 68.75%;
174
185
  }
175
- .ui.grid .twelve.wide.column {
186
+ .ui.grid > .row > .twelve.wide.column,
187
+ .ui.grid > .twelve.wide.column {
176
188
  width: 75%;
177
189
  }
178
- .ui.grid .thirteen.wide.column {
190
+ .ui.grid > .row > .thirteen.wide.column,
191
+ .ui.grid > .thirteen.wide.column {
179
192
  width: 81.25%;
180
193
  }
181
- .ui.grid .fourteen.wide.column {
194
+ .ui.grid > .row > .fourteen.wide.column,
195
+ .ui.grid > .fourteen.wide.column {
182
196
  width: 87.5%;
183
197
  }
184
- .ui.grid .fifteen.wide.column {
198
+ .ui.grid > .row > .fifteen.wide.column,
199
+ .ui.grid > .fifteen.wide.column {
185
200
  width: 93.75%;
186
201
  }
187
- .ui.grid .sixteen.wide.column {
202
+ .ui.grid > .row > .sixteen.wide.column,
203
+ .ui.grid > .sixteen.wide.column {
188
204
  width: 100%;
189
205
  }
190
206