titon-toolkit 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/scss/normalize.scss +396 -0
- data/src/scss/toolkit.scss +38 -0
- data/src/scss/toolkit/_common.scss +16 -0
- data/src/scss/toolkit/_variables.scss +59 -0
- data/src/scss/toolkit/effects/visual.scss +75 -0
- data/src/scss/toolkit/layout/base.scss +93 -0
- data/src/scss/toolkit/layout/code.scss +61 -0
- data/src/scss/toolkit/layout/form.scss +158 -0
- data/src/scss/toolkit/layout/grid.scss +64 -0
- data/src/scss/toolkit/layout/input-group.scss +56 -0
- data/src/scss/toolkit/layout/responsive.scss +53 -0
- data/src/scss/toolkit/layout/table.scss +82 -0
- data/src/scss/toolkit/layout/typography.scss +49 -0
- data/src/scss/toolkit/mixins/_grid.scss +24 -0
- data/src/scss/toolkit/mixins/_layout.scss +90 -0
- data/src/scss/toolkit/mixins/_responsive.scss +111 -0
- data/src/scss/toolkit/mixins/_themes.scss +98 -0
- data/src/scss/toolkit/modules/accordion.scss +62 -0
- data/src/scss/toolkit/modules/blackout.scss +24 -0
- data/src/scss/toolkit/modules/carousel.scss +175 -0
- data/src/scss/toolkit/modules/flyout.scss +78 -0
- data/src/scss/toolkit/modules/modal.scss +243 -0
- data/src/scss/toolkit/modules/popover.scss +84 -0
- data/src/scss/toolkit/modules/showcase.scss +166 -0
- data/src/scss/toolkit/modules/tabs.scss +56 -0
- data/src/scss/toolkit/modules/tooltip.scss +130 -0
- data/src/scss/toolkit/modules/type-ahead.scss +67 -0
- data/src/scss/toolkit/themes/titon.scss +364 -0
- data/src/scss/toolkit/themes/tomorrow-night.scss +569 -0
- data/src/scss/toolkit/ui/alert.scss +48 -0
- data/src/scss/toolkit/ui/breadcrumbs.scss +51 -0
- data/src/scss/toolkit/ui/button-group.scss +204 -0
- data/src/scss/toolkit/ui/button.scss +48 -0
- data/src/scss/toolkit/ui/dropdown.scss +105 -0
- data/src/scss/toolkit/ui/icon.scss +22 -0
- data/src/scss/toolkit/ui/label-badge.scss +76 -0
- data/src/scss/toolkit/ui/lazy-load.scss +14 -0
- data/src/scss/toolkit/ui/pagination.scss +128 -0
- data/src/scss/toolkit/ui/pin.scss +16 -0
- data/src/scss/toolkit/ui/progress.scss +34 -0
- metadata +42 -2
@@ -0,0 +1,59 @@
|
|
1
|
+
|
2
|
+
//-------------------- Compass --------------------//
|
3
|
+
|
4
|
+
$experimental-support-for-mozilla: true !default;
|
5
|
+
$experimental-support-for-webkit: true !default;
|
6
|
+
$experimental-support-for-opera: false !default;
|
7
|
+
$experimental-support-for-microsoft: false !default;
|
8
|
+
$experimental-support-for-khtml: false !default;
|
9
|
+
|
10
|
+
$support-for-original-webkit-gradients: false !default;
|
11
|
+
|
12
|
+
//-------------------- Colors --------------------//
|
13
|
+
|
14
|
+
$gray-lightest: #fbfbfb !default;
|
15
|
+
$gray-light: #f8f8f8 !default;
|
16
|
+
$gray: #f5f5f5 !default;
|
17
|
+
$gray-dark: #e5e5e5 !default;
|
18
|
+
$gray-darkest: #c2c2c2 !default;
|
19
|
+
|
20
|
+
$background-color: #fff !default;
|
21
|
+
$foreground-color: #2d2d2d !default;
|
22
|
+
|
23
|
+
//-------------------- States --------------------//
|
24
|
+
|
25
|
+
$default: #929497 !default;
|
26
|
+
$default-light: #d0d2d3 !default;
|
27
|
+
$default-dark: #404041 !default;
|
28
|
+
|
29
|
+
$info: #45c5eb !default;
|
30
|
+
$info-light: #dbf1fa !default;
|
31
|
+
$info-dark: #4067ab !default;
|
32
|
+
|
33
|
+
$warning: #fcd04b !default;
|
34
|
+
$warning-light: #ffebb5 !default;
|
35
|
+
$warning-dark: #c87e00 !default;
|
36
|
+
|
37
|
+
$success: #97cb6f !default;
|
38
|
+
$success-light: #e7f2dd !default;
|
39
|
+
$success-dark: #226b36 !default;
|
40
|
+
|
41
|
+
$error: #f06060 !default;
|
42
|
+
$error-light: #fdc5c1 !default;
|
43
|
+
$error-dark: #b10e0e !default;
|
44
|
+
|
45
|
+
$disabled-opacity: .75 !default;
|
46
|
+
|
47
|
+
//-------------------- Border Styles --------------------//
|
48
|
+
|
49
|
+
$round: .2rem !default;
|
50
|
+
|
51
|
+
$pill: 2rem !default;
|
52
|
+
|
53
|
+
$oval-x: 7rem !default;
|
54
|
+
$oval-y: 2.75rem !default;
|
55
|
+
|
56
|
+
$skew-x: 1rem !default;
|
57
|
+
$skew-y: 3rem !default;
|
58
|
+
$skew: $skew-x $skew-y;
|
59
|
+
$skew-reverse: $skew-y $skew-x;
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright 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
|
+
//-------------------- Gloss --------------------//
|
10
|
+
|
11
|
+
.visual-gloss {
|
12
|
+
&:after {
|
13
|
+
content: "";
|
14
|
+
position: absolute;
|
15
|
+
width: 100%;
|
16
|
+
height: 60%;
|
17
|
+
top: 1%;
|
18
|
+
left: 0;
|
19
|
+
border-radius: 0 0 2rem 2rem / 0 0 1rem 1rem;
|
20
|
+
@include background-image(linear-gradient(left, white(.3) 0%, white(0) 50%, white(.3) 100%));
|
21
|
+
}
|
22
|
+
|
23
|
+
&.round:after {
|
24
|
+
border-radius: .2rem .2rem 2rem 2rem / .5rem .5rem 1rem 1rem;
|
25
|
+
width: 98%;
|
26
|
+
left: 1.5%;
|
27
|
+
}
|
28
|
+
|
29
|
+
&.pill:after,
|
30
|
+
&.oval:after,
|
31
|
+
&.skew:after {
|
32
|
+
width: 90%;
|
33
|
+
left: 5.5%;
|
34
|
+
}
|
35
|
+
|
36
|
+
&.pill:after { border-radius: 1rem 1rem 2rem 2rem / 1rem 1rem 1rem 1rem; }
|
37
|
+
&.oval:after { border-radius: 5rem 5rem 4rem 4rem / 1.5rem 1.5rem 1.5rem 1.5rem; }
|
38
|
+
&.skew:after { border-radius: 1rem 1rem 3rem 3rem / 1rem 1rem 2rem 2rem; }
|
39
|
+
}
|
40
|
+
|
41
|
+
//-------------------- Reflection --------------------//
|
42
|
+
|
43
|
+
.visual-reflect:after {
|
44
|
+
content: "";
|
45
|
+
position: absolute;
|
46
|
+
width: 100%;
|
47
|
+
height: 50%;
|
48
|
+
top: 0;
|
49
|
+
left: 0;
|
50
|
+
@include background-image(linear-gradient(top, white(0), white(.3)));
|
51
|
+
}
|
52
|
+
|
53
|
+
//-------------------- Glare --------------------//
|
54
|
+
|
55
|
+
.visual-glare:after {
|
56
|
+
content: "";
|
57
|
+
position: absolute;
|
58
|
+
width: 100%;
|
59
|
+
height: 100%;
|
60
|
+
top: 0;
|
61
|
+
left: 0;
|
62
|
+
@include background-image(linear-gradient(160deg, white(.5) 0%, white(.1) 50%, white(0) 50%, white(.3) 100%));
|
63
|
+
}
|
64
|
+
|
65
|
+
//-------------------- Popout --------------------//
|
66
|
+
|
67
|
+
.visual-popout {
|
68
|
+
box-shadow: 0 6px 0 0 black(.25) !important;
|
69
|
+
top: -3px;
|
70
|
+
|
71
|
+
&:active {
|
72
|
+
box-shadow: 0 3px 0 0 black(.5) !important;
|
73
|
+
top: 0;
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright 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
|
+
// Use border-box for everything
|
10
|
+
*, *:after, *:before { @include box-sizing(border-box); }
|
11
|
+
|
12
|
+
// Alignment
|
13
|
+
.align-left { text-align: left; }
|
14
|
+
.align-center { text-align: center; }
|
15
|
+
.align-right { text-align: right; }
|
16
|
+
.align-justify { text-align: justify; }
|
17
|
+
|
18
|
+
.float-left { float: left; }
|
19
|
+
.float-right { float: right; }
|
20
|
+
.float-none { float: none; }
|
21
|
+
|
22
|
+
// Animations
|
23
|
+
.show { opacity: 1 !important; visibility: visible !important; }
|
24
|
+
.hide { visibility: hidden !important; }
|
25
|
+
|
26
|
+
// Display
|
27
|
+
.shown { display: block; }
|
28
|
+
.inline { display: inline; }
|
29
|
+
.inline-block { display: inline-block; }
|
30
|
+
.hidden { display: none; }
|
31
|
+
|
32
|
+
// Positioning
|
33
|
+
.relative { position: relative; }
|
34
|
+
.absolute { position: absolute; }
|
35
|
+
.static { position: static; }
|
36
|
+
|
37
|
+
// Layout
|
38
|
+
.clear { clear: both; display: block; margin: 0; padding: 0; }
|
39
|
+
.clear-fix { @include clear-fix; }
|
40
|
+
|
41
|
+
// Styles
|
42
|
+
.round { border-radius: $round; }
|
43
|
+
.is-draggable { cursor: move; }
|
44
|
+
.is-disabled,
|
45
|
+
button[disabled] { cursor: not-allowed !important; pointer-events: none; }
|
46
|
+
|
47
|
+
// Carets
|
48
|
+
.caret-up,
|
49
|
+
.caret-down,
|
50
|
+
.caret-left,
|
51
|
+
.caret-right {
|
52
|
+
@include reset-inline-block;
|
53
|
+
border: 5px solid transparent;
|
54
|
+
content: "";
|
55
|
+
height: 0;
|
56
|
+
width: 0;
|
57
|
+
}
|
58
|
+
|
59
|
+
.caret-up { border-bottom-color: $foreground-color; }
|
60
|
+
.caret-down { border-top-color: $foreground-color; }
|
61
|
+
.caret-left { border-right-color: $foreground-color; }
|
62
|
+
.caret-right { border-left-color: $foreground-color; }
|
63
|
+
|
64
|
+
// Close
|
65
|
+
.x {
|
66
|
+
@include reset-inline-block;
|
67
|
+
color: $foreground-color;
|
68
|
+
font: bold 1.5rem/100% Arial, sans-serif;
|
69
|
+
text-transform: uppercase;
|
70
|
+
}
|
71
|
+
|
72
|
+
.close {
|
73
|
+
@include reset-inline-block;
|
74
|
+
width: 30px;
|
75
|
+
height: 30px;
|
76
|
+
line-height: 30px;
|
77
|
+
text-align: center;
|
78
|
+
background: white(.5);
|
79
|
+
border-radius: 2px;
|
80
|
+
cursor: pointer;
|
81
|
+
|
82
|
+
.x {
|
83
|
+
color: black(.5);
|
84
|
+
position: relative;
|
85
|
+
top: -1px;
|
86
|
+
}
|
87
|
+
|
88
|
+
&:hover {
|
89
|
+
background: white(.8);
|
90
|
+
|
91
|
+
.x { color: black(.75); }
|
92
|
+
}
|
93
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright 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
|
+
code,
|
10
|
+
var,
|
11
|
+
kbd,
|
12
|
+
pre {
|
13
|
+
font: normal .8rem/115% Consolas, Monaco, 'Andale Mono', monospace;
|
14
|
+
}
|
15
|
+
|
16
|
+
code,
|
17
|
+
var,
|
18
|
+
kbd {
|
19
|
+
display: inline-block;
|
20
|
+
background: $gray-dark;
|
21
|
+
border-radius: 2px;
|
22
|
+
padding: 2px 4px;
|
23
|
+
}
|
24
|
+
|
25
|
+
pre {
|
26
|
+
padding: $padding;
|
27
|
+
margin: $margin 0;
|
28
|
+
background: $gray-light;
|
29
|
+
border: 1px solid $gray-dark;
|
30
|
+
border-radius: 3px;
|
31
|
+
text-align: left;
|
32
|
+
direction: ltr;
|
33
|
+
white-space: pre;
|
34
|
+
word-spacing: normal;
|
35
|
+
font-size: .9rem;
|
36
|
+
overflow-x: auto;
|
37
|
+
|
38
|
+
code {
|
39
|
+
padding: 0;
|
40
|
+
margin: 0;
|
41
|
+
color: inherit;
|
42
|
+
font: inherit;
|
43
|
+
white-space: pre-wrap;
|
44
|
+
background: transparent;
|
45
|
+
border: none;
|
46
|
+
}
|
47
|
+
|
48
|
+
&.code--scrollable {
|
49
|
+
max-height: 350px;
|
50
|
+
overflow-y: auto;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
kbd {
|
55
|
+
background: #fff;
|
56
|
+
position: relative;
|
57
|
+
border: 1px solid $gray-dark;
|
58
|
+
border-top-color: $gray-dark;
|
59
|
+
box-shadow: 0 2px 0 1px $gray-darkest;
|
60
|
+
top: -3px;
|
61
|
+
}
|
@@ -0,0 +1,158 @@
|
|
1
|
+
/**
|
2
|
+
* @copyright 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
|
+
form { text-align: left; }
|
10
|
+
|
11
|
+
fieldset {
|
12
|
+
padding: $padding 0;
|
13
|
+
margin: 0;
|
14
|
+
border: 0;
|
15
|
+
border-top: 1px solid $gray-dark;
|
16
|
+
|
17
|
+
&.legendless {
|
18
|
+
border: 0;
|
19
|
+
padding: 0;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
legend {
|
24
|
+
font-size: 1.3rem;
|
25
|
+
padding-right: $padding;
|
26
|
+
}
|
27
|
+
|
28
|
+
select[multiple],
|
29
|
+
select[size] { height: auto; }
|
30
|
+
|
31
|
+
// Reset browser styles
|
32
|
+
input::-moz-focus-inner {
|
33
|
+
padding: 0;
|
34
|
+
border: 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
// Required values to match browser restrictions
|
38
|
+
label,
|
39
|
+
.input-static {
|
40
|
+
font-size: inherit;
|
41
|
+
line-height: normal;
|
42
|
+
}
|
43
|
+
|
44
|
+
//-------------------- Inputs --------------------//
|
45
|
+
|
46
|
+
.input,
|
47
|
+
.input-static {
|
48
|
+
@include reset-inline-block;
|
49
|
+
border: 1px solid $gray-dark;
|
50
|
+
font-size: $medium-size;
|
51
|
+
padding: $medium-padding;
|
52
|
+
}
|
53
|
+
|
54
|
+
.input {
|
55
|
+
background: $gray-lightest;
|
56
|
+
border-radius: $round;
|
57
|
+
@include transition(all .3s);
|
58
|
+
|
59
|
+
&:hover { border-color: $gray-darkest; }
|
60
|
+
&:focus { border-color: $info; box-shadow: 0 0 5px $info-light; outline: 0; }
|
61
|
+
|
62
|
+
@include disabled-state {
|
63
|
+
cursor: not-allowed;
|
64
|
+
color: $gray-darkest;
|
65
|
+
border-color: $gray;
|
66
|
+
}
|
67
|
+
|
68
|
+
&[readonly] {
|
69
|
+
color: $gray-darkest;
|
70
|
+
border: 1px solid $gray-dark;
|
71
|
+
box-shadow: none;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
.input-static {
|
76
|
+
background: transparent;
|
77
|
+
border-color: transparent;
|
78
|
+
padding-left: 0;
|
79
|
+
padding-right: 0;
|
80
|
+
}
|
81
|
+
|
82
|
+
select.input { padding: $medium-padding - .05; } // fixes vertical alignment
|
83
|
+
select.input[multiple] { min-height: 150px; max-height: 500px; }
|
84
|
+
|
85
|
+
textarea.input {
|
86
|
+
line-height: 135%;
|
87
|
+
min-height: 150px;
|
88
|
+
}
|
89
|
+
|
90
|
+
.radio,
|
91
|
+
.checkbox {
|
92
|
+
display: inline-block;
|
93
|
+
vertical-align: middle;
|
94
|
+
cursor: pointer;
|
95
|
+
|
96
|
+
input[type="checkbox"],
|
97
|
+
input[type="radio"] {
|
98
|
+
vertical-align: middle;
|
99
|
+
position: relative;
|
100
|
+
top: -1px;
|
101
|
+
margin-right: 3px;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
//-------------------- Fields, Labels --------------------//
|
106
|
+
|
107
|
+
.field {
|
108
|
+
margin-bottom: $margin;
|
109
|
+
|
110
|
+
&.is-required {
|
111
|
+
.field-label { font-weight: bold; }
|
112
|
+
}
|
113
|
+
|
114
|
+
@include field-style;
|
115
|
+
}
|
116
|
+
|
117
|
+
.field-label {
|
118
|
+
display: block;
|
119
|
+
vertical-align: middle;
|
120
|
+
margin-bottom: 7px;
|
121
|
+
}
|
122
|
+
|
123
|
+
.field-help {
|
124
|
+
margin-top: 7px;
|
125
|
+
font-size: $small-size;
|
126
|
+
}
|
127
|
+
|
128
|
+
.form-actions {
|
129
|
+
text-align: center;
|
130
|
+
}
|
131
|
+
|
132
|
+
//-------------------- Modifiers --------------------//
|
133
|
+
|
134
|
+
.form--horizontal {
|
135
|
+
.field { @include grid-row; }
|
136
|
+
|
137
|
+
.field-label {
|
138
|
+
text-align: right;
|
139
|
+
border: 1px solid transparent; // matches input sizes
|
140
|
+
padding-top: $medium-padding;
|
141
|
+
}
|
142
|
+
|
143
|
+
.field-col { padding-left: $margin; }
|
144
|
+
}
|
145
|
+
|
146
|
+
.form--inline {
|
147
|
+
.field,
|
148
|
+
.field-label,
|
149
|
+
.form-actions {
|
150
|
+
display: inline-block;
|
151
|
+
vertical-align: middle;
|
152
|
+
margin-right: $margin;
|
153
|
+
margin-bottom: $margin / 2;
|
154
|
+
}
|
155
|
+
|
156
|
+
.field-label { margin: 0 ($margin / 2) 0 0; }
|
157
|
+
.field-help { display: none; }
|
158
|
+
}
|