titon-toolkit 1.0.5 → 1.1.0.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/changelog.md +70 -30
  3. data/readme.md +5 -5
  4. data/roadmap.md +19 -7
  5. data/scss/toolkit.scss +3 -1
  6. data/scss/toolkit/_common.scss +21 -3
  7. data/scss/toolkit/components/accordion.scss +1 -4
  8. data/scss/toolkit/components/blackout.scss +10 -0
  9. data/scss/toolkit/components/breadcrumb.scss +1 -4
  10. data/scss/toolkit/components/button-group.scss +7 -6
  11. data/scss/toolkit/components/button.scss +7 -3
  12. data/scss/toolkit/components/carousel.scss +1 -3
  13. data/scss/toolkit/components/{dropdown.scss → drop.scss} +31 -21
  14. data/scss/toolkit/components/flyout.scss +1 -3
  15. data/scss/toolkit/components/grid.scss +5 -0
  16. data/scss/toolkit/components/icon.scss +5 -26
  17. data/scss/toolkit/components/input-group.scss +1 -1
  18. data/scss/toolkit/components/input.scss +31 -1
  19. data/scss/toolkit/components/loader.scss +163 -0
  20. data/scss/toolkit/components/mask.scss +35 -0
  21. data/scss/toolkit/components/matrix.scss +2 -5
  22. data/scss/toolkit/components/modal.scss +1 -1
  23. data/scss/toolkit/components/pagination.scss +2 -5
  24. data/scss/toolkit/components/progress.scss +1 -1
  25. data/scss/toolkit/components/showcase.scss +3 -3
  26. data/scss/toolkit/components/table.scss +4 -0
  27. data/scss/toolkit/components/tabs.scss +2 -2
  28. data/scss/toolkit/components/type-ahead.scss +2 -4
  29. data/scss/toolkit/effects/oval.scss +3 -3
  30. data/scss/toolkit/effects/pill.scss +6 -6
  31. data/scss/toolkit/effects/skew.scss +6 -6
  32. data/scss/toolkit/effects/visual.scss +1 -1
  33. data/scss/toolkit/layout/base.scss +2 -2
  34. data/scss/toolkit/layout/form.scss +0 -1
  35. data/scss/toolkit/mixins/_grid.scss +0 -1
  36. data/scss/toolkit/mixins/_layout.scss +16 -8
  37. data/scss/toolkit/themes/titon.scss +34 -11
  38. data/version.md +1 -1
  39. metadata +21 -5
@@ -17,9 +17,7 @@
17
17
  @include transition(opacity 0.3s);
18
18
 
19
19
  ul {
20
- list-style: none;
21
- margin: 0;
22
- padding: 0;
20
+ @include reset-list;
23
21
  min-width: 200px;
24
22
  }
25
23
 
@@ -66,7 +64,7 @@
66
64
  left: 0;
67
65
  }
68
66
 
69
- .#{$state-is-prefix}shadow {
67
+ .is-shadow {
70
68
  color: gray;
71
69
  }
72
70
 
@@ -8,11 +8,11 @@
8
8
 
9
9
  //-------------------- Button --------------------//
10
10
 
11
- .#{$vendor-prefix}button.oval { border-radius: #{$oval-x} / #{$oval-y}; }
11
+ .#{$vendor-prefix}button.#{$shape-oval-class} { border-radius: #{$oval-x} / #{$oval-y}; }
12
12
 
13
13
  //-------------------- Pagination --------------------//
14
14
 
15
- .#{$vendor-prefix}pagination--grouped.oval {
15
+ .#{$vendor-prefix}pagination--grouped.#{$shape-oval-class} {
16
16
  ul {
17
17
  border-radius: #{$oval-x} / #{$oval-y};
18
18
  }
@@ -28,7 +28,7 @@
28
28
 
29
29
  //-------------------- Visual --------------------//
30
30
 
31
- .#{$vendor-prefix}visual-gloss.oval:after {
31
+ .#{$vendor-prefix}visual-gloss.#{$shape-oval-class}:after {
32
32
  width: 90%;
