uikit-rails 0.0.2 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -3
  3. data/Gemfile +2 -1
  4. data/LICENSE.txt +21 -0
  5. data/README.md +65 -0
  6. data/Rakefile +0 -1
  7. data/assets/fonts/FontAwesome.otf +0 -0
  8. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  9. data/assets/fonts/fontawesome-webfont.woff +0 -0
  10. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  11. data/assets/javascripts/components/accordion.js +174 -0
  12. data/assets/javascripts/components/accordion.min.js +2 -0
  13. data/assets/javascripts/components/autocomplete.js +334 -0
  14. data/assets/javascripts/components/autocomplete.min.js +2 -0
  15. data/assets/javascripts/components/datepicker.js +3166 -0
  16. data/assets/javascripts/components/datepicker.min.js +3 -0
  17. data/assets/javascripts/components/form-password.js +67 -0
  18. data/assets/javascripts/components/form-password.min.js +2 -0
  19. data/assets/javascripts/components/form-select.js +70 -0
  20. data/assets/javascripts/components/form-select.min.js +2 -0
  21. data/assets/javascripts/components/grid.js +527 -0
  22. data/assets/javascripts/components/grid.min.js +2 -0
  23. data/assets/javascripts/components/htmleditor.js +623 -0
  24. data/assets/javascripts/components/htmleditor.min.js +2 -0
  25. data/assets/javascripts/components/lightbox.js +555 -0
  26. data/assets/javascripts/components/lightbox.min.js +2 -0
  27. data/assets/javascripts/components/nestable.js +638 -0
  28. data/assets/javascripts/components/nestable.min.js +2 -0
  29. data/assets/javascripts/components/notify.js +189 -0
  30. data/assets/javascripts/components/notify.min.js +2 -0
  31. data/assets/javascripts/components/pagination.js +147 -0
  32. data/assets/javascripts/components/pagination.min.js +2 -0
  33. data/assets/javascripts/components/parallax.js +435 -0
  34. data/assets/javascripts/components/parallax.min.js +2 -0
  35. data/assets/javascripts/components/search.js +92 -0
  36. data/assets/javascripts/components/search.min.js +2 -0
  37. data/assets/javascripts/components/slider.js +531 -0
  38. data/assets/javascripts/components/slider.min.js +2 -0
  39. data/assets/javascripts/components/slideset.js +506 -0
  40. data/assets/javascripts/components/slideset.min.js +2 -0
  41. data/assets/javascripts/components/slideshow-fx.js +375 -0
  42. data/assets/javascripts/components/slideshow-fx.min.js +2 -0
  43. data/assets/javascripts/components/slideshow.js +562 -0
  44. data/assets/javascripts/components/slideshow.min.js +2 -0
  45. data/assets/javascripts/components/sortable.js +688 -0
  46. data/assets/javascripts/components/sortable.min.js +2 -0
  47. data/assets/javascripts/components/sticky.js +359 -0
  48. data/assets/javascripts/components/sticky.min.js +2 -0
  49. data/assets/javascripts/components/timepicker.js +192 -0
  50. data/assets/javascripts/components/timepicker.min.js +2 -0
  51. data/assets/javascripts/components/tooltip.js +234 -0
  52. data/assets/javascripts/components/tooltip.min.js +2 -0
  53. data/assets/javascripts/components/upload.js +260 -0
  54. data/assets/javascripts/components/upload.min.js +2 -0
  55. data/assets/javascripts/core/alert.js +66 -0
  56. data/assets/javascripts/core/alert.min.js +2 -0
  57. data/assets/javascripts/core/button.js +157 -0
  58. data/assets/javascripts/core/button.min.js +2 -0
  59. data/assets/javascripts/core/core.js +730 -0
  60. data/assets/javascripts/core/core.min.js +2 -0
  61. data/assets/javascripts/core/cover.js +95 -0
  62. data/assets/javascripts/core/cover.min.js +2 -0
  63. data/assets/javascripts/core/dropdown.js +514 -0
  64. data/assets/javascripts/core/dropdown.min.js +2 -0
  65. data/assets/javascripts/core/grid.js +114 -0
  66. data/assets/javascripts/core/grid.min.js +2 -0
  67. data/assets/javascripts/core/modal.js +384 -0
  68. data/assets/javascripts/core/modal.min.js +2 -0
  69. data/assets/javascripts/core/nav.js +136 -0
  70. data/assets/javascripts/core/nav.min.js +2 -0
  71. data/assets/javascripts/core/offcanvas.js +180 -0
  72. data/assets/javascripts/core/offcanvas.min.js +2 -0
  73. data/assets/javascripts/core/scrollspy.js +208 -0
  74. data/assets/javascripts/core/scrollspy.min.js +2 -0
  75. data/assets/javascripts/core/smooth-scroll.js +62 -0
  76. data/assets/javascripts/core/smooth-scroll.min.js +2 -0
  77. data/assets/javascripts/core/switcher.js +309 -0
  78. data/assets/javascripts/core/switcher.min.js +2 -0
  79. data/assets/javascripts/core/tab.js +167 -0
  80. data/assets/javascripts/core/tab.min.js +2 -0
  81. data/assets/javascripts/core/toggle.js +120 -0
  82. data/assets/javascripts/core/toggle.min.js +2 -0
  83. data/assets/javascripts/core/touch.js +175 -0
  84. data/assets/javascripts/core/touch.min.js +2 -0
  85. data/assets/javascripts/core/utility.js +289 -0
  86. data/assets/javascripts/core/utility.min.js +2 -0
  87. data/assets/javascripts/uikit-components.js +23 -0
  88. data/assets/javascripts/uikit.js +3706 -0
  89. data/assets/javascripts/uikit.min.js +3 -0
  90. data/assets/stylesheets/components/accordion.scss +94 -0
  91. data/assets/stylesheets/components/autocomplete.scss +102 -0
  92. data/assets/stylesheets/components/datepicker.scss +197 -0
  93. data/assets/stylesheets/components/dotnav.scss +212 -0
  94. data/assets/stylesheets/components/form-advanced.scss +128 -0
  95. data/assets/stylesheets/components/form-file.scss +63 -0
  96. data/assets/stylesheets/components/form-password.scss +74 -0
  97. data/assets/stylesheets/components/form-select.scss +66 -0
  98. data/assets/stylesheets/components/htmleditor.scss +269 -0
  99. data/assets/stylesheets/components/nestable.scss +229 -0
  100. data/assets/stylesheets/components/notify.scss +190 -0
  101. data/assets/stylesheets/components/placeholder.scss +66 -0
  102. data/assets/stylesheets/components/progress.scss +173 -0
  103. data/assets/stylesheets/components/search.scss +309 -0
  104. data/assets/stylesheets/components/slidenav.scss +183 -0
  105. data/assets/stylesheets/components/slider.scss +131 -0
  106. data/assets/stylesheets/components/slideshow.scss +208 -0
  107. data/assets/stylesheets/components/sortable.scss +122 -0
  108. data/assets/stylesheets/components/sticky.scss +64 -0
  109. data/assets/stylesheets/components/tooltip.scss +177 -0
  110. data/assets/stylesheets/components/upload.scss +34 -0
  111. data/assets/stylesheets/core/alert.scss +141 -0
  112. data/assets/stylesheets/core/animation.scss +599 -0
  113. data/assets/stylesheets/core/article.scss +139 -0
  114. data/assets/stylesheets/core/badge.scss +110 -0
  115. data/assets/stylesheets/core/base-noconflict.scss +397 -0
  116. data/assets/stylesheets/core/base.scss +541 -0
  117. data/assets/stylesheets/core/block.scss +153 -0
  118. data/assets/stylesheets/core/breadcrumb.scss +86 -0
  119. data/assets/stylesheets/core/button.scss +406 -0
  120. data/assets/stylesheets/core/close.scss +132 -0
  121. data/assets/stylesheets/core/column.scss +209 -0
  122. data/assets/stylesheets/core/comment.scss +172 -0
  123. data/assets/stylesheets/core/contrast.scss +493 -0
  124. data/assets/stylesheets/core/cover.scss +70 -0
  125. data/assets/stylesheets/core/description-list.scss +71 -0
  126. data/assets/stylesheets/core/dropdown.scss +280 -0
  127. data/assets/stylesheets/core/flex.scss +320 -0
  128. data/assets/stylesheets/core/form.scss +627 -0
  129. data/assets/stylesheets/core/grid.scss +688 -0
  130. data/assets/stylesheets/core/icon.scss +897 -0
  131. data/assets/stylesheets/core/list.scss +102 -0
  132. data/assets/stylesheets/core/modal.scss +341 -0
  133. data/assets/stylesheets/core/nav.scss +468 -0
  134. data/assets/stylesheets/core/navbar.scss +325 -0
  135. data/assets/stylesheets/core/offcanvas.scss +168 -0
  136. data/assets/stylesheets/core/overlay.scss +534 -0
  137. data/assets/stylesheets/core/pagination.scss +197 -0
  138. data/assets/stylesheets/core/panel.scss +332 -0
  139. data/assets/stylesheets/core/print.scss +59 -0
  140. data/assets/stylesheets/core/subnav.scss +213 -0
  141. data/assets/stylesheets/core/switcher.scss +38 -0
  142. data/assets/stylesheets/core/tab.scss +368 -0
  143. data/assets/stylesheets/core/table.scss +147 -0
  144. data/assets/stylesheets/core/text.scss +128 -0
  145. data/assets/stylesheets/core/thumbnail.scss +122 -0
  146. data/assets/stylesheets/core/thumbnav.scss +122 -0
  147. data/assets/stylesheets/core/utility.scss +606 -0
  148. data/assets/stylesheets/core/variables.scss +23 -0
  149. data/assets/stylesheets/uikit-components.scss +22 -0
  150. data/assets/stylesheets/uikit-mixins.scss +327 -0
  151. data/assets/stylesheets/uikit-variables.scss +817 -0
  152. data/assets/stylesheets/uikit.scss +56 -0
  153. data/lib/uikit-rails.rb +2 -2
  154. data/lib/uikit-rails/engine.rb +11 -1
  155. data/lib/uikit-rails/version.rb +1 -3
  156. data/uikit-rails.gemspec +15 -16
  157. metadata +169 -44
  158. data/README.rb +0 -1
  159. data/vendor/assets/javascripts/ui.card.js +0 -115
  160. data/vendor/assets/javascripts/ui.color-picker.js +0 -351
  161. data/vendor/assets/javascripts/ui.confirmation.js +0 -133
  162. data/vendor/assets/javascripts/ui.dialog.js +0 -252
  163. data/vendor/assets/javascripts/ui.emitter.js +0 -99
  164. data/vendor/assets/javascripts/ui.js +0 -1641
  165. data/vendor/assets/javascripts/ui.menu.js +0 -238
  166. data/vendor/assets/javascripts/ui.notification.js +0 -240
  167. data/vendor/assets/javascripts/ui.overlay.js +0 -79
  168. data/vendor/assets/javascripts/ui.split-button.js +0 -108
  169. data/vendor/assets/stylesheets/ui.card.css +0 -55
  170. data/vendor/assets/stylesheets/ui.color-picker.css +0 -6
  171. data/vendor/assets/stylesheets/ui.confirmation.css +0 -7
  172. data/vendor/assets/stylesheets/ui.css +0 -337
  173. data/vendor/assets/stylesheets/ui.dialog.css +0 -92
  174. data/vendor/assets/stylesheets/ui.menu.css +0 -32
  175. data/vendor/assets/stylesheets/ui.notification.css +0 -107
  176. data/vendor/assets/stylesheets/ui.overlay.css +0 -16
  177. data/vendor/assets/stylesheets/ui.split-button.css +0 -27
