titon-toolkit 0.14.0 → 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/readme.md +18 -13
  3. data/scss/ie8.scss +23 -16
  4. data/scss/toolkit/_common.scss +126 -7
  5. data/scss/toolkit/{modules → components}/accordion.scss +3 -25
  6. data/scss/toolkit/{modules → components}/blackout.scss +0 -7
  7. data/scss/toolkit/{ui → components}/breadcrumbs.scss +26 -16
  8. data/scss/toolkit/{ui → components}/button-group.scss +1 -8
  9. data/scss/toolkit/{ui → components}/button.scss +0 -5
  10. data/scss/toolkit/components/carousel.scss +147 -0
  11. data/scss/toolkit/{ui → components}/dropdown.scss +30 -27
  12. data/scss/toolkit/{modules → components}/flyout.scss +0 -6
  13. data/scss/toolkit/{layout → components}/grid.scss +1 -1
  14. data/scss/toolkit/components/icon.scss +60 -0
  15. data/scss/toolkit/{layout → components}/input-group.scss +3 -1
  16. data/scss/toolkit/components/input.scss +112 -0
  17. data/scss/toolkit/components/label.scss +106 -0
  18. data/scss/toolkit/components/lazy-load.scss +12 -0
  19. data/scss/toolkit/{ui → components}/matrix.scss +0 -7
  20. data/scss/toolkit/{modules → components}/modal.scss +44 -44
  21. data/scss/toolkit/{ui/alert.scss → components/notice.scss} +13 -20
  22. data/scss/toolkit/{ui → components}/pagination.scss +0 -14
  23. data/scss/toolkit/{ui → components}/pin.scss +0 -5
  24. data/scss/toolkit/{modules → components}/popover.scss +4 -16
  25. data/scss/toolkit/{ui → components}/progress.scss +15 -12
  26. data/scss/toolkit/{modules → components}/showcase.scss +30 -60
  27. data/scss/toolkit/{layout → components}/table.scss +0 -0
  28. data/scss/toolkit/{modules → components}/tabs.scss +0 -16
  29. data/scss/toolkit/{modules → components}/tooltip.scss +1 -15
  30. data/scss/toolkit/{modules → components}/type-ahead.scss +1 -4
  31. data/scss/toolkit/effects/pill.scss +4 -2
  32. data/scss/toolkit/layout/base.scss +68 -30
  33. data/scss/toolkit/layout/code.scss +2 -3
  34. data/scss/toolkit/layout/form.scss +71 -25
  35. data/scss/toolkit/layout/typography.scss +8 -8
  36. data/scss/toolkit/mixins/_grid.scss +0 -8
  37. data/scss/toolkit/mixins/_layout.scss +3 -14
  38. data/scss/toolkit/mixins/_responsive.scss +0 -14
  39. data/scss/toolkit/themes/titon.scss +116 -98
  40. data/scss/toolkit.scss +26 -25
  41. data/version.md +1 -1
  42. metadata +30 -32
  43. data/scss/toolkit/_variables.scss +0 -63
  44. data/scss/toolkit/mixins/_themes.scss +0 -98
  45. data/scss/toolkit/modules/carousel.scss +0 -183
  46. data/scss/toolkit/themes/tomorrow-night.scss +0 -582
  47. data/scss/toolkit/ui/icon.scss +0 -22
  48. data/scss/toolkit/ui/label-badge.scss +0 -76
  49. data/scss/toolkit/ui/lazy-load.scss +0 -19
@@ -1,98 +0,0 @@
1
-
2
- @mixin alert-style($bg, $text) {
3
- color: $text;
4
- background: $bg;
5
- border: 1px solid shade($bg, 10%);
6
-
7
- hr { border-color: shade($bg, 10%); }
8
-
9
- a { color: shade($text, 10%); }
10
- a:hover { color: tint($text, 25%); }
11
-
12
- @content;
13
- }
14
-
15
- @mixin button-style($base, $light, $dark) {
16
- font-weight: bold;
17
- background: shade($base, 5%);
18
- text-shadow: 1px 1px black(.2);
19
- border: 1px solid shade($base, 12%);
20
-
21
- @include active-state {
22
- color: #fff;
23
- background-color: shade($base, 20%);
24
- text-shadow: 1px 1px $dark;
25
- border-color: shade($base, 30%);
26
- }
27
-
28
- @include disabled-state {
29
- background: $base;
30
- border-color: $base;
31
- box-shadow: none;
32
- text-shadow: none;
33
- top: 0;
34
- opacity: $disabled-opacity;
35
- }
36
-
37
- @content;
38
- }
39
-
40
- @mixin label-style($bg, $text) {
41
- background: $bg;
42
- color: $text;
43
-
44
- @content;
45
- }
46
-
47
- @mixin progress-style($bg, $border) {
48
- background: $bg;
49
- text-shadow: 1px 1px $border;
50
- border: 1px solid tint($border, 35%);
51
- border-right: 0;
52
-
53
- @content;
54
- }
55
-
56
- @mixin field-style() {
57
- &.is-error {
58
- .input,
59
- .select {
60
- border-color: $error;
61
-
62
- &:focus { box-shadow: 0 0 5px $error-light; }
63
- }
64
-
65
- .radio,
66
- .checkbox {
67
- color: $error-dark;
68
- }
69
- }
70
-
71
- &.is-warning {
72
- .input,
73
- .select {
74
- border-color: $warning;
75
-
76
- &:focus { box-shadow: 0 0 5px $warning-light; }
77
- }
78
-
79
- .radio,
80
- .checkbox {
81
- color: $warning-dark;
82
- }
83
- }
84
-
85
- &.is-success {
86
- .input,
87
- .select {
88
- border-color: $success;
89
-
90
- &:focus { box-shadow: 0 0 5px $success-light; }
91
- }
92
-
93
- .radio,
94
- .checkbox {
95
- color: $success-dark;
96
- }
97
- }
98
- }
@@ -1,183 +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
- @import "../common";
8
-
9
- $carousel-transition: 1s !default;
10
-
11
- /**
12
- * Should be used in conjunction with the JavaScript Titon.Carousel module.
13
- *
14
- * <div class="carousel">
15
- * <ul class="carousel-items">
16
- * <li>
17
- * <img src="/path/to/image.jpg">
18
- * <div class="carousel-caption">Image caption</div>
19
- * </li>
20
- * </ul>
21
- * <ol class="carousel-tabs">
22
- * <li><a href=""></a></li>
23
- * </ol>
24
- * <a href="javascript:;" class="carousel-prev">
25
- * <span class="icon-chevron-sign-left"></span>
26
- * </a>
27
- * <a href="javascript:;" class="carousel-next">
28
- * <span class="icon-chevron-sign-right"></span>
29
- * </a>
30
- * </div>
31
- */
32
-
33
- .carousel {
34
- // 16:9
35
- max-width: 640px;
36
- max-height: 360px;
37
- width: 100%;
38
- height: auto;
39
- margin: 0 auto;
40
- text-align: left;
41
- position: relative;
42
- overflow: hidden;
43
- }
44
-
45
- .carousel-items {
46
- list-style: none;
47
- margin: 0;
48
- padding: 0;
49
- position: relative;
50
- top: 0;
51
- left: 0;
52
- width: 100%;
53
- height: auto;
54
- z-index: 1;
55
- @include transition(left $carousel-transition, top $carousel-transition);
56
-
57
- > li {
58
- position: relative;
59
- width: 100%;
60
- height: auto;
61
- z-index: 1;
62
- display: block;
63
-
64
- > img {
65
- display: block;
66
- width: 100%;
67
- max-width: 100%;
68
- height: auto;
69
- }
70
- }
71
- }
72
-
73
- .carousel-caption {
74
- position: absolute;
75
- bottom: 0;
76
- left: 0;
77
- width: 100%;
78
- padding: $padding;
79
- color: #fff;
80
- background: black(.70);
81
-
82
- @include in-small {
83
- font-size: $small-size;
84
- padding: $small-padding;
85
- }
86
- }
87
-
88
- .carousel-prev,
89
- .carousel-next {
90
- display: block;
91
- position: absolute;
92
- padding: $padding;
93
- width: auto;
94
- height: auto;
95
- z-index: 5;
96
- font-size: 28px;
97
- color: #fff;
98
- opacity: .65;
99
- top: 50%;
100
- @include transform(translateY(-50%)); // move up 50% of their height
101
-
102
- &:hover {
103
- color: #fff;
104
- opacity: 1;
105
- }
106
-
107
- &:focus {
108
- outline: none;
109
- }
110
-
111
- // Large icons for large resolutions
112
- @include if-tablet-landscape {
113
- .carousel-prev,
114
- .carousel-next {
115
- font-size: 56px;
116
- }
117
- }
118
- }
119
-
120
- .carousel-prev { left: 0; }
121
- .carousel-next { right: 0; }
122
-
123
- .carousel-tabs {
124
- list-style: none;
125
- line-height: 100%;
126
- margin: 0;
127
- padding: $padding;
128
- position: absolute;
129
- top: 0;
130
- left: 50%;
131
- z-index: 5;
132
- @include transform(translateX(-50%)); // move left 50% of their width
133
-
134
- li {
135
- display: inline-block;
136
- margin: 0 3px;
137
- }
138
-
139
- a {
140
- display: inline-block;
141
- border: 2px solid #fff;
142
- height: 10px;
143
- width: 10px;
144
- border-radius: 50%;
145
- opacity: .65;
146
- background: black(0);
147
-
148
- &:hover { opacity: 1; }
149
- &.is-active { background: #fff; }
150
- }
151
-
152
- // Hide if no tabs
153
- &:empty { display: none; }
154
- }
155
-
156
- //-------------------- Animations --------------------//
157
-
158
- .carousel.slide {
159
- .carousel-items {
160
- @include clear-fix;
161
-
162
- > li {
163
- float: left;
164
- }
165
- }
166
- }
167
-
168
- .carousel.fade {
169
- .carousel-items {
170
- padding-bottom: 56.25%; /* 16:9 ratio */
171
-
172
- > li {
173
- position: absolute;
174
- top: 0;
175
- left: 0;
176
- opacity: 0;
177
- z-index: 1;
178
- @include transition(opacity $carousel-transition);
179
-
180
- &.show { z-index: 2; }
181
- }
182
- }
183
- }