33
33
  left: 5.5%;
34
34
  border-radius: 5rem 5rem 4rem 4rem / 1.5rem 1.5rem 1.5rem 1.5rem;
@@ -8,11 +8,11 @@
8
8
 
9
9
  //-------------------- Button --------------------//
10
10
 
11
- .#{$vendor-prefix}button.pill { border-radius: $pill; }
11
+ .#{$vendor-prefix}button.#{$shape-pill-class} { border-radius: $pill; }
12
12
 
13
13
  //-------------------- ButtonGroup --------------------//
14
14
 
15
- .#{$vendor-prefix}button-group.pill {
15
+ .#{$vendor-prefix}button-group.#{$shape-pill-class} {
16
16
  border-radius: $pill;
17
17
 
18
18
  > li:first-child .#{$vendor-prefix}button,
@@ -30,7 +30,7 @@
30
30
  }
31
31
  }
32
32
 
33
- .#{$vendor-prefix}button-group--vertical.pill {
33
+ .#{$vendor-prefix}button-group--vertical.#{$shape-pill-class} {
34
34
  border-radius: $pill;
35
35
 
36
36
  > li:first-child .#{$vendor-prefix}button,
@@ -52,7 +52,7 @@
52
52
 
53
53
  //-------------------- Pagination --------------------//
54
54
 
55
- .#{$vendor-prefix}pagination--grouped.pill {
55
+ .#{$vendor-prefix}pagination--grouped.#{$shape-pill-class} {
56
56
  ul {
57
57
  border-radius: $pill;
58
58
  }
@@ -70,7 +70,7 @@
70
70
 
71
71
  //-------------------- Progress --------------------//
72
72
 
73
- .#{$vendor-prefix}progress.pill {
73
+ .#{$vendor-prefix}progress.#{$shape-pill-class} {
74
74
  border-radius: $pill;
75
75
 
76
76
  .#{$vendor-prefix}progress-bar {
@@ -81,7 +81,7 @@
81
81
 
82
82
  //-------------------- Visual --------------------//
83
83
 
84
- .#{$vendor-prefix}visual-gloss.pill:after {
84
+ .#{$vendor-prefix}visual-gloss.#{$shape-pill-class}:after {
85
85
  width: 90%;
86
86
  left: 5.5%;
87
87
  border-radius: 1rem 1rem 2rem 2rem / 1rem 1rem 1rem 1rem;
@@ -8,11 +8,11 @@
8
8
 
9
9
  //-------------------- Button --------------------//
10
10
 
11
- .#{$vendor-prefix}button.skew { border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0; }
11
+ .#{$vendor-prefix}button.#{$shape-skew-class} { border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0; }
12
12
 
13
13
  //-------------------- ButtonGroup --------------------//
14
14
 
15
- .#{$vendor-prefix}button-group.skew {
15
+ .#{$vendor-prefix}button-group.#{$shape-skew-class} {
16
16
  border-top-left-radius: $skew;
17
17
  border-top-right-radius: $skew;
18
18
  border-bottom-left-radius: 0;
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .#{$vendor-prefix}button-group--vertical {
37
- &.skew {
37
+ &.#{$shape-skew-class} {
38
38
  border-top-left-radius: $skew-y 1.5rem;
39
39
  border-bottom-left-radius: $skew-y 1.5rem;
40
40
 
@@ -50,7 +50,7 @@
50
50
  }
51
51
  }
52
52
 
