titon-toolkit 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/readme.md +1 -4
  3. data/scss/toolkit/_common.scss +9 -0
  4. data/scss/toolkit/components/accordion.scss +5 -5
  5. data/scss/toolkit/components/blackout.scss +1 -1
  6. data/scss/toolkit/components/breadcrumb.scss +13 -9
  7. data/scss/toolkit/components/button-group.scss +34 -26
  8. data/scss/toolkit/components/button.scss +4 -4
  9. data/scss/toolkit/components/carousel.scss +18 -18
  10. data/scss/toolkit/components/dropdown.scss +13 -13
  11. data/scss/toolkit/components/flyout.scss +6 -6
  12. data/scss/toolkit/components/grid.scss +2 -2
  13. data/scss/toolkit/components/input-group.scss +16 -15
  14. data/scss/toolkit/components/input.scss +20 -19
  15. data/scss/toolkit/components/label.scss +22 -17
  16. data/scss/toolkit/components/lazy-load.scss +1 -1
  17. data/scss/toolkit/components/matrix.scss +3 -3
  18. data/scss/toolkit/components/modal.scss +34 -34
  19. data/scss/toolkit/components/notice.scss +3 -3
  20. data/scss/toolkit/components/pagination.scss +4 -4
  21. data/scss/toolkit/components/pin.scss +2 -2
  22. data/scss/toolkit/components/popover.scss +12 -12
  23. data/scss/toolkit/components/progress.scss +25 -13
  24. data/scss/toolkit/components/showcase.scss +18 -18
  25. data/scss/toolkit/components/table.scss +10 -10
  26. data/scss/toolkit/components/tabs.scss +6 -6
  27. data/scss/toolkit/components/tooltip.scss +12 -12
  28. data/scss/toolkit/components/type-ahead.scss +7 -7
  29. data/scss/toolkit/effects/oval.scss +3 -3
  30. data/scss/toolkit/effects/pill.scss +17 -17
  31. data/scss/toolkit/effects/skew.scss +19 -19
  32. data/scss/toolkit/effects/visual.scss +4 -4
  33. data/scss/toolkit/layout/base.scss +3 -3
  34. data/scss/toolkit/layout/code.scss +1 -1
  35. data/scss/toolkit/layout/form.scss +44 -44
  36. data/scss/toolkit/mixins/_layout.scss +35 -0
  37. data/scss/toolkit/mixins/_state.scss +16 -12
  38. data/scss/toolkit/themes/titon.scss +2 -1
  39. data/version.md +1 -1
  40. metadata +9 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 255f3100b0f5ad48091522c492aeab278e8c9ae6
4
- data.tar.gz: 7a201853a7209808156e21aae0cff3d9721a7cf1
3
+ metadata.gz: e40abd10a427e11e88e523dff1dd445e32b2a260
4
+ data.tar.gz: c292c05b10982b28b9501d81b4f8c2580285ca1a
5
5
  SHA512:
6
- metadata.gz: 48713dfe0731c1c10bfc555bcab6b4c9716be9ef87bd202f52fb9ca6f02e57150a154491599f2b2a8aa8bb3b40e8483ac58fdc4fa4ce6e0850541ad887a9eb5c
7
- data.tar.gz: 1e892c3ee6f266d0c4d1a8020ef0c97350d1c29e4eb9c20f5613ef1e416a05ad1b2902e13c2129ceb48107866026e13a18bfe47e41de406ea1495921825bafa6
6
+ metadata.gz: ba0e03fbeb51853f988b1882c82fda971f4852bf6c2bf8ae38267f09d726f88e23a3d197851194e0b8c3a7174873429e0a8746215760f531e07fba4d0d1a02af
7
+ data.tar.gz: 380c6e7306ef464048816d934932755f4fe51fdcb567060bac5ed680e5714ba438e7cda591752e8b242d5dbc04d784390fc5d614bd0addfb971f2193877a9c71
data/readme.md CHANGED
@@ -6,8 +6,7 @@
6
6
  \/_/ \/_____/\/_____/\/_____/\/_/\/_/ \/_/ \/_/
