better_styles 0.0.0.338 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +4 -9
- data/lib/better_styles/engine.rb +1 -1
- data/lib/better_styles/version.rb +1 -1
- metadata +148 -100
- data/app/helpers/better_styles/support_helper.rb +0 -33
- data/assets/fonts/betterfonts/betterwork-icons.eot +0 -0
- data/assets/fonts/betterfonts/betterwork-icons.svg +0 -368
- data/assets/fonts/betterfonts/betterwork-icons.ttf +0 -0
- data/assets/fonts/betterfonts/betterwork-icons.woff +0 -0
- data/assets/fonts/betterfonts/icomoon.eot +0 -0
- data/assets/fonts/betterfonts/icomoon.svg +0 -461
- data/assets/fonts/betterfonts/icomoon.ttf +0 -0
- data/assets/fonts/betterfonts/icomoon.woff +0 -0
- data/assets/fonts/betterfonts/magicons-regular-webfont.eot +0 -0
- data/assets/fonts/betterfonts/magicons-regular-webfont.svg +0 -461
- data/assets/fonts/betterfonts/magicons-regular-webfont.ttf +0 -0
- data/assets/fonts/betterfonts/magicons-regular-webfont.woff +0 -0
- data/assets/fonts/betterfonts/newmagicons-regular-webfont.eot +0 -0
- data/assets/fonts/betterfonts/newmagicons-regular-webfont.svg +0 -199
- data/assets/fonts/betterfonts/newmagicons-regular-webfont.ttf +0 -0
- data/assets/fonts/betterfonts/newmagicons-regular-webfont.woff +0 -0
- data/assets/fonts/betterfonts/orderlifticons-webfont.eot +0 -0
- data/assets/fonts/betterfonts/orderlifticons-webfont.svg +0 -172
- data/assets/fonts/betterfonts/orderlifticons-webfont.ttf +0 -0
- data/assets/fonts/betterfonts/orderlifticons-webfont.woff +0 -0
- data/assets/images/better/arrows/arrow-round1-a.png +0 -0
- data/assets/images/better/arrows/arrow-round1-b.png +0 -0
- data/assets/images/better/arrows/arrow-round2-a.png +0 -0
- data/assets/images/better/arrows/arrow-round2-b.png +0 -0
- data/assets/images/better/arrows/arrow1-a.png +0 -0
- data/assets/images/better/arrows/arrow1-b.png +0 -0
- data/assets/images/better/arrows/arrow1.png +0 -0
- data/assets/images/better/arrows/arrow2-1.png +0 -0
- data/assets/images/better/arrows/arrow2-2.png +0 -0
- data/assets/images/better/arrows/arrow2-a.png +0 -0
- data/assets/images/better/arrows/arrow2-b.png +0 -0
- data/assets/images/better/arrows/arrow3-a.png +0 -0
- data/assets/images/better/arrows/arrow3-b.png +0 -0
- data/assets/images/better/arrows/arrow4-a.png +0 -0
- data/assets/images/better/arrows/arrow4-b.png +0 -0
- data/assets/images/better/arrows/arrow5-a.png +0 -0
- data/assets/images/better/arrows/arrow5-b.png +0 -0
- data/assets/images/better/arrows/arrow6-a.png +0 -0
- data/assets/images/better/arrows/arrow6-b.png +0 -0
- data/assets/images/better/helper/blank_10.png +0 -0
- data/assets/images/better/helper/crossed.png +0 -0
- data/assets/images/better/helper/white_10.png +0 -0
- data/assets/javascripts/better_styles.js.coffee +0 -4
- data/assets/javascripts/betterjs/forms/check_switch.js.coffee +0 -25
- data/assets/javascripts/betterjs/helper.js.coffee +0 -74
- data/assets/javascripts/betterjs/navigations/aside_link.js.coffee +0 -9
- data/assets/javascripts/betterjs/navigations/nav_list.js.coffee +0 -19
- data/assets/javascripts/betterjs/rails_ext/rails-ujs.js +0 -479
- data/assets/javascripts/betterjs/render_eco.js.coffee +0 -9
- data/assets/javascripts/betterjs/templates/fixed_aside_to_header.js.coffee +0 -6
- data/assets/javascripts/betterjs/templates/icon_aside.js.coffee +0 -12
- data/assets/javascripts/betterjs/templates/scroll_to_fix_aside.js +0 -32
- data/assets/javascripts/betterjs/twbs_ext/affix_2_1_0.js +0 -103
- data/assets/javascripts/betterjs/twbs_ext/affix_3_3_7.js +0 -162
- data/assets/javascripts/betterjs/twbs_ext/affix_ext.js +0 -131
- data/assets/stylesheets/better/content/_box.scss +0 -46
- data/assets/stylesheets/better/content/_buttons.scss +0 -22
- data/assets/stylesheets/better/content/_check_switch.scss +0 -78
- data/assets/stylesheets/better/content/_divider.scss +0 -65
- data/assets/stylesheets/better/content/_helpers.scss +0 -85
- data/assets/stylesheets/better/content/_pix.scss +0 -70
- data/assets/stylesheets/better/content/_typography.scss +0 -44
- data/assets/stylesheets/better/icons/bettericons.scss +0 -419
- data/assets/stylesheets/better/icons/icomoon.scss +0 -1392
- data/assets/stylesheets/better/icons/magicons.scss +0 -705
- data/assets/stylesheets/better/icons/orderlifticons.scss +0 -300
- data/assets/stylesheets/better/layout/_corset.scss +0 -57
- data/assets/stylesheets/better/layout/_fullpage_table.scss +0 -185
- data/assets/stylesheets/better/layout/_positioning.scss +0 -62
- data/assets/stylesheets/better/layout/_section.scss +0 -220
- data/assets/stylesheets/better/lib/_helpers.scss +0 -67
- data/assets/stylesheets/better/lib/_media_querries.scss +0 -46
- data/assets/stylesheets/better/lib/_nav.scss +0 -31
- data/assets/stylesheets/better/lib/_shadows.scss +0 -247
- data/assets/stylesheets/better/lib/_text.scss +0 -66
- data/assets/stylesheets/better/navigations/_aside_lnk.scss +0 -100
- data/assets/stylesheets/better/navigations/_nav_list.scss +0 -177
- data/assets/stylesheets/better/templates/_fixed_aside_to_header.scss +0 -89
- data/assets/stylesheets/better/templates/_icon_aside.scss +0 -404
- data/assets/stylesheets/better/templates/_scroll_to_fix_aside.scss +0 -104
- data/assets/stylesheets/better/variables/_color.scss +0 -121
- data/assets/stylesheets/better/variables/_typography.scss +0 -60
- data/assets/stylesheets/better/variables/_vars.scss +0 -57
- data/assets/stylesheets/better_styles.scss +0 -44
- data/assets/stylesheets/better_styles_min.scss +0 -43
@@ -1,162 +0,0 @@
|
|
1
|
-
/* ========================================================================
|
2
|
-
* Bootstrap: affix.js v3.3.7
|
3
|
-
* http://getbootstrap.com/javascript/#affix
|
4
|
-
* ========================================================================
|
5
|
-
* Copyright 2011-2016 Twitter, Inc.
|
6
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
|
-
* ======================================================================== */
|
8
|
-
|
9
|
-
|
10
|
-
+function ($) {
|
11
|
-
'use strict';
|
12
|
-
|
13
|
-
// AFFIX CLASS DEFINITION
|
14
|
-
// ======================
|
15
|
-
|
16
|
-
var Affix = function (element, options) {
|
17
|
-
this.options = $.extend({}, Affix.DEFAULTS, options)
|
18
|
-
|
19
|
-
this.$target = $(this.options.target)
|
20
|
-
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
|
21
|
-
.on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
|
22
|
-
|
23
|
-
this.$element = $(element)
|
24
|
-
this.affixed = null
|
25
|
-
this.unpin = null
|
26
|
-
this.pinnedOffset = null
|
27
|
-
|
28
|
-
this.checkPosition()
|
29
|
-
}
|
30
|
-
|
31
|
-
Affix.VERSION = '3.3.7'
|
32
|
-
|
33
|
-
Affix.RESET = 'affix affix-top affix-bottom'
|
34
|
-
|
35
|
-
Affix.DEFAULTS = {
|
36
|
-
offset: 0,
|
37
|
-
target: window
|
38
|
-
}
|
39
|
-
|
40
|
-
Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
|
41
|
-
var scrollTop = this.$target.scrollTop()
|
42
|
-
var position = this.$element.offset()
|
43
|
-
var targetHeight = this.$target.height()
|
44
|
-
|
45
|
-
if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false
|
46
|
-
|
47
|
-
if (this.affixed == 'bottom') {
|
48
|
-
if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
|
49
|
-
return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
|
50
|
-
}
|
51
|
-
|
52
|
-
var initializing = this.affixed == null
|
53
|
-
var colliderTop = initializing ? scrollTop : position.top
|
54
|
-
var colliderHeight = initializing ? targetHeight : height
|
55
|
-
|
56
|
-
if (offsetTop != null && scrollTop <= offsetTop) return 'top'
|
57
|
-
if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
|
58
|
-
|
59
|
-
return false
|
60
|
-
}
|
61
|
-
|
62
|
-
Affix.prototype.getPinnedOffset = function () {
|
63
|
-
if (this.pinnedOffset) return this.pinnedOffset
|
64
|
-
this.$element.removeClass(Affix.RESET).addClass('affix')
|
65
|
-
var scrollTop = this.$target.scrollTop()
|
66
|
-
var position = this.$element.offset()
|
67
|
-
return (this.pinnedOffset = position.top - scrollTop)
|
68
|
-
}
|
69
|
-
|
70
|
-
Affix.prototype.checkPositionWithEventLoop = function () {
|
71
|
-
setTimeout($.proxy(this.checkPosition, this), 1)
|
72
|
-
}
|
73
|
-
|
74
|
-
Affix.prototype.checkPosition = function () {
|
75
|
-
if (!this.$element.is(':visible')) return
|
76
|
-
|
77
|
-
var height = this.$element.height()
|
78
|
-
var offset = this.options.offset
|
79
|
-
var offsetTop = offset.top
|
80
|
-
var offsetBottom = offset.bottom
|
81
|
-
var scrollHeight = Math.max($(document).height(), $(document.body).height())
|
82
|
-
|
83
|
-
if (typeof offset != 'object') offsetBottom = offsetTop = offset
|
84
|
-
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
|
85
|
-
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
|
86
|
-
|
87
|
-
var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
|
88
|
-
|
89
|
-
if (this.affixed != affix) {
|
90
|
-
if (this.unpin != null) this.$element.css('top', '')
|
91
|
-
|
92
|
-
var affixType = 'affix' + (affix ? '-' + affix : '')
|
93
|
-
var e = $.Event(affixType + '.bs.affix')
|
94
|
-
|
95
|
-
this.$element.trigger(e)
|
96
|
-
|
97
|
-
if (e.isDefaultPrevented()) return
|
98
|
-
|
99
|
-
this.affixed = affix
|
100
|
-
this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
|
101
|
-
|
102
|
-
this.$element
|
103
|
-
.removeClass(Affix.RESET)
|
104
|
-
.addClass(affixType)
|
105
|
-
.trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
|
106
|
-
}
|
107
|
-
|
108
|
-
if (affix == 'bottom') {
|
109
|
-
this.$element.offset({
|
110
|
-
top: scrollHeight - height - offsetBottom
|
111
|
-
})
|
112
|
-
}
|
113
|
-
}
|
114
|
-
|
115
|
-
|
116
|
-
// AFFIX PLUGIN DEFINITION
|
117
|
-
// =======================
|
118
|
-
|
119
|
-
function Plugin(option) {
|
120
|
-
return this.each(function () {
|
121
|
-
var $this = $(this)
|
122
|
-
var data = $this.data('bs.affix')
|
123
|
-
var options = typeof option == 'object' && option
|
124
|
-
|
125
|
-
if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
|
126
|
-
if (typeof option == 'string') data[option]()
|
127
|
-
})
|
128
|
-
}
|
129
|
-
|
130
|
-
var old = $.fn.affix
|
131
|
-
|
132
|
-
$.fn.affix = Plugin
|
133
|
-
$.fn.affix.Constructor = Affix
|
134
|
-
|
135
|
-
|
136
|
-
// AFFIX NO CONFLICT
|
137
|
-
// =================
|
138
|
-
|
139
|
-
$.fn.affix.noConflict = function () {
|
140
|
-
$.fn.affix = old
|
141
|
-
return this
|
142
|
-
}
|
143
|
-
|
144
|
-
|
145
|
-
// AFFIX DATA-API
|
146
|
-
// ==============
|
147
|
-
|
148
|
-
$(window).on('load', function () {
|
149
|
-
$('[data-spy="affix"]').each(function () {
|
150
|
-
var $spy = $(this)
|
151
|
-
var data = $spy.data()
|
152
|
-
|
153
|
-
data.offset = data.offset || {}
|
154
|
-
|
155
|
-
if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
|
156
|
-
if (data.offsetTop != null) data.offset.top = data.offsetTop
|
157
|
-
|
158
|
-
Plugin.call($spy, data)
|
159
|
-
})
|
160
|
-
})
|
161
|
-
|
162
|
-
}(jQuery);
|
@@ -1,131 +0,0 @@
|
|
1
|
-
/* ==========================================================
|
2
|
-
* bootstrap-affix.js v2.1.0
|
3
|
-
* http://twitter.github.com/bootstrap/javascript.html#affix
|
4
|
-
* ==========================================================
|
5
|
-
* Copyright 2012 Twitter, Inc.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ========================================================== */
|
19
|
-
|
20
|
-
|
21
|
-
!function ($) {
|
22
|
-
|
23
|
-
"use strict"; // jshint ;_;
|
24
|
-
|
25
|
-
|
26
|
-
/* AFFIX CLASS DEFINITION
|
27
|
-
* ====================== */
|
28
|
-
|
29
|
-
var Affix = function (element, options) {
|
30
|
-
this.options = $.extend({}, $.fn.affix.defaults, options)
|
31
|
-
this.$window = $("#body").on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
|
32
|
-
this.$element = $(element)
|
33
|
-
this.checkPosition()
|
34
|
-
}
|
35
|
-
|
36
|
-
Affix.prototype.checkPosition = function () {
|
37
|
-
if (!this.$element.is(':visible')) return
|
38
|
-
|
39
|
-
// console.log( "AFFIX: ", $("#body").scrollTop(), $("#body").width(), this.options )
|
40
|
-
|
41
|
-
var scrollHeight = $("#body").height()
|
42
|
-
, width = $("#body").width()
|
43
|
-
, scrollTop = $("#body").scrollTop()
|
44
|
-
, position = this.$element.offset()
|
45
|
-
, offset = this.options.offset
|
46
|
-
, offsetBottom = offset.bottom
|
47
|
-
, offsetTop = offset.top
|
48
|
-
, reset = 'affix affix-top affix-bottom'
|
49
|
-
, affix
|
50
|
-
|
51
|
-
if (typeof offset != 'object') offsetBottom = offsetTop = offset
|
52
|
-
if (typeof offsetTop == 'function') offsetTop = offset.top()
|
53
|
-
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom()
|
54
|
-
|
55
|
-
affix = this.unpin != null && (scrollTop + this.unpin <= position.top) && (width > 780) ?
|
56
|
-
false : offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ?
|
57
|
-
'bottom' : offsetTop != null && scrollTop <= offsetTop ?
|
58
|
-
'top' : false
|
59
|
-
|
60
|
-
if (this.affixed === affix) return
|
61
|
-
|
62
|
-
this.affixed = affix
|
63
|
-
this.unpin = affix == 'bottom' ? position.top - scrollTop : null
|
64
|
-
this.$element.removeClass(reset).addClass('affix' + (affix ? '-' + affix : ''))
|
65
|
-
}
|
66
|
-
|
67
|
-
|
68
|
-
/* AFFIX PLUGIN DEFINITION
|
69
|
-
* ======================= */
|
70
|
-
|
71
|
-
$.fn.affix = function (option) {
|
72
|
-
return this.each(function () {
|
73
|
-
var $this = $(this)
|
74
|
-
, data = $this.data('affix')
|
75
|
-
, options = typeof option == 'object' && option
|
76
|
-
if (!data) $this.data('affix', (data = new Affix(this, options)))
|
77
|
-
if (typeof option == 'string') data[option]()
|
78
|
-
})
|
79
|
-
}
|
80
|
-
|
81
|
-
$.fn.affix.Constructor = Affix
|
82
|
-
|
83
|
-
$.fn.affix.defaults = {
|
84
|
-
offset: 0
|
85
|
-
}
|
86
|
-
|
87
|
-
|
88
|
-
/* AFFIX DATA-API
|
89
|
-
* ============== */
|
90
|
-
|
91
|
-
$(window).on('load', function () {
|
92
|
-
|
93
|
-
$('[data-spy="affix"]').each(function () {
|
94
|
-
var $spy = $(this)
|
95
|
-
, data = $spy.data()
|
96
|
-
|
97
|
-
data.offset = data.offset || {}
|
98
|
-
|
99
|
-
data.offsetBottom && (data.offset.bottom = data.offsetBottom)
|
100
|
-
data.offsetTop && (data.offset.top = data.offsetTop)
|
101
|
-
|
102
|
-
$spy.affix(data)
|
103
|
-
});
|
104
|
-
|
105
|
-
/*
|
106
|
-
* Clamped-width.
|
107
|
-
* Usage:
|
108
|
-
* <div data-clampedwidth=".myParent">This long content will force clamped width</div>
|
109
|
-
*
|
110
|
-
* Author: LV
|
111
|
-
*/
|
112
|
-
$('[data-clampedwidth]').each(function () {
|
113
|
-
var elem = $(this);
|
114
|
-
// if ( elem.data('clampedwidth') == "true" ) {
|
115
|
-
var parentPanel = elem.parent();
|
116
|
-
// } else {
|
117
|
-
// var parentPanel = elem.data('clampedwidth');
|
118
|
-
// }
|
119
|
-
var resizeFn = function () {
|
120
|
-
var sideBarNavWidth = $(parentPanel).width() - parseInt(elem.css('paddingLeft')) - parseInt(elem.css('paddingRight')) - parseInt(elem.css('marginLeft')) - parseInt(elem.css('marginRight')) - parseInt(elem.css('borderLeftWidth')) - parseInt(elem.css('borderRightWidth'));
|
121
|
-
elem.css('width', sideBarNavWidth);
|
122
|
-
};
|
123
|
-
|
124
|
-
resizeFn();
|
125
|
-
$(window).resize(resizeFn);
|
126
|
-
});
|
127
|
-
|
128
|
-
})
|
129
|
-
|
130
|
-
|
131
|
-
}(window.jQuery);
|
@@ -1,46 +0,0 @@
|
|
1
|
-
// resets & defaults
|
2
|
-
.box, .box > .header, .box > .body, .box > .footer {
|
3
|
-
display: block; position: relative;
|
4
|
-
margin: 0; padding: 0;
|
5
|
-
}
|
6
|
-
|
7
|
-
|
8
|
-
.box {
|
9
|
-
margin: 0 0 $vertical-spacing;
|
10
|
-
padding: 10px;
|
11
|
-
text-align: left;
|
12
|
-
background: #fff;
|
13
|
-
border: solid 1px $main-border-color;
|
14
|
-
border-radius: 3px;
|
15
|
-
|
16
|
-
& > .header {
|
17
|
-
padding: 0 10px 10px;
|
18
|
-
border-bottom: solid 1px $main-border-color;
|
19
|
-
|
20
|
-
& > h1, & > h2, & > h3, & > h4, & > h5, & > h6, & > p {
|
21
|
-
&:first-child { margin-top: 0; }
|
22
|
-
&:last-child { margin-bottom: 0; }
|
23
|
-
}
|
24
|
-
&.blank { border-bottom: solid 1px transparent; }
|
25
|
-
}
|
26
|
-
& > .sub-header {
|
27
|
-
padding: 10px;
|
28
|
-
background: #f4f4f4;
|
29
|
-
}
|
30
|
-
& > .body {
|
31
|
-
padding: 10px;
|
32
|
-
}
|
33
|
-
& > .footer {
|
34
|
-
border-top: solid 1px $main-border-color;
|
35
|
-
padding: 10px;
|
36
|
-
.btn { margin-top: 0; margin-bottom: 0; }
|
37
|
-
.row > * { margin-bottom: 0; }
|
38
|
-
}
|
39
|
-
|
40
|
-
&.blank { background: transparent; }
|
41
|
-
&.shadow { box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.20); }
|
42
|
-
|
43
|
-
&.center { text-align: center; }
|
44
|
-
&.right { text-align: right; }
|
45
|
-
|
46
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
a.icn-lnk {
|
2
|
-
display: inline-block;
|
3
|
-
color: inherit;
|
4
|
-
transition: all .4s ease;
|
5
|
-
opacity: 0.8;
|
6
|
-
&:hover, &:focus, &:active {
|
7
|
-
text-decoration: none;
|
8
|
-
opacity: 1.0;
|
9
|
-
&, i { transform: scale(1.1); }
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
|
-
a.icn-lnk + a.icn-lnk {
|
14
|
-
margin-left: .1em;
|
15
|
-
}
|
16
|
-
|
17
|
-
a.silent-lnk {
|
18
|
-
color: inherit;
|
19
|
-
&:hover, &:focus, &:active {
|
20
|
-
text-decoration: underline;
|
21
|
-
}
|
22
|
-
}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
.check_switch {
|
2
|
-
display: block; display: inline-block; position: relative;
|
3
|
-
margin: 2px 3px; padding: 0;
|
4
|
-
border-radius: 100px;
|
5
|
-
width: 34px;
|
6
|
-
height: 18px;
|
7
|
-
border: solid 1px #ccc;
|
8
|
-
background: #c5c5c5;
|
9
|
-
box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.5);
|
10
|
-
cursor: pointer;
|
11
|
-
.switch_toggle {
|
12
|
-
display: block; position: relative;
|
13
|
-
margin: 0; padding: 0;
|
14
|
-
width: 20px; height: 20px;
|
15
|
-
position: absolute;
|
16
|
-
left: -2px;
|
17
|
-
top: -2px;
|
18
|
-
background: #fff;
|
19
|
-
border-radius: 100px;
|
20
|
-
border: solid 1px #ccc;
|
21
|
-
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.3);
|
22
|
-
background-color: #ffffff;
|
23
|
-
background-image: -webkit-linear-gradient(#ffffff, #e5e5e5);
|
24
|
-
background-image: linear-gradient(#ffffff, #e5e5e5);
|
25
|
-
}
|
26
|
-
|
27
|
-
input { display: none; }
|
28
|
-
|
29
|
-
&.on, &.active {
|
30
|
-
|
31
|
-
background: $brand-success;
|
32
|
-
.switch_toggle{
|
33
|
-
left: auto;
|
34
|
-
right: -2px;
|
35
|
-
}
|
36
|
-
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
.radio_switch {
|
41
|
-
display: block; display: inline-block; position: relative;
|
42
|
-
margin: 4px 3px; padding: 0;
|
43
|
-
border-radius: 100px;
|
44
|
-
width: 16px; height: 16px;
|
45
|
-
border: solid 1px #ccc;
|
46
|
-
background: #c5c5c5;
|
47
|
-
box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.5);
|
48
|
-
cursor: pointer;
|
49
|
-
.switch_toggle {
|
50
|
-
display: block; position: relative;
|
51
|
-
margin: 0; padding: 0;
|
52
|
-
width: 4px; height: 4px;
|
53
|
-
position: absolute;
|
54
|
-
left: 5px;
|
55
|
-
top: 5px;
|
56
|
-
background: transparent;
|
57
|
-
border-radius: 100px;
|
58
|
-
border: none;
|
59
|
-
}
|
60
|
-
|
61
|
-
input { display: none; }
|
62
|
-
|
63
|
-
&.on, &.active {
|
64
|
-
|
65
|
-
background: $brand-success;
|
66
|
-
.switch_toggle{
|
67
|
-
background: #fff;
|
68
|
-
opacity: .3;
|
69
|
-
}
|
70
|
-
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
label.switch_label {
|
75
|
-
display: block; position: relative;
|
76
|
-
margin: 0; padding: 0;
|
77
|
-
line-height: 28px;
|
78
|
-
}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
.divider {
|
2
|
-
display: block; position: relative;
|
3
|
-
padding: 0;
|
4
|
-
overflow: hidden;
|
5
|
-
text-align: center;
|
6
|
-
&, & > * { background: transparent; }
|
7
|
-
& > * {
|
8
|
-
position: relative;
|
9
|
-
margin: 0 auto;
|
10
|
-
// do not disturb button padding
|
11
|
-
&:not(.btn) { padding: 0; }
|
12
|
-
&:not(.btn-divided), &:not(.btn-splited) { display: block; display: inline-block; }
|
13
|
-
&.btn-divided, &.btn-splited {
|
14
|
-
max-width: 50%;
|
15
|
-
margin: 0 auto;
|
16
|
-
}
|
17
|
-
&:before, &:after {
|
18
|
-
display: block; position: absolute; content: "";
|
19
|
-
margin: 0; padding: 0;
|
20
|
-
top: 50%;
|
21
|
-
width: 1200px; // make it big to fill big screens as well
|
22
|
-
}
|
23
|
-
&:before { left: 100%; margin-left: $divider-horizontal-spacing; }
|
24
|
-
&:after { right: 100%; margin-right: $divider-horizontal-spacing; }
|
25
|
-
}
|
26
|
-
|
27
|
-
&.left {
|
28
|
-
text-align: left;
|
29
|
-
&:before { width: 2200px; }
|
30
|
-
&:after { display: none; }
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
hr {
|
35
|
-
display: block; position: relative;
|
36
|
-
margin: 0; padding: 0;
|
37
|
-
height: 0;
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
// margin
|
42
|
-
hr, .divider { @include vertical-margin( $divider-vertical-spacing ); }
|
43
|
-
|
44
|
-
// line-colors
|
45
|
-
hr, .divider > *:before, .divider > *:after {
|
46
|
-
border: none;
|
47
|
-
border-top: solid 1px $divider-top-color;
|
48
|
-
border-bottom: solid 1px $divider-bottom-color;
|
49
|
-
}
|
50
|
-
|
51
|
-
// sizes
|
52
|
-
hr, .divider {
|
53
|
-
|
54
|
-
&.half, &.tight { @include horizontal-margin( auto ); }
|
55
|
-
&.half { width: 50%; }
|
56
|
-
&.tight { width: 80%; }
|
57
|
-
|
58
|
-
&.no-press { margin: 0; }
|
59
|
-
&.no-press-top, &.no-top-press { margin-top: 0; }
|
60
|
-
&.no-press-bottom, &.no-bottom-press { margin-bottom: 0; }
|
61
|
-
|
62
|
-
&.half-press, &.press-half { @include vertical-margin( $divider-vertical-spacing / 2 ); }
|
63
|
-
|
64
|
-
|
65
|
-
}
|
@@ -1,85 +0,0 @@
|
|
1
|
-
@include responsiveStep-xs-only {
|
2
|
-
.press-xs { margin-bottom: $vertical-spacing; }
|
3
|
-
.hide-xs { display: none !important; }
|
4
|
-
}
|
5
|
-
|
6
|
-
@include responsiveStep-sm-only {
|
7
|
-
.press-sm { margin-bottom: $vertical-spacing; }
|
8
|
-
.hide-sm { display: none !important; }
|
9
|
-
}
|
10
|
-
|
11
|
-
@include responsiveStep-md-only {
|
12
|
-
.press-md { margin-bottom: $vertical-spacing; }
|
13
|
-
.hide-md { display: none !important; }
|
14
|
-
}
|
15
|
-
|
16
|
-
@include responsiveStep-lg-only {
|
17
|
-
.press-lg { margin-bottom: $vertical-spacing; }
|
18
|
-
.hide-lg { display: none !important; }
|
19
|
-
}
|
20
|
-
|
21
|
-
|
22
|
-
.press { margin-bottom: $vertical-spacing !important; }
|
23
|
-
.half-press, .press-half { margin-bottom: $vertical-spacing-half !important; }
|
24
|
-
.no-press, .no_press { margin-bottom: 0 !important; }
|
25
|
-
|
26
|
-
|
27
|
-
.left_text { text-align: left !important; }
|
28
|
-
.center_text { text-align: center !important; }
|
29
|
-
.right_text { text-align: right !important; }
|
30
|
-
|
31
|
-
.pull-left { float: left; }
|
32
|
-
.pull-right { float: right; }
|
33
|
-
.no-pull { float: none; }
|
34
|
-
|
35
|
-
|
36
|
-
@each $size in 0, 5, 10, 15, 20, 30, 40, 50 {
|
37
|
-
|
38
|
-
.padding_#{$size}, .p#{$size} { padding: #{$size}px; }
|
39
|
-
.v_padding_#{$size}, .vp#{$size} { padding-top: #{$size}px; padding-bottom: #{$size}px; }
|
40
|
-
.h_padding_#{$size}, .hp#{$size} { padding-left: #{$size}px; padding-right: #{$size}px; }
|
41
|
-
|
42
|
-
.margin_#{$size}, .m#{$size} { margin: #{$size}px; }
|
43
|
-
.v_margin_#{$size}, .vm#{$size} { margin-top: #{$size}px; margin-bottom: #{$size}px; }
|
44
|
-
.h_margin_#{$size}, .hm#{$size} { margin-left: #{$size}px; margin-right: #{$size}px; }
|
45
|
-
|
46
|
-
}
|
47
|
-
|
48
|
-
@each $clrName, $clrValue in $appColorz {
|
49
|
-
.#{"" + $clrName}-bg, .bg-#{"" + $clrName} {
|
50
|
-
background: #{ $clrValue };
|
51
|
-
}
|
52
|
-
.#{"" + $clrName}-text, .text-#{"" + $clrName},
|
53
|
-
.txt-#{"" + $clrName}, .#{"" + $clrName}-txt,
|
54
|
-
.clr-#{"" + $clrName}, .#{"" + $clrName}-clr,
|
55
|
-
.color-#{"" + $clrName}, .#{"" + $clrName}-color {
|
56
|
-
color: #{ $clrValue } !important;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
|
61
|
-
.third, .third1 { width: 33.33333%; max-width: 33.33333%; }
|
62
|
-
.third2 { width: 66.66666%; max-width: 66.66666%; }
|
63
|
-
.thirty { width: 50%; max-width: 50%; }
|
64
|
-
.fourty { width: 50%; max-width: 50%; }
|
65
|
-
.fivty { width: 50%; max-width: 50%; }
|
66
|
-
.sixty { width: 60%; max-width: 60%; }
|
67
|
-
.seventy { width: 70%; max-width: 70%; }
|
68
|
-
.eighty { width: 80%; max-width: 80%; }
|
69
|
-
.ninty { width: 90%; max-width: 90%; }
|
70
|
-
.third, .third1, .third2, .thirty, .fourty, .fivty, .sixty, .seventy, .eighty, .ninty {
|
71
|
-
@include horizontal-margin( auto );
|
72
|
-
}
|
73
|
-
|
74
|
-
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
75
|
-
|
76
|
-
// Row with equal height columns
|
77
|
-
// http://getbootstrap.com.vn/examples/equal-height-columns/
|
78
|
-
.row-eq-height {
|
79
|
-
display: -webkit-box;
|
80
|
-
display: -webkit-flex;
|
81
|
-
display: -ms-flexbox;
|
82
|
-
display: flex;
|
83
|
-
}
|
84
|
-
|
85
|
-
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
@@ -1,70 +0,0 @@
|
|
1
|
-
$line-height-computed: 20px;
|
2
|
-
|
3
|
-
img.responsive {
|
4
|
-
width: 100%; max-width: 100%;
|
5
|
-
}
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
img.avatar, img.logo {
|
10
|
-
width: 30px;
|
11
|
-
vertical-align: top;
|
12
|
-
display: inline-block;
|
13
|
-
&.big {
|
14
|
-
width: auto;
|
15
|
-
max-width: 120px;
|
16
|
-
border-radius: 80px;
|
17
|
-
}
|
18
|
-
&.xs { width: 18px; }
|
19
|
-
&.sm { width: 24px; }
|
20
|
-
&.lg { width: 40px; }
|
21
|
-
&.xl { width: 60px; }
|
22
|
-
&.xxl { width: 80px; }
|
23
|
-
}
|
24
|
-
img.avatar { border-radius: 60px; }
|
25
|
-
img.logo { border-radius: 5px; }
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
.image-card, .image_card {
|
30
|
-
display: block; position: relative;
|
31
|
-
margin: 0; padding: 0 0 0 #{ $line-height-computed * 2 + 8px };
|
32
|
-
text-align: left;
|
33
|
-
img {
|
34
|
-
display: block; position: absolute;
|
35
|
-
top: 0; left: 0;
|
36
|
-
width: $line-height-computed * 2;
|
37
|
-
}
|
38
|
-
p {
|
39
|
-
line-height: $line-height-computed;
|
40
|
-
margin: 0;
|
41
|
-
}
|
42
|
-
&.one_line, &.one-line {
|
43
|
-
$size: $line-height-computed * 2;
|
44
|
-
padding-left: $size + 8px;
|
45
|
-
img { width: $size; }
|
46
|
-
p { line-height: $size; }
|
47
|
-
}
|
48
|
-
|
49
|
-
&.img-sm {
|
50
|
-
$size: $line-height-computed * 1.5;
|
51
|
-
padding-left: $size + 8px;
|
52
|
-
img { width: $line-height-computed * 1.5; }
|
53
|
-
p { line-height: $size; }
|
54
|
-
}
|
55
|
-
}
|
56
|
-
a.image-card, a.image_card {
|
57
|
-
text-decoration: none;
|
58
|
-
&:hover {
|
59
|
-
text-decoration: none;
|
60
|
-
color: $blue;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
.huge-icon {
|
67
|
-
font-size: 120px;
|
68
|
-
line-height: 150px;
|
69
|
-
}
|
70
|
-
|
@@ -1,44 +0,0 @@
|
|
1
|
-
@each $txtName, $txtSize in $textSizes {
|
2
|
-
// .#{$txtName}, .txt-#{$txtName}, .#{$txtName}-txt {
|
3
|
-
.txt-#{$txtName}, .#{$txtName}-txt,
|
4
|
-
.text-#{$txtName}, .#{$txtName}-text {
|
5
|
-
font-size: #{ $txtSize };
|
6
|
-
color: $text-black;
|
7
|
-
font-weight: map-get($textWeights, $txtName);
|
8
|
-
&.secondary, &.light { color: $text-gray; }
|
9
|
-
&.disabled, &.lighter, &.off { color: $text-gray-light; }
|
10
|
-
&.bold, &.strong, & > b, & > strong { font-weight: map-get($textBoldWeights, $txtName); }
|
11
|
-
}
|
12
|
-
}
|
13
|
-
|
14
|
-
|
15
|
-
// Bold text
|
16
|
-
// strong, *.bold, label, th { font-weight: $bold !important; }
|
17
|
-
strong, *.bold, *.strong { font-weight: $bold !important; }
|
18
|
-
|
19
|
-
// Semi-Bold text
|
20
|
-
.semi { font-weight: $semi !important; }
|
21
|
-
|
22
|
-
// Semi-Bold text
|
23
|
-
.regular { font-weight: $regular !important; }
|
24
|
-
|
25
|
-
// Semi-Bold text
|
26
|
-
.thin { font-weight: $thin !important; }
|
27
|
-
|
28
|
-
// Semi-Bold text
|
29
|
-
.italic { font-style: italic !important; }
|
30
|
-
|
31
|
-
// Monospace Font
|
32
|
-
.mono { font-family: $monoFontFamily; }
|
33
|
-
|
34
|
-
// upcased text
|
35
|
-
@mixin upcase {
|
36
|
-
text-transform: uppercase;
|
37
|
-
// letter-spacing: 2px;
|
38
|
-
// word-spacing: 3px;
|
39
|
-
letter-spacing: .05em;
|
40
|
-
word-spacing: .1em;
|
41
|
-
}
|
42
|
-
.upcase {
|
43
|
-
@include upcase;
|
44
|
-
}
|