53
- &.skew-reverse {
53
+ &.#{$shape-skew-class}-reverse {
54
54
  border-top-right-radius: $skew-y 1.25rem;
55
55
  border-bottom-right-radius: $skew-y 1.25rem;
56
56
 
@@ -68,7 +68,7 @@
68
68
 
69
69
  //-------------------- Pagination --------------------//
70
70
 
71
- .#{$vendor-prefix}pagination--grouped.skew {
71
+ .#{$vendor-prefix}pagination--grouped.#{$shape-skew-class} {
72
72
  ul {
73
73
  border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0;
74
74
  }
@@ -84,7 +84,7 @@
84
84
 
85
85
  //-------------------- Visual --------------------//
86
86
 
87
- .#{$vendor-prefix}visual-gloss.skew:after {
87
+ .#{$vendor-prefix}visual-gloss.#{$shape-skew-class}:after {
88
88
  width: 90%;
89
89
  left: 5.5%;
90
90
  border-radius: 1rem 1rem 3rem 3rem / 1rem 1rem 2rem 2rem;
@@ -20,7 +20,7 @@
20
20
  @include background-image(linear-gradient(left, white(.3) 0%, white(0) 50%, white(.3) 100%));
21
21
  }
22
22
 
23
- &.round:after {
23
+ &.#{$shape-round-class}:after {
24
24
  border-radius: .2rem .2rem 2rem 2rem / .5rem .5rem 1rem 1rem;
25
25
  width: 98%;
26
26
  left: 1.5%;
@@ -51,7 +51,7 @@
51
51
  }
52
52
 
53
53
  // Styles
54
- .round { border-radius: $round; }
54
+ .#{$shape-round-class} { border-radius: $round; }
55
55
  .#{$state-is-prefix}draggable { cursor: move; }
56
56
  .#{$state-is-prefix}dragging { cursor: grabbing; }
57
57
  .#{$state-is-prefix}disabled,
@@ -93,7 +93,7 @@
93
93
  .arrow-right:before {
94
94
  display: inline-block;
95
95
  position: relative;
96
- content: "\025B3"; /* bigtriangleup */
96
+ content: "\025B4"; /* blacktriangle */
97
97
  }
98
98
 
99
99
  .arrow-right:before { @include transform(rotate(90deg)); }
@@ -114,7 +114,6 @@ select.#{$vendor-prefix}input {
114
114
  }
115
115
 
116
116
  select.#{$vendor-prefix}input[multiple] {
117
- min-height: 150px;
118
117
  max-height: 500px;
119
118
  }
120
119
 
@@ -32,7 +32,6 @@
32
32
 
33
33
  // Styles for the grid row containing the columns.
