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.
Files changed (41) hide show
  1. data/readme.md +6 -13
  2. data/roadmap.md +5 -5
  3. data/scss/toolkit/_common.scss +4 -2
  4. data/scss/toolkit/components/accordion.scss +0 -3
  5. data/scss/toolkit/components/breadcrumbs.scss +4 -5
  6. data/scss/toolkit/components/button-group.scss +23 -9
  7. data/scss/toolkit/components/button.scss +4 -5
  8. data/scss/toolkit/components/carousel.scss +7 -21
  9. data/scss/toolkit/components/dropdown.scss +6 -7
  10. data/scss/toolkit/components/flyout.scss +47 -34
  11. data/scss/toolkit/components/grid.scss +7 -7
  12. data/scss/toolkit/components/icon.scss +1 -1
  13. data/scss/toolkit/components/input.scss +1 -6
  14. data/scss/toolkit/components/label.scss +27 -16
  15. data/scss/toolkit/components/modal.scss +7 -12
  16. data/scss/toolkit/components/notice.scss +0 -3
  17. data/scss/toolkit/components/pagination.scss +3 -1
  18. data/scss/toolkit/components/popover.scss +6 -6
  19. data/scss/toolkit/components/progress.scss +17 -3
  20. data/scss/toolkit/components/showcase.scss +1 -22
  21. data/scss/toolkit/components/table.scss +30 -13
  22. data/scss/toolkit/components/tabs.scss +5 -3
  23. data/scss/toolkit/components/tooltip.scss +2 -1
  24. data/scss/toolkit/components/type-ahead.scss +18 -5
  25. data/scss/toolkit/effects/oval.scss +3 -3
  26. data/scss/toolkit/effects/pill.scss +15 -4
  27. data/scss/toolkit/effects/skew.scss +4 -4
  28. data/scss/toolkit/layout/base.scss +16 -1
  29. data/scss/toolkit/layout/code.scss +1 -1
  30. data/scss/toolkit/layout/form.scss +1 -1
  31. data/scss/toolkit/mixins/_grid.scss +26 -19
  32. data/scss/toolkit/mixins/_helper.scss +10 -0
  33. data/scss/toolkit/mixins/_layout.scss +0 -60
  34. data/scss/toolkit/mixins/_responsive.scss +6 -0
  35. data/scss/toolkit/mixins/_state.scss +32 -0
  36. data/scss/toolkit/mixins/_unit.scss +73 -0
  37. data/scss/toolkit/themes/titon.scss +93 -24
  38. data/version.md +1 -1
  39. metadata +23 -15
  40. checksums.yaml +0 -7
  41. data/scss/ie8.scss +0 -184
@@ -0,0 +1,73 @@
1
+
2
+ // Remove the unit and return the integer
3
+ @function strip-unit($value) {
4
+ @return ($value / ($value * 0 + 1));
5
+ }
6
+
7
+ // Convert a unit value to a pixel while using $base-size as the reference
8
+ @function to-pixel($from) {
9
+ $from-unit: unit($from);
10
+
11
+ @if $from-unit == 'px' {
12
+ @return $from;
13
+
14
+ } @else if $from-unit == '%' or $from-unit == 'em' or $from-unit == 'rem' {
15
+ @return (strip-unit($from) * $base-size);
16
+
17
+ } @else {
18
+ @warn 'Unknown pixel conversion unit type.';
19
+ }
20
+
21
+ @return $from;
22
+ }
23
+
24
+ // Convert a unit value to a percentage while using $base-size as the reference
25
+ @function to-percent($from) {
26
+ $from-unit: unit($from);
27
+
28
+ @if $from-unit == '%' {
29
+ @return $from;
30
+
31
+ } @else if $from-unit == 'px' or $from-unit == 'em' or $from-unit == 'rem' {
32
+ @return percentage((to-pixel($from) / $base-size) / 100);
33
+
34
+ } @else {
35
+ @warn 'Unknown percentage conversion unit type.';
36
+ }
37
+
38
+ @return $from;
39
+ }
40
+
41
+ // Convert a unit value to a rem unit while using $base-size as the reference
42
+ @function to-rem($from) {
43
+ $from-unit: unit($from);
44
+
45
+ @if $from-unit == 'rem' {
46
+ @return $from;
47
+
48
+ } @else if $from-unit == 'px' or $from-unit == '%' or $from-unit == 'em' {
49
+ @return (to-pixel($from) / $base-size) * 1rem;
50
+
51
+ } @else {
52
+ @warn 'Unknown rem conversion unit type.';
53
+ }
54
+
55
+ @return $from;
56
+ }
57
+
58
+ // Convert a unit value to an em unit while using $base-size as the reference
59
+ @function to-em($from) {
60
+ $from-unit: unit($from);
61
+
62
+ @if $from-unit == 'em' {
63
+ @return $from;
64
+
65
+ } @else if $from-unit == 'px' or $from-unit == '%' or $from-unit == 'rem' {
66
+ @return (to-pixel($from) / $base-size) * 1em;
67
+
68
+ } @else {
69
+ @warn 'Unknown em conversion unit type.';
70
+ }
71
+
72
+ @return $from;
73
+ }
@@ -33,6 +33,8 @@ mark { background: lighten($warning-light, 25%); }
33
33
  //-------------------- Accordion --------------------//
