jekyll-bootflat 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +62 -0
- data/_includes/footer.html +63 -0
- data/_includes/head.html +14 -0
- data/_includes/header.html +37 -0
- data/_layouts/default.html +17 -0
- data/_layouts/page.html +14 -0
- data/_layouts/post.html +5 -0
- data/_sass/_bootflat.scss +41 -0
- data/_sass/_bootstrap.scss +56 -0
- data/_sass/_font-awesome.scss +18 -0
- data/_sass/_overrides.scss +1 -0
- data/_sass/_syntax-highlighting.scss +71 -0
- data/_sass/bootflat/_accordion.scss +76 -0
- data/_sass/bootflat/_alert.scss +75 -0
- data/_sass/bootflat/_breadcrumb.scss +121 -0
- data/_sass/bootflat/_button.scss +205 -0
- data/_sass/bootflat/_button_group.scss +133 -0
- data/_sass/bootflat/_calendar.scss +134 -0
- data/_sass/bootflat/_checkbox_radio.scss +67 -0
- data/_sass/bootflat/_dropdown.scss +122 -0
- data/_sass/bootflat/_footer.scss +82 -0
- data/_sass/bootflat/_form.scss +212 -0
- data/_sass/bootflat/_global.scss +239 -0
- data/_sass/bootflat/_jumbotron.scss +84 -0
- data/_sass/bootflat/_label_badge.scss +65 -0
- data/_sass/bootflat/_list.scss +188 -0
- data/_sass/bootflat/_media_list.scss +26 -0
- data/_sass/bootflat/_modal.scss +39 -0
- data/_sass/bootflat/_navbar.scss +216 -0
- data/_sass/bootflat/_pager.scss +42 -0
- data/_sass/bootflat/_pagination.scss +59 -0
- data/_sass/bootflat/_panel.scss +169 -0
- data/_sass/bootflat/_pill.scss +45 -0
- data/_sass/bootflat/_popover.scss +50 -0
- data/_sass/bootflat/_pricing.scss +139 -0
- data/_sass/bootflat/_progress.scss +42 -0
- data/_sass/bootflat/_selecter.scss +258 -0
- data/_sass/bootflat/_stepper.scss +79 -0
- data/_sass/bootflat/_tab.scss +179 -0
- data/_sass/bootflat/_thumbnail.scss +43 -0
- data/_sass/bootflat/_timeline.scss +189 -0
- data/_sass/bootflat/_toggle.scss +94 -0
- data/_sass/bootflat/_tooltip.scss +42 -0
- data/_sass/bootflat/_typography.scss +127 -0
- data/_sass/bootflat/_well.scss +43 -0
- data/_sass/bootstrap/_alerts.scss +73 -0
- data/_sass/bootstrap/_badges.scss +68 -0
- data/_sass/bootstrap/_breadcrumbs.scss +28 -0
- data/_sass/bootstrap/_button-groups.scss +244 -0
- data/_sass/bootstrap/_buttons.scss +168 -0
- data/_sass/bootstrap/_carousel.scss +270 -0
- data/_sass/bootstrap/_close.scss +36 -0
- data/_sass/bootstrap/_code.scss +69 -0
- data/_sass/bootstrap/_component-animations.scss +37 -0
- data/_sass/bootstrap/_dropdowns.scss +216 -0
- data/_sass/bootstrap/_forms.scss +617 -0
- data/_sass/bootstrap/_glyphicons.scss +307 -0
- data/_sass/bootstrap/_grid.scss +84 -0
- data/_sass/bootstrap/_input-groups.scss +171 -0
- data/_sass/bootstrap/_jumbotron.scss +54 -0
- data/_sass/bootstrap/_labels.scss +66 -0
- data/_sass/bootstrap/_list-group.scss +130 -0
- data/_sass/bootstrap/_media.scss +66 -0
- data/_sass/bootstrap/_mixins.scss +40 -0
- data/_sass/bootstrap/_modals.scss +150 -0
- data/_sass/bootstrap/_navbar.scss +662 -0
- data/_sass/bootstrap/_navs.scss +242 -0
- data/_sass/bootstrap/_normalize.scss +424 -0
- data/_sass/bootstrap/_pager.scss +54 -0
- data/_sass/bootstrap/_pagination.scss +89 -0
- data/_sass/bootstrap/_panels.scss +271 -0
- data/_sass/bootstrap/_popovers.scss +131 -0
- data/_sass/bootstrap/_print.scss +101 -0
- data/_sass/bootstrap/_progress-bars.scss +87 -0
- data/_sass/bootstrap/_responsive-embed.scss +35 -0
- data/_sass/bootstrap/_responsive-utilities.scss +179 -0
- data/_sass/bootstrap/_scaffolding.scss +161 -0
- data/_sass/bootstrap/_tables.scss +234 -0
- data/_sass/bootstrap/_theme.scss +291 -0
- data/_sass/bootstrap/_thumbnails.scss +38 -0
- data/_sass/bootstrap/_tooltip.scss +101 -0
- data/_sass/bootstrap/_type.scss +298 -0
- data/_sass/bootstrap/_utilities.scss +55 -0
- data/_sass/bootstrap/_variables.scss +874 -0
- data/_sass/bootstrap/_wells.scss +29 -0
- data/_sass/bootstrap/mixins/_alerts.scss +14 -0
- data/_sass/bootstrap/mixins/_background-variant.scss +12 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +18 -0
- data/_sass/bootstrap/mixins/_buttons.scss +65 -0
- data/_sass/bootstrap/mixins/_center-block.scss +7 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +22 -0
- data/_sass/bootstrap/mixins/_forms.scss +88 -0
- data/_sass/bootstrap/mixins/_gradients.scss +58 -0
- data/_sass/bootstrap/mixins/_grid-framework.scss +81 -0
- data/_sass/bootstrap/mixins/_grid.scss +122 -0
- data/_sass/bootstrap/mixins/_hide-text.scss +21 -0
- data/_sass/bootstrap/mixins/_image.scss +33 -0
- data/_sass/bootstrap/mixins/_labels.scss +12 -0
- data/_sass/bootstrap/mixins/_list-group.scss +32 -0
- data/_sass/bootstrap/mixins/_nav-divider.scss +10 -0
- data/_sass/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/_sass/bootstrap/mixins/_opacity.scss +8 -0
- data/_sass/bootstrap/mixins/_pagination.scss +24 -0
- data/_sass/bootstrap/mixins/_panels.scss +24 -0
- data/_sass/bootstrap/mixins/_progress-bar.scss +10 -0
- data/_sass/bootstrap/mixins/_reset-filter.scss +8 -0
- data/_sass/bootstrap/mixins/_reset-text.scss +18 -0
- data/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/_sass/bootstrap/mixins/_size.scss +10 -0
- data/_sass/bootstrap/mixins/_tab-focus.scss +9 -0
- data/_sass/bootstrap/mixins/_table-row.scss +28 -0
- data/_sass/bootstrap/mixins/_text-emphasis.scss +12 -0
- data/_sass/bootstrap/mixins/_text-overflow.scss +8 -0
- data/_sass/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/_sass/font-awesome/_animated.scss +34 -0
- data/_sass/font-awesome/_bordered-pulled.scss +25 -0
- data/_sass/font-awesome/_core.scss +12 -0
- data/_sass/font-awesome/_fixed-width.scss +6 -0
- data/_sass/font-awesome/_icons.scss +733 -0
- data/_sass/font-awesome/_larger.scss +13 -0
- data/_sass/font-awesome/_list.scss +19 -0
- data/_sass/font-awesome/_mixins.scss +60 -0
- data/_sass/font-awesome/_path.scss +15 -0
- data/_sass/font-awesome/_rotated-flipped.scss +20 -0
- data/_sass/font-awesome/_screen-reader.scss +5 -0
- data/_sass/font-awesome/_stacked.scss +20 -0
- data/_sass/font-awesome/_variables.scss +744 -0
- data/_sass/main.scss +28 -0
- data/assets/css/bootflat.css +2557 -0
- data/assets/css/bootstrap.min.css +5 -0
- data/assets/css/custom_styles.css +7 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +655 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/img/glyphicons-halflings-white.png +0 -0
- data/assets/img/glyphicons-halflings.png +0 -0
- data/assets/js/bootstrap.min.js +7 -0
- data/assets/js/custom.js +9 -0
- data/assets/js/icheck.min.js +11 -0
- data/assets/js/jquery.fs.selecter.min.js +9 -0
- data/assets/js/jquery.fs.stepper.min.js +9 -0
- metadata +233 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$footer-background-color: $darkgray-dark !default;
|
4
|
+
$footer-menu-title-color: $lightgray-dark !default;
|
5
|
+
$footer-menu-item-color: $mediumgray-dark !default;
|
6
|
+
$footer-menu-item-color-hover: $mediumgray-light !default;
|
7
|
+
$footer-logo-color: $white !default;
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
// Exports
|
12
|
+
//------------------------------------------------------
|
13
|
+
|
14
|
+
@include exports("footer") {
|
15
|
+
|
16
|
+
/**
|
17
|
+
* footer
|
18
|
+
* --------------------------------------------------
|
19
|
+
*/
|
20
|
+
|
21
|
+
.footer {
|
22
|
+
padding: 40px 0;
|
23
|
+
background-color: $footer-background-color;
|
24
|
+
|
25
|
+
&-logo,
|
26
|
+
&-nav {
|
27
|
+
float: left;
|
28
|
+
padding: 0 20px;
|
29
|
+
width: 25%;
|
30
|
+
}
|
31
|
+
@media (max-width: 768px) {
|
32
|
+
&-logo {
|
33
|
+
margin-bottom: 20px;
|
34
|
+
}
|
35
|
+
&-logo,
|
36
|
+
&-nav {
|
37
|
+
float: none;
|
38
|
+
display: block;
|
39
|
+
width: 100%;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
&-logo {
|
43
|
+
margin-top: -5px;
|
44
|
+
height: 32px;
|
45
|
+
line-height: 32px;
|
46
|
+
|
47
|
+
& img {
|
48
|
+
margin-right: 10px;
|
49
|
+
}
|
50
|
+
& a {
|
51
|
+
font-size: 20px;
|
52
|
+
font-weight: bold;
|
53
|
+
color: $footer-logo-color;
|
54
|
+
}
|
55
|
+
& a:hover,
|
56
|
+
& a:active {
|
57
|
+
text-decoration: none;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
&-nav .nav-title {
|
61
|
+
margin-bottom: 15px;
|
62
|
+
color: $footer-menu-title-color;
|
63
|
+
}
|
64
|
+
&-nav .nav-item {
|
65
|
+
line-height: 28px;
|
66
|
+
& > a {
|
67
|
+
color: $footer-menu-item-color;
|
68
|
+
}
|
69
|
+
& > a:hover,
|
70
|
+
& > a:active {
|
71
|
+
color: $footer-menu-item-color-hover;
|
72
|
+
text-decoration: none;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
&-copyright {
|
76
|
+
color: $footer-menu-item-color;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
}
|
81
|
+
|
82
|
+
|
@@ -0,0 +1,212 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$form-normal: $mediumgray-dark !default;
|
4
|
+
$form-default: $white !default;
|
5
|
+
$form-primary: $aqua-dark !default;
|
6
|
+
$form-success: $grass-dark !default;
|
7
|
+
$form-danger: $grapefruit-dark !default;
|
8
|
+
$form-warning: $sunflower-dark !default;
|
9
|
+
$form-info: $mint-dark !default;
|
10
|
+
|
11
|
+
$message-success: $grass-dark !default;
|
12
|
+
$message-danger: $grapefruit-dark !default;
|
13
|
+
$message-warning: $sunflower-dark !default;
|
14
|
+
|
15
|
+
$form-font-color: $darkgray-dark !default;
|
16
|
+
$form-placeholder-font-color: $lightgray-dark !default;
|
17
|
+
|
18
|
+
$form-disabled-color: $lightgray-dark !default;
|
19
|
+
|
20
|
+
$search-query-value: 17px !default;
|
21
|
+
|
22
|
+
$search-icon-width: 30px !default;
|
23
|
+
$search-icon-line-height: 30px !default;
|
24
|
+
|
25
|
+
// Exports
|
26
|
+
//------------------------------------------------------
|
27
|
+
|
28
|
+
@include exports("form") {
|
29
|
+
|
30
|
+
/**
|
31
|
+
* form
|
32
|
+
* --------------------------------------------------
|
33
|
+
*/
|
34
|
+
.form-control {
|
35
|
+
color: $form-font-color;
|
36
|
+
border-color: $form-normal;
|
37
|
+
|
38
|
+
&,
|
39
|
+
&:focus {
|
40
|
+
@include box-shadow($value: none);
|
41
|
+
}
|
42
|
+
&:focus {
|
43
|
+
border-color: $form-primary;
|
44
|
+
}
|
45
|
+
&::-moz-placeholder,
|
46
|
+
&:-ms-input-placeholder,
|
47
|
+
&::-webkit-input-placeholder {
|
48
|
+
color: $form-placeholder-font-color;
|
49
|
+
}
|
50
|
+
|
51
|
+
&.disabled,
|
52
|
+
&[disabled] {
|
53
|
+
border-color: $form-disabled-color;
|
54
|
+
background-color: $form-disabled-color;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.input-group-btn {
|
59
|
+
& .btn + .btn {
|
60
|
+
border-width: 1px;
|
61
|
+
border-style: solid;
|
62
|
+
border-color: darken($form-normal, 7%);
|
63
|
+
}
|
64
|
+
& .btn + .btn.btn-default {
|
65
|
+
border-color: darken($form-default, 7%);
|
66
|
+
}
|
67
|
+
& .btn + .btn.btn-primary {
|
68
|
+
border-color: darken($form-primary, 7%);
|
69
|
+
}
|
70
|
+
& .btn + .btn.btn-info {
|
71
|
+
border-color: darken($form-info, 7%);
|
72
|
+
}
|
73
|
+
& .btn + .btn.btn-success {
|
74
|
+
border-color: darken($form-success, 7%);
|
75
|
+
}
|
76
|
+
& .btn + .btn.btn-warning {
|
77
|
+
border-color: darken($form-warning, 7%);
|
78
|
+
}
|
79
|
+
& .btn + .btn.btn-danger {
|
80
|
+
border-color: darken($form-danger, 7%);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.input-group-addon {
|
85
|
+
background-color: $form-normal;
|
86
|
+
border-color: darken($form-normal, 7%);
|
87
|
+
color: $form-default;
|
88
|
+
|
89
|
+
& .radio,
|
90
|
+
& .checkbox {
|
91
|
+
margin: -3px 0 -4px !important;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
.form-search {
|
96
|
+
& .search-query,
|
97
|
+
& .search-query:first-child,
|
98
|
+
& .search-query:last-child {
|
99
|
+
padding: 0 $search-query-value;
|
100
|
+
@include radius($type: border-radius, $value: $search-query-value);
|
101
|
+
}
|
102
|
+
@at-root .input-group .form-control:last-child {
|
103
|
+
// padding: 0 $search-query-value 0 10px;
|
104
|
+
@include radius($type: border-top-left-radius, $value: 0);
|
105
|
+
@include radius($type: border-bottom-left-radius, $value: 0);
|
106
|
+
}
|
107
|
+
@at-root .input-group .form-control:first-child {
|
108
|
+
@include radius($type: border-top-right-radius, $value: 0);
|
109
|
+
@include radius($type: border-bottom-right-radius, $value: 0);
|
110
|
+
}
|
111
|
+
& .btn {
|
112
|
+
@include radius($type: border-radius, $value: $search-query-value);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.search-only {
|
117
|
+
position: relative;
|
118
|
+
& .search-icon {
|
119
|
+
position: absolute;
|
120
|
+
top: 2px;
|
121
|
+
left: $search-query-value / 2;
|
122
|
+
width: $search-icon-width;
|
123
|
+
line-height: $search-icon-line-height;
|
124
|
+
text-align: center;
|
125
|
+
font-size: $search-query-value;
|
126
|
+
color: $form-placeholder-font-color;
|
127
|
+
z-index: 20;
|
128
|
+
}
|
129
|
+
& .form-control:last-child {
|
130
|
+
padding-left: $search-icon-width + 10;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
.has-success {
|
135
|
+
& .help-block,
|
136
|
+
& .control-label,
|
137
|
+
& .radio,
|
138
|
+
& .checkbox,
|
139
|
+
& .radio-inline,
|
140
|
+
& .checkbox-inline {
|
141
|
+
color: $message-success;
|
142
|
+
}
|
143
|
+
& .form-control {
|
144
|
+
border-color: $message-success;
|
145
|
+
@include box-shadow($value: none);
|
146
|
+
}
|
147
|
+
& .form-control:focus {
|
148
|
+
border-color: $message-success;
|
149
|
+
@include box-shadow($value: none);
|
150
|
+
}
|
151
|
+
& .input-group-addon {
|
152
|
+
background-color: $message-success;
|
153
|
+
border-color: $message-success;
|
154
|
+
}
|
155
|
+
& .form-control-feedback {
|
156
|
+
color: $message-success;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
.has-warning {
|
160
|
+
& .help-block,
|
161
|
+
& .control-label,
|
162
|
+
& .radio,
|
163
|
+
& .checkbox,
|
164
|
+
& .radio-inline,
|
165
|
+
& .checkbox-inline {
|
166
|
+
color: $message-warning;
|
167
|
+
}
|
168
|
+
& .form-control {
|
169
|
+
border-color: $message-warning;
|
170
|
+
@include box-shadow($value: none);
|
171
|
+
}
|
172
|
+
& .form-control:focus {
|
173
|
+
border-color: $message-warning;
|
174
|
+
@include box-shadow($value: none);
|
175
|
+
}
|
176
|
+
& .input-group-addon {
|
177
|
+
background-color: $message-warning;
|
178
|
+
border-color: $message-warning;
|
179
|
+
}
|
180
|
+
& .form-control-feedback {
|
181
|
+
color: $message-warning;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
.has-error {
|
185
|
+
& .help-block,
|
186
|
+
& .control-label,
|
187
|
+
& .radio,
|
188
|
+
& .checkbox,
|
189
|
+
& .radio-inline,
|
190
|
+
& .checkbox-inline {
|
191
|
+
color: $message-danger;
|
192
|
+
}
|
193
|
+
& .form-control {
|
194
|
+
border-color: $message-danger;
|
195
|
+
@include box-shadow($value: none);
|
196
|
+
}
|
197
|
+
& .form-control:focus {
|
198
|
+
border-color: $message-danger;
|
199
|
+
@include box-shadow($value: none);
|
200
|
+
}
|
201
|
+
& .input-group-addon {
|
202
|
+
background-color: $message-danger;
|
203
|
+
border-color: $message-danger;
|
204
|
+
}
|
205
|
+
& .form-control-feedback {
|
206
|
+
color: $message-danger;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
}
|
211
|
+
|
212
|
+
|
@@ -0,0 +1,239 @@
|
|
1
|
+
// Global Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$modules: () !default;
|
4
|
+
|
5
|
+
$experimental: true !default;
|
6
|
+
|
7
|
+
// prefix elements
|
8
|
+
$prefix-webkit: true !global;
|
9
|
+
$prefix-moz: true !global;
|
10
|
+
$prefix-spec: true !global;
|
11
|
+
|
12
|
+
// color elements
|
13
|
+
$white: #FFF !default;
|
14
|
+
$black: #000 !default;
|
15
|
+
|
16
|
+
$bluejeans-dark: #4A89DC !default;
|
17
|
+
$bluejeans-light: #5D9CEC !default;
|
18
|
+
|
19
|
+
$aqua-dark: #3BAFDA !default;
|
20
|
+
$aqua-light: #4FC1E9 !default;
|
21
|
+
|
22
|
+
$mint-dark: #37BC9B !default;
|
23
|
+
$mint-light: #48CFAD !default;
|
24
|
+
|
25
|
+
$grass-dark: #8CC152 !default;
|
26
|
+
$grass-light: #A0D468 !default;
|
27
|
+
|
28
|
+
$sunflower-dark: #F6BB42 !default;
|
29
|
+
$sunflower-light: #FFCE54 !default;
|
30
|
+
|
31
|
+
$bittersweet-dark: #E9573F !default;
|
32
|
+
$bittersweet-light: #FC6E51 !default;
|
33
|
+
|
34
|
+
$grapefruit-dark: #DA4453 !default;
|
35
|
+
$grapefruit-light: #ED5565 !default;
|
36
|
+
|
37
|
+
$lavender-dark: #967ADC !default;
|
38
|
+
$lavender-light: #AC92EC !default;
|
39
|
+
|
40
|
+
$pinkrose-dark: #D770AD !default;
|
41
|
+
$pinkrose-light: #EC87C0 !default;
|
42
|
+
|
43
|
+
$lightgray-dark: #E6E9ED !default;
|
44
|
+
$lightgray-light: #F5F7FA !default;
|
45
|
+
|
46
|
+
$mediumgray-dark: #AAB2BD !default;
|
47
|
+
$mediumgray-light: #CCD1D9 !default;
|
48
|
+
|
49
|
+
$darkgray-dark: #434A54 !default;
|
50
|
+
$darkgray-light: #656D78 !default;
|
51
|
+
|
52
|
+
// Global Mixins
|
53
|
+
//------------------------------------------------------
|
54
|
+
|
55
|
+
// We use this to loading scss files
|
56
|
+
@mixin exports($name) {
|
57
|
+
@if index($modules, $name) {
|
58
|
+
} @else {
|
59
|
+
$modules: append($modules, $name) !global;
|
60
|
+
@content;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
// We use this to do set opacity
|
65
|
+
@mixin opacity($opacity:50, $filter: true) {
|
66
|
+
opacity: $opacity / 100;
|
67
|
+
@if $filter {
|
68
|
+
filter: alpha(opacity=$opacity);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
// We use this to ellipsis text
|
73
|
+
@mixin ellipsis($width: 100%) {
|
74
|
+
display: inline-block;
|
75
|
+
max-width: $width;
|
76
|
+
overflow: hidden;
|
77
|
+
text-overflow: ellipsis;
|
78
|
+
white-space: nowrap;
|
79
|
+
}
|
80
|
+
|
81
|
+
// We use this to add across browser prefixes
|
82
|
+
@mixin prefixer($property, $value, $prefixes: webkit moz spec) {
|
83
|
+
@if $experimental {
|
84
|
+
@each $prefix in $prefixes {
|
85
|
+
@if $prefix != spec {
|
86
|
+
@if $property == border-top-left-radius and $prefix == moz {
|
87
|
+
@if $prefix-moz {
|
88
|
+
-moz-border-radius-topleft: $value;
|
89
|
+
}
|
90
|
+
} @else if $property == border-top-right-radius and $prefix == moz {
|
91
|
+
@if $prefix-moz {
|
92
|
+
-moz-border-radius-topright: $value;
|
93
|
+
}
|
94
|
+
} @else if $property == border-bottom-right-radius and $prefix == moz {
|
95
|
+
@if $prefix-moz {
|
96
|
+
-moz-border-radius-bottomright: $value;
|
97
|
+
}
|
98
|
+
} @else if $property == border-bottom-left-radius and $prefix == moz {
|
99
|
+
@if $prefix-moz {
|
100
|
+
-moz-border-radius-bottomleft: $value;
|
101
|
+
}
|
102
|
+
} @else {
|
103
|
+
@if $prefix == webkit {
|
104
|
+
@if $prefix-webkit {
|
105
|
+
-webkit-#{$property}: $value;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
@if $prefix == moz {
|
109
|
+
@if $prefix-moz {
|
110
|
+
-moz-#{$property}: $value;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
} @else {
|
115
|
+
@if $prefix-spec {
|
116
|
+
#{$property}: $value;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
// We use this to add box-sizing across browser prefixes
|
124
|
+
@mixin box-sizing($value: border-box) {
|
125
|
+
@include prefixer($property: box-sizing, $value: $value, $prefixes: webkit moz spec);
|
126
|
+
}
|
127
|
+
|
128
|
+
// We use this to control border radius.
|
129
|
+
@mixin radius($type: border-radius, $value: $global-radius) {
|
130
|
+
@include prefixer($property: $type, $value: $value, $prefixes: webkit moz spec);
|
131
|
+
}
|
132
|
+
|
133
|
+
// We use this to control box shadow.
|
134
|
+
@mixin box-shadow($value) {
|
135
|
+
@include prefixer($property: box-shadow, $value: $value, $prefixes: webkit moz spec);
|
136
|
+
}
|
137
|
+
// We use this to creat animation effect.
|
138
|
+
// Examples:
|
139
|
+
// @include keyframes(move-the-object) {
|
140
|
+
// 0% { left: 100px; }
|
141
|
+
// 100% { left: 200px; }
|
142
|
+
// }
|
143
|
+
// .object-to-animate {
|
144
|
+
// @include animation(move-the-object .5s 1);
|
145
|
+
// }
|
146
|
+
@mixin animation ($value...) {
|
147
|
+
@include prefixer($property: animation, $value: $value, $prefixes: webkit moz spec);
|
148
|
+
}
|
149
|
+
// Individual Animation Properties
|
150
|
+
@mixin animation-name ($value...) {
|
151
|
+
@include prefixer($property: animation-name, $value: $value, $prefixes: webkit moz spec);
|
152
|
+
}
|
153
|
+
@mixin animation-duration ($value...) {
|
154
|
+
@include prefixer($property: animation-duration, $value: $value, $prefixes: webkit moz spec);
|
155
|
+
}
|
156
|
+
@mixin animation-timing-function ($value...) {
|
157
|
+
// ease | linear | ease-in | ease-out | ease-in-out
|
158
|
+
@include prefixer($property: animation-timing-function, $value: $value, $prefixes: webkit moz spec);
|
159
|
+
}
|
160
|
+
@mixin animation-iteration-count ($value...) {
|
161
|
+
// infinite | <number>
|
162
|
+
@include prefixer($property: animation-iteration-count, $value: $value, $prefixes: webkit moz spec);
|
163
|
+
}
|
164
|
+
@mixin animation-direction ($value...) {
|
165
|
+
@include prefixer($property: animation-direction, $value: $value, $prefixes: webkit moz spec);
|
166
|
+
}
|
167
|
+
@mixin animation-play-state ($value...) {
|
168
|
+
// running | paused
|
169
|
+
@include prefixer($property: animation-play-state, $value: $value, $prefixes: webkit moz spec);
|
170
|
+
}
|
171
|
+
@mixin animation-delay ($value...) {
|
172
|
+
@include prefixer($property: animation-delay, $value: $value, $prefixes: webkit moz spec);
|
173
|
+
}
|
174
|
+
@mixin animation-fill-mode ($value...) {
|
175
|
+
// none | forwards | backwards | both
|
176
|
+
@include prefixer($property: animation-fill-mode, $value: $value, $prefixes: webkit moz spec);
|
177
|
+
}
|
178
|
+
@mixin keyframes($name) {
|
179
|
+
$original-prefix-webkit: $prefix-webkit;
|
180
|
+
$original-prefix-moz: $prefix-moz;
|
181
|
+
$original-prefix-spec: $prefix-spec;
|
182
|
+
|
183
|
+
@if $original-prefix-webkit {
|
184
|
+
@include disable-prefix();
|
185
|
+
$prefix-webkit: true !global;
|
186
|
+
@-webkit-keyframes #{$name} {
|
187
|
+
@content;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
@if $original-prefix-moz {
|
191
|
+
@include disable-prefix();
|
192
|
+
$prefix-moz: true !global;
|
193
|
+
@-moz-keyframes #{$name} {
|
194
|
+
@content;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
@if $original-prefix-spec {
|
198
|
+
@include disable-prefix();
|
199
|
+
$prefix-spec: true !global;
|
200
|
+
@keyframes #{$name} {
|
201
|
+
@content;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
$prefix-webkit: $original-prefix-webkit !global;
|
206
|
+
$prefix-moz: $original-prefix-moz !global;
|
207
|
+
$prefix-spec: $original-prefix-spec !global;
|
208
|
+
}
|
209
|
+
|
210
|
+
// We use this to set transform.
|
211
|
+
@mixin transform($value: none) {
|
212
|
+
// none | <transform-function>
|
213
|
+
@include prefixer($property: transform, $value: $value, $prefixes: webkit moz spec);
|
214
|
+
}
|
215
|
+
|
216
|
+
@mixin transform-origin($value: 50%) {
|
217
|
+
// x-axis - left | center | right | length | %
|
218
|
+
// y-axis - top | center | bottom | length | %
|
219
|
+
// z-axis - length
|
220
|
+
@include prefixer($property: transform-origin, $value: $value, $prefixes: webkit moz spec);
|
221
|
+
}
|
222
|
+
|
223
|
+
@mixin transform-style ($value: flat) {
|
224
|
+
@include prefixer($property: transform-style, $value: $value, $prefixes: webkit moz spec);
|
225
|
+
}
|
226
|
+
|
227
|
+
// We use this to set transition.
|
228
|
+
// example: @include transition (all 2s ease-in-out);
|
229
|
+
// @include transition (opacity 1s ease-in 2s, width 2s ease-out);
|
230
|
+
// @include transition-property (transform, opacity);
|
231
|
+
|
232
|
+
@mixin transition ($value...) {
|
233
|
+
@if length($value) >= 1 {
|
234
|
+
@include prefixer($property: transition, $value: $value, $prefixes: webkit moz spec);
|
235
|
+
} @else {
|
236
|
+
$value: all 0.15s ease-out 0s;
|
237
|
+
@include prefixer($property: transition, $value: $value, $prefixes: webkit moz spec);
|
238
|
+
}
|
239
|
+
}
|