34
34
  @mixin grid-row($width: $grid-width) {
35
- text-align: left;
36
35
  width: $width;
37
36
  max-width: $width;
38
37
 
@@ -3,25 +3,33 @@
3
3
  @mixin clear-fix {
4
4
  &:after {
5
5
  content: "";
6
- display: block;
7
- height: 0;
8
- line-height: 0;
6
+ display: table;
9
7
  clear: both;
10
- visibility: hidden;
11
8
  }
12
9
  }
13
10
 
14
11
  // Reset an inline-block element to defaults
15
12
  @mixin reset-inline-block {
16
13
  display: inline-block;
17
- border: 0;
18
- margin: 0;
19
- padding: 0;
20
14
  position: relative;
21
- text-decoration: none;
22
15
  vertical-align: middle;
23
16
  }
24
17
 
18
+ // Reset a list and remove default styles
19
+ @mixin reset-list {
20
+ list-style: none;
21
+ margin: 0;
22
+ padding: 0;
23
+ }
24
+
25
+ // Align an element in the center of another element
26
+ @mixin position-center {
27
+ position: absolute;
28
+ left: 50%;
29
+ top: 50%;
30
+ @include transform(translate(-50%, -50%));
31
+ }
32
+
25
33
  // Remove the top and bottom margin from content elements
26
34
  // Allows for perfect spacing within content blocks
27
35
  @mixin content-spacing {
@@ -137,21 +137,32 @@ mark { background: lighten($warning-light, 25%); }
137
137
  &:hover { opacity: 1; }
138
138
  }
139
139
 
140
- //-------------------- Dropdown --------------------//
140
+ //-------------------- Drop --------------------//
141
141
 
142
- .dropdown {
142
+ .drop--down,
143
+ .drop--up,
144
+ .drop--right,
145
+ .drop--left {
143
146
  border: 1px solid $gray-dark;
144
147
  box-shadow: 5px 5px black(.25);
145
148
 
146
149
  li {
147
- a .caret-right {
148
- top: 2px;
150
+ > a {
151
+ color: darken($info, 15%);
152
+
153
+ .caret-right { top: 2px; }
149
154
  }
150
155
 
151
156
  &:hover > a {
152
- background: $info;
157
+ color: darken($info, 15%);
158
+ background: $info-light;
159
+ }
160
+
161
+ &.is-active > a {
153
162
  color: #fff;
163
+ background: $info;
154
164
 
165
+ .drop-desc { color: #fff; }
155
166
  .caret-right { border-left-color: #fff; }
156
167
  }
157
168
 
@@ -161,20 +172,26 @@ mark { background: lighten($warning-light, 25%); }
161
172
  }
162
173
  }
163
174
 
164
- .dropdown-heading {
175
+ .drop-heading {
165
176
  color: $default;
166
177
  font-size: .8rem;
167
178
  background-color: $gray-dark !important;
168
179
  }
169
180
 
170
- .dropdown.on-top {
181
+ .drop--up {
171
182
  box-shadow: 5px -5px black(.25);
172
183
  }
173
184
 
174
- .dropdown.on-left {
185
+ .drop--left {
175
186
  box-shadow: -5px 5px black(.25);
176
187
  }
177
188
 
189
+ .drop-desc {
190
+ display: block;
191
+ color: $gray-darkest;
192
+ font-size: .7rem;
193
+ }
194
+
178
195
  //-------------------- Flyout, TypeAhead --------------------//
179
196
 
180
197
  .flyout,
@@ -226,9 +243,15 @@ mark { background: lighten($warning-light, 25%); }
226
243
  }
227
244
  }
228
245
 
229
- select {
230
- &:focus + .select {
231
- box-shadow: 0 0 5px $info-light;
246
+ select:focus + .select,
247
+ .select.is-active {
248
+ box-shadow: 0 0 5px $info-light;
249
+ }
250
+
251
+ .select.is-active {
252
+ .caret-down {
253
+ top: -5px;
254
+ @include transform(rotate(-180deg));
232
255
  }
233
256
  }
234
257
  }
data/version.md CHANGED
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.1.0-rc.1
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.0.5
4
+ version: 1.1.0.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-07 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -39,6 +39,20 @@ dependencies:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0.11'
42
+ - !ruby/object:Gem::Dependency
43
+ name: animation
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: 0.1.alpha.0
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.1.alpha.0
42
56
  description: A collection of extensible front-end UI components for the responsive
43
57
  web.
44
58
  email:
@@ -55,7 +69,7 @@ files:
55
69
  - scss/toolkit/components/button-group.scss
56
70
  - scss/toolkit/components/button.scss
57
71
  - scss/toolkit/components/carousel.scss
58
- - scss/toolkit/components/dropdown.scss
72
+ - scss/toolkit/components/drop.scss
59
73
  - scss/toolkit/components/flyout.scss
60
74
  - scss/toolkit/components/grid.scss
61
75
  - scss/toolkit/components/icon.scss
@@ -63,6 +77,8 @@ files:
63
77
  - scss/toolkit/components/input.scss
64
78
  - scss/toolkit/components/label.scss
65
79
  - scss/toolkit/components/lazy-load.scss
80
+ - scss/toolkit/components/loader.scss
81
+ - scss/toolkit/components/mask.scss
66
82
  - scss/toolkit/components/matrix.scss
67
83
  - scss/toolkit/components/modal.scss
68
84
  - scss/toolkit/components/notice.scss
@@ -112,9 +128,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
128
  version: '0'
113
129
  required_rubygems_version: !ruby/object:Gem::Requirement
114
130
  requirements:
115
- - - ">="
131
+ - - ">"
116
132
  - !ruby/object:Gem::Version
117
- version: '0'
133
+ version: 1.3.1
118
134
  requirements: []
119
135
  rubyforge_project:
120
136
  rubygems_version: 2.1.11