7
7
  ```
8
8
 
9
- # Toolkit v1.0.0 #
10
-
9
+ # Toolkit v1.0.1 #
11
10
  Titon Toolkit is a collection of very powerful user interface components and utility classes.
12
11
  Each component represents encapsulated HTML, CSS and JS functionality for role specific page elements.
13
12
 
@@ -15,7 +14,6 @@ Titon makes use of the latest and greatest technology. This includes CSS3 for an
15
14
  Sass for CSS pre-processing, and Grunt for task and package management.
16
15
 
17
16
  #### Why Toolkit? ####
18
-
19
17
  Toolkit was built from the ground up with the following concepts and philosophies in mind.
20
18
  If any of these concepts align with your thought process or your projects requirements, than Toolkit is right for you.
21
19
 
@@ -44,7 +42,6 @@ An interactive demo can be found here: http://titon.io/toolkit
44
42
  * More/Element.Event.Pseudos (for LazyLoad, Pin, Stalker, Tooltip)
45
43
 
46
44
  #### Browser Support ####
47
-
48
45
  * Chrome 11+
49
46
  * Firefox 4+
50
47
  * Internet Explorer 10+
@@ -9,6 +9,15 @@ $experimental-support-for-khtml: false !default;
9
9
 
10
10
  $support-for-original-webkit-gradients: false !default;
11
11
 
12
+ //-------------------- Toolkit --------------------//
13
+
14
+ $vendor-prefix: "";
15
+ $state-is-prefix: "is-";
16
+ $state-has-prefix: "has-";
17
+ $size-small-class: "small";
18
+ $size-medium-class: "medium";
19
+ $size-large-class: "large";
20
+
12
21
  //-------------------- Colors --------------------//
13
22
 
14
23
  $gray-lightest: #fbfbfb !default;
@@ -6,31 +6,31 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .accordion {
9
+ .#{$vendor-prefix}accordion {
10
10
  list-style: none;
11
11
  text-align: left;
12
12
  margin: 0;
13
13
  padding: 0;
14
14
  }
15
15
 
16
- .accordion-head {
16
+ .#{$vendor-prefix}accordion-head {
17
17
  padding: $padding;
18
18
  background: $gray;
19
19
  cursor: pointer;
20
20
 
21
- .is-active & {
21
+ @include is-active-parent {
22
22
  background: $gray-dark;
23
23
  }
24
24
  }
25
25
 
26
- .accordion-body {
26
+ .#{$vendor-prefix}accordion-body {
27
27
  padding: $padding;
28
28
 
29
29
  @include content-spacing;
30
30
  }
31
31
 
32
32
  // Handle is used for animations, do not style it!
33
- .accordion-handle {
33
+ .#{$vendor-prefix}accordion-handle {
34
34
  overflow: hidden;
35
35
  position: relative;
36
36
  @include transition(all $accordion-transition ease-in-out);
@@ -6,7 +6,7 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .blackout {
9
+ .#{$vendor-prefix}blackout {
10
10
  position: fixed;
11
11
  top: 0;
12
12
  left: 0;
@@ -6,7 +6,7 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .breadcrumb {
9
+ .#{$vendor-prefix}breadcrumb {
10
10
  text-align: left;
11
11
  margin: $margin 0;
12
12
  background: $gray;
@@ -42,17 +42,21 @@
42
42
  }
43
43
  }
44
44
 
45
- &.small a {
46
- @include size-small;
47
- padding-right: 0;
45
+ @include is-small {
46
+ a {
47
+ @include size-small;
48
+ padding-right: 0;
48
49
 
49
- .caret { margin-left: $small-padding; }
50
+ .caret { margin-left: $small-padding; }
51
+ }
50
52
  }
51
53
 
52
- &.large a {
53
- @include size-large;
54
- padding-right: 0;
54
+ @include is-large {
55
+ a {
56
+ @include size-large;
57
+ padding-right: 0;
55
58
 
56
- .caret { margin-left: $large-padding; }
59
+ .caret { margin-left: $large-padding; }
60
+ }
57
61
  }
58
62
  }
@@ -6,12 +6,28 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .button-group {
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
+ .#{$vendor-prefix}button-group {
10
26
  @include reset-inline-block;
11
27
  white-space: nowrap;
12
28
 
13
29
  > li,
14
- > .button {
30
+ > .#{$vendor-prefix}button {
15
31
  float: left;
16
32
  margin-left: -1px !important;
17
33
  border-radius: 0;
@@ -19,14 +35,14 @@
19
35
  &:first-child { margin-left: 0; }
20
36
 
21
37
  &:hover,
22
- &.is-active { z-index: 1; }
38
+ &.#{$state-is-prefix}active { z-index: 1; }
23
39
  }
24
40
 
25
41
  > li {
26
42
  position: relative;
27
43
  list-style: none;
28
44
 
29
- .button {
45
+ .#{$vendor-prefix}button {
30
46
  display: block;
31
47
  border-radius: 0;
32
48
  }
@@ -35,16 +51,12 @@
35
51
  &.round {
36
52
  border-radius: $round;
37
53
 
38
- > li:first-child .button,
39
- > .button:first-child,
40
- > .button.first {
54
+ @include button-group-first-child {
41
55
  border-top-left-radius: $round;
42
56
  border-bottom-left-radius: $round;
43
57
  }
44
58
 
45
- > li:last-child .button,
46
- > .button:last-child,
47
- > .button.last {
59
+ @include button-group-last-child {
48
60
  border-top-right-radius: $round;
49
61
  border-bottom-right-radius: $round;
50
62
  }
@@ -54,18 +66,18 @@
54
66
  }
55
67
 
56
68
  // Space out groups
57
- .button-group + .button-group {
69
+ .#{$vendor-prefix}button-group + .#{$vendor-prefix}button-group {
58
70
  margin-left: $margin;
59
71
  }
60
72
 
61
73
  //-------------------- Modifiers --------------------//
62
74
 
63
- .button-group--vertical {
64
- @extend .button-group;
75
+ .#{$vendor-prefix}button-group--vertical {
76
+ @extend .#{$vendor-prefix}button-group;
65
77
  vertical-align: top;
66
78
 
67
79
  > li,
68
- > .button {
80
+ > .#{$vendor-prefix}button {
69
81
  float: none;
70
82
  display: block;
71
83
  margin: -1px 0 0 0 !important;
@@ -80,38 +92,34 @@
80
92
  &.pill,
81
93
  &.skew,
82
94
  &.skew-reverse {
83
- .button { border-radius: 0; }
95
+ .#{$vendor-prefix}button { border-radius: 0; }
84
96
  }
85
97
 
86
98
  &.round {
87
- > li:first-child .button,
88
- > .button:first-child,
89
- > .button.first {
99
+ @include button-group-first-child {
90
100
  border-top-left-radius: $round;
91
101
  border-top-right-radius: $round;
92
102
  }
93
103
 
94
- > li:last-child .button,
95
- > .button:last-child,
96
- > .button.last {
104
+ @include button-group-last-child {
97
105
  border-bottom-left-radius: $round;
98
106
  border-bottom-right-radius: $round;
99
107
  }
100
108
  }
101
109
  }
102
110
 
103
- .button-group--justified {
104
- @extend .button-group;
111
+ .#{$vendor-prefix}button-group--justified {
112
+ @extend .#{$vendor-prefix}button-group;
105
113
  display: table;
106
114
  width: 100%;
107
115
 
108
116
  > li,
109
- > .button {
117
+ > .#{$vendor-prefix}button {
110
118
  float: none;
111
119
  display: table-cell;
112
120
  margin: 0 !important;
113
121
  }
114
122
 
115
- > li:not(:first-child) .button,
116
- > .button:not(:first-child) { border-left: 0; }
123
+ > li:not(:first-child) .#{$vendor-prefix}button,
124
+ > .#{$vendor-prefix}button:not(:first-child) { border-left: 0; }
117
125
  }
@@ -6,7 +6,7 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .button {
9
+ .#{$vendor-prefix}button {
10
10
  @include reset-inline-block;
11
11
  @include size-medium;
12
12
  cursor: pointer;
@@ -16,9 +16,9 @@
16
16
  white-space: nowrap;
17
17
  background: $gray;
18
18
 
19
- &.small, .small & { @include size-small; }
20
- &.medium, .medium & { @include size-medium; }
21
- &.large, .large & { @include size-large; }
19
+ @include is-small(true, true) { @include size-small; }
20
+ @include is-medium(true, true) { @include size-medium; }
21
+ @include is-large(true, true) { @include size-large; }
22
22
 
23
23
  &.round { border-radius: $round; }
24
24
  &.square { border-radius: 0; }
@@ -6,13 +6,13 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .carousel {
9
+ .#{$vendor-prefix}carousel {
10
10
  margin: 0 auto;
11
11
  text-align: left;
12
12
  position: relative;
13
13
  }
14
14
 
15
- .carousel-items {
15
+ .#{$vendor-prefix}carousel-items {
16
16
  /* 4:3 ratio */
17
17
  padding-bottom: 75%;
18
18
  width: 100%;
@@ -44,7 +44,7 @@
44
44
  }
45
45
  }
46
46
 
47
- .carousel-caption {
47
+ .#{$vendor-prefix}carousel-caption {
48
48
  position: absolute;
49
49
  bottom: 0;
50
50
  left: 0;
@@ -58,8 +58,8 @@
58
58
  }
59
59
  }
60
60
 
61
- .carousel-prev,
62
- .carousel-next {
61
+ .#{$vendor-prefix}carousel-prev,
62
+ .#{$vendor-prefix}carousel-next {
63
63
  display: block;
64
64
  position: absolute;
65
65
  padding: $padding;
@@ -72,10 +72,10 @@
72
72
  &:focus { outline: none; }
73
73
  }
74
74
 
75
- .carousel-prev { left: 0; }
76
- .carousel-next { right: 0; }
75
+ .#{$vendor-prefix}carousel-prev { left: 0; }
76
+ .#{$vendor-prefix}carousel-next { right: 0; }
77
77
 
78
- .carousel-tabs {
78
+ .#{$vendor-prefix}carousel-tabs {
79
79
  position: absolute;
80
80
  top: $padding;
81
81
  left: 50%;
@@ -85,8 +85,8 @@
85
85
 
86
86
  //-------------------- Animations --------------------//
87
87
 
88
- .carousel.slide {
89
- .carousel-items ul {
88
+ .#{$vendor-prefix}carousel.slide {
89
+ .#{$vendor-prefix}carousel-items ul {
90
90
  @include clear-fix;
91
91
 
92
92
  > li {
@@ -95,8 +95,8 @@
95
95
  }
96
96
  }
97
97
 
98
- .carousel.fade {
99
- .carousel-items ul {
98
+ .#{$vendor-prefix}carousel.fade {
99
+ .#{$vendor-prefix}carousel-items ul {
100
100
  position: relative;
101
101
 
102
102
  > li {
@@ -114,19 +114,19 @@
114
114
 
115
115
  //-------------------- Modifiers --------------------//
116
116
 
117
- .carousel--wide {
118
- @extend .carousel;
117
+ .#{$vendor-prefix}carousel--wide {
118
+ @extend .#{$vendor-prefix}carousel;
119
119
 
120
- .carousel-items {
120
+ .#{$vendor-prefix}carousel-items {
121
121
  /* 16:9 ratio */
122
122
  padding-bottom: 56.25%;
123
123
  }
124
124
  }
125
125
 
126
- .carousel--square {
127
- @extend .carousel;
126
+ .#{$vendor-prefix}carousel--square {
127
+ @extend .#{$vendor-prefix}carousel;
128
128
 
129
- .carousel-items {
129
+ .#{$vendor-prefix}carousel-items {
130
130
  /* 1:1 ratio */
131
131
  padding-bottom: 100%;
132
132
  }
@@ -6,7 +6,7 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .dropdown {
9
+ .#{$vendor-prefix}dropdown {
10
10
  display: none;
11
11
  text-align: left;
12
12
  position: absolute;
@@ -21,7 +21,7 @@
21
21
  @include transition(opacity .3s);
22
22
 
23
23
  // Nested dropdowns
24
- .dropdown {
24
+ .#{$vendor-prefix}dropdown {
25
25
  display: block;
26
26
  top: 0;
27
27
  left: 90%;
@@ -42,7 +42,7 @@
42
42
  }
43
43
  }
44
44
 
45
- &.has-children {
45
+ &.#{$state-has-prefix}children {
46
46
  > a .caret-right { display: inline-block; }
47
47
  }
48
48
 
@@ -50,7 +50,7 @@
50
50
  &:hover {
51
51
  > a { background: $gray-lightest; }
52
52
 
53
- .dropdown {
53
+ .#{$vendor-prefix}dropdown {
54
54
  visibility: visible;
55
55
  opacity: 1;
56
56
  left: 100%;
@@ -64,46 +64,46 @@
64
64
  }
65
65
  }
66
66
 
67
- .dropdown,
68
- .dropdown ul {
67
+ .#{$vendor-prefix}dropdown,
68
+ .#{$vendor-prefix}dropdown ul {
69
69
  list-style: none;
70
70
  margin: 0;
71
71
  padding: 0;
72
72
  }
73
73
 
74
- .dropdown-divider {
74
+ .#{$vendor-prefix}dropdown-divider {
75
75
  margin: ($margin / 2) 0;
76
76
  border-top: 1px solid $gray-dark;
77
77
  }
78
78
 
79
- .dropdown-heading {
79
+ .#{$vendor-prefix}dropdown-heading {
80
80
  padding: $small-padding;
81
81
  background-color: $gray-dark;
82
82
  }
83
83
 
84
84
  //-------------------- Modifiers --------------------//
85
85
 
86
- .dropdown.on-top {
86
+ .#{$vendor-prefix}dropdown.on-top {
87
87
  top: auto;
88
88
  bottom: 100%;
89
89
  }
90
90
 
91
- .dropdown.on-right {
91
+ .#{$vendor-prefix}dropdown.on-right {
92
92
  top: auto;
93
93
  left: 100%;
94
94
  }
95
95
 
96
- .dropdown.on-left {
96
+ .#{$vendor-prefix}dropdown.on-left {
97
97
  top: auto;
98
98
  left: auto;
99
99
  right: 100%;
100
100
  }
101
101
 
102
- .dropdown.push-over {
102
+ .#{$vendor-prefix}dropdown.push-over {
103
103
  left: auto;
104
104
  right: 0;
105
105
  }
106
106
 
107
- .dropdown.pull-up {
107
+ .#{$vendor-prefix}dropdown.pull-up {
108
108
  bottom: 0;
109
109
  }
@@ -6,7 +6,7 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .flyout {
9
+ .#{$vendor-prefix}flyout {
10
10
  position: absolute;
11
11
  top: 0;
12
12
  left: 0;
@@ -39,19 +39,19 @@
39
39
 
40
40
  // Hover states
41
41
  > a:hover,
42
- &.is-open > a {
42
+ &.#{$state-is-prefix}open > a {
43
43
  background: $gray-lightest;
44
44
  }
45
45
 
46
46
  // Display caret arrow
47
- &.has-children > a .caret-right {
47
+ &.#{$state-has-prefix}children > a .caret-right {
48
48
  float: right;
49
49
  display: inline-block; // reveal
50
50
  margin-top: 3px;
51
51
  }
52
52
 
53
53
  // Nested flyouts
54
- > .flyout {
54
+ > .#{$vendor-prefix}flyout {
55
55
  left: 90%;
56
56
  @include transition(left $flyout-transition, right $flyout-transition, opacity $flyout-transition);
57
57
 
@@ -63,7 +63,7 @@
63
63
  }
64
64
  }
65
65
 
66
- &.is-open > .flyout {
66
+ &.#{$state-is-prefix}open > .#{$vendor-prefix}flyout {
67
67
  opacity: 1;
68
68
  visibility: visible;
69
69
  left: 100%;
@@ -78,7 +78,7 @@
78
78
  @include clear-fix;
79
79
  }
80
80
 
81
- .flyout-heading {
81
+ .#{$vendor-prefix}flyout-heading {
82
82
  padding: $small-padding;
83
83
  line-height: 100%;
84
84
  display: block;
@@ -6,8 +6,8 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .grid,
10
- .row {
9
+ .#{$vendor-prefix}grid,
10
+ .#{$vendor-prefix}row {
11
11
  @include grid-row;
12
12
  }
13
13
 
@@ -6,14 +6,15 @@
6
6
 
7
7
  @import "../common";
8
8
 
9
- .input-group {
9
+ .#{$vendor-prefix}input-group {
10
10
  display: inline-block;
11
+ vertical-align: middle;
11
12
  white-space: nowrap;
12
13
 
13
- > .input,
14
- > .input-addon,
15
- > .button,
16
- > .button-group {
14
+ > .#{$vendor-prefix}input,
15
+ > .#{$vendor-prefix}input-addon,
16
+ > .#{$vendor-prefix}button,
17
+ > .#{$vendor-prefix}button-group {
17
18
  float: left;
18
19
  display: inline-block;
19
20
  position: relative;
@@ -31,7 +32,7 @@
31
32
  @include clear-fix;
32
33
  }
33
34
 
34
- .input-addon {
35
+ .#{$vendor-prefix}input-addon {
35
36
  border: 1px solid $gray-dark;
36
37
  background: $gray;
37
38
  vertical-align: middle;
@@ -42,19 +43,19 @@
42
43
 
43
44
  //-------------------- Modifiers --------------------//
44
45
 
45
- .input-group.round {
46
- > .input:first-child,
47
- > .input-addon:first-child,
48
- > .button:first-child,
49
- > .button-group:first-child .button {
46
+ .#{$vendor-prefix}input-group.round {
47
+ > .#{$vendor-prefix}input:first-child,
48
+ > .#{$vendor-prefix}input-addon:first-child,
49
+ > .#{$vendor-prefix}button:first-child,
50
+ > .#{$vendor-prefix}button-group:first-child .#{$vendor-prefix}button {
50
51
  border-top-left-radius: $round;
51
52
  border-bottom-left-radius: $round;
52
53
  }
53
54
 
54
- > .input:last-child,
55
- > .input-addon:last-child,
56
- > .button:last-child,
57
- > .button-group:last-child .button {
55
+ > .#{$vendor-prefix}input:last-child,
56
+ > .#{$vendor-prefix}input-addon:last-child,
57
+ > .#{$vendor-prefix}button:last-child,
58
+ > .#{$vendor-prefix}button-group:last-child .#{$vendor-prefix}button {
58
59
  border-top-right-radius: $round;
59
60
  border-bottom-right-radius: $round;
60
61
  }