titon-toolkit 0.12.0 → 0.13.2
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 +7 -0
- data/readme.md +7 -9
- data/scss/ie8.scss +177 -0
- data/scss/toolkit.scss +15 -2
- data/scss/toolkit/_variables.scss +5 -1
- data/scss/toolkit/effects/oval.scss +35 -0
- data/scss/toolkit/effects/pill.scss +75 -0
- data/scss/toolkit/effects/skew.scss +91 -0
- data/scss/toolkit/effects/visual.scss +0 -11
- data/scss/toolkit/layout/form.scss +5 -1
- data/scss/toolkit/layout/input-group.scss +6 -3
- data/scss/toolkit/layout/table.scss +6 -0
- data/scss/toolkit/layout/typography.scss +1 -1
- data/scss/toolkit/modules/accordion.scss +3 -1
- data/scss/toolkit/modules/blackout.scss +5 -2
- data/scss/toolkit/modules/carousel.scss +19 -11
- data/scss/toolkit/modules/flyout.scss +4 -2
- data/scss/toolkit/modules/modal.scss +11 -9
- data/scss/toolkit/modules/showcase.scss +11 -3
- data/scss/toolkit/modules/tooltip.scss +6 -4
- data/scss/toolkit/themes/titon.scss +12 -1
- data/scss/toolkit/themes/tomorrow-night.scss +7 -0
- data/scss/toolkit/ui/breadcrumbs.scss +3 -5
- data/scss/toolkit/ui/button-group.scss +0 -94
- data/scss/toolkit/ui/button.scss +1 -8
- data/scss/toolkit/ui/dropdown.scss +2 -0
- data/scss/toolkit/ui/lazy-load.scss +3 -1
- data/scss/toolkit/ui/matrix.scss +3 -1
- data/scss/toolkit/ui/pagination.scss +2 -49
- data/scss/toolkit/ui/progress.scss +3 -1
- data/version.md +1 -1
- metadata +17 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: de992c1916431b26684330ab1df388574d0ae49d
|
4
|
+
data.tar.gz: 0e17ab2af7435aeda9850eccad211a7afe821c7a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4746b6feaac6014da48d36ae8c9093ace77898a9343fb8368d0ce9cc5924ee69f8731eab44c6bca6f1b7bd16055a3f23c35306eb1b96dd63b687f4e2967deb9e
|
7
|
+
data.tar.gz: eb3b5bc46f1fbaa51175397a18a48137602dd03dd24c0f1bdfd687dfa970a90b45080b9c8dacb24c8230879d4d4dffd34c9c53ebaea0ee6468ad37333dd1ad89
|
data/readme.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Toolkit v0.
|
1
|
+
# Toolkit v0.13.2 #
|
2
2
|
|
3
3
|
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.
|
@@ -7,7 +7,6 @@ Titon makes use of the latest and greatest technology. This includes CSS3 for an
|
|
7
7
|
Sass for CSS pre-processing, Grunt for task and package management, and Intern for unit testing.
|
8
8
|
|
9
9
|
#### Demo ####
|
10
|
-
|
11
10
|
A temporary demo can be found here: http://titon.io/toolkit
|
12
11
|
|
13
12
|
It's literally the examples folder within this repository.
|
@@ -43,10 +42,10 @@ It's literally the examples folder within this repository.
|
|
43
42
|
|
44
43
|
**What about IE8 and 9?**
|
45
44
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
45
|
+
IE9 does not support CSS3 transitions and any type of animation will fallback to a simple show/hide.
|
46
|
+
|
47
|
+
IE8 does not support CSS3 transitions, rem scaling, media queries and specific HTML 5 elements. To support IE8, the Toolkit `ie8.css` file must be included.
|
48
|
+
To support media queries and responsiveness, use [respond.js](https://github.com/scottjehl/Respond). To support HTML 5 features, use [modernizr](http://modernizr.com).
|
50
49
|
|
51
50
|
## Javascript Components ##
|
52
51
|
#### Modules ####
|
@@ -100,7 +99,7 @@ Titon also provides classes that build upon MooTools itself. These classes do no
|
|
100
99
|
* `TomorrowNight` - Tomorrow Night theme for all Titon components
|
101
100
|
|
102
101
|
## Authors ##
|
103
|
-
* Miles Johnson
|
102
|
+
* [Miles Johnson](https://github.com/milesj)
|
104
103
|
|
105
104
|
#### Third Party ####
|
106
105
|
* `Normalize.css` provided by Nicolas Gallagher
|
@@ -109,5 +108,4 @@ Titon also provides classes that build upon MooTools itself. These classes do no
|
|
109
108
|
## Known Issues ##
|
110
109
|
* Zepto is currently not supported (too different of an API)
|
111
110
|
* Slide in modal animations do not work correctly in Chrome/IE
|
112
|
-
* Flip modal animations do not work in Opera
|
113
|
-
* Tooltip positioning does not work in Opera
|
111
|
+
* Flip modal animations do not work in Opera
|
data/scss/ie8.scss
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
|
+
*/
|
6
|
+
|
7
|
+
$padding-small: 8px;
|
8
|
+
$padding: 12px;
|
9
|
+
$padding-large: 16px;
|
10
|
+
$margin: 20px;
|
11
|
+
|
12
|
+
$font-small: 12px;
|
13
|
+
$font: 16px;
|
14
|
+
$font-large: 20px;
|
15
|
+
|
16
|
+
// IE8 does not support em/rem
|
17
|
+
// So update padding, margin and font-size
|
18
|
+
|
19
|
+
html, body { font-size: 14px; line-height: 150%; }
|
20
|
+
|
21
|
+
h1 { font-size: 48px; }
|
22
|
+
h2 { font-size: 40px; }
|
23
|
+
h3 { font-size: 34px; }
|
24
|
+
h4 { font-size: 28px; }
|
25
|
+
h5 { font-size: 24px; }
|
26
|
+
h6 { font-size: 18px; }
|
27
|
+
|
28
|
+
.x { font-size: 24px; }
|
29
|
+
|
30
|
+
.input,
|
31
|
+
.input-static,
|
32
|
+
.breadcrumbs a,
|
33
|
+
.button {
|
34
|
+
font-size: $font;
|
35
|
+
}
|
36
|
+
|
37
|
+
code,
|
38
|
+
var,
|
39
|
+
kbd,
|
40
|
+
pre,
|
41
|
+
blockquote cite,
|
42
|
+
.field-help,
|
43
|
+
.breadcrumbs.small a,
|
44
|
+
.button.small,
|
45
|
+
.small .button {
|
46
|
+
font-size: $font-small;
|
47
|
+
}
|
48
|
+
|
49
|
+
legend,
|
50
|
+
.breadcrumbs.large a,
|
51
|
+
.button.large,
|
52
|
+
.large .button {
|
53
|
+
font-size: $font-large;
|
54
|
+
}
|
55
|
+
|
56
|
+
.type-ahead-desc,
|
57
|
+
.label,
|
58
|
+
.badge,
|
59
|
+
.progress-bar {
|
60
|
+
font-size: 9px;
|
61
|
+
}
|
62
|
+
|
63
|
+
pre,
|
64
|
+
.input,
|
65
|
+
.input-static,
|
66
|
+
.form--horizontal .field-label,
|
67
|
+
.input-addon,
|
68
|
+
.table td,
|
69
|
+
.table th,
|
70
|
+
.table.table--sortable thead th a,
|
71
|
+
.table.table--sortable thead th span,
|
72
|
+
.accordion-head,
|
73
|
+
.accordion-body,
|
74
|
+
.carousel-caption,
|
75
|
+
.carousel-prev,
|
76
|
+
.carousel-next,
|
77
|
+
.carousel-tabs,
|
78
|
+
.modal-head,
|
79
|
+
.modal-body,
|
80
|
+
.modal-foot,
|
81
|
+
.modal-loading,
|
82
|
+
.modal-error,
|
83
|
+
.showcase-inner,
|
84
|
+
.showcase-caption,
|
85
|
+
.showcase-prev,
|
86
|
+
.showcase-next,
|
87
|
+
.showcase-tabs,
|
88
|
+
.alert,
|
89
|
+
.breadcrumbs a,
|
90
|
+
.button {
|
91
|
+
padding: $padding;
|
92
|
+
}
|
93
|
+
|
94
|
+
.table.table--compact thead th,
|
95
|
+
.table.table--compact thead td,
|
96
|
+
.table.table--compact.table--sortable thead th a,
|
97
|
+
.table.table--compact.table--sortable thead th span,
|
98
|
+
.flyout ul li > a,
|
99
|
+
.flyout ul li > .divider,
|
100
|
+
.popover-head,
|
101
|
+
.popover-body,
|
102
|
+
.tooltip,
|
103
|
+
.type-ahead ul li a
|
104
|
+
.type-ahead ul li.heading,
|
105
|
+
.breadcrumbs.small a,
|
106
|
+
.button.small,
|
107
|
+
.small .button,
|
108
|
+
.dropdown li > a,
|
109
|
+
.dropdown li.heading,
|
110
|
+
.type-ahead ul a {
|
111
|
+
padding: $padding-small;
|
112
|
+
}
|
113
|
+
|
114
|
+
.breadcrumbs.large a,
|
115
|
+
.button.large,
|
116
|
+
.large .button {
|
117
|
+
padding: $padding-large;
|
118
|
+
}
|
119
|
+
|
120
|
+
fieldset { padding: $padding 0; }
|
121
|
+
blockquote { padding: 0 $padding; }
|
122
|
+
legend { padding-right: $padding; }
|
123
|
+
|
124
|
+
pre, p, ul, ol, hr,
|
125
|
+
.alert,
|
126
|
+
.breadcrumbs,
|
127
|
+
.pagination {
|
128
|
+
margin: $margin 0;
|
129
|
+
}
|
130
|
+
|
131
|
+
blockquote { margin: $margin; }
|
132
|
+
|
133
|
+
.alert .close,
|
134
|
+
.button-group + .button-group {
|
135
|
+
margin-left: $margin;
|
136
|
+
}
|
137
|
+
|
138
|
+
.field,
|
139
|
+
.tabs-nav {
|
140
|
+
margin-bottom: $margin;
|
141
|
+
}
|
142
|
+
|
143
|
+
.form--inline .field,
|
144
|
+
.form--inline .field-label,
|
145
|
+
.form--inline .form-actions {
|
146
|
+
margin-right: $margin;
|
147
|
+
margin-bottom: $margin / 2;
|
148
|
+
}
|
149
|
+
|
150
|
+
.form--inline .field-label { margin: 0 ($margin / 2) 0 0; }
|
151
|
+
.form--horizontal .field-col { padding-left: $margin; }
|
152
|
+
.alert-title { margin: 0 0 ($margin / 2) 0; }
|
153
|
+
.dropdown li.divider { margin: ($margin / 2) 0; }
|
154
|
+
.pagination li { margin-right: $padding / 2; }
|
155
|
+
|
156
|
+
.showcase-tabs { top: $padding; }
|
157
|
+
.showcase-prev { left: $padding; }
|
158
|
+
.showcase-next { right: $padding; }
|
159
|
+
|
160
|
+
// IE8 does not support rgba
|
161
|
+
// So use solid colors instead
|
162
|
+
|
163
|
+
.close .x { color: #000; }
|
164
|
+
.close:hover { background: #fff; }
|
165
|
+
|
166
|
+
.blackout { background: #000; filter: alpha(opacity=50); }
|
167
|
+
|
168
|
+
.carousel-caption,
|
169
|
+
.showcase-caption { background: #000; filter: alpha(opacity=70); }
|
170
|
+
|
171
|
+
.carousel-tabs,
|
172
|
+
.showcase-tabs { left: auto; right: auto; }
|
173
|
+
|
174
|
+
.showcase-next,
|
175
|
+
.showcase-prev,
|
176
|
+
.carousel-next,
|
177
|
+
.carousel-prev { margin-top: -20px; }
|
data/scss/toolkit.scss
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
|
7
7
|
@import "normalize";
|
8
8
|
@import "toolkit/common";
|
9
|
+
|
10
|
+
// Basic layout styles should come first
|
9
11
|
@import "toolkit/layout/base";
|
10
12
|
@import "toolkit/layout/typography";
|
11
13
|
@import "toolkit/layout/grid";
|
@@ -13,7 +15,8 @@
|
|
13
15
|
@import "toolkit/layout/input-group";
|
14
16
|
@import "toolkit/layout/code";
|
15
17
|
@import "toolkit/layout/table";
|
16
|
-
|
18
|
+
|
19
|
+
// Then basic UI styles
|
17
20
|
@import "toolkit/ui/alert";
|
18
21
|
@import "toolkit/ui/breadcrumbs";
|
19
22
|
@import "toolkit/ui/button";
|
@@ -26,6 +29,8 @@
|
|
26
29
|
@import "toolkit/ui/pagination";
|
27
30
|
@import "toolkit/ui/pin";
|
28
31
|
@import "toolkit/ui/progress";
|
32
|
+
|
33
|
+
// And more advanced UI styles last
|
29
34
|
@import "toolkit/modules/accordion";
|
30
35
|
@import "toolkit/modules/blackout";
|
31
36
|
@import "toolkit/modules/carousel";
|
@@ -36,4 +41,12 @@
|
|
36
41
|
@import "toolkit/modules/tabs";
|
37
42
|
@import "toolkit/modules/tooltip";
|
38
43
|
@import "toolkit/modules/type-ahead";
|
39
|
-
|
44
|
+
|
45
|
+
// And visual effects very last
|
46
|
+
@import "toolkit/effects/visual";
|
47
|
+
@import "toolkit/effects/pill";
|
48
|
+
@import "toolkit/effects/oval";
|
49
|
+
@import "toolkit/effects/skew";
|
50
|
+
|
51
|
+
// Place it last so it overrides other elements
|
52
|
+
@import "toolkit/layout/responsive";
|
@@ -56,4 +56,8 @@ $oval-y: 2.75rem !default;
|
|
56
56
|
$skew-x: 1rem !default;
|
57
57
|
$skew-y: 3rem !default;
|
58
58
|
$skew: $skew-x $skew-y;
|
59
|
-
$skew-reverse: $skew-y $skew-x;
|
59
|
+
$skew-reverse: $skew-y $skew-x;
|
60
|
+
|
61
|
+
//-------------------- Misc --------------------//
|
62
|
+
|
63
|
+
$default-transition: .3s !default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
|
+
*/
|
6
|
+
|
7
|
+
@import "../common";
|
8
|
+
|
9
|
+
//-------------------- Button --------------------//
|
10
|
+
|
11
|
+
.button.oval { border-radius: #{$oval-x} / #{$oval-y}; }
|
12
|
+
|
13
|
+
//-------------------- Pagination --------------------//
|
14
|
+
|
15
|
+
.pagination.pagination--grouped.oval {
|
16
|
+
ul {
|
17
|
+
border-radius: #{$oval-x} / #{$oval-y};
|
18
|
+
}
|
19
|
+
|
20
|
+
li:first-child .button {
|
21
|
+
border-radius: #{$oval-x} 0 0 #{$oval-x} / #{$oval-y} 0 0 #{$oval-y};
|
22
|
+
}
|
23
|
+
|
24
|
+
li:last-child .button {
|
25
|
+
border-radius: 0 #{$oval-x} #{$oval-x} 0 / 0 #{$oval-y} #{$oval-y} 0;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
//-------------------- Visual --------------------//
|
30
|
+
|
31
|
+
.visual-gloss.oval:after {
|
32
|
+
width: 90%;
|
33
|
+
left: 5.5%;
|
34
|
+
border-radius: 5rem 5rem 4rem 4rem / 1.5rem 1.5rem 1.5rem 1.5rem;
|
35
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
|
+
*/
|
6
|
+
|
7
|
+
@import "../common";
|
8
|
+
|
9
|
+
//-------------------- Button --------------------//
|
10
|
+
|
11
|
+
.button.pill { border-radius: $pill; }
|
12
|
+
|
13
|
+
//-------------------- ButtonGroup --------------------//
|
14
|
+
|
15
|
+
.button-group.pill {
|
16
|
+
border-radius: $pill;
|
17
|
+
|
18
|
+
> li:first-child .button,
|
19
|
+
> .button:first-child,
|
20
|
+
> .button.first {
|
21
|
+
border-top-left-radius: $pill;
|
22
|
+
border-bottom-left-radius: $pill;
|
23
|
+
}
|
24
|
+
|
25
|
+
> li:last-child .button,
|
26
|
+
> .button:last-child,
|
27
|
+
> .button.last {
|
28
|
+
border-top-right-radius: $pill;
|
29
|
+
border-bottom-right-radius: $pill;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.button-group.button-group--vertical.pill {
|
34
|
+
border-radius: $pill;
|
35
|
+
|
36
|
+
.button { border-radius: 0; }
|
37
|
+
|
38
|
+
> li:first-child .button,
|
39
|
+
> .button:first-child {
|
40
|
+
border-top-left-radius: $pill;
|
41
|
+
border-top-right-radius: $pill;
|
42
|
+
}
|
43
|
+
|
44
|
+
> li:last-child .button,
|
45
|
+
> .button:last-child {
|
46
|
+
border-bottom-left-radius: $pill;
|
47
|
+
border-bottom-right-radius: $pill;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
//-------------------- Pagination --------------------//
|
52
|
+
|
53
|
+
.pagination.pagination--grouped.pill {
|
54
|
+
ul {
|
55
|
+
border-radius: $pill;
|
56
|
+
}
|
57
|
+
|
58
|
+
li:first-child .button {
|
59
|
+
border-top-left-radius: $pill;
|
60
|
+
border-bottom-left-radius: $pill;
|
61
|
+
}
|
62
|
+
|
63
|
+
li:last-child .button {
|
64
|
+
border-top-right-radius: $pill;
|
65
|
+
border-bottom-right-radius: $pill;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
//-------------------- Visual --------------------//
|
70
|
+
|
71
|
+
.visual-gloss.pill:after {
|
72
|
+
width: 90%;
|
73
|
+
left: 5.5%;
|
74
|
+
border-radius: 1rem 1rem 2rem 2rem / 1rem 1rem 1rem 1rem;
|
75
|
+
}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
|
+
*/
|
6
|
+
|
7
|
+
@import "../common";
|
8
|
+
|
9
|
+
//-------------------- Button --------------------//
|
10
|
+
|
11
|
+
.button.skew { border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0; }
|
12
|
+
|
13
|
+
//-------------------- ButtonGroup --------------------//
|
14
|
+
|
15
|
+
.button-group.skew {
|
16
|
+
border-top-left-radius: $skew;
|
17
|
+
border-top-right-radius: $skew;
|
18
|
+
border-bottom-left-radius: 0;
|
19
|
+
border-bottom-right-radius: 0;
|
20
|
+
|
21
|
+
> li:first-child .button,
|
22
|
+
> .button:first-child,
|
23
|
+
> .button.first {
|
24
|
+
border-top-left-radius: $skew;
|
25
|
+
border-bottom-left-radius: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
> li:last-child .button,
|
29
|
+
> .button:last-child,
|
30
|
+
> .button.last {
|
31
|
+
border-top-right-radius: $skew;
|
32
|
+
border-bottom-right-radius: 0;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.button-group.button-group--vertical {
|
37
|
+
&.skew {
|
38
|
+
border-top-left-radius: $skew-y 1.5rem;
|
39
|
+
border-bottom-left-radius: $skew-y 1.5rem;
|
40
|
+
|
41
|
+
> li:first-child .button,
|
42
|
+
> .button:first-child {
|
43
|
+
border-top-left-radius: $skew-reverse;
|
44
|
+
}
|
45
|
+
|
46
|
+
> li:last-child .button,
|
47
|
+
> .button:last-child {
|
48
|
+
border-bottom-left-radius: $skew-reverse;
|
49
|
+
border-top-right-radius: 0;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
&.skew-reverse {
|
54
|
+
border-top-right-radius: $skew-y 1.25rem;
|
55
|
+
border-bottom-right-radius: $skew-y 1.25rem;
|
56
|
+
|
57
|
+
> li:first-child .button,
|
58
|
+
> .button:first-child {
|
59
|
+
border-top-right-radius: $skew-reverse;
|
60
|
+
}
|
61
|
+
|
62
|
+
> li:last-child .button,
|
63
|
+
> .button:last-child {
|
64
|
+
border-bottom-right-radius: $skew-reverse;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
//-------------------- Pagination --------------------//
|
70
|
+
|
71
|
+
.pagination.pagination--grouped.skew {
|
72
|
+
ul {
|
73
|
+
border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
li:first-child .button {
|
77
|
+
border-radius: #{$skew-x} 0 0 0 / #{$skew-y} 0 0 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
li:last-child .button {
|
81
|
+
border-radius: 0 #{$skew-x} 0 0 / 0 #{$skew-y} 0 0;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
//-------------------- Visual --------------------//
|
86
|
+
|
87
|
+
.visual-gloss.skew:after {
|
88
|
+
width: 90%;
|
89
|
+
left: 5.5%;
|
90
|
+
border-radius: 1rem 1rem 3rem 3rem / 1rem 1rem 2rem 2rem;
|
91
|
+
}
|