titon-toolkit 1.4.1 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 195a933c7b9058f27df45b0d592f37a9932f5fd4
4
- data.tar.gz: b58d6d2050d5a15b8213f1205145852c30b9ec98
3
+ metadata.gz: 959fa16dce559a416ede9981488647339afaeaf0
4
+ data.tar.gz: 4b7341c9f06fe1dff09ad129a32c333b3309a7fb
5
5
  SHA512:
6
- metadata.gz: c26c3be835025c74083bc97cd9574a120f252f44ca84789692199232512db88f159b3278c1242163adb3ba9e7ca5c4b0b49f096279fe46c915c5b29b4b74f7ec
7
- data.tar.gz: 136fa057c8c1c8c5b041a9cf01f878571c1bbf3c0ca92e31140f98d76320ae8416039c13be5829b8560a90796299d550ecc5baff2a5d5ec506802a7c5ffd7a5d
6
+ metadata.gz: 3b3d93fd3b1ac523ef602fd3e588246716c622064ea41350a7c3512394665513c46357a90e8717112f0f20c86d26b785cd0e578cddbfeacf51a673a4c1e7f8f8
7
+ data.tar.gz: 1e6d8f61a45f2938e3bdf74a46e0c959ed9cc48e211f6f8c6c57c9e113a620711a924ab354f68bb2faf8286d4c20252f75d79e741321ba907a6947dad20696f1
data/changelog.md CHANGED
@@ -2,91 +2,46 @@
2
2
 
3
3
  Older versions can be found in the documentation changelogs.
4
4
 
5
- ## 1.4.1 ##
6
- * Added `opacity: 0` to `.hide` for easier fade transitions
7
- * Improved fade transitions within all components
8
- * Fixed a bug with swipe not working on Android
9
- * Fixed a bug with certain elements not showing in iOS
10
- * OffCanvas
11
- * Added `primary` and `secondary` properties
12
- * Added `stopScroll` option
13
- * Popover, Tooltip
14
- * Fixed a bug where the arrow was being removed before the transition ended
15
- * Type Ahead
16
- * Added `$typeAhead-transition`
5
+ ## 1.5.0 ##
6
+ This minor release includes a new responsive option, a major overhaul of the Carousel component,
7
+ and a complete refactor of the demo system. It also marks the final minor release before the 2.0 major version.
17
8
 
18
- ## 1.4.0 ##
19
- This minor release includes 3 new components, a new `destroy()` method,
20
- a cleanup of element and event options, expanded documentation, and a handful of optimization improvements.
21
-
22
- * Usage license has been updated to BSD-3 from BSD-2
23
- * MooTools support is slowly being phased out and new components are not supported
24
- * Added new Divider component for separating content
25
- * Added new Off Canvas component for displaying sidebars outside the viewport
26
- * Added new Toast component for notifying users with timed messages
27
- * Added `.no-transition` class to disable transitions
28
- * Added `.sr-only` class for screen readers
29
- * Added `suppression` setting for swipe events
30
- * Fixed a bug with `swipe` events where select dropdowns would stop working
31
- * Fixed a bug with `swipe` events where page scrolling gets disabled
32
- * Fixed a bug with certain fade animations
33
- * Fixed a bug where certain Sass variables were not customizable
34
- * Removed `$shape-square-class` Sass variable
35
- * Removed `*Element` options (CSS classes are now hardcoded)
36
- * Removed `*Event` options (CSS classes are now hardcoded)
37
- * Toolkit
38
- * Added `toolkit(component, method, args)` support for triggering methods on the class instance
39
- * Added `transitionEnd` flag
40
- * Refactored `toolkit()` to return a single instance instead of multiple instances
41
- * Removed `i()` and `item()` jQuery collection methods
42
- * Component
43
- * Added a `initialize()` method that is triggered within all constructors
44
- * Added a `destroy()` method that will unbind all events, remove elements, and delete the instance
45
- * Added automatic `this` scope binding to all methods on a class instance
46
- * Refactored `bindEvents()` with an easier lightweight syntax
47
- * Accordion
48
- * Removed `headerElement`, `sectionElement` options
49
- * Blackout
50
- * Fixed incorrect `.loader-spinner` class
9
+ * MooTools support is slowly being phased out and JavaScript changes have not been ported
10
+ * Added `$.fn.transitionend()` which will set a `transitionend` event if transitions have been defined on the element,
11
+ else it will execute the callback immediately
12
+ * Added a global `responsive` component option that allows for different options to be set depending on breakpoints
13
+ * Updated `$.fn.positionTo()` to re-position accordingly when a mouse event is being used as the offset
14
+ * Button Group
15
+ * Fixed a bug with incorrect button widths when the `vertical` modifier is used
51
16
  * Carousel
