titon-toolkit 1.0.0.rc.2 → 1.0.0.rc.3
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.
- data/readme.md +6 -13
- data/roadmap.md +5 -5
- data/scss/toolkit/_common.scss +4 -2
- data/scss/toolkit/components/accordion.scss +0 -3
- data/scss/toolkit/components/breadcrumbs.scss +4 -5
- data/scss/toolkit/components/button-group.scss +23 -9
- data/scss/toolkit/components/button.scss +4 -5
- data/scss/toolkit/components/carousel.scss +7 -21
- data/scss/toolkit/components/dropdown.scss +6 -7
- data/scss/toolkit/components/flyout.scss +47 -34
- data/scss/toolkit/components/grid.scss +7 -7
- data/scss/toolkit/components/icon.scss +1 -1
- data/scss/toolkit/components/input.scss +1 -6
- data/scss/toolkit/components/label.scss +27 -16
- data/scss/toolkit/components/modal.scss +7 -12
- data/scss/toolkit/components/notice.scss +0 -3
- data/scss/toolkit/components/pagination.scss +3 -1
- data/scss/toolkit/components/popover.scss +6 -6
- data/scss/toolkit/components/progress.scss +17 -3
- data/scss/toolkit/components/showcase.scss +1 -22
- data/scss/toolkit/components/table.scss +30 -13
- data/scss/toolkit/components/tabs.scss +5 -3
- data/scss/toolkit/components/tooltip.scss +2 -1
- data/scss/toolkit/components/type-ahead.scss +18 -5
- data/scss/toolkit/effects/oval.scss +3 -3
- data/scss/toolkit/effects/pill.scss +15 -4
- data/scss/toolkit/effects/skew.scss +4 -4
- data/scss/toolkit/layout/base.scss +16 -1
- data/scss/toolkit/layout/code.scss +1 -1
- data/scss/toolkit/layout/form.scss +1 -1
- data/scss/toolkit/mixins/_grid.scss +26 -19
- data/scss/toolkit/mixins/_helper.scss +10 -0
- data/scss/toolkit/mixins/_layout.scss +0 -60
- data/scss/toolkit/mixins/_responsive.scss +6 -0
- data/scss/toolkit/mixins/_state.scss +32 -0
- data/scss/toolkit/mixins/_unit.scss +73 -0
- data/scss/toolkit/themes/titon.scss +93 -24
- data/version.md +1 -1
- metadata +23 -15
- checksums.yaml +0 -7
- data/scss/ie8.scss +0 -184
data/readme.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Toolkit v1.0.0
|
1
|
+
# Toolkit v1.0.0 RC3 #
|
2
2
|
|
3
|
-
Titon Toolkit is a collection of very powerful user
|
3
|
+
Titon Toolkit is a collection of very powerful user interface components and utility classes.
|
4
4
|
Each component represents encapsulated HTML, CSS and JS functionality for role specific page elements.
|
5
5
|
|
6
6
|
Titon makes use of the latest and greatest technology. This includes CSS3 for animation (fade, slide, etc),
|
@@ -37,14 +37,6 @@ A temporary demo can be found here: http://titon.io/toolkit
|
|
37
37
|
|
38
38
|
#### Browser Support ####
|
39
39
|
|
40
|
-
**Tested Against**
|
41
|
-
* Chrome 26, 28
|
42
|
-
* Firefox 20, 23
|
43
|
-
* Internet Explorer 10
|
44
|
-
* Opera 12
|
45
|
-
* Safari 5
|
46
|
-
|
47
|
-
**Suggested**
|
48
40
|
* Chrome 11+
|
49
41
|
* Firefox 4+
|
50
42
|
* Internet Explorer 10+
|
@@ -53,10 +45,11 @@ A temporary demo can be found here: http://titon.io/toolkit
|
|
53
45
|
|
54
46
|
**What about IE8 and 9?**
|
55
47
|
|
56
|
-
IE9 does not support CSS3 transitions
|
48
|
+
IE9 does not support CSS3 transitions; all animations will fallback to a simple show/hide.
|
57
49
|
|
58
|
-
IE8 does not support CSS3 transitions, rem scaling, media queries and specific HTML 5 elements.
|
59
|
-
To support media queries and responsiveness, use [respond.js](https://github.com/scottjehl/Respond).
|
50
|
+
IE8 does not support CSS3 transitions, rem/em scaling, media queries and specific HTML 5 elements.
|
51
|
+
To support media queries and responsiveness, use [respond.js](https://github.com/scottjehl/Respond).
|
52
|
+
To support HTML 5 features, use [modernizr](http://modernizr.com).
|
60
53
|
|
61
54
|
Furthermore, the following Toolkit components do not work in IE8: Input, Matrix.
|
62
55
|
|
data/roadmap.md
CHANGED
@@ -3,17 +3,17 @@
|
|
3
3
|
All releases will contain bug fixing and polishing for current features.
|
4
4
|
|
5
5
|
### 1.1.0 - December 2013 ###
|
6
|
-
* Guide - A component that displays introduction guides (popovers) in a sequential order. Useful for show casing new features and functionality.
|
7
|
-
* Divider - A component for dividing content horizontally or vertically.
|
8
|
-
|
9
|
-
### 1.2.0 - January 2014 ###
|
10
6
|
* Marquee - A component that displays multiple slides at once and allows for cycling through a variable amount. A sister component to the carousel.
|
11
7
|
* Mask - A component that will mask a target element with a blackout.
|
12
8
|
|
13
|
-
### 1.
|
9
|
+
### 1.2.0 - January 2014 ###
|
14
10
|
* Step - A component that highlights a step in a series of consecutive steps (represented by an arrow based navigation).
|
15
11
|
* Dialog - A component that prompts the user for an action. Sister to the modal component.
|
16
12
|
|
13
|
+
### 1.3.0 - February 2014 ###
|
14
|
+
* Guide - A component that displays introduction guides (popovers) in a sequential order. Useful for show casing new features and functionality.
|
15
|
+
* Divider - A component for dividing content horizontally or vertically.
|
16
|
+
|
17
17
|
### 2.0.0 - TBD ###
|
18
18
|
* Remove the MooTools port.
|
19
19
|
* Drop IE 8/9 support and upgrade to jQuery 2.
|
data/scss/toolkit/_common.scss
CHANGED
@@ -23,7 +23,6 @@ $foreground-color: #2d2d2d !default;
|
|
23
23
|
//-------------------- Sizes --------------------//
|
24
24
|
|
25
25
|
$base-size: 14px !default;
|
26
|
-
$base-size-width: ($base-size * 100) / 1px;
|
27
26
|
|
28
27
|
$padding: .75rem !default;
|
29
28
|
$margin: 1.25rem !default;
|
@@ -127,11 +126,14 @@ $grid-columns-tablet: 6 !default;
|
|
127
126
|
$grid-columns-mobile: 3 !default;
|
128
127
|
|
129
128
|
$grid-width: 100% !default;
|
130
|
-
$grid-gutter:
|
129
|
+
$grid-gutter: false !default;
|
131
130
|
|
132
131
|
//-------------------- Imports --------------------//
|
133
132
|
|
133
|
+
@import "mixins/helper";
|
134
|
+
@import "mixins/unit";
|
134
135
|
@import "mixins/layout";
|
136
|
+
@import "mixins/state";
|
135
137
|
@import "mixins/grid";
|
136
138
|
@import "mixins/responsive";
|
137
139
|
@import "compass/css3/box-sizing";
|
@@ -10,7 +10,6 @@
|
|
10
10
|
text-align: left;
|
11
11
|
margin: $margin 0;
|
12
12
|
background: $gray;
|
13
|
-
border: 1px solid $gray-dark;
|
14
13
|
|
15
14
|
ul, ol {
|
16
15
|
margin: 0;
|
@@ -25,7 +24,7 @@
|
|
25
24
|
float: left;
|
26
25
|
|
27
26
|
&:last-child {
|
28
|
-
.
|
27
|
+
.caret { display: none; }
|
29
28
|
}
|
30
29
|
}
|
31
30
|
|
@@ -35,7 +34,7 @@
|
|
35
34
|
line-height: 100%;
|
36
35
|
padding-right: 0;
|
37
36
|
|
38
|
-
.
|
37
|
+
.caret {
|
39
38
|
margin-left: $medium-padding;
|
40
39
|
color: $gray-darkest;
|
41
40
|
position: relative;
|
@@ -47,13 +46,13 @@
|
|
47
46
|
@include size-small;
|
48
47
|
padding-right: 0;
|
49
48
|
|
50
|
-
.
|
49
|
+
.caret { margin-left: $small-padding; }
|
51
50
|
}
|
52
51
|
|
53
52
|
&.large a {
|
54
53
|
@include size-large;
|
55
54
|
padding-right: 0;
|
56
55
|
|
57
|
-
.
|
56
|
+
.caret { margin-left: $large-padding; }
|
58
57
|
}
|
59
58
|
}
|
@@ -15,15 +15,21 @@
|
|
15
15
|
float: left;
|
16
16
|
margin-left: -1px !important;
|
17
17
|
border-radius: 0;
|
18
|
-
display: block;
|
19
18
|
|
20
19
|
&:first-child { margin-left: 0; }
|
21
|
-
|
20
|
+
|
21
|
+
&:hover,
|
22
|
+
&.is-active { z-index: 1; }
|
22
23
|
}
|
23
24
|
|
24
|
-
> li
|
25
|
-
|
26
|
-
|
25
|
+
> li {
|
26
|
+
position: relative;
|
27
|
+
list-style: none;
|
28
|
+
|
29
|
+
.button {
|
30
|
+
display: block;
|
31
|
+
border-radius: 0;
|
32
|
+
}
|
27
33
|
}
|
28
34
|
|
29
35
|
&.round {
|
@@ -54,7 +60,8 @@
|
|
54
60
|
|
55
61
|
//-------------------- Modifiers --------------------//
|
56
62
|
|
57
|
-
.button-group
|
63
|
+
.button-group--vertical {
|
64
|
+
@extend .button-group;
|
58
65
|
vertical-align: top;
|
59
66
|
|
60
67
|
> li,
|
@@ -78,20 +85,23 @@
|
|
78
85
|
|
79
86
|
&.round {
|
80
87
|
> li:first-child .button,
|
81
|
-
> .button:first-child
|
88
|
+
> .button:first-child,
|
89
|
+
> .button.first {
|
82
90
|
border-top-left-radius: $round;
|
83
91
|
border-top-right-radius: $round;
|
84
92
|
}
|
85
93
|
|
86
94
|
> li:last-child .button,
|
87
|
-
> .button:last-child
|
95
|
+
> .button:last-child,
|
96
|
+
> .button.last {
|
88
97
|
border-bottom-left-radius: $round;
|
89
98
|
border-bottom-right-radius: $round;
|
90
99
|
}
|
91
100
|
}
|
92
101
|
}
|
93
102
|
|
94
|
-
.button-group
|
103
|
+
.button-group--justified {
|
104
|
+
@extend .button-group;
|
95
105
|
display: table;
|
96
106
|
width: 100%;
|
97
107
|
|
@@ -99,5 +109,9 @@
|
|
99
109
|
> .button {
|
100
110
|
float: none;
|
101
111
|
display: table-cell;
|
112
|
+
margin: 0 !important;
|
102
113
|
}
|
114
|
+
|
115
|
+
> li:not(:first-child) .button,
|
116
|
+
> .button:not(:first-child) { border-left: 0; }
|
103
117
|
}
|
@@ -11,21 +11,20 @@
|
|
11
11
|
@include size-medium;
|
12
12
|
cursor: pointer;
|
13
13
|
text-align: center;
|
14
|
-
overflow: hidden;
|
15
14
|
font-weight: normal;
|
16
15
|
line-height: normal;
|
17
|
-
user-select: none;
|
18
16
|
white-space: nowrap;
|
19
17
|
background: $gray;
|
20
|
-
border: 1px solid $gray-dark;
|
21
18
|
|
22
19
|
&.small, .small & { @include size-small; }
|
20
|
+
&.medium, .medium & { @include size-medium; }
|
23
21
|
&.large, .large & { @include size-large; }
|
22
|
+
|
24
23
|
&.round { border-radius: $round; }
|
24
|
+
&.square { border-radius: 0; }
|
25
25
|
|
26
|
-
@include disabled
|
26
|
+
@include is-disabled {
|
27
27
|
cursor: not-allowed;
|
28
|
-
pointer-events: none;
|
29
28
|
}
|
30
29
|
}
|
31
30
|
|
@@ -9,7 +9,6 @@
|
|
9
9
|
.carousel {
|
10
10
|
margin: 0 auto;
|
11
11
|
text-align: left;
|
12
|
-
background-color: #000;
|
13
12
|
position: relative;
|
14
13
|
}
|
15
14
|
|
@@ -55,8 +54,7 @@
|
|
55
54
|
background: black(.7);
|
56
55
|
|
57
56
|
@include in-small {
|
58
|
-
|
59
|
-
padding: $small-padding;
|
57
|
+
@include size-small;
|
60
58
|
}
|
61
59
|
}
|
62
60
|
|
@@ -68,26 +66,10 @@
|
|
68
66
|
width: auto;
|
69
67
|
height: auto;
|
70
68
|
z-index: 5;
|
71
|
-
opacity: $carousel-opacity;
|
72
69
|
top: 50%;
|
73
70
|
@include transform(translateY(-50%)); // move up 50% of their height
|
74
71
|
|
75
|
-
.arrow-left,
|
76
|
-
.arrow-right {
|
77
|
-
color: #fff;
|
78
|
-
font-size: 2rem;
|
79
|
-
}
|
80
|
-
|
81
|
-
&:hover { opacity: 1; }
|
82
72
|
&:focus { outline: none; }
|
83
|
-
|
84
|
-
// Large icons for large resolutions
|
85
|
-
@include if-tablet-landscape {
|
86
|
-
.arrow-left,
|
87
|
-
.arrow-right {
|
88
|
-
font-size: 3rem;
|
89
|
-
}
|
90
|
-
}
|
91
73
|
}
|
92
74
|
|
93
75
|
.carousel-prev { left: 0; }
|
@@ -132,14 +114,18 @@
|
|
132
114
|
|
133
115
|
//-------------------- Modifiers --------------------//
|
134
116
|
|
135
|
-
.carousel
|
117
|
+
.carousel--wide {
|
118
|
+
@extend .carousel;
|
119
|
+
|
136
120
|
.carousel-items {
|
137
121
|
/* 16:9 ratio */
|
138
122
|
padding-bottom: 56.25%;
|
139
123
|
}
|
140
124
|
}
|
141
125
|
|
142
|
-
.carousel
|
126
|
+
.carousel--square {
|
127
|
+
@extend .carousel;
|
128
|
+
|
143
129
|
.carousel-items {
|
144
130
|
/* 1:1 ratio */
|
145
131
|
padding-bottom: 100%;
|
@@ -14,7 +14,6 @@
|
|
14
14
|
left: 0;
|
15
15
|
width: 200px;
|
16
16
|
background: $gray;
|
17
|
-
border: 1px solid $gray-dark;
|
18
17
|
line-height: 100%;
|
19
18
|
z-index: 500;
|
20
19
|
opacity: 0;
|
@@ -49,7 +48,7 @@
|
|
49
48
|
|
50
49
|
// Show nested dropdown
|
51
50
|
&:hover {
|
52
|
-
> a { background:
|
51
|
+
> a { background: $gray-lightest; }
|
53
52
|
|
54
53
|
.dropdown {
|
55
54
|
visibility: visible;
|
@@ -84,27 +83,27 @@
|
|
84
83
|
|
85
84
|
//-------------------- Modifiers --------------------//
|
86
85
|
|
87
|
-
.dropdown.
|
86
|
+
.dropdown.on-top {
|
88
87
|
top: auto;
|
89
88
|
bottom: 100%;
|
90
89
|
}
|
91
90
|
|
92
|
-
.dropdown.
|
91
|
+
.dropdown.on-right {
|
93
92
|
top: auto;
|
94
93
|
left: 100%;
|
95
94
|
}
|
96
95
|
|
97
|
-
.dropdown.
|
96
|
+
.dropdown.on-left {
|
98
97
|
top: auto;
|
99
98
|
left: auto;
|
100
99
|
right: 100%;
|
101
100
|
}
|
102
101
|
|
103
|
-
.dropdown.
|
102
|
+
.dropdown.push-over {
|
104
103
|
left: auto;
|
105
104
|
right: 0;
|
106
105
|
}
|
107
106
|
|
108
|
-
.dropdown.
|
107
|
+
.dropdown.pull-up {
|
109
108
|
bottom: 0;
|
110
109
|
}
|
@@ -14,7 +14,6 @@
|
|
14
14
|
opacity: 0;
|
15
15
|
visibility: hidden;
|
16
16
|
background: $gray;
|
17
|
-
border: 1px solid $gray-dark;
|
18
17
|
@include box-sizing(content-box); // required by MooTools for multi columns
|
19
18
|
@include transition(opacity $flyout-transition);
|
20
19
|
|
@@ -24,51 +23,65 @@
|
|
24
23
|
padding: 0;
|
25
24
|
float: left;
|
26
25
|
width: 200px;
|
26
|
+
}
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
li {
|
29
|
+
position: relative;
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
text-decoration: none;
|
37
|
-
}
|
31
|
+
> a {
|
32
|
+
padding: $small-padding;
|
33
|
+
line-height: 100%;
|
34
|
+
display: block;
|
35
|
+
text-decoration: none;
|
38
36
|
|
39
|
-
|
37
|
+
.caret-right { display: none; }
|
38
|
+
}
|
40
39
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
40
|
+
// Hover states
|
41
|
+
> a:hover,
|
42
|
+
&.is-open > a {
|
43
|
+
background: $gray-lightest;
|
44
|
+
}
|
46
45
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
46
|
+
// Display caret arrow
|
47
|
+
&.has-children > a .caret-right {
|
48
|
+
float: right;
|
49
|
+
display: inline-block; // reveal
|
50
|
+
margin-top: 3px;
|
51
|
+
}
|
52
|
+
|
53
|
+
// Nested flyouts
|
54
|
+
> .flyout {
|
55
|
+
left: 90%;
|
56
|
+
@include transition(left $flyout-transition, right $flyout-transition, opacity $flyout-transition);
|
51
57
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
}
|
58
|
+
// Reverse menu to left side in case it goes outside the viewport
|
59
|
+
// Will be set automatically from the Javascript layer
|
60
|
+
&.push-left {
|
61
|
+
left: auto;
|
62
|
+
right: 90%;
|
58
63
|
}
|
64
|
+
}
|
59
65
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
66
|
+
&.is-open > .flyout {
|
67
|
+
opacity: 1;
|
68
|
+
visibility: visible;
|
69
|
+
left: 100%;
|
64
70
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
}
|
71
|
+
&.push-left {
|
72
|
+
left: auto;
|
73
|
+
right: 100%;
|
69
74
|
}
|
70
75
|
}
|
71
76
|
}
|
72
77
|
|
73
78
|
@include clear-fix;
|
79
|
+
}
|
80
|
+
|
81
|
+
.flyout-heading {
|
82
|
+
padding: $small-padding;
|
83
|
+
line-height: 100%;
|
84
|
+
display: block;
|
85
|
+
text-decoration: none;
|
86
|
+
background: $gray-dark;
|
74
87
|
}
|