datetime_picker_rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,94 @@
1
+ // a flag to toggle asset pipeline / compass integration
2
+ // defaults to true if twbs-font-path function is present (no function => twbs-font-path('') parsed as string == right side)
3
+ // in Sass 3.3 this can be improved with: function-exists(twbs-font-path)
4
+ $bootstrap-sass-asset-helper: true;
5
+ //
6
+ // Variables
7
+ // --------------------------------------------------
8
+
9
+
10
+ //== Colors
11
+ //
12
+ //## Gray and brand colors for use across Bootstrap.
13
+
14
+ $gray-dark: lighten(#000, 20%) !default; // #333
15
+ $gray: lighten(#000, 33.5%) !default; // #555
16
+ $gray-light: lighten(#000, 46.7%) !default; // #777
17
+
18
+ $brand-primary: #428bca !default;
19
+
20
+ //== Typography
21
+ //
22
+ //## Font, line-height, and color for body text, headings, and more.
23
+
24
+ $font-size-base: 14px !default;
25
+ $font-size-large: ceil(($font-size-base * 1.25)) !default; // ~18px
26
+ $font-size-small: ceil(($font-size-base * 0.85)) !default; // ~12px
27
+
28
+ //** Unit-less `line-height` for use in components like buttons.
29
+ $line-height-base: 1.428571429 !default; // 20/14
30
+ //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
31
+ $line-height-computed: floor(($font-size-base * $line-height-base)) !default; // ~20px
32
+
33
+
34
+ //== Iconography
35
+ //
36
+ //## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
37
+
38
+ //** Load fonts from this directory.
39
+ $icon-font-path: "bootstrap/" !default;
40
+ //** File name for all font files.
41
+ $icon-font-name: "glyphicons-halflings-regular" !default;
42
+ //** Element ID within SVG icon file.
43
+ $icon-font-svg-id: "glyphicons_halflingsregular" !default;
44
+
45
+
46
+ //== Components
47
+ //
48
+ //## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
49
+
50
+ $border-radius-base: 4px !default;
51
+
52
+ //** Global color for active items (e.g., navs or dropdowns).
53
+ $component-active-color: #fff !default;
54
+ //** Global background color for active items (e.g., navs or dropdowns).
55
+ $component-active-bg: $brand-primary !default;
56
+
57
+
58
+ //== Tables
59
+ //
60
+ //## Customizes the `.table` component with basic values, each used across all table variations.
61
+
62
+ //** Padding for cells in `.table-condensed`.
63
+ $table-condensed-cell-padding: 5px !default;
64
+
65
+
66
+ //== Dropdowns
67
+ //
68
+ //## Dropdown menu container and contents.
69
+
70
+ //** Background for the dropdown menu.
71
+ $dropdown-bg: #fff !default;
72
+ //** Dropdown menu `border-color`.
73
+ $dropdown-border: rgba(0,0,0,.15) !default;
74
+ //** Dropdown menu `border-color` **for IE8**.
75
+ $dropdown-fallback-border: #ccc !default;
76
+ //** Divider color for between dropdown items.
77
+ $dropdown-divider-bg: #e5e5e5 !default;
78
+
79
+ //** Dropdown link text color.
80
+ $dropdown-link-color: $gray-dark !default;
81
+ //** Hover color for dropdown links.
82
+ $dropdown-link-hover-color: darken($gray-dark, 5%) !default;
83
+ //** Hover background for dropdown links.
84
+ $dropdown-link-hover-bg: #f5f5f5 !default;
85
+
86
+ //** Active dropdown menu item text color.
87
+ $dropdown-link-active-color: $component-active-color !default;
88
+ //** Active dropdown menu item background color.
89
+ $dropdown-link-active-bg: $component-active-bg !default;
90
+
91
+ //** Disabled dropdown menu item background color.
92
+ $dropdown-link-disabled-color: $gray-light !default;
93
+
94
+ $zindex-dropdown: 1000 !default;
@@ -0,0 +1,10 @@
1
+ // Horizontal dividers
2
+ //
3
+ // Dividers (basically an hr) within dropdowns and nav lists
4
+
5
+ @mixin nav-divider($color: #e5e5e5) {
6
+ height: 1px;
7
+ margin: (($line-height-computed / 2) - 1) 0;
8
+ overflow: hidden;
9
+ background-color: $color;
10
+ }
@@ -0,0 +1,8 @@
1
+ // Reset filters for IE
2
+ //
3
+ // When you need to remove a gradient background, do not forget to use this to reset
4
+ // the IE filter for IE9 and below.
5
+
6
+ @mixin reset-filter() {
7
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
8
+ }
@@ -0,0 +1,28 @@
1
+ // Tables
2
+
3
+ @mixin table-row-variant($state, $background) {
4
+ // Exact selectors below required to override `.table-striped` and prevent
5
+ // inheritance to nested tables.
6
+ .table > thead > tr,
7
+ .table > tbody > tr,
8
+ .table > tfoot > tr {
9
+ > td.#{$state},
10
+ > th.#{$state},
11
+ &.#{$state} > td,
12
+ &.#{$state} > th {
13
+ background-color: $background;
14
+ }
15
+ }
16
+
17
+ // Hover states for `.table-hover`
18
+ // Note: this is not available for cells or rows within `thead` or `tfoot`.
19
+ .table-hover > tbody > tr {
20
+ > td.#{$state}:hover,
21
+ > th.#{$state}:hover,
22
+ &.#{$state}:hover > td,
23
+ &:hover > .#{$state},
24
+ &.#{$state}:hover > th {
25
+ background-color: darken($background, 5%);
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,219 @@
1
+ // Vendor Prefixes
2
+ //
3
+ // All vendor mixins are deprecated as of v3.2.0 due to the introduction of
4
+ // Autoprefixer in our Gruntfile. They will be removed in v4.
5
+
6
+ // - Animations
7
+ // - Backface visibility
8
+ // - Box shadow
9
+ // - Box sizing
10
+ // - Content columns
11
+ // - Hyphens
12
+ // - Placeholder text
13
+ // - Transformations
14
+ // - Transitions
15
+ // - User Select
16
+
17
+
18
+ // Animations
19
+ @mixin animation($animation) {
20
+ -webkit-animation: $animation;
21
+ -o-animation: $animation;
22
+ animation: $animation;
23
+ }
24
+ @mixin animation-name($name) {
25
+ -webkit-animation-name: $name;
26
+ animation-name: $name;
27
+ }
28
+ @mixin animation-duration($duration) {
29
+ -webkit-animation-duration: $duration;
30
+ animation-duration: $duration;
31
+ }
32
+ @mixin animation-timing-function($timing-function) {
33
+ -webkit-animation-timing-function: $timing-function;
34
+ animation-timing-function: $timing-function;
35
+ }
36
+ @mixin animation-delay($delay) {
37
+ -webkit-animation-delay: $delay;
38
+ animation-delay: $delay;
39
+ }
40
+ @mixin animation-iteration-count($iteration-count) {
41
+ -webkit-animation-iteration-count: $iteration-count;
42
+ animation-iteration-count: $iteration-count;
43
+ }
44
+ @mixin animation-direction($direction) {
45
+ -webkit-animation-direction: $direction;
46
+ animation-direction: $direction;
47
+ }
48
+ @mixin animation-fill-mode($fill-mode) {
49
+ -webkit-animation-fill-mode: $fill-mode;
50
+ animation-fill-mode: $fill-mode;
51
+ }
52
+
53
+ // Backface visibility
54
+ // Prevent browsers from flickering when using CSS 3D transforms.
55
+ // Default value is `visible`, but can be changed to `hidden`
56
+
57
+ @mixin backface-visibility($visibility){
58
+ -webkit-backface-visibility: $visibility;
59
+ -moz-backface-visibility: $visibility;
60
+ backface-visibility: $visibility;
61
+ }
62
+
63
+ // Drop shadows
64
+ //
65
+ // Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's
66
+ // supported browsers that have box shadow capabilities now support it.
67
+
68
+ @mixin box-shadow($shadow...) {
69
+ -webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1
70
+ box-shadow: $shadow;
71
+ }
72
+
73
+ // Box sizing
74
+ @mixin box-sizing($boxmodel) {
75
+ -webkit-box-sizing: $boxmodel;
76
+ -moz-box-sizing: $boxmodel;
77
+ box-sizing: $boxmodel;
78
+ }
79
+
80
+ // CSS3 Content Columns
81
+ @mixin content-columns($column-count, $column-gap: $grid-gutter-width) {
82
+ -webkit-column-count: $column-count;
83
+ -moz-column-count: $column-count;
84
+ column-count: $column-count;
85
+ -webkit-column-gap: $column-gap;
86
+ -moz-column-gap: $column-gap;
87
+ column-gap: $column-gap;
88
+ }
89
+
90
+ // Optional hyphenation
91
+ @mixin hyphens($mode: auto) {
92
+ word-wrap: break-word;
93
+ -webkit-hyphens: $mode;
94
+ -moz-hyphens: $mode;
95
+ -ms-hyphens: $mode; // IE10+
96
+ -o-hyphens: $mode;
97
+ hyphens: $mode;
98
+ }
99
+
100
+ // Placeholder text
101
+ @mixin placeholder($color: $input-color-placeholder) {
102
+ &::-moz-placeholder { color: $color; // Firefox
103
+ opacity: 1; } // See https://github.com/twbs/bootstrap/pull/11526
104
+ &:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
105
+ &::-webkit-input-placeholder { color: $color; } // Safari and Chrome
106
+ }
107
+
108
+ // Transformations
109
+ @mixin scale($ratio...) {
110
+ -webkit-transform: scale($ratio);
111
+ -ms-transform: scale($ratio); // IE9 only
112
+ -o-transform: scale($ratio);
113
+ transform: scale($ratio);
114
+ }
115
+
116
+ @mixin scaleX($ratio) {
117
+ -webkit-transform: scaleX($ratio);
118
+ -ms-transform: scaleX($ratio); // IE9 only
119
+ -o-transform: scaleX($ratio);
120
+ transform: scaleX($ratio);
121
+ }
122
+ @mixin scaleY($ratio) {
123
+ -webkit-transform: scaleY($ratio);
124
+ -ms-transform: scaleY($ratio); // IE9 only
125
+ -o-transform: scaleY($ratio);
126
+ transform: scaleY($ratio);
127
+ }
128
+ @mixin skew($x, $y) {
129
+ -webkit-transform: skewX($x) skewY($y);
130
+ -ms-transform: skewX($x) skewY($y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
131
+ -o-transform: skewX($x) skewY($y);
132
+ transform: skewX($x) skewY($y);
133
+ }
134
+ @mixin translate($x, $y) {
135
+ -webkit-transform: translate($x, $y);
136
+ -ms-transform: translate($x, $y); // IE9 only
137
+ -o-transform: translate($x, $y);
138
+ transform: translate($x, $y);
139
+ }
140
+ @mixin translate3d($x, $y, $z) {
141
+ -webkit-transform: translate3d($x, $y, $z);
142
+ transform: translate3d($x, $y, $z);
143
+ }
144
+ @mixin rotate($degrees) {
145
+ -webkit-transform: rotate($degrees);
146
+ -ms-transform: rotate($degrees); // IE9 only
147
+ -o-transform: rotate($degrees);
148
+ transform: rotate($degrees);
149
+ }
150
+ @mixin rotateX($degrees) {
151
+ -webkit-transform: rotateX($degrees);
152
+ -ms-transform: rotateX($degrees); // IE9 only
153
+ -o-transform: rotateX($degrees);
154
+ transform: rotateX($degrees);
155
+ }
156
+ @mixin rotateY($degrees) {
157
+ -webkit-transform: rotateY($degrees);
158
+ -ms-transform: rotateY($degrees); // IE9 only
159
+ -o-transform: rotateY($degrees);
160
+ transform: rotateY($degrees);
161
+ }
162
+ @mixin perspective($perspective) {
163
+ -webkit-perspective: $perspective;
164
+ -moz-perspective: $perspective;
165
+ perspective: $perspective;
166
+ }
167
+ @mixin perspective-origin($perspective) {
168
+ -webkit-perspective-origin: $perspective;
169
+ -moz-perspective-origin: $perspective;
170
+ perspective-origin: $perspective;
171
+ }
172
+ @mixin transform-origin($origin) {
173
+ -webkit-transform-origin: $origin;
174
+ -moz-transform-origin: $origin;
175
+ -ms-transform-origin: $origin; // IE9 only
176
+ transform-origin: $origin;
177
+ }
178
+
179
+
180
+ // Transitions
181
+
182
+ @mixin transition($transition...) {
183
+ -webkit-transition: $transition;
184
+ -o-transition: $transition;
185
+ transition: $transition;
186
+ }
187
+ @mixin transition-property($transition-property...) {
188
+ -webkit-transition-property: $transition-property;
189
+ transition-property: $transition-property;
190
+ }
191
+ @mixin transition-delay($transition-delay) {
192
+ -webkit-transition-delay: $transition-delay;
193
+ transition-delay: $transition-delay;
194
+ }
195
+ @mixin transition-duration($transition-duration...) {
196
+ -webkit-transition-duration: $transition-duration;
197
+ transition-duration: $transition-duration;
198
+ }
199
+ @mixin transition-timing-function($timing-function) {
200
+ -webkit-transition-timing-function: $timing-function;
201
+ transition-timing-function: $timing-function;
202
+ }
203
+ @mixin transition-transform($transition...) {
204
+ -webkit-transition: -webkit-transform $transition;
205
+ -moz-transition: -moz-transform $transition;
206
+ -o-transition: -o-transform $transition;
207
+ transition: transform $transition;
208
+ }
209
+
210
+
211
+ // User select
212
+ // For selecting text on the page
213
+
214
+ @mixin user-select($select) {
215
+ -webkit-user-select: $select;
216
+ -moz-user-select: $select;
217
+ -ms-user-select: $select; // IE10+
218
+ user-select: $select;
219
+ }
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: datetime_picker_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Grayson Wright
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: momentjs-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 2.8.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 2.8.1
55
+ description: This gem packages the Bootstrap3 bootstrap-datetimepicker (JS + CSS)
56
+ for Rails 3.1+ asset pipeline.
57
+ email:
58
+ - wright.grayson@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - LICENSE.txt
64
+ - README.md
65
+ - lib/datetime_picker_rails.rb
66
+ - lib/datetime_picker_rails/version.rb
67
+ - vendor/assets/javascripts/bootstrap-datetimepicker.js
68
+ - vendor/assets/javascripts/bootstrap-datetimepicker.min.js
69
+ - vendor/assets/stylesheets/bootstrap-datetimepicker.css
70
+ - vendor/assets/stylesheets/bootstrap-datetimepicker.min.css
71
+ - vendor/assets/stylesheets/bootstrap.scss
72
+ - vendor/assets/stylesheets/bootstrap/_component-animations.scss
73
+ - vendor/assets/stylesheets/bootstrap/_dropdowns.scss
74
+ - vendor/assets/stylesheets/bootstrap/_glyphicons.scss
75
+ - vendor/assets/stylesheets/bootstrap/_mixins.scss
76
+ - vendor/assets/stylesheets/bootstrap/_print.scss
77
+ - vendor/assets/stylesheets/bootstrap/_tables.scss
78
+ - vendor/assets/stylesheets/bootstrap/_theme.scss
79
+ - vendor/assets/stylesheets/bootstrap/_variables.scss
80
+ - vendor/assets/stylesheets/bootstrap/mixins/_nav-divider.scss
81
+ - vendor/assets/stylesheets/bootstrap/mixins/_reset-filter.scss
82
+ - vendor/assets/stylesheets/bootstrap/mixins/_table-row.scss
83
+ - vendor/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss
84
+ homepage: http://github.com/graysonwright/datetime_picker_rails
85
+ licenses:
86
+ - MIT
87
+ metadata: {}
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubyforge_project:
104
+ rubygems_version: 2.4.8
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: Bootstrap3 bootstrap-datetimepicker"s JS + CSS for Rails 3.1+ asset pipeline.
108
+ test_files: []