52
- * Removed `nextButton`, `prevButton` properties
53
- * Removed `itemsElement`, `tabsElement`, `nextElement`, `prevElement` options
54
- * Code
55
- * Added overflow scrolling for touch devices
56
- * Flyout
57
- * Disabled automatically for touch devices
58
- * Removed `contentElement` option
59
- * Input
60
- * Added `hideOpened` option to selects to hide other opened selects
61
- * Updated `native` option value to be `Toolkit.isTouch` by default
17
+ * Added a `container` property which is the parent element for `items`
18
+ * Added a `animating` property that represents whether the items are currently animating
19
+ * Added a `calculate()` method that resizes the carousel based on the window size and defined options
20
+ * Added a `infinite` option which allows for infinite cycling in either direction
21
+ * Added a `loop` option which rewinds the cycle pointer to the beginning or end when the opposite edge is reached
22
+ (only applicable when `infinite` is disabled)
23
+ * Added a `reverse` option to reverse the automatic cycle direction
24
+ * Added a `itemsToShow` option which is used for displaying a specific number of items at once
25
+ * Added a `itemsToCycle` option which is used as the number of items to move when a cycle occurs
26
+ * Added a `defaultIndex` option which displays that item on initial page load
27
+ * Added `.no-next` and `.no-prev` classes to the component to hide navigation buttons
28
+ * Added `.carousel-stop` and `.carousel-start` as elements to delegate events to
29
+ * Removed `.carousel-caption` styles
30
+ * Form
31
+ * Added `.fields` which can be coupled with list elements to mimic `.field`
62
32
  * Lazy Load
63
- * Removed `isLoaded` property
64
- * Mask
65
- * Added `selector` option to bind toggle events to
66
- * Renamed `.maskable` to `.mask-target`
67
- * Removed `messageElement` option
68
- * Modal
69
- * Added `$modal-mobile-breakpoint` to apply mobile widths to the modal
70
- * Added `submit()` method for submitting forms
71
- * Updated with new markup
72
- * Renamed `.modal-event-submit` to `.modal-submit`
73
- * Renamed `.modal-event-close` to `.modal-hide`
74
- * Removed `.modal-handle` within the template
75
- * Removed `elementBody` property
76
- * Removed `contentElement`, `closeElement`, `closeEvent`, `submitEvent` options
77
- * Removed `sticky-*` animations
78
- * Popover, Tooltip
79
- * Removed `titleElement`, `contentElement` options
33
+ * Fixed a bug where offsets were incorrect when the parent with overflow was not the direct parent
34
+ * Matrix
35
+ * Fixed a bug where multiple spanning items break when the span is larger than the column count
36
+ * Updated image pre-loading to use deferred promises
37
+ * Removed `imagesLoaded` property
38
+ * Removed `onLoad` method
39
+ * Pin
40
+ * Fixed a bug where `yOffset` was not being applied for `fixed` pins
41
+ * Popover
42
+ * Fixed a bug when no options were passed to the constructor
80
43
  * Showcase
81
- * Updated with new markup
82
- * Renamed `.showcase-event-prev` to `.showcase-prev`
83
- * Renamed `.showcase-event-next` to `.showcase-next`
84
- * Renamed `.showcase-event-close` to `.showcase-hide`
85
- * Renamed `.showcase-event-jump` to `.showcase-tabs a`
86
- * Removed `nextButton`, `prevButton` properties
87
- * Removed `transition`, `itemsElement`, `tabsElement`, `prevElement`, `nextElement`,
88
- `closeEvent`, `jumpEvent`, `prevEvent`, `nextEvent` options
89
- * Tabs
90
- * Removed `navElement`, `sectionElement` options
91
- * Type Ahead
92
- * Removed `contentElement` option
44
+ * Updated item cycling to use deferred promises
45
+ * Added a `animating` property that represents whether the items are currently animating
46
+ * Fixed a bug where gutter was not being applied correctly
47
+ * Fixed a bug where the incorrect item was being opened when a grouping is used
data/readme.md CHANGED
@@ -6,7 +6,7 @@
6
6
  \/_/ \/_____/\/_____/\/_____/\/_/\/_/ \/_/ \/_/
