titon-toolkit 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +66 -183
- data/readme.md +17 -8
- data/roadmap.md +13 -11
- data/scss/toolkit.scss +3 -2
- data/scss/toolkit/_common.scss +72 -22
- data/scss/toolkit/base.scss +12 -1
- data/scss/toolkit/components/accordion.scss +19 -17
- data/scss/toolkit/components/blackout.scss +20 -18
- data/scss/toolkit/components/breadcrumb.scss +37 -36
- data/scss/toolkit/components/button-group.scss +130 -128
- data/scss/toolkit/components/button.scss +100 -98
- data/scss/toolkit/components/carousel.scss +63 -63
- data/scss/toolkit/components/code.scss +49 -47
- data/scss/toolkit/components/divider.scss +34 -32
- data/scss/toolkit/components/drop.scss +82 -79
- data/scss/toolkit/components/flex.scss +110 -0
- data/scss/toolkit/components/flyout.scss +59 -53
- data/scss/toolkit/components/form.scss +178 -170
- data/scss/toolkit/components/grid.scss +36 -34
- data/scss/toolkit/components/icon.scss +28 -25
- data/scss/toolkit/components/input-group.scss +35 -33
- data/scss/toolkit/components/input.scss +102 -99
- data/scss/toolkit/components/label.scss +99 -97
- data/scss/toolkit/components/lazy-load.scss +6 -4
- data/scss/toolkit/components/loader.scss +124 -122
- data/scss/toolkit/components/mask.scss +24 -22
- data/scss/toolkit/components/matrix.scss +16 -14
- data/scss/toolkit/components/modal.scss +104 -102
- data/scss/toolkit/components/notice.scss +24 -23
- data/scss/toolkit/components/off-canvas.scss +118 -116
- data/scss/toolkit/components/pagination.scss +90 -66
- data/scss/toolkit/components/pin.scss +11 -9
- data/scss/toolkit/components/popover.scss +50 -48
- data/scss/toolkit/components/progress.scss +42 -40
- data/scss/toolkit/components/responsive.scss +61 -66
- data/scss/toolkit/components/showcase.scss +62 -60
- data/scss/toolkit/components/step.scss +51 -44
- data/scss/toolkit/components/switch.scss +96 -93
- data/scss/toolkit/components/tab.scss +25 -25
- data/scss/toolkit/components/table.scss +76 -75
- data/scss/toolkit/components/toast.scss +91 -89
- data/scss/toolkit/components/tooltip.scss +82 -80
- data/scss/toolkit/components/type-ahead.scss +53 -52
- data/scss/toolkit/components/typography.scss +45 -43
- data/scss/toolkit/mixins/_flex.scss +80 -0
- data/scss/toolkit/mixins/_grid.scss +6 -29
- data/scss/toolkit/mixins/_helper.scss +33 -4
- data/scss/toolkit/mixins/_layout.scss +28 -1
- data/version.md +1 -1
- metadata +4 -2
@@ -6,14 +6,16 @@
|
|
6
6
|
|
7
7
|
@import "../common";
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
@include export("pin") {
|
10
|
+
#{$pin-class} {
|
11
|
+
position: absolute;
|
12
|
+
}
|
12
13
|
|
13
|
-
#{$pin-class}.sticky {
|
14
|
-
|
15
|
-
}
|
14
|
+
#{$pin-class}.sticky {
|
15
|
+
transition: top .6s ease-in-out, right $pin-transition ease-in-out, left $pin-transition ease-in-out;
|
16
|
+
}
|
16
17
|
|
17
|
-
#{$pin-class}.slide {
|
18
|
-
|
19
|
-
}
|
18
|
+
#{$pin-class}.slide {
|
19
|
+
transition: top $pin-transition linear, right $pin-transition linear, left $pin-transition linear;
|
20
|
+
}
|
21
|
+
}
|
@@ -6,64 +6,66 @@
|
|
6
6
|
|
7
7
|
@import "../common";
|
8
8
|
|
9
|
-
|
10
|
-
$popover-arrow-width-
|
9
|
+
@include export("popover") {
|
10
|
+
$popover-arrow-width-double: ($popover-arrow-width * 2);
|
11
|
+
$popover-arrow-width-shadow: ($popover-arrow-width - 2);
|
11
12
|
|
12
|
-
#{$popover-class} {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
#{$popover-class} {
|
14
|
+
position: absolute;
|
15
|
+
top: 0;
|
16
|
+
left: 0;
|
17
|
+
margin: $margin;
|
18
|
+
padding: 0;
|
19
|
+
border: 0;
|
20
|
+
z-index: $popover-zindex;
|
21
|
+
max-width: 300px;
|
22
|
+
visibility: hidden;
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
&.center-left #{$popover-class-arrow},
|
25
|
+
&.center-right #{$popover-class-arrow} {
|
26
|
+
top: 50%;
|
27
|
+
margin-top: -#{$popover-arrow-width}px;
|
28
|
+
}
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
&.center-left #{$popover-class-arrow} {
|
31
|
+
border-left-color: $gray;
|
32
|
+
right: -#{$popover-arrow-width-double}px;
|
33
|
+
}
|
33
34
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
&.center-right #{$popover-class-arrow} {
|
36
|
+
border-right-color: $gray;
|
37
|
+
left: -#{$popover-arrow-width-double}px;
|
38
|
+
}
|
38
39
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
&.top-center #{$popover-class-arrow},
|
41
|
+
&.bottom-center #{$popover-class-arrow} {
|
42
|
+
left: 50%;
|
43
|
+
margin-left: -#{$popover-arrow-width}px;
|
44
|
+
}
|
44
45
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
&.top-center #{$popover-class-arrow} {
|
47
|
+
border-top-color: $gray;
|
48
|
+
bottom: -#{$popover-arrow-width-double}px;
|
49
|
+
}
|
49
50
|
|
50
|
-
|
51
|
-
|
52
|
-
|
51
|
+
&.bottom-center #{$popover-class-arrow} {
|
52
|
+
border-bottom-color: $gray;
|
53
|
+
top: -#{$popover-arrow-width-double}px;
|
54
|
+
}
|
53
55
|
}
|
54
|
-
}
|
55
56
|
|
56
|
-
#{$popover-class-head},
|
57
|
-
#{$popover-class-body} {
|
58
|
-
|
59
|
-
}
|
57
|
+
#{$popover-class-head},
|
58
|
+
#{$popover-class-body} {
|
59
|
+
padding: $small-padding;
|
60
|
+
}
|
60
61
|
|
61
|
-
#{$popover-class-arrow} {
|
62
|
-
|
62
|
+
#{$popover-class-arrow} {
|
63
|
+
border: #{$popover-arrow-width}px solid transparent;
|
63
64
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
65
|
+
&::after {
|
66
|
+
border: #{$popover-arrow-width-shadow}px solid transparent;
|
67
|
+
top: -#{$popover-arrow-width-shadow}px;
|
68
|
+
left: -#{$popover-arrow-width-shadow}px;
|
69
|
+
}
|
68
70
|
}
|
69
71
|
}
|
@@ -6,56 +6,58 @@
|
|
6
6
|
|
7
7
|
@import "../common";
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
9
|
+
@include export("progress") {
|
10
|
+
#{$progress-class} {
|
11
|
+
overflow: hidden;
|
12
|
+
position: relative;
|
13
|
+
|
14
|
+
@include is-small {
|
15
|
+
#{$progress-class-bar} {
|
16
|
+
height: 1rem;
|
17
|
+
line-height: 1rem;
|
18
|
+
font-size: $small-size;
|
19
|
+
}
|
18
20
|
}
|
19
|
-
}
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
@include is-large {
|
23
|
+
#{$progress-class-bar} {
|
24
|
+
height: 2rem;
|
25
|
+
line-height: 2rem;
|
26
|
+
font-size: $large-size;
|
27
|
+
}
|
26
28
|
}
|
27
|
-
}
|
28
29
|
|
29
|
-
|
30
|
+
@include clear-fix;
|
30
31
|
|
31
|
-
|
32
|
+
//----- Effects ------//
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
&#{$shape-round-class} {
|
35
|
+
#{$progress-class-bar}:first-child {
|
36
|
+
border-top-#{$align-direction}-radius: $round;
|
37
|
+
border-bottom-#{$align-direction}-radius: $round;
|
38
|
+
}
|
37
39
|
}
|
38
|
-
}
|
39
40
|
|
40
|
-
|
41
|
-
|
42
|
-
|
41
|
+
@if index($progress-effects, "pill") {
|
42
|
+
&#{$shape-pill-class} {
|
43
|
+
border-radius: $pill;
|
43
44
|
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
#{$progress-class-bar}:first-child {
|
46
|
+
border-top-#{$align-direction}-radius: $pill;
|
47
|
+
border-bottom-#{$align-direction}-radius: $pill;
|
48
|
+
}
|
47
49
|
}
|
48
50
|
}
|
49
51
|
}
|
50
|
-
}
|
51
52
|
|
52
|
-
#{$progress-class-bar} {
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
}
|
53
|
+
#{$progress-class-bar} {
|
54
|
+
height: 1.5rem;
|
55
|
+
line-height: 1.5rem;
|
56
|
+
overflow: hidden;
|
57
|
+
position: relative;
|
58
|
+
text-align: center;
|
59
|
+
font-size: $medium-size;
|
60
|
+
float: $align-direction;
|
61
|
+
transition: width $progress-transition, background $progress-transition;
|
62
|
+
}
|
63
|
+
}
|
@@ -6,79 +6,74 @@
|
|
6
6
|
|
7
7
|
@import "../common";
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
height: auto;
|
13
|
-
max-width: 100%;
|
14
|
-
}
|
9
|
+
@include export("responsive") {
|
10
|
+
.show-retina,
|
11
|
+
.show-print { display: none !important; }
|
15
12
|
|
16
|
-
|
17
|
-
|
13
|
+
// Extra small states
|
14
|
+
@include in-xsmall {
|
15
|
+
.show-xlarge,
|
16
|
+
.show-large,
|
17
|
+
.show-medium,
|
18
|
+
.show-small,
|
19
|
+
.hide-xsmall { display: none !important; }
|
20
|
+
}
|
18
21
|
|
19
|
-
//
|
20
|
-
@include in-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
}
|
22
|
+
// Small states
|
23
|
+
@include in-small {
|
24
|
+
.show-xlarge,
|
25
|
+
.show-large,
|
26
|
+
.show-medium,
|
27
|
+
.show-xsmall,
|
28
|
+
.hide-small { display: none !important; }
|
29
|
+
}
|
27
30
|
|
28
|
-
//
|
29
|
-
@include in-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
31
|
+
// Medium states
|
32
|
+
@include in-medium {
|
33
|
+
.show-xlarge,
|
34
|
+
.show-large,
|
35
|
+
.show-small,
|
36
|
+
.show-xsmall,
|
37
|
+
.hide-medium { display: none !important; }
|
38
|
+
}
|
36
39
|
|
37
|
-
//
|
38
|
-
@include in-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
}
|
40
|
+
// Large states
|
41
|
+
@include in-large {
|
42
|
+
.show-xlarge,
|
43
|
+
.show-medium,
|
44
|
+
.show-small,
|
45
|
+
.show-xsmall,
|
46
|
+
.hide-large { display: none !important; }
|
47
|
+
}
|
45
48
|
|
46
|
-
//
|
47
|
-
@include in-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
}
|
49
|
+
// Extra large states
|
50
|
+
@include in-xlarge {
|
51
|
+
.show-large,
|
52
|
+
.show-medium,
|
53
|
+
.show-small,
|
54
|
+
.show-xsmall,
|
55
|
+
.hide-xlarge { display: none !important; }
|
56
|
+
}
|
54
57
|
|
55
|
-
//
|
56
|
-
@include
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
.show-xsmall,
|
61
|
-
.hide-xlarge { display: none !important; }
|
62
|
-
}
|
58
|
+
// Orientation states
|
59
|
+
@include if-portrait {
|
60
|
+
.show-landscape,
|
61
|
+
.hide-portrait { display: none !important; }
|
62
|
+
}
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
}
|
64
|
+
@include if-landscape {
|
65
|
+
.show-portrait,
|
66
|
+
.hide-landscape { display: none !important; }
|
67
|
+
}
|
69
68
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
// Type states
|
70
|
+
@include if-retina {
|
71
|
+
.hide-retina { display: none !important; }
|
72
|
+
@include responsive-display-block(".show-retina");
|
73
|
+
}
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
75
|
+
@media print {
|
76
|
+
.hide-print { display: none !important; }
|
77
|
+
@include responsive-display-block(".show-print");
|
78
|
+
}
|
79
79
|
}
|
80
|
-
|
81
|
-
@media print {
|
82
|
-
.hide-print { display: none !important; }
|
83
|
-
@include responsive-display-block(".show-print");
|
84
|
-
}
|
@@ -6,76 +6,78 @@
|
|
6
6
|
|
7
7
|
@import "../common";
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
9
|
+
@include export("showcase") {
|
10
|
+
#{$showcase-class} {
|
11
|
+
position: fixed;
|
12
|
+
top: 50%;
|
13
|
+
left: 50%;
|
14
|
+
width: auto;
|
15
|
+
height: auto;
|
16
|
+
margin: 0;
|
17
|
+
padding: 0;
|
18
|
+
opacity: 0;
|
19
|
+
z-index: $showcase-zindex;
|
20
|
+
visibility: hidden;
|
21
|
+
backface-visibility: hidden;
|
22
|
+
transform: translate(-50%, -50%);
|
23
|
+
transition: opacity $showcase-transition, visibility $showcase-transition;
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
25
|
+
&.is-loading,
|
26
|
+
&.is-single {
|
27
|
+
#{$showcase-class-prev},
|
28
|
+
#{$showcase-class-next},
|
29
|
+
#{$showcase-class-tabs} {
|
30
|
+
display: none !important;
|
31
|
+
}
|
30
32
|
}
|
31
|
-
}
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
|
34
|
+
&.is-loading {
|
35
|
+
#{$showcase-class-close} {
|
36
|
+
display: none !important;
|
37
|
+
}
|
36
38
|
}
|
37
39
|
}
|
38
|
-
}
|
39
40
|
|
40
|
-
#{$showcase-class-close} {
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
}
|
41
|
+
#{$showcase-class-close} {
|
42
|
+
float: $align-opposite-direction;
|
43
|
+
line-height: 1rem;
|
44
|
+
background: none;
|
45
|
+
border: 0;
|
46
|
+
padding: 0;
|
47
|
+
margin-#{$align-direction}: 1rem;
|
48
|
+
}
|
48
49
|
|
49
|
-
#{$showcase-class-caption} {
|
50
|
-
|
51
|
-
|
52
|
-
}
|
50
|
+
#{$showcase-class-caption} {
|
51
|
+
opacity: 0;
|
52
|
+
transition: opacity $showcase-transition, visibility $showcase-transition;
|
53
|
+
}
|
53
54
|
|
54
|
-
#{$showcase-class-inner} {
|
55
|
-
|
56
|
-
|
57
|
-
}
|
55
|
+
#{$showcase-class-inner} {
|
56
|
+
position: relative;
|
57
|
+
margin-bottom: $padding;
|
58
|
+
}
|
58
59
|
|
59
|
-
#{$showcase-class-items} {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
60
|
+
#{$showcase-class-items} {
|
61
|
+
@include reset-list;
|
62
|
+
width: 100px;
|
63
|
+
height: 100px;
|
64
|
+
position: relative;
|
65
|
+
overflow: hidden;
|
66
|
+
transition: width $showcase-transition, height $showcase-transition;
|
66
67
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
68
|
+
> li {
|
69
|
+
position: absolute;
|
70
|
+
top: 0;
|
71
|
+
#{$align-direction}: 0;
|
72
|
+
opacity: 0;
|
73
|
+
transition: opacity $showcase-transition, visibility $showcase-transition;
|
73
74
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
75
|
+
> img {
|
76
|
+
max-width: 100%;
|
77
|
+
width: 100%;
|
78
|
+
height: auto;
|
79
|
+
display: block;
|
80
|
+
}
|
79
81
|
}
|
80
82
|
}
|
81
|
-
}
|
83
|
+
}
|