@@ -0,0 +1,153 @@
1
+ // Name: Block
2
+ // Description: Defines styles to create horizontal layout blocks
3
+ //
4
+ // Component: `uk-block`
5
+ //
6
+ // Modifiers: `uk-list-line`
7
+ // `uk-list-striped`
8
+ // `uk-list-space`
9
+ //
10
+ // ========================================================================
11
+
12
+
13
+ // Variables
14
+ // ========================================================================
15
+
16
+ $block-padding-vertical: 20px !default;
17
+ $block-padding-vertical-large: 50px !default;
18
+
19
+ $block-large-padding-vertical: $block-padding-vertical !default;
20
+ $block-large-padding-vertical-medium: $block-padding-vertical-large !default;
21
+ $block-large-padding-vertical-large: 100px !default;
22
+
23
+ $block-default-background: #fff !default;
24
+ $block-muted-background: #f9f9f9 !default;
25
+ $block-primary-background: #00a8e6 !default;
26
+ $block-secondary-background: #222 !default;
27
+
28
+
29
+ /* ========================================================================
30
+ Component: Block
31
+ ========================================================================== */
32
+
33
+ .uk-block {
34
+ position: relative;
35
+ box-sizing: border-box;
36
+ padding-top: $block-padding-vertical;
37
+ padding-bottom: $block-padding-vertical;
38
+ @include hook-block();
39
+ }
40
+
41
+ /* Phone landscape and bigger */
42
+ @media (min-width: $breakpoint-medium) {
43
+
44
+ .uk-block {
45
+ padding-top: $block-padding-vertical-large;
46
+ padding-bottom: $block-padding-vertical-large;
47
+ }
48
+
49
+ }
50
+
51
+ /*
52
+ * Micro clearfix to make blocks more robust
53
+ */
54
+
55
+ .uk-block:before,
56
+ .uk-block:after {
57
+ content: "";
58
+ display: table;
59
+ }
60
+
61
+ .uk-block:after { clear: both; }
62
+
63
+ /*
64
+ * Remove margin from the last-child
65
+ */
66
+
67
+ .uk-block > :last-child { margin-bottom: 0; }
68
+
69
+
70
+ /* Padding Modifier
71
+ ========================================================================== */
72
+
73
+ /*
74
+ * Large padding
75
+ */
76
+
77
+ .uk-block-large {
78
+ padding-top: $block-large-padding-vertical;
79
+ padding-bottom: $block-large-padding-vertical;
80
+ }
81
+
82
+ /* Tablets and bigger */
83
+ @media (min-width: $breakpoint-medium) {
84
+
85
+ .uk-block-large {
86
+ padding-top: $block-large-padding-vertical-medium;
87
+ padding-bottom: $block-large-padding-vertical-medium;
88
+ }
89
+
90
+ }
91
+
92
+ /* Desktop and bigger */
93
+ @media (min-width: $breakpoint-large) {
94
+
95
+ .uk-block-large {
96
+ padding-top: $block-large-padding-vertical-large;
97
+ padding-bottom: $block-large-padding-vertical-large;
98
+ }
99
+
100
+ }
101
+
102
+
103
+ /* Color Modifier
104
+ ========================================================================== */
105
+
106
+ /*
107
+ * Default
108
+ */
109
+
110
+ .uk-block-default {
111
+ background: $block-default-background;
112
+ @include hook-block-default();
113
+ }
114
+
115
+ /*
116
+ * Muted
117
+ */
118
+
119
+ .uk-block-muted {
120
+ background: $block-muted-background;
121
+ @include hook-block-muted();
122
+ }
123
+
124
+ /*
125
+ * Primary
126
+ */
127
+
128
+ .uk-block-primary {
129
+ background: $block-primary-background;
130
+ @include hook-block-primary();
131
+ }
132
+
133
+ /*
134
+ * Secondary
135
+ */
136
+
137
+ .uk-block-secondary {
138
+ background: $block-secondary-background;
139
+ @include hook-block-secondary();
140
+ }
141
+
142
+
143
+ // Hooks
144
+ // ========================================================================
145
+
146
+ @include hook-block-misc();
147
+
148
+ // @mixin hook-block(){}
149
+ // @mixin hook-block-default(){}
150
+ // @mixin hook-block-muted(){}
151
+ // @mixin hook-block-secondary(){}
152
+ // @mixin hook-block-primary(){}
153
+ // @mixin hook-block-misc(){}
@@ -0,0 +1,86 @@
1
+ // Name: Breadcrumb
2
+ // Description: Defines styles for a breadcrumb navigation
3
+ //
4
+ // Component: `uk-breadcrumb`
5
+ //
6
+ // States: `uk-active`
7
+ //
8
+ // Markup:
9
+ //
10
+ // <!-- uk-breadcrumb -->
11
+ // <ul class="uk-breadcrumb">
12
+ // <li><a href=""></a></li>
13
+ // <li><span></span></li>
14
+ // <li class="uk-active"><span></span></li>
15
+ // </ul>
16
+ //
17
+ // ========================================================================
18
+
19
+
20
+ // Variables
21
+ // ========================================================================
22
+
23
+ $breadcrumb-font-size: 1rem !default;
24
+
25
+ $breadcrumb-divider: "/" !default;
26
+ $breadcrumb-divider-margin: 8px !default;
27
+ $breadcrumb-disabled-color: #999 !default;
28
+
29
+
30
+ /* ========================================================================
31
+ Component: Breadcrumb
32
+ ========================================================================== */
33
+
34
+ /*
35
+ * 1. Remove default list style
36
+ * 2. Remove whitespace between child elements when using `inline-block`
37
+ */
38
+
39
+ .uk-breadcrumb {
40
+ /* 1 */
41
+ padding: 0;
42
+ list-style: none;
43
+ /* 2 */
44
+ font-size: 0.001px;
45
+ @include hook-breadcrumb();
46
+ }
47
+
48
+
49
+ /* Items
50
+ ========================================================================== */
51
+
52
+ /*
53
+ * Reset whitespace hack
54
+ */
55
+
56
+ .uk-breadcrumb > li {
57
+ font-size: $breadcrumb-font-size;
58
+ vertical-align: top;
59
+ }
60
+
61
+ .uk-breadcrumb > li,
62
+ .uk-breadcrumb > li > a,
63
+ .uk-breadcrumb > li > span { display: inline-block; }
64
+
65
+ .uk-breadcrumb > li:nth-child(n+2):before {
66
+ content: $breadcrumb-divider;
67
+ display: inline-block;
68
+ margin: 0 $breadcrumb-divider-margin;
69
+ @include hook-breadcrumb-divider();
70
+ }
71
+
72
+ /*
73
+ * Disabled
74
+ */
75
+
76
+ .uk-breadcrumb > li:not(.uk-active) > span { color: $breadcrumb-disabled-color; }
77
+
78
+
79
+ // Hooks
80
+ // ========================================================================
81
+
82
+ @include hook-breadcrumb-misc();
83
+
84
+ // @mixin hook-breadcrumb(){}
85
+ // @mixin hook-breadcrumb-divider(){}
86
+ // @mixin hook-breadcrumb-misc(){}
@@ -0,0 +1,406 @@
1
+ // Name: Button
2
+ // Description: Defines styles for buttons
3
+ //
4
+ // Component: `uk-button`
5
+ //
6
+ // Sub-objects: `uk-button-group`
7
+ // `uk-button-dropdown`
8
+ //
9
+ // Modifiers: `uk-button-primary`
10
+ // `uk-button-success`
11
+ // `uk-button-danger`
12
+ // `uk-button-link`
13
+ // `uk-button-mini`
14
+ // `uk-button-small`
15
+ // `uk-button-large`
16
+ //
17
+ // States: `uk-active`
18
+ //
19
+ // Markup:
20
+ //
21
+ // <!-- uk-button-group -->
22
+ // <div class="uk-button-group">
23
+ // <button class="uk-button"></button>
24
+ // <button class="uk-button"></button>
25
+ // </div>
26
+ //
27
+ // <!-- uk-button-dropdown -->
28
+ // <div class="uk-button-dropdown" data-uk-dropdown>
29
+ // <button class="uk-button"></button>
30
+ // <div class="uk-dropdown uk-dropdown-small">
31
+ // <ul class="uk-nav uk-nav-dropdown">
32
+ // <li><a href=""></a></li>
33
+ // </ul>
34
+ // </div>
35
+ // </div>
36
+ //
37
+ // ========================================================================
38
+
39
+
40
+ // Variables
41
+ // ========================================================================
42
+
43
+ $button-height: 30px !default;
44
+ $button-mini-height: 20px !default;
45
+ $button-small-height: 25px !default;
46
+ $button-large-height: 40px !default;
47
+
48
+ $button-line-height: 30px !default;
49
+ $button-mini-line-height: 20px !default;
50
+ $button-small-line-height: 25px !default;
51
+ $button-large-line-height: 40px !default;
52
+
53
+ $button-mini-font-size: 11px !default;
54
+ $button-small-font-size: 12px !default;
55
+ $button-large-font-size: 16px !default;
56
+
57
+ $button-padding-horizontal: 12px !default;
58
+ $button-mini-padding-horizontal: 6px !default;
59
+ $button-small-padding-horizontal: 10px !default;
60
+ $button-large-padding-horizontal: 15px !default;
61
+
62
+ $button-font-size: 1rem !default;
63
+ $button-background: #eee !default;
64
+ $button-color: #444 !default;
65
+ $button-hover-background: #f5f5f5 !default;
66
+ $button-hover-color: #444 !default;
67
+ $button-active-background: #ddd !default;
68
+ $button-active-color: #444 !default;
69
+
70
+ $button-primary-background: #00a8e6 !default;
71
+ $button-primary-color: #fff !default;
72
+ $button-primary-hover-background: #35b3ee !default;
73
+ $button-primary-hover-color: #fff !default;
74
+ $button-primary-active-background: #0091ca !default;
75
+ $button-primary-active-color: #fff !default;
76
+
77
+ $button-success-background: #8cc14c !default;
78
+ $button-success-color: #fff !default;
79
+ $button-success-hover-background: #8ec73b !default;
80
+ $button-success-hover-color: #fff !default;
81
+ $button-success-active-background: #72ae41 !default;
82
+ $button-success-active-color: #fff !default;
83
+
84
+ $button-danger-background: #da314b !default;
85
+ $button-danger-color: #fff !default;
86
+ $button-danger-hover-background: #e4354f !default;
87
+ $button-danger-hover-color: #fff !default;
88
+ $button-danger-active-background: #c91032 !default;
89
+ $button-danger-active-color: #fff !default;
90
+
91
+ $button-disabled-background: #f5f5f5 !default;
92
+ $button-disabled-color: #999 !default;
93
+
94
+ $button-link-color: #07D !default;
95
+ $button-link-hover-color: #059 !default;
96
+ $button-link-hover-text-decoration: underline !default;
97
+ $button-link-disabled-color: #999 !default;
98
+
99
+
100
+ /* ========================================================================
101
+ Component: Button
102
+ ========================================================================== */
103
+
104
+ /*
105
+ * Removes inner padding and border in Firefox 4+.
106
+ */
107
+
108
+ .uk-button::-moz-focus-inner {
109
+ border: 0;
110
+ padding: 0;
111
+ }
112
+
113
+ /*
114
+ * 1. Correct inability to style clickable `input` types in iOS.
115
+ * 2. Remove margins in Chrome, Safari and Opera.
116
+ * 3. Remove borders for `button`.
117
+ * 4. Address `overflow` set to `hidden` in IE 8/9/10/11.
118
+ * 5. Correct `font` properties and `color` not being inherited for `button`.
119
+ * 6. Address inconsistent `text-transform` inheritance which is only inherit in Firefox and IE
120
+ * 7. Style
121
+ * 8. `line-height` is used to create a height
122
+ * 9. `min-height` is necessary for `input` elements in Firefox and Opera because `line-height` is not working.
123
+ * 10. Reset button group whitespace hack
124
+ * 11. Required for `a`.
125
+ */
126
+
127
+ .uk-button {
128
+ /* 1 */
129
+ -webkit-appearance: none;
130
+ /* 2 */
131
+ margin: 0;
132
+ /* 3 */
133
+ border: none;
134
+ /* 4 */
135
+ overflow: visible;
136
+ /* 5 */
137
+ font: inherit;
138
+ color: $button-color;
139
+ /* 6 */
140
+ text-transform: none;
141
+ /* 7 */
142
+ display: inline-block;
143
+ box-sizing: border-box;
144
+ padding: 0 $button-padding-horizontal;
145
+ background: $button-background;
146
+ vertical-align: middle;
147
+ /* 8 */
148
+ line-height: $button-line-height;
149
+ /* 9 */
150
+ min-height: $button-height;
151
+ /* 10 */
152
+ font-size: $button-font-size;
153
+ /* 11 */
154
+ text-decoration: none;
155
+ text-align: center;
156
+ @include hook-button();
157
+ }
158
+
159
+ .uk-button:not(:disabled) { cursor: pointer; }
160
+
161
+ /*
162
+ * Hover
163
+ * 1. Apply hover style also to focus state
164
+ * 2. Remove default focus style
165
+ * 3. Required for `a` elements
166
+ */
167
+
168
+ .uk-button:hover,
169
+ .uk-button:focus { // 1
170
+ background-color: $button-hover-background;
171
+ color: $button-hover-color;
172
+ /* 2 */
173
+ outline: none;
174
+ /* 3 */
175
+ text-decoration: none;
176
+ @include hook-button-hover();
177
+ }
178
+
179
+ /* Active */
180
+ .uk-button:active,
181
+ .uk-button.uk-active {
182
+ background-color: $button-active-background;
183
+ color: $button-active-color;
184
+ @include hook-button-active();
185
+ }
186
+
187
+
188
+ /* Color modifiers
189
+ ========================================================================== */
190
+
191
+ /*
192
+ * Modifier: `uk-button-primary`
193
+ */
194
+
195
+ .uk-button-primary {
196
+ background-color: $button-primary-background;
197
+ color: $button-primary-color;
198
+ @include hook-button-primary();
199
+ }
200
+
201
+ /* Hover */
202
+ .uk-button-primary:hover,
203
+ .uk-button-primary:focus {
204
+ background-color: $button-primary-hover-background;
205
+ color: $button-primary-hover-color;
206
+ @include hook-button-primary-hover();
207
+ }
208
+
209
+ /* Active */
210
+ .uk-button-primary:active,
211
+ .uk-button-primary.uk-active {
212
+ background-color: $button-primary-active-background;
213
+ color: $button-primary-active-color;
214
+ @include hook-button-primary-active();
215
+ }
216
+
217
+ /*
218
+ * Modifier: `uk-button-success`
219
+ */
220
+
221
+ .uk-button-success {
222
+ background-color: $button-success-background;
223
+ color: $button-success-color;
224
+ @include hook-button-success();
225
+ }
226
+
227
+ /* Hover */
228
+ .uk-button-success:hover,
229
+ .uk-button-success:focus {
230
+ background-color: $button-success-hover-background;
231
+ color: $button-success-hover-color;
232
+ @include hook-button-success-hover();
233
+ }
234
+
235
+ /* Active */
236
+ .uk-button-success:active,
237
+ .uk-button-success.uk-active {
238
+ background-color: $button-success-active-background;
239
+ color: $button-success-active-color;
240
+ @include hook-button-success-active();
241
+ }
242
+
243
+ /*
244
+ * Modifier: `uk-button-danger`
245
+ */
246
+
247
+ .uk-button-danger {
248
+ background-color: $button-danger-background;
249
+ color: $button-danger-color;
250
+ @include hook-button-danger();
251
+ }
252
+
253
+ /* Hover */
254
+ .uk-button-danger:hover,
255
+ .uk-button-danger:focus {
256
+ background-color: $button-danger-hover-background;
257
+ color: $button-danger-hover-color;
258
+ @include hook-button-danger-hover();
259
+ }
260
+
261
+ /* Active */
262
+ .uk-button-danger:active,
263
+ .uk-button-danger.uk-active {
264
+ background-color: $button-danger-active-background;
265
+ color: $button-danger-active-color;
266
+ @include hook-button-danger-active();
267
+ }
268
+
269
+
270
+ /* Disabled state
271
+ * Overrides also the color modifiers
272
+ ========================================================================== */
273
+
274
+ /* Equal for all button types */
275
+ .uk-button:disabled {
276
+ background-color: $button-disabled-background;
277
+ color: $button-disabled-color;
278
+ @include hook-button-disable();
279
+ }
280
+
281
+
282
+ /* Modifier: `uk-button-link`
283
+ ========================================================================== */
284
+
285
+ /* Reset */
286
+ .uk-button-link,
287
+ .uk-button-link:hover,
288
+ .uk-button-link:focus,
289
+ .uk-button-link:active,
290
+ .uk-button-link.uk-active,
291
+ .uk-button-link:disabled {
292
+ border-color: transparent;
293
+ background: none;
294
+ @include hook-button-link();
295
+ }
296
+
297
+ /* Color */
298
+ .uk-button-link { color: $button-link-color; }
299
+
300
+ .uk-button-link:hover,
301
+ .uk-button-link:focus,
302
+ .uk-button-link:active,
303
+ .uk-button-link.uk-active {
304
+ color: $button-link-hover-color;
305
+ text-decoration: $button-link-hover-text-decoration;
306
+ }
307
+
308
+ .uk-button-link:disabled { color: $button-link-disabled-color; }
309
+
310
+ /* Focus */
311
+ .uk-button-link:focus { outline: 1px dotted; }
312
+
313
+
314
+ /* Size modifiers
315
+ ========================================================================== */
316
+
317
+ .uk-button-mini {
318
+ min-height: $button-mini-height;
319
+ padding: 0 $button-mini-padding-horizontal;
320
+ line-height: $button-mini-line-height;
321
+ font-size: $button-mini-font-size;
322
+ }
323
+
324
+ .uk-button-small {
325
+ min-height: $button-small-height;
326
+ padding: 0 $button-small-padding-horizontal;
327
+ line-height: $button-small-line-height;
328
+ font-size: $button-small-font-size;
329
+ }
330
+
331
+ .uk-button-large {
332
+ min-height: $button-large-height;
333
+ padding: 0 $button-large-padding-horizontal;
334
+ line-height: $button-large-line-height;
335
+ font-size: $button-large-font-size;
336
+ @include hook-button-large();
337
+ }
338
+
339
+
340
+ /* Sub-object `uk-button-group`
341
+ ========================================================================== */
342
+
343
+ /*
344
+ * 1. Behave like buttons
345
+ * 2. Create position context for dropdowns
346
+ * 3. Remove whitespace between child elements when using `inline-block`
347
+ * 4. Prevent buttons from wrapping
348
+ * 5. Remove whitespace between child elements when using `inline-block`
349
+ */
350
+
351
+ .uk-button-group {
352
+ /* 1 */
353
+ display: inline-block;
354
+ vertical-align: middle;
355
+ /* 2 */
356
+ position: relative;
357
+ /* 3 */
358
+ font-size: 0.001px;
359
+ /* 4 */
360
+ white-space: nowrap;
361
+ }
362
+
363
+ .uk-button-group > * { display: inline-block; }
364
+
365
+ /* 5 */
366
+ .uk-button-group .uk-button { vertical-align: top; }
367
+
368
+
369
+ /* Sub-object: `uk-button-dropdown`
370
+ ========================================================================== */
371
+
372
+ /*
373
+ * 1. Behave like buttons
374
+ * 2. Create position context for dropdowns
375
+ */
376
+
377
+ .uk-button-dropdown {
378
+ /* 1 */
379
+ display: inline-block;
380
+ vertical-align: middle;
381
+ /* 2 */
382
+ position: relative;
383
+ }
384
+
385
+
386
+ // Hooks
387
+ // ========================================================================
388
+
389
+ @include hook-button-misc();
390
+
391
+ // @mixin hook-button(){}
392
+ // @mixin hook-button-hover(){}
393
+ // @mixin hook-button-active(){}
394
+ // @mixin hook-button-primary(){}
395
+ // @mixin hook-button-primary-hover(){}
396
+ // @mixin hook-button-primary-active(){}
397
+ // @mixin hook-button-success(){}
398
+ // @mixin hook-button-success-hover(){}
399
+ // @mixin hook-button-success-active(){}
400
+ // @mixin hook-button-danger(){}
401
+ // @mixin hook-button-danger-hover(){}
402
+ // @mixin hook-button-danger-active(){}
403
+ // @mixin hook-button-disable(){}
404
+ // @mixin hook-button-link(){}
405
+ // @mixin hook-button-large(){}
406
+ // @mixin hook-button-misc(){}