7
7
  ```
8
8
 
9
- # Toolkit v1.4.1 #
9
+ # Toolkit v1.5.0 #
10
10
 
11
11
  Titon Toolkit is a collection of very powerful user interface components and utility classes
12
12
  for the responsive, mobile, and modern web. Each component represents encapsulated HTML, CSS,
data/roadmap.md CHANGED
@@ -2,17 +2,6 @@
2
2
 
3
3
  All releases will contain bug fixing and polishing for current features.
4
4
 
5
- ### 1.5.0 ###
6
- * Add more features support to Carousel.
7
- * Use pixels instead of percentages for transitions.
8
- * Add support for multiple items displayed at once.
9
- * Add support for variable amount of items being cycled at once.
10
- * Add support for infinite scrolling (move items around).
11
- * Add deferred/promise integration.
12
- * Make nested menus expandable on touch devices (drop).
13
- * Rename Tabs to Tab.
14
- * Remove cookie dependency.
15
-
16
5
  ### 2.0.0 ###
17
6
  * Remove the MooTools port.
18
7
  * Remove CSS dependencies from the JS layer, use the DOM (classes vs attributes, semantic tags).
@@ -27,6 +16,8 @@ All releases will contain bug fixing and polishing for current features.
27
16
  * Refactor events for before/after conditions.
28
17
  * RTL support.
29
18
  * Add debug option.
19
+ * Rename Tabs to Tab.
20
+ * Remove cookie dependency.
30
21
  * Take Google fundamentals into consideration - https://developers.google.com/web/fundamentals/
31
22
 
32
23
  ### 3.0.0 ###
@@ -109,7 +109,7 @@ $progress-transition: .5s !default;
109
109
  $showcase-transition: $default-transition !default;
110
110
  $switch-transition: $default-transition !default;
111
111
  $toast-transition: $default-transition !default;
112
- $tooltip-transition: $default-transition !default;
112
+ $tooltip-transition: .15s !default;
113
113
  $typeAhead-transition: $default-transition !default;
114
114
 
115
115
  //-------------------- Z Index --------------------//
@@ -25,5 +25,5 @@
25
25
  position: relative;
26
26
  transition: all $accordion-transition ease-in-out;
27
27
 
28
- &.hide { max-height: 0; } // don't include on base styles
28
+ &.hide { max-height: 0; } // Don't include on base styles
29
29
  }
@@ -21,7 +21,6 @@
21
21
  .#{$vendor-prefix}loader {
22
22
  opacity: 1;
23
23
  color: #fff;
24
- transition: all $blackout-transition;
25
24
  @include position-center;
26
25
 
27
26
  > span,
@@ -66,7 +66,7 @@
66
66
  float: none;
67
67
  display: block;
68
68
  margin: -1px 0 0 0;
69
- width: auto;
69
+ width: 100%;
70
70
  max-width: 100%;
71
71
 
72
72
  &:first-child { margin-top: 0; }
@@ -10,6 +10,9 @@
10
10
  margin: 0 auto;
11
11
  text-align: left;
12
12
  position: relative;
13
+
14
+ &.no-next .#{$vendor-prefix}carousel-next { display: none; }
15
+ &.no-prev .#{$vendor-prefix}carousel-prev { display: none; }
13
16
  }
14
17
 
15
18
  .#{$vendor-prefix}carousel-items {
@@ -42,20 +45,6 @@
42
45
  }
43
46
  }
44
47
 
45
- .#{$vendor-prefix}carousel-caption {
46
- position: absolute;
47
- bottom: 0;
48
- left: 0;
49
- width: 100%;
50
- padding: $padding;
51
- color: #fff;
52
- background: black(.7);
53
-
54
- @include in-small {
55
- @include size-small;
56
- }
57
- }
58
-
59
48
  .#{$vendor-prefix}carousel-prev,
60
49
  .#{$vendor-prefix}carousel-next {
61
50
  display: block;
@@ -73,7 +73,9 @@ $tooltip-arrow-width-double: ($tooltip-arrow-width * 2);
73
73
 
74
74
  .#{$vendor-prefix}tooltip,
75
75
  .#{$vendor-prefix}popover {
76
- transition: opacity $tooltip-transition, visibility $tooltip-transition, transform $tooltip-transition;
76
+ #{join-classes($popover-tooltip-animation)} {
77
+ transition: opacity $tooltip-transition, visibility $tooltip-transition, transform $tooltip-transition;
78
+ }
77
79
 
78
80
  @if index($popover-tooltip-animation, "fade") {
79
81
  &.fade {
@@ -121,38 +121,43 @@ textarea.#{$vendor-prefix}input {
121
121
 
122
122
  //-------------------- Fields, Labels --------------------//
123
123
 
124
- .#{$vendor-prefix}field {
124
+ .#{$vendor-prefix}fields {
125
+ @include reset-list;
126
+ }
127
+
128
+ .#{$vendor-prefix}field,
129
+ .#{$vendor-prefix}fields li {
125
130
  margin-bottom: $margin;
126
131
 
127
132
  &.is-required {
128
133
  .#{$vendor-prefix}field-label { font-weight: bold; }
129
134
  }
130
- }
131
135
 
132
- .#{$vendor-prefix}field:not(.is-disabled) {
133
- &.is-error {
134
- .#{$vendor-prefix}input {
135
- border-color: $error;
136
+ &:not(.is-disabled) {
137
+ &.is-error {
138
+ .#{$vendor-prefix}input {
139
+ border-color: $error;
136
140
 
137
- &:focus { box-shadow: 0 0 5px $error-light; }
138
- }
141
+ &:focus { box-shadow: 0 0 5px $error-light; }
142
+ }
139
143
 
140
- .#{$vendor-prefix}input-radio,
141
- .#{$vendor-prefix}input-checkbox {
142
- color: $error-dark;
144
+ .#{$vendor-prefix}input-radio,
145
+ .#{$vendor-prefix}input-checkbox {
146
+ color: $error-dark;
147
+ }
143
148
  }
144
- }
145
149
 
146
- &.is-success {
147
- .#{$vendor-prefix}input {
148
- border-color: $success;
150
+ &.is-success {
151
+ .#{$vendor-prefix}input {
152
+ border-color: $success;
149
153
 
150
- &:focus { box-shadow: 0 0 5px $success-light; }
151
- }
154
+ &:focus { box-shadow: 0 0 5px $success-light; }
155
+ }
152
156
 
153
- .#{$vendor-prefix}input-radio,
154
- .#{$vendor-prefix}input-checkbox {
155
- color: $success-dark;
157
+ .#{$vendor-prefix}input-radio,
158
+ .#{$vendor-prefix}input-checkbox {
159
+ color: $success-dark;
160
+ }
156
161
  }
157
162
  }
158
163
  }
@@ -175,7 +180,8 @@ textarea.#{$vendor-prefix}input {
175
180
  //-------------------- Modifiers --------------------//
176
181
 
177
182
  .#{$vendor-prefix}form--horizontal {
178
- .#{$vendor-prefix}field { @include grid-row; }
183
+ .#{$vendor-prefix}field,
184
+ .#{$vendor-prefix}fields li { @include grid-row; }
179
185
 
180
186
  .#{$vendor-prefix}field-label {
181
187
  text-align: right;
@@ -190,6 +196,7 @@ textarea.#{$vendor-prefix}input {
190
196
  margin-bottom: -($margin / 2);
191
197
 
192
198
  .#{$vendor-prefix}field,
199
+ .#{$vendor-prefix}fields li,
193
200
  .#{$vendor-prefix}field-label,
194
201
  .#{$vendor-prefix}form-actions {
195
202
  display: inline-block;
@@ -136,6 +136,20 @@ mark { background: lighten($warning-light, 25%); }
136
136
  &:hover { opacity: 1; }
137
137
  }
138
138
 
139
+ .carousel-caption {
140
+ position: absolute;
141
+ bottom: 0;
142
+ left: 0;
143
+ width: 100%;
144
+ padding: $padding;
145
+ color: #fff;
146
+ background: black(.7);
147
+
148
+ @include in-small {
149
+ @include size-small;
150
+ }
151
+ }
152
+
139
153
  //-------------------- Drop --------------------//
140
154
 
141
155
  .drop {
@@ -482,7 +496,7 @@ mark { background: lighten($warning-light, 25%); }
482
496
  }
483
497
 
484
498
  .showcase-items {
485
- background: #000;
499
+ background: $gray;
486
500
  }
487
501
 
488
502
  //-------------------- Step --------------------//
@@ -536,7 +550,7 @@ a.step:hover:after {
536
550
  //-------------------- Tooltip --------------------//
537
551
 
538
552
  .tooltip {
539
- background: black(.70);
553
+ background: black(.85);
540
554
  color: #fff;
541
555
  border-radius: $round;
542
556
  margin: 10px;
data/version.md CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.5.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: titon-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Project Titon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-06 00:00:00.000000000 Z
12
+ date: 2014-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass