titon-toolkit 0.9.4 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/license.md +23 -0
- data/readme.md +93 -0
- data/src/lib/titon-toolkit.rb +2 -2
- data/src/scss/toolkit.scss +3 -3
- data/src/scss/toolkit/effects/visual.scss +47 -47
- data/src/scss/toolkit/layout/base.scss +32 -32
- data/src/scss/toolkit/layout/code.scss +38 -38
- data/src/scss/toolkit/layout/form.scss +86 -86
- data/src/scss/toolkit/layout/grid.scss +31 -31
- data/src/scss/toolkit/layout/input-group.scss +41 -41
- data/src/scss/toolkit/layout/responsive.scss +21 -21
- data/src/scss/toolkit/layout/table.scss +59 -59
- data/src/scss/toolkit/layout/typography.scss +18 -18
- data/src/scss/toolkit/mixins/_grid.scss +8 -8
- data/src/scss/toolkit/mixins/_layout.scss +36 -36
- data/src/scss/toolkit/mixins/_responsive.scss +56 -56
- data/src/scss/toolkit/mixins/_themes.scss +78 -78
- data/src/scss/toolkit/modules/accordion.scss +33 -33
- data/src/scss/toolkit/modules/blackout.scss +13 -13
- data/src/scss/toolkit/modules/carousel.scss +141 -141
- data/src/scss/toolkit/modules/flyout.scss +57 -57
- data/src/scss/toolkit/modules/modal.scss +206 -206
- data/src/scss/toolkit/modules/popover.scss +58 -58
- data/src/scss/toolkit/modules/showcase.scss +135 -135
- data/src/scss/toolkit/modules/tabs.scss +29 -29
- data/src/scss/toolkit/modules/tooltip.scss +109 -109
- data/src/scss/toolkit/modules/type-ahead.scss +44 -44
- data/src/scss/toolkit/themes/titon.scss +242 -242
- data/src/scss/toolkit/themes/tomorrow-night.scss +322 -322
- data/src/scss/toolkit/ui/alert.scss +29 -29
- data/src/scss/toolkit/ui/breadcrumbs.scss +41 -41
- data/src/scss/toolkit/ui/button-group.scss +181 -181
- data/src/scss/toolkit/ui/button.scss +31 -31
- data/src/scss/toolkit/ui/dropdown.scss +83 -83
- data/src/scss/toolkit/ui/icon.scss +5 -5
- data/src/scss/toolkit/ui/label-badge.scss +48 -48
- data/src/scss/toolkit/ui/lazy-load.scss +8 -5
- data/src/scss/toolkit/ui/matrix.scss +26 -0
- data/src/scss/toolkit/ui/pagination.scss +108 -108
- data/src/scss/toolkit/ui/pin.scss +5 -5
- data/src/scss/toolkit/ui/progress.scss +20 -20
- data/version.md +1 -0
- metadata +17 -5
- checksums.yaml +0 -15
@@ -1,48 +1,48 @@
|
|
1
1
|
/**
|
2
|
-
* @copyright
|
3
|
-
* @license
|
4
|
-
* @link
|
2
|
+
* @copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
5
|
*/
|
6
6
|
|
7
7
|
@import "../common";
|
8
8
|
|
9
9
|
/**
|
10
|
-
*
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
10
|
+
* <div class="alert is-info">
|
11
|
+
* <button type="button" class="close">
|
12
|
+
* <span class="x">×</span>
|
13
|
+
* </button>
|
14
14
|
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
*
|
15
|
+
* <h3 class="alert-title">Title</h3>
|
16
|
+
* <p>This is an information message!</p>
|
17
|
+
* </div>
|
18
18
|
*/
|
19
19
|
|
20
20
|
.alert {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
margin: $margin 0;
|
22
|
+
padding: $padding;
|
23
|
+
background: $gray;
|
24
|
+
border: 1px solid $gray-dark;
|
25
|
+
text-align: left;
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
hr {
|
28
|
+
border: 0;
|
29
|
+
border-top: 1px solid transparent;
|
30
|
+
}
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
a {
|
33
|
+
font-weight: bold;
|
34
|
+
}
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
.close {
|
37
|
+
float: right;
|
38
|
+
margin-left: $margin;
|
39
39
|
|
40
|
-
|
41
|
-
|
40
|
+
& ~ p { margin: 0; }
|
41
|
+
}
|
42
42
|
|
43
|
-
|
43
|
+
@include content-spacing;
|
44
44
|
}
|
45
45
|
|
46
46
|
.alert-title {
|
47
|
-
|
47
|
+
margin: 0 0 ($margin / 2) 0;
|
48
48
|
}
|
@@ -1,51 +1,51 @@
|
|
1
1
|
/**
|
2
|
-
* @copyright
|
3
|
-
* @license
|
4
|
-
* @link
|
2
|
+
* @copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
5
|
*/
|
6
6
|
|
7
7
|
@import "../common";
|
8
8
|
|
9
9
|
/**
|
10
|
-
*
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
*
|
18
|
-
*
|
10
|
+
* <nav class="breadcrumbs">
|
11
|
+
* <ol>
|
12
|
+
* <li><a href="">Home</a></li>
|
13
|
+
* <li><a href="">Sub-page</a></li>
|
14
|
+
* <li><a href="">Sub-page</a></li>
|
15
|
+
* <li><a href="">Sub-page</a></li>
|
16
|
+
* <li><a href="">Current</a></li>
|
17
|
+
* </ol>
|
18
|
+
* </nav>
|
19
19
|
*/
|
20
20
|
|
21
21
|
.breadcrumbs {
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
22
|
+
text-align: left;
|
23
|
+
margin: $margin 0;
|
24
|
+
background: $gray;
|
25
|
+
border: 1px solid $gray-dark;
|
26
|
+
border-radius: $round;
|
27
|
+
|
28
|
+
ul, ol {
|
29
|
+
margin: 0;
|
30
|
+
padding: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
li {
|
34
|
+
position: relative;
|
35
|
+
list-style: none;
|
36
|
+
float: left;
|
37
|
+
}
|
38
|
+
|
39
|
+
a {
|
40
|
+
display: block;
|
41
|
+
padding: $medium-padding;
|
42
|
+
line-height: 100%;
|
43
|
+
font-size: $medium-size;
|
44
|
+
}
|
45
|
+
|
46
|
+
// Sizes
|
47
|
+
&.small a { padding: $small-padding; font-size: $small-size; }
|
48
|
+
&.large a { padding: $large-padding; font-size: $large-size; }
|
49
|
+
|
50
|
+
@include clear-fix;
|
51
51
|
}
|
@@ -1,204 +1,204 @@
|
|
1
1
|
/**
|
2
|
-
* @copyright
|
3
|
-
* @license
|
4
|
-
* @link
|
2
|
+
* @copyright 2010-2013, The Titon Project
|
3
|
+
* @license http://opensource.org/licenses/bsd-license.php
|
4
|
+
* @link http://titon.io
|
5
5
|
*/
|
6
6
|
|
7
7
|
@import "../common";
|
8
8
|
|
9
9
|
/**
|
10
|
-
*
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
10
|
+
* <div class="button-group pill">
|
11
|
+
* <a href="" class="button">Left Button</a>
|
12
|
+
* <a href="" class="button">Center Button</a>
|
13
|
+
* <a href="" class="button">Right Button</a>
|
14
|
+
* </div>
|
15
15
|
*/
|
16
16
|
|
17
17
|
.button-group {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
18
|
+
@include reset-inline-block;
|
19
|
+
white-space: nowrap;
|
20
|
+
|
21
|
+
> li,
|
22
|
+
> .button {
|
23
|
+
float: left;
|
24
|
+
margin-left: -1px !important;
|
25
|
+
border-radius: 0;
|
26
|
+
display: block;
|
27
|
+
|
28
|
+
&:first-child { margin-left: 0; }
|
29
|
+
&:hover { z-index: 1; }
|
30
|
+
}
|
31
|
+
|
32
|
+
> li .button {
|
33
|
+
display: block;
|
34
|
+
border-radius: 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
// Shape: round
|
38
|
+
&.round {
|
39
|
+
border-radius: $round;
|
40
|
+
|
41
|
+
> li:first-child .button,
|
42
|
+
> .button:first-child,
|
43
|
+
> .button.first {
|
44
|
+
border-top-left-radius: $round;
|
45
|
+
border-bottom-left-radius: $round;
|
46
|
+
}
|
47
|
+
|
48
|
+
> li:last-child .button,
|
49
|
+
> .button:last-child,
|
50
|
+
> .button.last {
|
51
|
+
border-top-right-radius: $round;
|
52
|
+
border-bottom-right-radius: $round;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
// Shape: pill
|
57
|
+
&.pill {
|
58
|
+
border-radius: $pill;
|
59
|
+
|
60
|
+
> li:first-child .button,
|
61
|
+
> .button:first-child,
|
62
|
+
> .button.first {
|
63
|
+
border-top-left-radius: $pill;
|
64
|
+
border-bottom-left-radius: $pill;
|
65
|
+
}
|
66
|
+
|
67
|
+
> li:last-child .button,
|
68
|
+
> .button:last-child,
|
69
|
+
> .button.last {
|
70
|
+
border-top-right-radius: $pill;
|
71
|
+
border-bottom-right-radius: $pill;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
// Shape: skew
|
76
|
+
&.skew {
|
77
|
+
border-top-left-radius: $skew;
|
78
|
+
border-top-right-radius: $skew;
|
79
|
+
border-bottom-left-radius: 0;
|
80
|
+
border-bottom-right-radius: 0;
|
81
|
+
|
82
|
+
> li:first-child .button,
|
83
|
+
> .button:first-child,
|
84
|
+
> .button.first {
|
85
|
+
border-top-left-radius: $skew;
|
86
|
+
border-bottom-left-radius: 0;
|
87
|
+
}
|
88
|
+
|
89
|
+
> li:last-child .button,
|
90
|
+
> .button:last-child,
|
91
|
+
> .button.last {
|
92
|
+
border-top-right-radius: $skew;
|
93
|
+
border-bottom-right-radius: 0;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
@include clear-fix;
|
98
98
|
}
|
99
99
|
|
100
100
|
// Space out groups
|
101
101
|
.button-group + .button-group {
|
102
|
-
|
102
|
+
margin-left: $margin;
|
103
103
|
}
|
104
104
|
|
105
105
|
//-------------------- Modifiers --------------------//
|
106
106
|
|
107
107
|
.button-group.button-group--vertical {
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
108
|
+
vertical-align: top;
|
109
|
+
|
110
|
+
> li,
|
111
|
+
> .button {
|
112
|
+
float: none;
|
113
|
+
display: block;
|
114
|
+
margin: -1px 0 0 0 !important;
|
115
|
+
width: auto;
|
116
|
+
max-width: 100%;
|
117
|
+
|
118
|
+
&:first-child { margin-top: 0 !important; }
|
119
|
+
&:hover { z-index: 1; }
|
120
|
+
}
|
121
|
+
|
122
|
+
// Reset radius
|
123
|
+
&.round,
|
124
|
+
&.pill,
|
125
|
+
&.skew,
|
126
|
+
&.skew-reverse {
|
127
|
+
.button { border-radius: 0; }
|
128
|
+
}
|
129
|
+
|
130
|
+
// Shape: round
|
131
|
+
&.round {
|
132
|
+
> li:first-child .button,
|
133
|
+
> .button:first-child {
|
134
|
+
border-top-left-radius: $round;
|
135
|
+
border-top-right-radius: $round;
|
136
|
+
}
|
137
|
+
|
138
|
+
> li:last-child .button,
|
139
|
+
> .button:last-child {
|
140
|
+
border-bottom-left-radius: $round;
|
141
|
+
border-bottom-right-radius: $round;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
// Shape: pill
|
146
|
+
&.pill {
|
147
|
+
border-radius: $pill;
|
148
|
+
|
149
|
+
> li:first-child .button,
|
150
|
+
> .button:first-child {
|
151
|
+
border-top-left-radius: $pill;
|
152
|
+
border-top-right-radius: $pill;
|
153
|
+
}
|
154
|
+
|
155
|
+
> li:last-child .button,
|
156
|
+
> .button:last-child {
|
157
|
+
border-bottom-left-radius: $pill;
|
158
|
+
border-bottom-right-radius: $pill;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
// Shape: skew
|
163
|
+
&.skew {
|
164
|
+
border-top-left-radius: $skew-y 1.5rem;
|
165
|
+
border-bottom-left-radius: $skew-y 1.5rem;
|
166
|
+
|
167
|
+
> li:first-child .button,
|
168
|
+
> .button:first-child {
|
169
|
+
border-top-left-radius: $skew-reverse;
|
170
|
+
}
|
171
|
+
|
172
|
+
> li:last-child .button,
|
173
|
+
> .button:last-child {
|
174
|
+
border-bottom-left-radius: $skew-reverse;
|
175
|
+
border-top-right-radius: 0;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
// Shape: skew-reverse
|
180
|
+
&.skew-reverse {
|
181
|
+
border-top-right-radius: $skew-y 1.25rem;
|
182
|
+
border-bottom-right-radius: $skew-y 1.25rem;
|
183
|
+
|
184
|
+
> li:first-child .button,
|
185
|
+
> .button:first-child {
|
186
|
+
border-top-right-radius: $skew-reverse;
|
187
|
+
}
|
188
|
+
|
189
|
+
> li:last-child .button,
|
190
|
+
> .button:last-child {
|
191
|
+
border-bottom-right-radius: $skew-reverse;
|
192
|
+
}
|
193
|
+
}
|
194
194
|
}
|
195
195
|
|
196
196
|
.button-group.button-group--justified {
|
197
|
-
|
198
|
-
|
197
|
+
display: table;
|
198
|
+
width: 100%;
|
199
199
|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
200
|
+
> .button {
|
201
|
+
float: none;
|
202
|
+
display: table-cell;
|
203
|
+
}
|
204
204
|
}
|