titon-toolkit 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/changelog.md +105 -67
- data/license.md +1 -1
- data/readme.md +5 -8
- data/roadmap.md +13 -11
- data/scss/toolkit/_common.scss +19 -10
- data/scss/toolkit/components/accordion.scss +0 -7
- data/scss/toolkit/components/breadcrumb.scss +0 -2
- data/scss/toolkit/components/button-group.scss +3 -19
- data/scss/toolkit/components/button.scss +2 -2
- data/scss/toolkit/components/drop.scss +5 -8
- data/scss/toolkit/components/flyout.scss +1 -5
- data/scss/toolkit/components/grid.scss +35 -17
- data/scss/toolkit/components/icon.scss +1 -14
- data/scss/toolkit/components/input-group.scss +7 -16
- data/scss/toolkit/components/input.scss +1 -7
- data/scss/toolkit/components/label.scss +0 -5
- data/scss/toolkit/components/lazy-load.scss +1 -1
- data/scss/toolkit/components/loader.scss +1 -1
- data/scss/toolkit/components/matrix.scss +7 -13
- data/scss/toolkit/components/modal.scss +123 -131
- data/scss/toolkit/components/notice.scss +5 -2
- data/scss/toolkit/components/pagination.scss +0 -1
- data/scss/toolkit/components/popover.scss +13 -16
- data/scss/toolkit/components/progress.scss +2 -17
- data/scss/toolkit/components/showcase.scss +5 -2
- data/scss/toolkit/components/table.scss +10 -8
- data/scss/toolkit/components/tabs.scss +1 -0
- data/scss/toolkit/components/tooltip.scss +38 -42
- data/scss/toolkit/components/type-ahead.scss +2 -6
- data/scss/toolkit/effects/oval.scss +3 -1
- data/scss/toolkit/effects/pill.scss +8 -12
- data/scss/toolkit/effects/skew.scss +9 -15
- data/scss/toolkit/layout/base.scss +4 -18
- data/scss/toolkit/layout/code.scss +1 -1
- data/scss/toolkit/layout/form.scss +11 -10
- data/scss/toolkit/layout/responsive.scss +4 -2
- data/scss/toolkit/layout/typography.scss +9 -3
- data/scss/toolkit/mixins/_components.scss +16 -0
- data/scss/toolkit/mixins/_helper.scss +15 -0
- data/scss/toolkit/mixins/_layout.scss +0 -9
- data/scss/toolkit/themes/{titon.scss → demo.scss} +39 -15
- data/version.md +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f271e59da7b66a7d31aa3c605f3d9f97a03c3e2
|
4
|
+
data.tar.gz: e129fe4b053d56fc96d99bf48de3779ae5187115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2597f2d1472f9a8429b21968c5bea99fcdcdd965ccdaccab1f0a9d1a00eb1f46d490922bb34ff92e4c427788066c18f4497cd31f9386703dc9f032083f3eff5f
|
7
|
+
data.tar.gz: 328d6da529da7f32f247fc8c19b443df74a2836ce322ddfaa90a057724581c49b491d962fc87fd2195aefc1efdbadf9bab4f7fe5ca9b7097b354a1354870842a
|
data/changelog.md
CHANGED
@@ -2,78 +2,116 @@
|
|
2
2
|
|
3
3
|
Older versions can be found in the documentation changelogs.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
* Added
|
11
|
-
* Added
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
5
|
+
## 1.2.0 ##
|
6
|
+
This minor release includes thorough documentation for all components,
|
7
|
+
a refactored event binding and management layer, a data attribute option inheritance layer,
|
8
|
+
and an optimization and cleanup pass. Also bug fixes.
|
9
|
+
|
10
|
+
* Added `join-classes()` function
|
11
|
+
* Added `grunt production` command to compress for production purposes
|
12
|
+
* Updated `grunt` command to not compress for development purposes
|
13
|
+
* Renamed all `__*` methods to `on*`
|
14
|
+
* Renamed `currentIndex` to `index` in all components
|
15
|
+
* Removed `content-spacing()` mixin
|
16
|
+
* Removed `previousIndex` properties
|
17
|
+
* Removed `loadingMessage` and `errorMessage` options
|
18
|
+
* Removed `.medium` class support
|
19
|
+
* Removed automatic setting of `animation` and `className` CSS classes for embedded elements
|
20
|
+
* Removed background and font colors from CSS to reduce CSS filesize
|
21
|
+
* Toolkit
|
22
|
+
* Added `bound()` to bound a number
|
23
|
+
* Added `isRetina` flag
|
24
|
+
* Updated `positionTo()` to re-position if the element falls outside the viewport
|
22
25
|
* Component
|
23
|
-
*
|
24
|
-
* Added `
|
25
|
-
|
26
|
-
*
|
27
|
-
|
26
|
+
* Refactored that event management layer within all components
|
27
|
+
* Added `bindEvents()` to handle event attaching and detaching (paired with change above)
|
28
|
+
* Called automatically from `enable()` and `disable()`
|
29
|
+
* Added option inheritance from data attributes found on target elements and nodes
|
30
|
+
* Possible through new `inheritOptions()`
|
31
|
+
* Added option inheritance from parent component
|
32
|
+
* Added `readOption` to find an option via data attribute of option object
|
33
|
+
* Merged `setElement()` logic into `createElement()`
|
34
|
+
* Removed `setElement()`
|
28
35
|
* Accordion
|
29
|
-
*
|
30
|
-
|
31
|
-
*
|
36
|
+
* Updated `show` event arguments to `[section, node, index]`
|
37
|
+
* Base
|
38
|
+
* Added `.no-scroll`
|
39
|
+
* Removed `.inline`, `.inline-block`, `.static`, `.relative`, and `.absolute`
|
32
40
|
* Blackout
|
33
|
-
*
|
34
|
-
* Added `
|
35
|
-
*
|
36
|
-
|
37
|
-
* Added
|
38
|
-
*
|
39
|
-
|
40
|
-
*
|
41
|
-
*
|
42
|
-
*
|
43
|
-
*
|
44
|
-
|
41
|
+
* Added a `shown` argument to the `show` event
|
42
|
+
* Added `showLoader` and `hideLoader` events
|
43
|
+
* Renamed `loaderMessage` option to `loadingMessage`
|
44
|
+
* Button
|
45
|
+
* Added outline none to `:focus` styles
|
46
|
+
* Fixed a bug with `input` buttons
|
47
|
+
* Button Group
|
48
|
+
* Removed `!important` from negative margin properties
|
49
|
+
* Drop
|
50
|
+
* Added support for drops built with `ol`
|
51
|
+
* Updated `show` and `hide` event arguments to `[element, node]`
|
52
|
+
* Flyout
|
53
|
+
* Fixed a bug where data items were being mapped with no URL
|
54
|
+
* Removed `load` event from `show()` as it was being used incorrectly
|
55
|
+
* Form
|
56
|
+
* Renamed `.is-legendless` to `.no-legend`
|
57
|
+
* Cleaned up some basic styles
|
45
58
|
* Grid
|
46
|
-
*
|
47
|
-
*
|
59
|
+
* Changed `$grid-columns-medium` to 12
|
60
|
+
* Added `$grid-push-pull` to toggle push and pull classes in output
|
61
|
+
* Icon
|
62
|
+
* Removed `.icon--rotate`
|
48
63
|
* Input
|
49
|
-
*
|
50
|
-
*
|
51
|
-
|
52
|
-
* Added
|
53
|
-
|
54
|
-
*
|
55
|
-
* Added
|
56
|
-
* Added
|
57
|
-
*
|
58
|
-
*
|
59
|
-
|
60
|
-
*
|
61
|
-
|
62
|
-
*
|
63
|
-
*
|
64
|
+
* Updated build methods to be private
|
65
|
+
* Fixed an issue where select event names were incorrect
|
66
|
+
* Input Group
|
67
|
+
* Added small and large size support
|
68
|
+
* LazyLoad
|
69
|
+
* Instantiation will need to be set on a container instead of the items being loaded
|
70
|
+
* Added `data-src-retina` support
|
71
|
+
* Added support for lazy loading within an overflown element
|
72
|
+
* Fixed a bug where hidden images were being loaded
|
73
|
+
* Renamed `data-lazyload` to `data-src`
|
74
|
+
* Loader
|
75
|
+
* Renamed `.spinner` to `.loader-spinner`
|
76
|
+
* Matrix
|
77
|
+
* Replaced `.matrix-item` with `li`
|
78
|
+
* Removed `selector` option
|
79
|
+
* Removed inline `img` styles, use `.fluid` instead
|
64
80
|
* Modal
|
65
|
-
*
|
66
|
-
*
|
67
|
-
*
|
68
|
-
* Refactored to
|
69
|
-
* Removed
|
70
|
-
*
|
71
|
-
|
72
|
-
*
|
73
|
-
* Updated gutter detection to include the showcase padding
|
81
|
+
* Added `$modal-animation` to filter the animations in the CSS output
|
82
|
+
* Updated `.modal-close` to use a `button`
|
83
|
+
* Updated `ajax` and `getContent` options to be inheritable at runtime through the activating node
|
84
|
+
* Refactored markup and CSS to support large height modals
|
85
|
+
* Removed `flip` and `flip-vert` animations
|
86
|
+
* Removed dragging (temporarily)
|
87
|
+
* Pin
|
88
|
+
* Fixed a bug where `.is-pinned` was not being removed
|
74
89
|
* Popover & Tooltip
|
75
|
-
*
|
76
|
-
* Added
|
77
|
-
*
|
90
|
+
* Added `$popover-tooltip-animation` to filter the animations in the CSS output
|
91
|
+
* Added `$popover-arrow-width` and `$tooltip-arrow-width` to alter the arrow sizes
|
92
|
+
* Added automatic compatibility of `title` attributes
|
93
|
+
* Fixed a bug where node was being set and used incorrectly
|
94
|
+
* Fixed a bug with mouseleave events
|
95
|
+
* Options `className` and `position` are added and removed dynamically each reveal
|
96
|
+
* Updated options to be inheritable at runtime through the activating node
|
97
|
+
* Updated `position` values to be dashed instead of camel case
|
98
|
+
* Removed `slide-in` animation
|
99
|
+
* Progress
|
100
|
+
* Added multiple progress bar support
|
101
|
+
* Removed `.medium` size
|
102
|
+
* Refactored state classes
|
103
|
+
* Responsive
|
104
|
+
* Added `.fluid` class for images, audio, canvas, etc
|
105
|
+
* Showcase
|
106
|
+
* Updated options to be inheritable at runtime through the activating node
|
107
|
+
* Replaced `a` with `button`
|
108
|
+
* Stalker
|
109
|
+
* Added nested marker support
|
110
|
+
* Added `targetBy` and `markBy` options
|
111
|
+
* Removed `marker` and `target` properties
|
112
|
+
* Table
|
113
|
+
* Moved zebra-striping into an `.is-striped` class
|
114
|
+
* Tabs
|
115
|
+
* Renamed `sectionsElement` option to `sectionElement`
|
78
116
|
* TypeAhead
|
79
|
-
*
|
117
|
+
* Renamed `process()` to `source()`
|
data/license.md
CHANGED
data/readme.md
CHANGED
@@ -6,7 +6,8 @@
|
|
6
6
|
\/_/ \/_____/\/_____/\/_____/\/_/\/_/ \/_/ \/_/
|
7
7
|
```
|
8
8
|
|
9
|
-
# Toolkit v1.
|
9
|
+
# Toolkit v1.2.0 #
|
10
|
+
|
10
11
|
Titon Toolkit is a collection of very powerful user interface components and utility classes
|
11
12
|
for the responsive, mobile, and modern web. Each component represents encapsulated HTML, CSS,
|
12
13
|
and JavaScript functionality for role specific page elements.
|
@@ -21,13 +22,9 @@ and powerful new browser APIs for the JavaScript layer.
|
|
21
22
|
* [Interactive Demo](http://demo.titon.io/)
|
22
23
|
|
23
24
|
## Learn More ##
|
25
|
+
|
26
|
+
* [Documentation](https://github.com/titon/toolkit/tree/master/docs/en)
|
24
27
|
* [Getting Started](https://github.com/titon/toolkit/blob/master/docs/en/setup/getting-started.md)
|
25
28
|
* [Downloading & Installing](https://github.com/titon/toolkit/blob/master/docs/en/setup/installing.md)
|
26
29
|
* [Custom Builds](https://github.com/titon/toolkit/blob/master/docs/en/setup/custom-builds.md)
|
27
|
-
* [Browser Compatibility](https://github.com/titon/toolkit/blob/master/docs/en/support/compatibility.md)
|
28
|
-
|
29
|
-
## Documentation ##
|
30
|
-
|
31
|
-
Documentation for installing and developing with Toolkit can be found within the docs folder.
|
32
|
-
Documentation for implementation of components is still in progress, but reading the source code
|
33
|
-
or interacting with the demos should provide more than enough information. We hope to have it ready soon!
|
30
|
+
* [Browser Compatibility](https://github.com/titon/toolkit/blob/master/docs/en/support/compatibility.md)
|
data/roadmap.md
CHANGED
@@ -2,29 +2,31 @@
|
|
2
2
|
|
3
3
|
All releases will contain bug fixing and polishing for current features.
|
4
4
|
|
5
|
-
### 1.
|
5
|
+
### 1.3.0 ###
|
6
6
|
* Marquee - A component that displays multiple slides at once and allows for cycling through a variable amount. A sister component to the carousel.
|
7
7
|
* Step - A component that highlights a step in a series of consecutive steps (represented by an arrow based navigation).
|
8
8
|
* Dialog - A component that prompts the user for an action. Sister to the modal component.
|
9
|
-
*
|
9
|
+
* Remove is and has state prefixing.
|
10
|
+
* Add destroy method to clean up and remove the component.
|
11
|
+
* Add aria attributes where applicable.
|
12
|
+
* Add deferred/promise integration.
|
10
13
|
|
11
|
-
### 1.
|
12
|
-
* Toast - A component to display toast notifications
|
14
|
+
### 1.4.0 ###
|
15
|
+
* Toast - A component to display toast notifications.
|
13
16
|
* Guide - A component that displays introduction guides (popovers) in a sequential order. Useful for show casing new features and functionality.
|
14
17
|
* Divider - A component for dividing content horizontally or vertically.
|
15
18
|
|
16
19
|
### 2.0.0 ###
|
17
20
|
* Remove the MooTools port.
|
18
21
|
* Drop IE8 support and upgrade to jQuery 2.
|
19
|
-
* Separate component transitions into a stand alone layer that can be used anywhere.
|
20
22
|
* Replace examples with unit tests.
|
21
|
-
* Add deferred/promise integration.
|
22
|
-
* Inherit options at runtime through data attributes.
|
23
|
-
* Add aria attributes where applicable.
|
24
23
|
* Updated to use AMD.
|
25
|
-
* Optimize classes for smaller filesize.
|
26
24
|
* Switch to Gulp.
|
27
|
-
*
|
25
|
+
* Updated to Sass 3.
|
26
|
+
* Refactor events for before/after conditions.
|
28
27
|
|
29
28
|
### 3.0.0 ###
|
30
|
-
* Remove jQuery dependency and go straight vanilla?
|
29
|
+
* Remove jQuery dependency and go straight vanilla?
|
30
|
+
* Switch to Less (removes sass/compass/ruby dependencies)
|
31
|
+
* Implement custom elements / components - http://w3c.github.io/webcomponents/explainer/
|
32
|
+
* Separate component transitions into a stand alone layer that can be used anywhere.
|
data/scss/toolkit/_common.scss
CHANGED
@@ -15,7 +15,6 @@ $vendor-prefix: "";
|
|
15
15
|
$state-is-prefix: "is-";
|
16
16
|
$state-has-prefix: "has-";
|
17
17
|
$size-small-class: "small";
|
18
|
-
$size-medium-class: "medium";
|
19
18
|
$size-large-class: "large";
|
20
19
|
$shape-square-class: "square";
|
21
20
|
$shape-round-class: "round";
|
@@ -111,20 +110,16 @@ $default-transition: .3s !default;
|
|
111
110
|
$accordion-transition: $default-transition !default;
|
112
111
|
$blackout-transition: $default-transition !default;
|
113
112
|
$carousel-transition: 1s !default;
|
114
|
-
$
|
113
|
+
$drop-transition: $default-transition !default;
|
115
114
|
$flyout-transition: $default-transition !default;
|
116
115
|
$lazyLoad-transition: $default-transition !default;
|
117
116
|
$mask-transition: $default-transition !default;
|
118
117
|
$matrix-transition: $default-transition !default;
|
119
118
|
$modal-transition: $default-transition !default;
|
120
|
-
$progress-transition:
|
119
|
+
$progress-transition: .5s !default;
|
121
120
|
$showcase-transition: $default-transition !default;
|
122
121
|
$tooltip-transition: $default-transition !default;
|
123
122
|
|
124
|
-
//-------------------- Animations --------------------//
|
125
|
-
|
126
|
-
$icon-animation: 1.5s !default;
|
127
|
-
|
128
123
|
//-------------------- Responsive --------------------//
|
129
124
|
|
130
125
|
$responsive-design: "mobile" !default; // mobile, desktop
|
@@ -144,7 +139,7 @@ $breakpoint-large: 1440px !default;
|
|
144
139
|
//-------------------- Grid --------------------//
|
145
140
|
|
146
141
|
$grid-columns-large: 12 !default;
|
147
|
-
$grid-columns-medium:
|
142
|
+
$grid-columns-medium: 12 !default;
|
148
143
|
$grid-columns-small: 6 !default;
|
149
144
|
|
150
145
|
$grid-columns-desktop: 12 !default;
|
@@ -153,17 +148,30 @@ $grid-columns-mobile: 3 !default;
|
|
153
148
|
|
154
149
|
$grid-width: 100% !default;
|
155
150
|
$grid-gutter: false !default;
|
151
|
+
$grid-push-pull: true !default;
|
156
152
|
|
157
153
|
//-------------------- Loader --------------------//
|
158
154
|
|
159
155
|
$loader-type: "all" !default;
|
160
156
|
$loader-color: #000 !default;
|
161
|
-
$loader-wave-count:
|
162
|
-
$loader-spinner-count: 5 !default;
|
157
|
+
$loader-wave-count: 5 !default;
|
163
158
|
$loader-bar-width: 0.65rem !default;
|
164
159
|
$loader-bar-height: 2.5rem !default;
|
165
160
|
$loader-bubble-size: 1.5rem !default;
|
166
161
|
|
162
|
+
//-------------------- Modal --------------------//
|
163
|
+
|
164
|
+
$modal-animation: (
|
165
|
+
"fade", "from-above", "from-below", "slide-in-top", "slide-in-right", "slide-in-bottom", "slide-in-left",
|
166
|
+
"sticky-top", "sticky-right", "sticky-bottom", "sticky-left"
|
167
|
+
) !default;
|
168
|
+
|
169
|
+
//-------------------- Popover, Tooltip --------------------//
|
170
|
+
|
171
|
+
$popover-tooltip-animation: ("fade", "from-above", "from-below", "flip-rotate") !default;
|
172
|
+
$popover-arrow-width: 8 !default;
|
173
|
+
$tooltip-arrow-width: 6 !default;
|
174
|
+
|
167
175
|
//-------------------- Imports --------------------//
|
168
176
|
|
169
177
|
@import "mixins/helper";
|
@@ -172,6 +180,7 @@ $loader-bubble-size: 1.5rem !default;
|
|
172
180
|
@import "mixins/state";
|
173
181
|
@import "mixins/grid";
|
174
182
|
@import "mixins/responsive";
|
183
|
+
@import "mixins/components";
|
175
184
|
@import "compass/css3/box-sizing";
|
176
185
|
@import "compass/css3/images";
|
177
186
|
@import "compass/css3/transition";
|
@@ -12,18 +12,11 @@
|
|
12
12
|
|
13
13
|
.#{$vendor-prefix}accordion-header {
|
14
14
|
padding: $padding;
|
15
|
-
background: $gray;
|
16
15
|
cursor: pointer;
|
17
|
-
|
18
|
-
@include is-active-parent {
|
19
|
-
background: $gray-dark;
|
20
|
-
}
|
21
16
|
}
|
22
17
|
|
23
18
|
.#{$vendor-prefix}accordion-body {
|
24
19
|
padding: $padding;
|
25
|
-
|
26
|
-
@include content-spacing;
|
27
20
|
}
|
28
21
|
|
29
22
|
// Handle is used for animations, do not style it!
|
@@ -9,7 +9,6 @@
|
|
9
9
|
.#{$vendor-prefix}breadcrumb {
|
10
10
|
text-align: left;
|
11
11
|
margin: $margin 0;
|
12
|
-
background: $gray;
|
13
12
|
|
14
13
|
ul, ol {
|
15
14
|
@include reset-list;
|
@@ -33,7 +32,6 @@
|
|
33
32
|
|
34
33
|
.caret {
|
35
34
|
margin-left: $medium-padding;
|
36
|
-
color: $gray-darkest;
|
37
35
|
position: relative;
|
38
36
|
left: -1px;
|
39
37
|
}
|
@@ -6,22 +6,6 @@
|
|
6
6
|
|
7
7
|
@import "../common";
|
8
8
|
|
9
|
-
@mixin button-group-first-child {
|
10
|
-
> li:first-child .#{$vendor-prefix}button,
|
11
|
-
> .#{$vendor-prefix}button:first-child,
|
12
|
-
> .#{$vendor-prefix}button.first {
|
13
|
-
@content;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
|
17
|
-
@mixin button-group-last-child {
|
18
|
-
> li:last-child .#{$vendor-prefix}button,
|
19
|
-
> .#{$vendor-prefix}button:last-child,
|
20
|
-
> .#{$vendor-prefix}button.last {
|
21
|
-
@content;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
9
|
.#{$vendor-prefix}button-group {
|
26
10
|
@include reset-inline-block;
|
27
11
|
@include reset-list;
|
@@ -30,7 +14,7 @@
|
|
30
14
|
> li,
|
31
15
|
> .#{$vendor-prefix}button {
|
32
16
|
float: left;
|
33
|
-
margin-left: -1px
|
17
|
+
margin-left: -1px;
|
34
18
|
border-radius: 0;
|
35
19
|
|
36
20
|
&:first-child { margin-left: 0; }
|
@@ -81,11 +65,11 @@
|
|
81
65
|
> .#{$vendor-prefix}button {
|
82
66
|
float: none;
|
83
67
|
display: block;
|
84
|
-
margin: -1px 0 0 0
|
68
|
+
margin: -1px 0 0 0;
|
85
69
|
width: auto;
|
86
70
|
max-width: 100%;
|
87
71
|
|
88
|
-
&:first-child { margin-top: 0
|
72
|
+
&:first-child { margin-top: 0; }
|
89
73
|
&:hover { z-index: 1; }
|
90
74
|
}
|
91
75
|
|
@@ -17,11 +17,11 @@
|
|
17
17
|
line-height: normal;
|
18
18
|
white-space: nowrap;
|
19
19
|
text-decoration: none;
|
20
|
-
background: $gray;
|
21
20
|
@include size-medium;
|
22
21
|
|
22
|
+
&:focus { outline: none; }
|
23
|
+
|
23
24
|
@include is-small(true, true) { @include size-small; }
|
24
|
-
@include is-medium(true, true) { @include size-medium; }
|
25
25
|
@include is-large(true, true) { @include size-large; }
|
26
26
|
|
27
27
|
&.#{$shape-round-class} { border-radius: $round; }
|