34
34
 
35
35
  .accordion-head {
36
+ border: 1px solid $gray-dark;
37
+ margin: -1px;
36
38
  @include transition(all .15s);
37
39
 
38
40
  &:hover { background-color: $gray-light; }
@@ -46,6 +48,12 @@ mark { background: lighten($warning-light, 25%); }
46
48
  }
47
49
  }
48
50
 
51
+ //-------------------- Breadcrumbs --------------------//
52
+
53
+ .breadcrumbs {
54
+ border: 1px solid $gray-dark;
55
+ }
56
+
49
57
  //-------------------- Button --------------------//
50
58
 
51
59
  @mixin button-style($base, $light, $dark) {
@@ -57,14 +65,14 @@ mark { background: lighten($warning-light, 25%); }
57
65
  background-color: lighten($base, 5%);
58
66
  }
59
67
 
60
- @include active-state {
68
+ @include is-active {
61
69
  color: #fff;
62
70
  background-color: darken($base, 20%);
63
71
  text-shadow: 1px 1px $dark;
64
72
  border-color: darken($base, 30%);
65
73
  }
66
74
 
67
- @include disabled-state {
75
+ @include is-disabled {
68
76
  background: $base;
69
77
  border-color: $base;
70
78
  }
@@ -83,7 +91,7 @@ mark { background: lighten($warning-light, 25%); }
83
91
  top: 1px;
84
92
  }
85
93
 
86
- @include disabled-state {
94
+ @include is-disabled {
87
95
  box-shadow: none;
88
96
  text-shadow: none;
89
97
  top: 0;
@@ -96,9 +104,43 @@ mark { background: lighten($warning-light, 25%); }
96
104
  &.is-success { @include button-style($success, $success-light, $success-dark); }
97
105
  }
98
106
 
107
+ //-------------------- Carousel, Showcase --------------------//
108
+
109
+ .carousel-prev,
110
+ .carousel-next,
111
+ .showcase-prev,
112
+ .showcase-next {
113
+ opacity: $carousel-opacity;
114
+
115
+ .arrow-left,
116
+ .arrow-right {
117
+ color: #fff;
118
+ font-size: 2rem;
119
+ }
120
+
121
+ &:hover { opacity: 1; }
122
+
123
+ // Large icons for large resolutions
124
+ @include if-tablet-landscape {
125
+ .arrow-left,
126
+ .arrow-right {
127
+ font-size: 3rem;
128
+ }
129
+ }
130
+ }
131
+
132
+ .showcase-close {
133
+ opacity: $showcase-opacity;
134
+
135
+ .x { color: #fff; }
136
+
137
+ &:hover { opacity: 1; }
138
+ }
139
+
99
140
  //-------------------- Dropdown --------------------//
100
141
 
101
142
  .dropdown {
143
+ border: 1px solid $gray-dark;
102
144
  box-shadow: 5px 5px black(.25);
103
145
 
104
146
  li {
@@ -125,11 +167,11 @@ mark { background: lighten($warning-light, 25%); }
125
167
  background-color: $gray-dark !important;
126
168
  }
127
169
 
128
- .dropdown.dropdown--top {
170
+ .dropdown.on-top {
129
171
  box-shadow: 5px -5px black(.25);
130
172
  }
131
173
 
132
- .dropdown.dropdown--left {
174
+ .dropdown.on-left {
133
175
  box-shadow: -5px 5px black(.25);
134
176
  }
135
177
 
@@ -144,7 +186,6 @@ mark { background: lighten($warning-light, 25%); }
144
186
 
145
187
  li {
146
188
  &:nth-child(odd) > a { background: $gray-lightest; }
147
- &.heading { background: $gray-dark; }
148
189
 
149
190
  > a:hover,
150
191
  &.is-open > a,
@@ -160,10 +201,35 @@ mark { background: lighten($warning-light, 25%); }
160
201
  .type-ahead-highlight { background: $warning-light; }
161
202
 
162
203
  .type-ahead {
163
- li a:hover,
164
- li.is-active a {
165
- .type-ahead-desc { color: $gray-lightest; }
166
- .type-ahead-highlight{ background: $info-light; color: $info-dark; }
204
+ li {
205
+ > a:hover,
206
+ &.is-active a {
207
+ .type-ahead-desc { color: $gray-lightest; }
208
+ .type-ahead-highlight{ background: $info-light; color: $info-dark; }
209
+ }
210
+ }
211
+ }
212
+
213
+ //-------------------- Input --------------------//
214
+
215
+ .custom-input {
216
+ .checkbox,
217
+ .radio,
218
+ .select {
219
+ @include transition(all $default-transition);
220
+ }
221
+
222
+ input {
223
+ &:checked + .checkbox,
224
+ &:checked + .radio {
225
+ box-shadow: 0 0 5px $info-light;
226
+ }
227
+ }
228
+
229
+ select {
230
+ &:focus + .select {
231
+ box-shadow: 0 0 5px $info-light;
232
+ }
167
233
  }
168
234
  }
169
235
 
@@ -194,7 +260,9 @@ mark { background: lighten($warning-light, 25%); }
194
260
  &.is-success { @include label-style($success-light, $success-dark); }
195
261
  }
196
262
 
197
- .label.label--arrow-left {
263
+ .label--arrow-left {
264
+ @extend .label;
265
+
198
266
  &:after { border-right-color: $default-light; }
199
267
  &.is-info:after { border-right-color: $info-light; }
200
268
  &.is-error:after { border-right-color: $error-light; }
@@ -202,7 +270,9 @@ mark { background: lighten($warning-light, 25%); }
202
270
  &.is-success:after { border-right-color: $success-light; }
203
271
  }
204
272
 
205
- .label.label--arrow-right {
273
+ .label--arrow-right {
274
+ @extend .label;
275
+
206
276
  &:after { border-left-color: $default-light; }
207
277
  &.is-info:after { border-left-color: $info-light; }
208
278
  &.is-error:after { border-left-color: $error-light; }
@@ -210,7 +280,9 @@ mark { background: lighten($warning-light, 25%); }
210
280
  &.is-success:after { border-left-color: $success-light; }
211
281
  }
212
282
 
213
- .label.label--ribbon-left {
283
+ .label--ribbon-left {
284
+ @extend .label;
285
+
214
286
  &:after { border-right-color: darken($default, 15%); }
215
287
  &.is-info:after { border-right-color: darken($info-light, 15%); }
216
288
  &.is-error:after { border-right-color: darken($error-light, 15%); }
@@ -218,7 +290,9 @@ mark { background: lighten($warning-light, 25%); }
218
290
  &.is-success:after { border-right-color: darken($success-light, 15%); }
219
291
  }
220
292
 
221
- .label.label--ribbon-right {
293
+ .label--ribbon-right {
294
+ @extend .label;
295
+
222
296
  &:after { border-left-color: darken($default, 15%); }
223
297
  &.is-info:after { border-left-color: darken($info-light, 15%); }
224
298
  &.is-error:after { border-left-color: darken($error-light, 15%); }
@@ -228,8 +302,11 @@ mark { background: lighten($warning-light, 25%); }
228
302
 
229
303
  //-------------------- Modal --------------------//
230
304
 
231
- .modal-outer {
305
+ .modal {
232
306
  margin: $margin;
307
+ }
308
+
309
+ .modal-inner {
233
310
  background: $gray;
234
311
  border: 1px solid $gray-dark;
235
312
  box-shadow: 5px 5px black(.25);
@@ -337,14 +414,13 @@ mark { background: lighten($warning-light, 25%); }
337
414
  @mixin progress-style($bg, $border) {
338
415
  background: $bg;
339
416
  text-shadow: 1px 1px $border;
340
- border: 1px solid lighten($border, 35%);
417
+ border: 1px solid darken($bg, 12%);
341
418
 
342
419
  @content;
343
420
  }
344
421
 
345
422
  .progress {
346
423
  box-shadow: inset 1px 1px 2px $gray-darkest;
347
- border-radius: $round;
348
424
 
349
425
  &.is-info .progress-bar { @include progress-style($info, $info-dark); }
350
426
  &.is-error .progress-bar { @include progress-style($error, $error-dark); }
@@ -355,16 +431,9 @@ mark { background: lighten($warning-light, 25%); }
355
431
  .progress-bar {
356
432
  color: #fff;
357
433
  font-weight: bold;
358
- border-top-left-radius: $round;
359
- border-bottom-left-radius: $round;
360
434
  @include progress-style($default, $default-dark);
361
435
  }
362
436
 
363
- .progress-bar + .progress-bar {
364
- border-top-left-radius: 0;
365
- border-bottom-left-radius: 0;
366
- }
367
-
368
437
  //-------------------- Tooltip --------------------//
369
438
 
370
439
  .tooltip {
data/version.md CHANGED
@@ -1 +1 @@
1
- 1.0.0-rc.2
1
+ 1.0.0-rc.3
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: titon-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.2
4
+ version: 1.0.0.rc.3
5
+ prerelease: 6
5
6
  platform: ruby
6
7
  authors:
7
8
  - Titon
@@ -9,47 +10,49 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-11-16 00:00:00.000000000 Z
13
+ date: 2013-11-26 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: sass
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
- - - '>='
20
+ - - ! '>='
19
21
  - !ruby/object:Gem::Version
20
22
  version: 3.2.0
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
- - - '>='
28
+ - - ! '>='
26
29
  - !ruby/object:Gem::Version
27
30
  version: 3.2.0
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: compass
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
- - - '>='
36
+ - - ! '>='
33
37
  - !ruby/object:Gem::Version
34
38
  version: '0.11'
35
39
  type: :runtime
36
40
  prerelease: false
37
41
  version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
- - - '>='
44
+ - - ! '>='
40
45
  - !ruby/object:Gem::Version
41
46
  version: '0.11'
42
- description: A powerful front-end UI and component toolkit. Provides Sass files for
43
- use in projects.
47
+ description: A collection of extensible front-end UI components for the responsive
48
+ web.
44
49
  email:
45
50
  executables: []
46
51
  extensions: []
47
52
  extra_rdoc_files: []
48
53
  files:
49
54
  - lib/titon-toolkit.rb
50
- - scss/ie8.scss
51
55
  - scss/normalize.scss
52
- - scss/toolkit/_common.scss
53
56
  - scss/toolkit/components/accordion.scss
54
57
  - scss/toolkit/components/blackout.scss
55
58
  - scss/toolkit/components/breadcrumbs.scss
@@ -86,9 +89,13 @@ files:
86
89
  - scss/toolkit/layout/responsive.scss
87
90
  - scss/toolkit/layout/typography.scss
88
91
  - scss/toolkit/mixins/_grid.scss
92
+ - scss/toolkit/mixins/_helper.scss
89
93
  - scss/toolkit/mixins/_layout.scss
90
94
  - scss/toolkit/mixins/_responsive.scss
95
+ - scss/toolkit/mixins/_state.scss
96
+ - scss/toolkit/mixins/_unit.scss
91
97
  - scss/toolkit/themes/titon.scss
98
+ - scss/toolkit/_common.scss
92
99
  - scss/toolkit.scss
93
100
  - license.md
94
101
  - readme.md
@@ -97,25 +104,26 @@ files:
97
104
  homepage: http://titon.io
98
105
  licenses:
99
106
  - BSD-2
100
- metadata: {}
101
107
  post_install_message:
102
108
  rdoc_options: []
103
109
  require_paths:
104
110
  - lib
105
111
  required_ruby_version: !ruby/object:Gem::Requirement
112
+ none: false
106
113
  requirements:
107
- - - '>='
114
+ - - ! '>='
108
115
  - !ruby/object:Gem::Version
109
116
  version: '0'
110
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
+ none: false
111
119
  requirements:
112
- - - '>'
120
+ - - ! '>'
113
121
  - !ruby/object:Gem::Version
114
122
  version: 1.3.1
115
123
  requirements: []
116
124
  rubyforge_project:
117
- rubygems_version: 2.0.3
125
+ rubygems_version: 1.8.23
118
126
  signing_key:
119
- specification_version: 4
127
+ specification_version: 3
120
128
  summary: Provides Titon Toolkit Sass files for use in projects.
121
129
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: fc30641f32e37d76624fe6ad5b150e5813da1286
4
- data.tar.gz: 2611239a2d146aa078fee9fd5f9c1f4c581a1c07
5
- SHA512:
6
- metadata.gz: 21871c29c0afb5e6f976fefa941547429220db7ab65ce79ed5f74504aca057dbb7012c6d1075026f3865d25f40ec24a49a044808797e44ad8356860336e19ab0
7
- data.tar.gz: 1f7851607db03b0070ef94f2c91566377e37df6915f8ad205235d8fdbe0aa6fa387cbf3519c7d37cc495573e7d436f1cfe25dcca23e503c5be209aa74f35048c
data/scss/ie8.scss DELETED
@@ -1,184 +0,0 @@
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,
29
- .arrow-up,
30
- .arrow-down,
31
- .arrow-left,
32
- .arrow-right { font-size: 24px; }
33
-
34
- .input,
35
- .input-static,
36
- .breadcrumbs a,
37
- .button {
38
- font-size: $font;
39
- }
40
-
41
- code,
42
- var,
43
- kbd,
44
- pre,
45
- blockquote cite,
46
- .field-help,
47
- .breadcrumbs.small a,
48
- .button.small,
49
- .small .button {
50
- font-size: $font-small;
51
- }
52
-
53
- legend,
54
- .breadcrumbs.large a,
55
- .button.large,
56
- .large .button {
57
- font-size: $font-large;
58
- }
59
-
60
- .type-ahead-desc,
61
- .progress-bar {
62
- font-size: 9px;
63
- }
64
-
65
- pre,
66
- .input,
67
- .input-static,
68
- .form--horizontal .field-label,
69
- .input-addon,
70
- .table td,
71
- .table th,
72
- .table.table--sortable thead th a,
73
- .table.table--sortable thead th span,
74
- .accordion-head,
75
- .accordion-body,
76
- .carousel-caption,
77
- .carousel-prev,
78
- .carousel-next,
79
- .carousel-tabs,
80
- .modal-head,
81
- .modal-body,
82
- .modal-foot,
83
- .modal-loading,
84
- .modal-error,
85
- .showcase-inner,
86
- .showcase-caption,
87
- .showcase-prev,
88
- .showcase-next,
89
- .showcase-tabs,
90
- .notice,
91
- .breadcrumbs a,
92
- .button {
93
- padding: $padding;
94
- }
95
-
96
- .table.table--compact thead th,
97
- .table.table--compact thead td,
98
- .table.table--compact.table--sortable thead th a,
99
- .table.table--compact.table--sortable thead th span,
100
- .flyout ul li > a,
101
- .flyout-divider,
102
- .popover-head,
103
- .popover-body,
104
- .tooltip,
105
- .type-ahead ul li a
106
- .type-ahead-heading,
107
- .breadcrumbs.small a,
108
- .button.small,
109
- .small .button,
110
- .dropdown li > a,
111
- .dropdown-heading,
112
- .type-ahead ul a {
113
- padding: $padding-small;
114
- }
115
-
116
- .breadcrumbs.large a,
117
- .button.large,
118
- .large .button {
119
- padding: $padding-large;
120
- }
121
-
122
- fieldset { padding: $padding 0; }
123
- blockquote { padding: 0 $padding; }
124
- legend { padding-right: $padding; }
125
-
126
- pre, p, ul, ol, hr,
127
- .notice,
128
- .breadcrumbs,
129
- .pagination {
130
- margin: $margin 0;
131
- }
132
-
133
- blockquote { margin: $margin; }
134
-
135
- .notice-close,
136
- .button-group + .button-group,
137
- .breadcrumbs a .divider {
138
- margin-left: $margin;
139
- }
140
-
141
- .field,
142
- .tabs-nav {
143
- margin-bottom: $margin;
144
- }
145
-
146
- .form--inline .field,
147
- .form--inline .field-label,
148
- .form--inline .form-actions {
149
- margin-right: $margin;
150
- margin-bottom: $margin / 2;
151
- }
152
-
153
- .form--inline .field-label { margin: 0 ($margin / 2) 0 0; }
154
- .form--horizontal .field-col { padding-left: $margin; }
155
- .notice { margin: 0 0 ($margin / 2) 0; }
156
- .dropdown-divider { margin: ($margin / 2) 0; }
157
- .pagination li { margin-right: $padding / 2; }
158
-
159
- .showcase-tabs { top: $padding; }
160
- .showcase-prev { left: $padding; }
161
- .showcase-next { right: $padding; }
162
-
163
- .label { padding: 5px; font-size: 10px; }
164
- .label.small { padding: 3px; font-size: 9px; }
165
- .label.large { padding: 8px; font-size: 12px; }
166
-
167
- .modal-close,
168
- .showcase-close { top: $padding; right: $padding; }
169
-
170
- // IE8 does not support rgba
171
- // So use solid colors instead
172
-
173
- .blackout { background: #000; filter: alpha(opacity=50); }
174
-
175
- .carousel-caption,
176
- .showcase-caption { background: #000; filter: alpha(opacity=70); }
177
-
178
- .carousel-tabs,
179
- .showcase-tabs { left: auto; right: auto; top: $padding; }
180
-
181
- .showcase-next,
182
- .showcase-prev,
183
- .carousel-next,
184
- .carousel-prev { margin-top: -20px; }