titon-toolkit 1.0.0.rc.2 → 1.0.0.rc.3
Sign up to get free protection for your applications and to get access to all the features.
- data/readme.md +6 -13
- data/roadmap.md +5 -5
- data/scss/toolkit/_common.scss +4 -2
- data/scss/toolkit/components/accordion.scss +0 -3
- data/scss/toolkit/components/breadcrumbs.scss +4 -5
- data/scss/toolkit/components/button-group.scss +23 -9
- data/scss/toolkit/components/button.scss +4 -5
- data/scss/toolkit/components/carousel.scss +7 -21
- data/scss/toolkit/components/dropdown.scss +6 -7
- data/scss/toolkit/components/flyout.scss +47 -34
- data/scss/toolkit/components/grid.scss +7 -7
- data/scss/toolkit/components/icon.scss +1 -1
- data/scss/toolkit/components/input.scss +1 -6
- data/scss/toolkit/components/label.scss +27 -16
- data/scss/toolkit/components/modal.scss +7 -12
- data/scss/toolkit/components/notice.scss +0 -3
- data/scss/toolkit/components/pagination.scss +3 -1
- data/scss/toolkit/components/popover.scss +6 -6
- data/scss/toolkit/components/progress.scss +17 -3
- data/scss/toolkit/components/showcase.scss +1 -22
- data/scss/toolkit/components/table.scss +30 -13
- data/scss/toolkit/components/tabs.scss +5 -3
- data/scss/toolkit/components/tooltip.scss +2 -1
- data/scss/toolkit/components/type-ahead.scss +18 -5
- data/scss/toolkit/effects/oval.scss +3 -3
- data/scss/toolkit/effects/pill.scss +15 -4
- data/scss/toolkit/effects/skew.scss +4 -4
- data/scss/toolkit/layout/base.scss +16 -1
- data/scss/toolkit/layout/code.scss +1 -1
- data/scss/toolkit/layout/form.scss +1 -1
- data/scss/toolkit/mixins/_grid.scss +26 -19
- data/scss/toolkit/mixins/_helper.scss +10 -0
- data/scss/toolkit/mixins/_layout.scss +0 -60
- data/scss/toolkit/mixins/_responsive.scss +6 -0
- data/scss/toolkit/mixins/_state.scss +32 -0
- data/scss/toolkit/mixins/_unit.scss +73 -0
- data/scss/toolkit/themes/titon.scss +93 -24
- data/version.md +1 -1
- metadata +23 -15
- checksums.yaml +0 -7
- data/scss/ie8.scss +0 -184
@@ -17,7 +17,7 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
@for $i from 1 through 12 {
|
20
|
-
$span: grid-span(
|
20
|
+
$span: grid-span($i, 12);
|
21
21
|
|
22
22
|
.span-#{$i} { width: $span; }
|
23
23
|
.push-#{$i} { left: $span; }
|
@@ -34,7 +34,7 @@
|
|
34
34
|
}
|
35
35
|
|
36
36
|
@for $i from 1 through $grid-columns-mobile {
|
37
|
-
$span: grid-span($grid-columns-mobile
|
37
|
+
$span: grid-span($i, $grid-columns-mobile);
|
38
38
|
|
39
39
|
.col.mobile-#{$i} { width: $span; }
|
40
40
|
.col.mobile-push-#{$i} { left: $span; }
|
@@ -49,7 +49,7 @@
|
|
49
49
|
}
|
50
50
|
|
51
51
|
@for $i from 1 through $grid-columns-tablet {
|
52
|
-
$span: grid-span($grid-columns-tablet
|
52
|
+
$span: grid-span($i, $grid-columns-tablet);
|
53
53
|
|
54
54
|
.col.tablet-#{$i} { width: $span; }
|
55
55
|
.col.tablet-push-#{$i} { left: $span; }
|
@@ -64,7 +64,7 @@
|
|
64
64
|
}
|
65
65
|
|
66
66
|
@for $i from 1 through $grid-columns-desktop {
|
67
|
-
$span: grid-span($grid-columns-desktop
|
67
|
+
$span: grid-span($i, $grid-columns-desktop);
|
68
68
|
|
69
69
|
.col.desktop-#{$i} { width: $span; }
|
70
70
|
.col.desktop-push-#{$i} { left: $span; }
|
@@ -83,7 +83,7 @@
|
|
83
83
|
}
|
84
84
|
|
85
85
|
@for $i from 1 through $grid-columns-small {
|
86
|
-
$span: grid-span($grid-columns-small
|
86
|
+
$span: grid-span($i, $grid-columns-small);
|
87
87
|
|
88
88
|
.col.small-#{$i} { width: $span; }
|
89
89
|
.col.small-push-#{$i} { left: $span; }
|
@@ -98,7 +98,7 @@
|
|
98
98
|
}
|
99
99
|
|
100
100
|
@for $i from 1 through $grid-columns-medium {
|
101
|
-
$span: grid-span($grid-columns-medium
|
101
|
+
$span: grid-span($i, $grid-columns-medium);
|
102
102
|
|
103
103
|
.col.medium-#{$i} { width: $span; }
|
104
104
|
.col.medium-push-#{$i} { left: $span; }
|
@@ -113,7 +113,7 @@
|
|
113
113
|
}
|
114
114
|
|
115
115
|
@for $i from 1 through $grid-columns-large {
|
116
|
-
$span: grid-span($grid-columns-large
|
116
|
+
$span: grid-span($i, $grid-columns-large);
|
117
117
|
|
118
118
|
.col.large-#{$i} { width: $span; }
|
119
119
|
.col.large-push-#{$i} { left: $span; }
|
@@ -22,7 +22,6 @@
|
|
22
22
|
top: -3px;
|
23
23
|
line-height: 1rem;
|
24
24
|
border-radius: $round;
|
25
|
-
@include transition(all $default-transition);
|
26
25
|
|
27
26
|
&:hover { border-color: $gray-darkest; }
|
28
27
|
}
|
@@ -42,7 +41,6 @@
|
|
42
41
|
&:checked + .checkbox,
|
43
42
|
&:checked + .radio {
|
44
43
|
border-color: $info;
|
45
|
-
box-shadow: 0 0 5px $info-light;
|
46
44
|
}
|
47
45
|
|
48
46
|
// Style when input is disabled
|
@@ -64,7 +62,6 @@
|
|
64
62
|
border-radius: $round;
|
65
63
|
white-space: nowrap;
|
66
64
|
line-height: 1rem;
|
67
|
-
@include transition(all $default-transition);
|
68
65
|
}
|
69
66
|
|
70
67
|
.select-label,
|
@@ -72,8 +69,7 @@
|
|
72
69
|
display: inline-block;
|
73
70
|
vertical-align: middle;
|
74
71
|
line-height: normal;
|
75
|
-
|
76
|
-
padding: $medium-padding;
|
72
|
+
@include size-medium;
|
77
73
|
}
|
78
74
|
|
79
75
|
.select-arrow {
|
@@ -99,7 +95,6 @@
|
|
99
95
|
// Style when the select is focused
|
100
96
|
&:focus + .select {
|
101
97
|
border-color: $info;
|
102
|
-
box-shadow: 0 0 5px $info-light;
|
103
98
|
}
|
104
99
|
|
105
100
|
// Style when select is disabled
|
@@ -29,6 +29,7 @@
|
|
29
29
|
}
|
30
30
|
|
31
31
|
&:empty { display: none; }
|
32
|
+
|
32
33
|
&:after {
|
33
34
|
content: "";
|
34
35
|
height: 0;
|
@@ -39,11 +40,15 @@
|
|
39
40
|
|
40
41
|
//-------------------- Modifiers --------------------//
|
41
42
|
|
42
|
-
.label
|
43
|
+
.label--badge {
|
44
|
+
@extend .label;
|
45
|
+
|
43
46
|
border-radius: 1rem;
|
44
47
|
}
|
45
48
|
|
46
|
-
.label
|
49
|
+
.label--arrow-left {
|
50
|
+
@extend .label;
|
51
|
+
|
47
52
|
border-top-left-radius: 1px;
|
48
53
|
border-bottom-left-radius: 1px;
|
49
54
|
padding-left: 2px;
|
@@ -60,7 +65,9 @@
|
|
60
65
|
&.large:after { border-width: .75rem; }
|
61
66
|
}
|
62
67
|
|
63
|
-
.label
|
68
|
+
.label--arrow-right {
|
69
|
+
@extend .label;
|
70
|
+
|
64
71
|
border-top-right-radius: 1px;
|
65
72
|
border-bottom-right-radius: 1px;
|
66
73
|
padding-right: 2px;
|
@@ -77,7 +84,9 @@
|
|
77
84
|
&.large:after { border-width: .75rem; }
|
78
85
|
}
|
79
86
|
|
80
|
-
.label
|
87
|
+
.label--ribbon-left {
|
88
|
+
@extend .label;
|
89
|
+
|
81
90
|
border-top-left-radius: 0;
|
82
91
|
border-bottom-left-radius: 0;
|
83
92
|
|
@@ -91,16 +100,18 @@
|
|
91
100
|
}
|
92
101
|
}
|
93
102
|
|
94
|
-
.label
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
103
|
+
.label--ribbon-right {
|
104
|
+
@extend .label;
|
105
|
+
|
106
|
+
border-top-right-radius: 0;
|
107
|
+
border-bottom-right-radius: 0;
|
108
|
+
|
109
|
+
&:after {
|
110
|
+
top: 100%;
|
111
|
+
right: 0;
|
112
|
+
border: 1em solid transparent;
|
113
|
+
border-top-width: 0 !important;
|
114
|
+
border-right-width: 0 !important;
|
115
|
+
border-left-color: $gray-darkest;
|
116
|
+
}
|
106
117
|
}
|
@@ -23,7 +23,11 @@
|
|
23
23
|
|
24
24
|
&.is-loading {
|
25
25
|
.modal-close { display: none; }
|
26
|
-
|
26
|
+
}
|
27
|
+
|
28
|
+
&.is-draggable {
|
29
|
+
.modal-inner { cursor: default; }
|
30
|
+
.modal-head { cursor: move; }
|
27
31
|
}
|
28
32
|
}
|
29
33
|
|
@@ -38,21 +42,12 @@
|
|
38
42
|
&:hover { opacity: 1; }
|
39
43
|
}
|
40
44
|
|
41
|
-
|
42
|
-
.modal-handle {
|
45
|
+
.modal-inner {
|
43
46
|
position: relative;
|
44
47
|
margin: 0 auto;
|
45
48
|
background: $gray;
|
46
|
-
border: 1px solid $gray-dark;
|
47
|
-
}
|
48
|
-
|
49
|
-
// Reset draggable cursor
|
50
|
-
.modal.is-draggable {
|
51
|
-
.modal-inner { cursor: default; }
|
52
|
-
.modal-head { cursor: move; }
|
53
49
|
}
|
54
50
|
|
55
|
-
// Apply block padding
|
56
51
|
.modal-head,
|
57
52
|
.modal-body,
|
58
53
|
.modal-foot,
|
@@ -68,7 +63,7 @@
|
|
68
63
|
|
69
64
|
//-------------------- Modifiers --------------------//
|
70
65
|
|
71
|
-
.modal.
|
66
|
+
.modal.is-fullscreen {
|
72
67
|
width: 100%;
|
73
68
|
top: 0;
|
74
69
|
left: 0;
|
@@ -10,7 +10,6 @@
|
|
10
10
|
margin: $margin 0;
|
11
11
|
padding: $padding;
|
12
12
|
background: $gray-light;
|
13
|
-
border: 1px solid $gray-dark;
|
14
13
|
text-align: left;
|
15
14
|
|
16
15
|
hr {
|
@@ -29,11 +28,9 @@
|
|
29
28
|
float: right;
|
30
29
|
margin-left: $margin;
|
31
30
|
line-height: 1rem;
|
32
|
-
opacity: $default-opacity;
|
33
31
|
padding: 5px;
|
34
32
|
|
35
33
|
& ~ p { margin: 0; }
|
36
|
-
&:hover { opacity: 1; }
|
37
34
|
}
|
38
35
|
|
39
36
|
.notice-title {
|
@@ -10,13 +10,13 @@
|
|
10
10
|
position: absolute;
|
11
11
|
top: 0;
|
12
12
|
left: 0;
|
13
|
-
margin:
|
13
|
+
margin: $margin;
|
14
14
|
padding: 0;
|
15
|
+
border: 0;
|
15
16
|
z-index: 500;
|
16
17
|
max-width: 300px;
|
17
18
|
visibility: hidden;
|
18
19
|
background: $gray;
|
19
|
-
border: 1px solid $gray-dark;
|
20
20
|
|
21
21
|
&.center-left .popover-arrow,
|
22
22
|
&.center-right .popover-arrow {
|
@@ -25,12 +25,12 @@
|
|
25
25
|
}
|
26
26
|
|
27
27
|
&.center-left .popover-arrow {
|
28
|
-
border-left-color: $gray
|
28
|
+
border-left-color: $gray;
|
29
29
|
right: -16px;
|
30
30
|
}
|
31
31
|
|
32
32
|
&.center-right .popover-arrow {
|
33
|
-
border-right-color: $gray
|
33
|
+
border-right-color: $gray;
|
34
34
|
left: -16px;
|
35
35
|
}
|
36
36
|
|
@@ -41,12 +41,12 @@
|
|
41
41
|
}
|
42
42
|
|
43
43
|
&.top-center .popover-arrow {
|
44
|
-
border-top-color: $gray
|
44
|
+
border-top-color: $gray;
|
45
45
|
bottom: -16px;
|
46
46
|
}
|
47
47
|
|
48
48
|
&.bottom-center .popover-arrow {
|
49
|
-
border-bottom-color: $gray
|
49
|
+
border-bottom-color: $gray;
|
50
50
|
top: -16px;
|
51
51
|
}
|
52
52
|
}
|
@@ -13,22 +13,27 @@
|
|
13
13
|
|
14
14
|
&.small .progress-bar {
|
15
15
|
height: 1rem;
|
16
|
-
line-height:
|
16
|
+
line-height: 1rem;
|
17
17
|
font-size: $small-size;
|
18
18
|
}
|
19
19
|
|
20
20
|
&.large .progress-bar {
|
21
21
|
height: 2rem;
|
22
|
-
line-height:
|
22
|
+
line-height: 2rem;
|
23
23
|
font-size: $large-size;
|
24
24
|
}
|
25
25
|
|
26
|
+
.progress-bar + .progress-bar {
|
27
|
+
border-top-left-radius: 0;
|
28
|
+
border-bottom-left-radius: 0;
|
29
|
+
}
|
30
|
+
|
26
31
|
@include clear-fix;
|
27
32
|
}
|
28
33
|
|
29
34
|
.progress-bar {
|
30
35
|
height: 1.5rem;
|
31
|
-
line-height: 1.
|
36
|
+
line-height: 1.5rem;
|
32
37
|
overflow: hidden;
|
33
38
|
position: relative;
|
34
39
|
text-align: center;
|
@@ -36,4 +41,13 @@
|
|
36
41
|
background: $gray-darkest;
|
37
42
|
float: left;
|
38
43
|
@include transition(width .6s, background $progress-transition);
|
44
|
+
}
|
45
|
+
|
46
|
+
.progress.round {
|
47
|
+
border-radius: $round;
|
48
|
+
|
49
|
+
.progress-bar {
|
50
|
+
border-top-left-radius: $round;
|
51
|
+
border-bottom-left-radius: $round;
|
52
|
+
}
|
39
53
|
}
|
@@ -40,11 +40,7 @@
|
|
40
40
|
top: $padding;
|
41
41
|
right: $padding;
|
42
42
|
line-height: 1rem;
|
43
|
-
opacity: $showcase-opacity;
|
44
43
|
padding: $padding;
|
45
|
-
|
46
|
-
.x { color: #fff; }
|
47
|
-
&:hover { opacity: 1; }
|
48
44
|
}
|
49
45
|
|
50
46
|
.showcase-inner {
|
@@ -98,8 +94,7 @@
|
|
98
94
|
display: none;
|
99
95
|
|
100
96
|
@include in-small {
|
101
|
-
|
102
|
-
padding: $small-padding;
|
97
|
+
@include size-small;
|
103
98
|
}
|
104
99
|
}
|
105
100
|
|
@@ -111,26 +106,10 @@
|
|
111
106
|
width: auto;
|
112
107
|
height: auto;
|
113
108
|
z-index: 5;
|
114
|
-
opacity: $showcase-opacity;
|
115
109
|
top: 50%;
|
116
110
|
@include transform(translateY(-50%)); // move up 50% of their height
|
117
111
|
|
118
|
-
.arrow-left,
|
119
|
-
.arrow-right {
|
120
|
-
color: #fff;
|
121
|
-
font-size: 2rem;
|
122
|
-
}
|
123
|
-
|
124
|
-
&:hover { opacity: 1; }
|
125
112
|
&:focus { outline: none; }
|
126
|
-
|
127
|
-
// Large icons for large resolutions
|
128
|
-
@include if-tablet-landscape {
|
129
|
-
.arrow-left,
|
130
|
-
.arrow-right {
|
131
|
-
font-size: 3rem;
|
132
|
-
}
|
133
|
-
}
|
134
113
|
}
|
135
114
|
|
136
115
|
.showcase-prev { left: $padding; }
|
@@ -32,15 +32,15 @@
|
|
32
32
|
tfoot tr {
|
33
33
|
background: $gray-dark;
|
34
34
|
|
35
|
-
th { border-color:
|
35
|
+
th { border-color: $gray-darkest; }
|
36
36
|
}
|
37
37
|
|
38
38
|
// Zebra striping
|
39
39
|
tbody tr {
|
40
40
|
background: $gray;
|
41
41
|
|
42
|
-
&:nth-child(odd) { background: $gray-
|
43
|
-
&.divider { background:
|
42
|
+
&:nth-child(odd) { background: $gray-lightest; }
|
43
|
+
&.table-divider { background: $gray-dark; }
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
@@ -52,37 +52,54 @@
|
|
52
52
|
|
53
53
|
//-------------------- Modifiers --------------------//
|
54
54
|
|
55
|
-
.table.
|
56
|
-
tbody tr:not(.divider):hover { background: #fff; }
|
55
|
+
.table.has-hover {
|
56
|
+
tbody tr:not(.table-divider):hover { background: #fff; }
|
57
57
|
}
|
58
58
|
|
59
|
-
.table.
|
59
|
+
.table.is-sortable {
|
60
60
|
thead th {
|
61
61
|
padding: 0;
|
62
62
|
|
63
|
-
a,
|
63
|
+
> a,
|
64
|
+
> span {
|
64
65
|
padding: $padding;
|
65
66
|
display: block;
|
66
67
|
}
|
67
68
|
|
68
|
-
a {
|
69
|
+
> a {
|
69
70
|
background: $gray-dark;
|
70
|
-
color: #000;
|
71
71
|
|
72
|
-
&:hover { background:
|
72
|
+
&:hover { background: $gray-darkest; }
|
73
73
|
}
|
74
74
|
}
|
75
75
|
}
|
76
76
|
|
77
|
-
|
77
|
+
//-------------------- Sizes --------------------//
|
78
|
+
|
79
|
+
.table.small {
|
78
80
|
thead th,
|
79
81
|
tbody td { padding: $small-padding; }
|
80
82
|
|
81
|
-
&.
|
83
|
+
&.is-sortable {
|
84
|
+
thead th {
|
85
|
+
padding: 0;
|
86
|
+
|
87
|
+
> a,
|
88
|
+
> span { padding: $small-padding; }
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
.table.large {
|
94
|
+
thead th,
|
95
|
+
tbody td { padding: $large-padding; }
|
96
|
+
|
97
|
+
&.is-sortable {
|
82
98
|
thead th {
|
83
99
|
padding: 0;
|
84
100
|
|
85
|
-
a,
|
101
|
+
> a,
|
102
|
+
> span { padding: $large-padding; }
|
86
103
|
}
|
87
104
|
}
|
88
105
|
}
|