uikit3-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +5 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +41 -0
  7. data/Rakefile +10 -0
  8. data/assets/images/backgrounds/accordion-close.svg +4 -0
  9. data/assets/images/backgrounds/accordion-open.svg +3 -0
  10. data/assets/images/backgrounds/divider-icon.svg +3 -0
  11. data/assets/images/backgrounds/form-checkbox-indeterminate.svg +3 -0
  12. data/assets/images/backgrounds/form-checkbox.svg +3 -0
  13. data/assets/images/backgrounds/form-radio.svg +3 -0
  14. data/assets/images/backgrounds/form-select.svg +4 -0
  15. data/assets/images/backgrounds/list-bullet.svg +3 -0
  16. data/assets/images/backgrounds/nav-parent-close.svg +3 -0
  17. data/assets/images/backgrounds/nav-parent-open.svg +3 -0
  18. data/assets/images/components/close-large.svg +4 -0
  19. data/assets/images/components/close.svg +4 -0
  20. data/assets/images/components/navbar-toggle.svg +5 -0
  21. data/assets/images/components/overlay.svg +4 -0
  22. data/assets/images/components/pagination-next.svg +3 -0
  23. data/assets/images/components/pagination-previous.svg +3 -0
  24. data/assets/images/components/search-default.svg +4 -0
  25. data/assets/images/components/search-large.svg +4 -0
  26. data/assets/images/components/search-navbar.svg +4 -0
  27. data/assets/images/components/slidenav-large-next.svg +3 -0
  28. data/assets/images/components/slidenav-large-previous.svg +3 -0
  29. data/assets/images/components/slidenav-next.svg +3 -0
  30. data/assets/images/components/slidenav-previous.svg +3 -0
  31. data/assets/images/components/spinner.svg +3 -0
  32. data/assets/images/components/totop.svg +3 -0
  33. data/assets/images/symbols/album.svg +5 -0
  34. data/assets/images/symbols/arrow-down.svg +4 -0
  35. data/assets/images/symbols/arrow-left.svg +4 -0
  36. data/assets/images/symbols/arrow-right.svg +4 -0
  37. data/assets/images/symbols/arrow-up.svg +4 -0
  38. data/assets/images/symbols/ban.svg +4 -0
  39. data/assets/images/symbols/behance.svg +5 -0
  40. data/assets/images/symbols/bell.svg +4 -0
  41. data/assets/images/symbols/bold.svg +3 -0
  42. data/assets/images/symbols/bolt.svg +3 -0
  43. data/assets/images/symbols/bookmark.svg +3 -0
  44. data/assets/images/symbols/calendar.svg +5 -0
  45. data/assets/images/symbols/camera.svg +4 -0
  46. data/assets/images/symbols/cart.svg +5 -0
  47. data/assets/images/symbols/check.svg +3 -0
  48. data/assets/images/symbols/chevron-down.svg +3 -0
  49. data/assets/images/symbols/chevron-left.svg +3 -0
  50. data/assets/images/symbols/chevron-right.svg +3 -0
  51. data/assets/images/symbols/chevron-up.svg +3 -0
  52. data/assets/images/symbols/clock.svg +5 -0
  53. data/assets/images/symbols/close.svg +4 -0
  54. data/assets/images/symbols/cloud-download.svg +5 -0
  55. data/assets/images/symbols/cloud-upload.svg +5 -0
  56. data/assets/images/symbols/code.svg +4 -0
  57. data/assets/images/symbols/cog.svg +4 -0
  58. data/assets/images/symbols/comment.svg +3 -0
  59. data/assets/images/symbols/commenting.svg +6 -0
  60. data/assets/images/symbols/comments.svg +4 -0
  61. data/assets/images/symbols/copy.svg +4 -0
  62. data/assets/images/symbols/credit-card.svg +4 -0
  63. data/assets/images/symbols/database.svg +6 -0
  64. data/assets/images/symbols/desktop.svg +6 -0
  65. data/assets/images/symbols/download.svg +5 -0
  66. data/assets/images/symbols/dribbble.svg +6 -0
  67. data/assets/images/symbols/expand.svg +6 -0
  68. data/assets/images/symbols/facebook.svg +3 -0
  69. data/assets/images/symbols/file-edit.svg +4 -0
  70. data/assets/images/symbols/file.svg +3 -0
  71. data/assets/images/symbols/flickr.svg +4 -0
  72. data/assets/images/symbols/folder.svg +3 -0
  73. data/assets/images/symbols/forward.svg +3 -0
  74. data/assets/images/symbols/foursquare.svg +3 -0
  75. data/assets/images/symbols/future.svg +6 -0
  76. data/assets/images/symbols/git-branch.svg +6 -0
  77. data/assets/images/symbols/git-fork.svg +6 -0
  78. data/assets/images/symbols/github-alt.svg +3 -0
  79. data/assets/images/symbols/github.svg +3 -0
  80. data/assets/images/symbols/google-plus.svg +4 -0
  81. data/assets/images/symbols/google.svg +3 -0
  82. data/assets/images/symbols/grid.svg +11 -0
  83. data/assets/images/symbols/happy.svg +6 -0
  84. data/assets/images/symbols/hashtag.svg +3 -0
  85. data/assets/images/symbols/heart.svg +3 -0
  86. data/assets/images/symbols/history.svg +6 -0
  87. data/assets/images/symbols/home.svg +5 -0
  88. data/assets/images/symbols/image.svg +6 -0
  89. data/assets/images/symbols/info.svg +4 -0
  90. data/assets/images/symbols/instagram.svg +5 -0
  91. data/assets/images/symbols/italic.svg +3 -0
  92. data/assets/images/symbols/joomla.svg +6 -0
  93. data/assets/images/symbols/laptop.svg +4 -0
  94. data/assets/images/symbols/lifesaver.svg +3 -0
  95. data/assets/images/symbols/link.svg +5 -0
  96. data/assets/images/symbols/linkedin.svg +4 -0
  97. data/assets/images/symbols/list.svg +8 -0
  98. data/assets/images/symbols/location.svg +4 -0
  99. data/assets/images/symbols/lock.svg +4 -0
  100. data/assets/images/symbols/mail.svg +4 -0
  101. data/assets/images/symbols/menu.svg +5 -0
  102. data/assets/images/symbols/minus-circle.svg +4 -0
  103. data/assets/images/symbols/minus.svg +3 -0
  104. data/assets/images/symbols/more-vertical.svg +5 -0
  105. data/assets/images/symbols/more.svg +5 -0
  106. data/assets/images/symbols/move.svg +8 -0
  107. data/assets/images/symbols/nut.svg +4 -0
  108. data/assets/images/symbols/pagekit.svg +3 -0
  109. data/assets/images/symbols/paint-bucket.svg +5 -0
  110. data/assets/images/symbols/pencil.svg +4 -0
  111. data/assets/images/symbols/phone-landscape.svg +4 -0
  112. data/assets/images/symbols/phone-receiver.svg +3 -0
  113. data/assets/images/symbols/phone.svg +4 -0
  114. data/assets/images/symbols/pinterest.svg +3 -0
  115. data/assets/images/symbols/play-circle.svg +4 -0
  116. data/assets/images/symbols/play.svg +3 -0
  117. data/assets/images/symbols/plus-circle.svg +5 -0
  118. data/assets/images/symbols/plus.svg +4 -0
  119. data/assets/images/symbols/pull.svg +5 -0
  120. data/assets/images/symbols/push.svg +5 -0
  121. data/assets/images/symbols/question.svg +5 -0
  122. data/assets/images/symbols/quote-right.svg +4 -0
  123. data/assets/images/symbols/refresh.svg +4 -0
  124. data/assets/images/symbols/reply.svg +3 -0
  125. data/assets/images/symbols/rss.svg +5 -0
  126. data/assets/images/symbols/search.svg +4 -0
  127. data/assets/images/symbols/server.svg +15 -0
  128. data/assets/images/symbols/settings.svg +11 -0
  129. data/assets/images/symbols/shrink.svg +6 -0
  130. data/assets/images/symbols/sign-in.svg +4 -0
  131. data/assets/images/symbols/sign-out.svg +4 -0
  132. data/assets/images/symbols/social.svg +7 -0
  133. data/assets/images/symbols/soundcloud.svg +6 -0
  134. data/assets/images/symbols/star.svg +3 -0
  135. data/assets/images/symbols/strikethrough.svg +4 -0
  136. data/assets/images/symbols/table.svg +6 -0
  137. data/assets/images/symbols/tablet-landscape.svg +4 -0
  138. data/assets/images/symbols/tablet.svg +4 -0
  139. data/assets/images/symbols/tag.svg +4 -0
  140. data/assets/images/symbols/thumbnails.svg +6 -0
  141. data/assets/images/symbols/trash.svg +7 -0
  142. data/assets/images/symbols/triangle-down.svg +3 -0
  143. data/assets/images/symbols/triangle-left.svg +3 -0
  144. data/assets/images/symbols/triangle-right.svg +3 -0
  145. data/assets/images/symbols/triangle-up.svg +3 -0
  146. data/assets/images/symbols/tumblr.svg +3 -0
  147. data/assets/images/symbols/tv.svg +4 -0
  148. data/assets/images/symbols/twitter.svg +3 -0
  149. data/assets/images/symbols/uikit.svg +4 -0
  150. data/assets/images/symbols/unlock.svg +4 -0
  151. data/assets/images/symbols/upload.svg +5 -0
  152. data/assets/images/symbols/user.svg +4 -0
  153. data/assets/images/symbols/users.svg +5 -0
  154. data/assets/images/symbols/video-camera.svg +4 -0
  155. data/assets/images/symbols/vimeo.svg +3 -0
  156. data/assets/images/symbols/warning.svg +5 -0
  157. data/assets/images/symbols/whatsapp.svg +3 -0
  158. data/assets/images/symbols/wordpress.svg +3 -0
  159. data/assets/images/symbols/world.svg +7 -0
  160. data/assets/images/symbols/xing.svg +4 -0
  161. data/assets/images/symbols/youtube.svg +3 -0
  162. data/assets/javascripts/uikit.js +6398 -0
  163. data/assets/stylesheets/components/_import.components.less +55 -0
  164. data/assets/stylesheets/components/_import.utilities.less +19 -0
  165. data/assets/stylesheets/components/accordion.less +110 -0
  166. data/assets/stylesheets/components/alert.less +147 -0
  167. data/assets/stylesheets/components/align.less +142 -0
  168. data/assets/stylesheets/components/animation.less +638 -0
  169. data/assets/stylesheets/components/article.less +113 -0
  170. data/assets/stylesheets/components/background.less +136 -0
  171. data/assets/stylesheets/components/badge.less +104 -0
  172. data/assets/stylesheets/components/base.less +737 -0
  173. data/assets/stylesheets/components/breadcrumb.less +150 -0
  174. data/assets/stylesheets/components/button.less +541 -0
  175. data/assets/stylesheets/components/card.less +363 -0
  176. data/assets/stylesheets/components/close.less +119 -0
  177. data/assets/stylesheets/components/column.less +285 -0
  178. data/assets/stylesheets/components/comment.less +171 -0
  179. data/assets/stylesheets/components/container.less +106 -0
  180. data/assets/stylesheets/components/cover.less +56 -0
  181. data/assets/stylesheets/components/description-list.less +71 -0
  182. data/assets/stylesheets/components/divider.less +147 -0
  183. data/assets/stylesheets/components/dotnav.less +190 -0
  184. data/assets/stylesheets/components/drop.less +74 -0
  185. data/assets/stylesheets/components/dropdown.less +150 -0
  186. data/assets/stylesheets/components/flex.less +335 -0
  187. data/assets/stylesheets/components/form.less +836 -0
  188. data/assets/stylesheets/components/grid.less +363 -0
  189. data/assets/stylesheets/components/heading.less +238 -0
  190. data/assets/stylesheets/components/icon.less +242 -0
  191. data/assets/stylesheets/components/iconnav.less +166 -0
  192. data/assets/stylesheets/components/inverse.less +52 -0
  193. data/assets/stylesheets/components/label.less +110 -0
  194. data/assets/stylesheets/components/link.less +91 -0
  195. data/assets/stylesheets/components/list.less +205 -0
  196. data/assets/stylesheets/components/margin.less +161 -0
  197. data/assets/stylesheets/components/mixin.less +20 -0
  198. data/assets/stylesheets/components/modal.less +403 -0
  199. data/assets/stylesheets/components/nav.less +438 -0
  200. data/assets/stylesheets/components/navbar.less +596 -0
  201. data/assets/stylesheets/components/notification.less +190 -0
  202. data/assets/stylesheets/components/offcanvas.less +250 -0
  203. data/assets/stylesheets/components/overlay.less +89 -0
  204. data/assets/stylesheets/components/padding.less +79 -0
  205. data/assets/stylesheets/components/pagination.less +169 -0
  206. data/assets/stylesheets/components/placeholder.less +45 -0
  207. data/assets/stylesheets/components/position.less +221 -0
  208. data/assets/stylesheets/components/print.less +61 -0
  209. data/assets/stylesheets/components/progress.less +102 -0
  210. data/assets/stylesheets/components/search.less +442 -0
  211. data/assets/stylesheets/components/section.less +230 -0
  212. data/assets/stylesheets/components/slidenav.less +145 -0
  213. data/assets/stylesheets/components/sortable.less +101 -0
  214. data/assets/stylesheets/components/spinner.less +103 -0
  215. data/assets/stylesheets/components/sticky.less +57 -0
  216. data/assets/stylesheets/components/subnav.less +305 -0
  217. data/assets/stylesheets/components/switcher.less +47 -0
  218. data/assets/stylesheets/components/tab.less +226 -0
  219. data/assets/stylesheets/components/table.less +207 -0
  220. data/assets/stylesheets/components/text.less +254 -0
  221. data/assets/stylesheets/components/tooltip.less +84 -0
  222. data/assets/stylesheets/components/totop.less +97 -0
  223. data/assets/stylesheets/components/transition.less +187 -0
  224. data/assets/stylesheets/components/utility.less +516 -0
  225. data/assets/stylesheets/components/variables.less +117 -0
  226. data/assets/stylesheets/components/visibility.less +109 -0
  227. data/assets/stylesheets/components/width.less +418 -0
  228. data/assets/stylesheets/theme/_import.less +72 -0
  229. data/assets/stylesheets/theme/accordion.less +76 -0
  230. data/assets/stylesheets/theme/alert.less +76 -0
  231. data/assets/stylesheets/theme/align.less +14 -0
  232. data/assets/stylesheets/theme/animation.less +14 -0
  233. data/assets/stylesheets/theme/article.less +60 -0
  234. data/assets/stylesheets/theme/background.less +14 -0
  235. data/assets/stylesheets/theme/badge.less +29 -0
  236. data/assets/stylesheets/theme/base.less +134 -0
  237. data/assets/stylesheets/theme/breadcrumb.less +42 -0
  238. data/assets/stylesheets/theme/button.less +221 -0
  239. data/assets/stylesheets/theme/card.less +193 -0
  240. data/assets/stylesheets/theme/close.less +34 -0
  241. data/assets/stylesheets/theme/column.less +14 -0
  242. data/assets/stylesheets/theme/comment.less +72 -0
  243. data/assets/stylesheets/theme/container.less +14 -0
  244. data/assets/stylesheets/theme/description-list.less +36 -0
  245. data/assets/stylesheets/theme/divider.less +41 -0
  246. data/assets/stylesheets/theme/dotnav.less +41 -0
  247. data/assets/stylesheets/theme/drop.less +14 -0
  248. data/assets/stylesheets/theme/dropdown.less +45 -0
  249. data/assets/stylesheets/theme/form.less +150 -0
  250. data/assets/stylesheets/theme/grid.less +14 -0
  251. data/assets/stylesheets/theme/heading.less +59 -0
  252. data/assets/stylesheets/theme/icon.less +55 -0
  253. data/assets/stylesheets/theme/iconnav.less +34 -0
  254. data/assets/stylesheets/theme/inverse.less +14 -0
  255. data/assets/stylesheets/theme/label.less +46 -0
  256. data/assets/stylesheets/theme/link.less +35 -0
  257. data/assets/stylesheets/theme/list.less +49 -0
  258. data/assets/stylesheets/theme/margin.less +14 -0
  259. data/assets/stylesheets/theme/modal.less +95 -0
  260. data/assets/stylesheets/theme/nav.less +94 -0
  261. data/assets/stylesheets/theme/navbar.less +175 -0
  262. data/assets/stylesheets/theme/notification.less +44 -0
  263. data/assets/stylesheets/theme/offcanvas.less +26 -0
  264. data/assets/stylesheets/theme/overlay.less +33 -0
  265. data/assets/stylesheets/theme/padding.less +14 -0
  266. data/assets/stylesheets/theme/pagination.less +44 -0
  267. data/assets/stylesheets/theme/placeholder.less +29 -0
  268. data/assets/stylesheets/theme/position.less +14 -0
  269. data/assets/stylesheets/theme/progress.less +27 -0
  270. data/assets/stylesheets/theme/search.less +67 -0
  271. data/assets/stylesheets/theme/section.less +34 -0
  272. data/assets/stylesheets/theme/slidenav.less +49 -0
  273. data/assets/stylesheets/theme/sortable.less +38 -0
  274. data/assets/stylesheets/theme/spinner.less +14 -0
  275. data/assets/stylesheets/theme/sticky.less +14 -0
  276. data/assets/stylesheets/theme/subnav.less +81 -0
  277. data/assets/stylesheets/theme/tab.less +139 -0
  278. data/assets/stylesheets/theme/table.less +65 -0
  279. data/assets/stylesheets/theme/text.less +60 -0
  280. data/assets/stylesheets/theme/tooltip.less +20 -0
  281. data/assets/stylesheets/theme/totop.less +35 -0
  282. data/assets/stylesheets/theme/transition.less +14 -0
  283. data/assets/stylesheets/theme/utility.less +46 -0
  284. data/assets/stylesheets/theme/variables.less +36 -0
  285. data/assets/stylesheets/theme/width.less +14 -0
  286. data/assets/stylesheets/uikit.less +17 -0
  287. data/assets/stylesheets/uikit.theme.less +23 -0
  288. data/bin/console +14 -0
  289. data/bin/setup +8 -0
  290. data/lib/uikit3/rails.rb +8 -0
  291. data/lib/uikit3/rails/version.rb +5 -0
  292. data/uikit3-rails.gemspec +29 -0
  293. metadata +391 -0
@@ -0,0 +1,638 @@
1
+ // Name: Animation
2
+ // Description: Utilities for keyframe animations
3
+ //
4
+ // Component: `uk-animation-*`
5
+ //
6
+ // Modifiers: `uk-animation-reverse`
7
+ // `uk-animation-fast`
8
+ // `uk-animation-fade`
9
+ // `uk-animation-scale-up`
10
+ // `uk-animation-scale-down`
11
+ // `uk-animation-slide-top-*`
12
+ // `uk-animation-slide-bottom-*`
13
+ // `uk-animation-slide-left-*`
14
+ // `uk-animation-slide-right-*`
15
+ // `uk-animation-kenburns`
16
+ // `uk-animation-shake`
17
+ //
18
+ // Sub-objects: `uk-animation-toggle`
19
+ //
20
+ // States: `uk-hover`
21
+ //
22
+ // ========================================================================
23
+
24
+
25
+ // Variables
26
+ // ========================================================================
27
+
28
+ @animation-duration: 0.5s;
29
+ @animation-fade-duration: 0.8s;
30
+ @animation-kenburns-duration: 15s;
31
+ @animation-fast-duration: 0.1s;
32
+
33
+ @animation-slide-small-translate: 10px;
34
+ @animation-slide-medium-translate: 50px;
35
+
36
+
37
+ /* ========================================================================
38
+ Component: Animation
39
+ ========================================================================== */
40
+
41
+ [class*='uk-animation-'] {
42
+ -webkit-animation-duration: @animation-duration;
43
+ animation-duration: @animation-duration;
44
+ -webkit-animation-timing-function: ease-out;
45
+ animation-timing-function: ease-out;
46
+ -webkit-animation-fill-mode: both;
47
+ animation-fill-mode: both;
48
+ }
49
+
50
+
51
+ /* Direction modifier
52
+ ========================================================================== */
53
+
54
+ .uk-animation-reverse {
55
+ -webkit-animation-direction: reverse;
56
+ animation-direction: reverse;
57
+ -webkit-animation-timing-function: ease-in;
58
+ animation-timing-function: ease-in;
59
+ }
60
+
61
+
62
+ /* Animations for scrollspy
63
+ ========================================================================== */
64
+
65
+ /*
66
+ * Fade
67
+ */
68
+
69
+ .uk-animation-fade {
70
+ -webkit-animation-name: uk-fade;
71
+ animation-name: uk-fade;
72
+ -webkit-animation-duration: @animation-fade-duration;
73
+ animation-duration: @animation-fade-duration;
74
+ -webkit-animation-timing-function: linear;
75
+ animation-timing-function: linear;
76
+ }
77
+
78
+ /*
79
+ * Scale
80
+ */
81
+
82
+ .uk-animation-scale-up {
83
+ -webkit-animation-name: uk-fade-scale-02;
84
+ animation-name: uk-fade-scale-02;
85
+ }
86
+
87
+ .uk-animation-scale-down {
88
+ -webkit-animation-name: uk-fade-scale-18;
89
+ animation-name: uk-fade-scale-18;
90
+ }
91
+
92
+ /*
93
+ * Slide
94
+ */
95
+
96
+ .uk-animation-slide-top {
97
+ -webkit-animation-name: uk-fade-top;
98
+ animation-name: uk-fade-top;
99
+ }
100
+
101
+ .uk-animation-slide-bottom {
102
+ -webkit-animation-name: uk-fade-bottom;
103
+ animation-name: uk-fade-bottom;
104
+ }
105
+
106
+ .uk-animation-slide-left {
107
+ -webkit-animation-name: uk-fade-left;
108
+ animation-name: uk-fade-left;
109
+ }
110
+
111
+ .uk-animation-slide-right {
112
+ -webkit-animation-name: uk-fade-right;
113
+ animation-name: uk-fade-right;
114
+ }
115
+
116
+ /*
117
+ * Slide Small
118
+ */
119
+
120
+ .uk-animation-slide-top-small {
121
+ -webkit-animation-name: uk-fade-top-small;
122
+ animation-name: uk-fade-top-small;
123
+ }
124
+
125
+ .uk-animation-slide-bottom-small {
126
+ -webkit-animation-name: uk-fade-bottom-small;
127
+ animation-name: uk-fade-bottom-small;
128
+ }
129
+
130
+ .uk-animation-slide-left-small {
131
+ -webkit-animation-name: uk-fade-left-small;
132
+ animation-name: uk-fade-left-small;
133
+ }
134
+
135
+ .uk-animation-slide-right-small {
136
+ -webkit-animation-name: uk-fade-right-small;
137
+ animation-name: uk-fade-right-small;
138
+ }
139
+
140
+ /*
141
+ * Slide Medium
142
+ */
143
+
144
+ .uk-animation-slide-top-medium {
145
+ -webkit-animation-name: uk-fade-top-medium;
146
+ animation-name: uk-fade-top-medium;
147
+ }
148
+
149
+ .uk-animation-slide-bottom-medium {
150
+ -webkit-animation-name: uk-fade-bottom-medium;
151
+ animation-name: uk-fade-bottom-medium;
152
+ }
153
+
154
+ .uk-animation-slide-left-medium {
155
+ -webkit-animation-name: uk-fade-left-medium;
156
+ animation-name: uk-fade-left-medium;
157
+ }
158
+
159
+ .uk-animation-slide-right-medium {
160
+ -webkit-animation-name: uk-fade-right-medium;
161
+ animation-name: uk-fade-right-medium;
162
+ }
163
+
164
+ /*
165
+ * Kenburns
166
+ */
167
+
168
+ .uk-animation-kenburns {
169
+ -webkit-animation-name: uk-scale-kenburns;
170
+ animation-name: uk-scale-kenburns;
171
+ -webkit-animation-duration: @animation-kenburns-duration;
172
+ animation-duration: @animation-kenburns-duration;
173
+ }
174
+
175
+ /*
176
+ * Shake
177
+ */
178
+
179
+ .uk-animation-shake {
180
+ -webkit-animation-name: uk-shake;
181
+ animation-name: uk-shake;
182
+ }
183
+
184
+
185
+ /* Duration modifier
186
+ ========================================================================== */
187
+
188
+ .uk-animation-fast {
189
+ -webkit-animation-duration: @animation-fast-duration;
190
+ animation-duration: @animation-fast-duration;
191
+ }
192
+
193
+
194
+ /* Enable animation only on hover
195
+ ========================================================================== */
196
+
197
+ /*
198
+ * Note: Firefox and IE needs this because animations are not triggered when switching between display `none` and `block`
199
+ */
200
+
201
+ .uk-animation-toggle:not(:hover):not(.uk-hover) [class*='uk-animation-'] {
202
+ -webkit-animation-name: none;
203
+ animation-name: none;
204
+ }
205
+
206
+
207
+ /* Keyframes used by animation classes
208
+ ========================================================================== */
209
+
210
+ /*
211
+ * Fade
212
+ */
213
+
214
+ @-webkit-keyframes uk-fade {
215
+ 0% { opacity: 0; }
216
+ 100% { opacity: 1; }
217
+ }
218
+
219
+ @keyframes uk-fade {
220
+ 0% { opacity: 0; }
221
+ 100% { opacity: 1; }
222
+ }
223
+
224
+ /*
225
+ * Slide Top
226
+ */
227
+
228
+ @-webkit-keyframes uk-fade-top {
229
+ 0% {
230
+ opacity: 0;
231
+ -webkit-transform: translateY(-100%);
232
+ }
233
+ 100% {
234
+ opacity: 1;
235
+ -webkit-transform: translateY(0);
236
+ }
237
+ }
238
+
239
+ @keyframes uk-fade-top {
240
+ 0% {
241
+ opacity: 0;
242
+ transform: translateY(-100%);
243
+ }
244
+ 100% {
245
+ opacity: 1;
246
+ transform: translateY(0);
247
+ }
248
+ }
249
+
250
+ /*
251
+ * Slide Bottom
252
+ */
253
+
254
+ @-webkit-keyframes uk-fade-bottom {
255
+ 0% {
256
+ opacity: 0;
257
+ -webkit-transform: translateY(100%);
258
+ }
259
+ 100% {
260
+ opacity: 1;
261
+ -webkit-transform: translateY(0);
262
+ }
263
+ }
264
+
265
+ @keyframes uk-fade-bottom {
266
+ 0% {
267
+ opacity: 0;
268
+ transform: translateY(100%);
269
+ }
270
+ 100% {
271
+ opacity: 1;
272
+ transform: translateY(0);
273
+ }
274
+ }
275
+
276
+ /*
277
+ * Slide Left
278
+ */
279
+
280
+ @-webkit-keyframes uk-fade-left {
281
+ 0% {
282
+ opacity: 0;
283
+ -webkit-transform: translateX(-100%);
284
+ }
285
+ 100% {
286
+ opacity: 1;
287
+ -webkit-transform: translateX(0);
288
+ }
289
+ }
290
+
291
+ @keyframes uk-fade-left {
292
+ 0% {
293
+ opacity: 0;
294
+ transform: translateX(-100%);
295
+ }
296
+ 100% {
297
+ opacity: 1;
298
+ transform: translateX(0);
299
+ }
300
+ }
301
+
302
+ /*
303
+ * Slide Right
304
+ */
305
+
306
+ @-webkit-keyframes uk-fade-right {
307
+ 0% {
308
+ opacity: 0;
309
+ -webkit-transform: translateX(100%);
310
+ }
311
+ 100% {
312
+ opacity: 1;
313
+ -webkit-transform: translateX(0);
314
+ }
315
+ }
316
+
317
+ @keyframes uk-fade-right {
318
+ 0% {
319
+ opacity: 0;
320
+ transform: translateX(100%);
321
+ }
322
+ 100% {
323
+ opacity: 1;
324
+ transform: translateX(0);
325
+ }
326
+ }
327
+
328
+ /*
329
+ * Slide Top Small
330
+ */
331
+
332
+ @-webkit-keyframes uk-fade-top-small {
333
+ 0% {
334
+ opacity: 0;
335
+ -webkit-transform: translateY(-@animation-slide-small-translate);
336
+ }
337
+ 100% {
338
+ opacity: 1;
339
+ -webkit-transform: translateY(0);
340
+ }
341
+ }
342
+
343
+ @keyframes uk-fade-top-small {
344
+ 0% {
345
+ opacity: 0;
346
+ transform: translateY(-@animation-slide-small-translate);
347
+ }
348
+ 100% {
349
+ opacity: 1;
350
+ transform: translateY(0);
351
+ }
352
+ }
353
+
354
+ /*
355
+ * Slide Bottom Small
356
+ */
357
+
358
+ @-webkit-keyframes uk-fade-bottom-small {
359
+ 0% {
360
+ opacity: 0;
361
+ -webkit-transform: translateY(@animation-slide-small-translate);
362
+ }
363
+ 100% {
364
+ opacity: 1;
365
+ -webkit-transform: translateY(0);
366
+ }
367
+ }
368
+
369
+ @keyframes uk-fade-bottom-small {
370
+ 0% {
371
+ opacity: 0;
372
+ transform: translateY(@animation-slide-small-translate);
373
+ }
374
+ 100% {
375
+ opacity: 1;
376
+ transform: translateY(0);
377
+ }
378
+ }
379
+
380
+ /*
381
+ * Slide Left Small
382
+ */
383
+
384
+ @-webkit-keyframes uk-fade-left-small {
385
+ 0% {
386
+ opacity: 0;
387
+ -webkit-transform: translateX(-@animation-slide-small-translate);
388
+ }
389
+ 100% {
390
+ opacity: 1;
391
+ -webkit-transform: translateX(0);
392
+ }
393
+ }
394
+
395
+ @keyframes uk-fade-left-small {
396
+ 0% {
397
+ opacity: 0;
398
+ transform: translateX(-@animation-slide-small-translate);
399
+ }
400
+ 100% {
401
+ opacity: 1;
402
+ transform: translateX(0);
403
+ }
404
+ }
405
+
406
+ /*
407
+ * Slide Right Small
408
+ */
409
+
410
+ @-webkit-keyframes uk-fade-right-small {
411
+ 0% {
412
+ opacity: 0;
413
+ -webkit-transform: translateX(@animation-slide-small-translate);
414
+ }
415
+ 100% {
416
+ opacity: 1;
417
+ -webkit-transform: translateX(0);
418
+ }
419
+ }
420
+
421
+ @keyframes uk-fade-right-small {
422
+ 0% {
423
+ opacity: 0;
424
+ transform: translateX(@animation-slide-small-translate);
425
+ }
426
+ 100% {
427
+ opacity: 1;
428
+ transform: translateX(0);
429
+ }
430
+ }
431
+
432
+ /*
433
+ * Slide Top Medium
434
+ */
435
+
436
+ @-webkit-keyframes uk-fade-top-medium {
437
+ 0% {
438
+ opacity: 0;
439
+ -webkit-transform: translateY(-@animation-slide-medium-translate);
440
+ }
441
+ 100% {
442
+ opacity: 1;
443
+ -webkit-transform: translateY(0);
444
+ }
445
+ }
446
+
447
+ @keyframes uk-fade-top-medium {
448
+ 0% {
449
+ opacity: 0;
450
+ transform: translateY(-@animation-slide-medium-translate);
451
+ }
452
+ 100% {
453
+ opacity: 1;
454
+ transform: translateY(0);
455
+ }
456
+ }
457
+
458
+ /*
459
+ * Slide Bottom Medium
460
+ */
461
+
462
+ @-webkit-keyframes uk-fade-bottom-medium {
463
+ 0% {
464
+ opacity: 0;
465
+ -webkit-transform: translateY(@animation-slide-medium-translate);
466
+ }
467
+ 100% {
468
+ opacity: 1;
469
+ -webkit-transform: translateY(0);
470
+ }
471
+ }
472
+
473
+ @keyframes uk-fade-bottom-medium {
474
+ 0% {
475
+ opacity: 0;
476
+ transform: translateY(@animation-slide-medium-translate);
477
+ }
478
+ 100% {
479
+ opacity: 1;
480
+ transform: translateY(0);
481
+ }
482
+ }
483
+
484
+ /*
485
+ * Slide Left Medium
486
+ */
487
+
488
+ @-webkit-keyframes uk-fade-left-medium {
489
+ 0% {
490
+ opacity: 0;
491
+ -webkit-transform: translateX(-@animation-slide-medium-translate);
492
+ }
493
+ 100% {
494
+ opacity: 1;
495
+ -webkit-transform: translateX(0);
496
+ }
497
+ }
498
+
499
+ @keyframes uk-fade-left-medium {
500
+ 0% {
501
+ opacity: 0;
502
+ transform: translateX(-@animation-slide-medium-translate);
503
+ }
504
+ 100% {
505
+ opacity: 1;
506
+ transform: translateX(0);
507
+ }
508
+ }
509
+
510
+ /*
511
+ * Slide Right Medium
512
+ */
513
+
514
+ @-webkit-keyframes uk-fade-right-medium {
515
+ 0% {
516
+ opacity: 0;
517
+ -webkit-transform: translateX(@animation-slide-medium-translate);
518
+ }
519
+ 100% {
520
+ opacity: 1;
521
+ -webkit-transform: translateX(0);
522
+ }
523
+ }
524
+
525
+ @keyframes uk-fade-right-medium {
526
+ 0% {
527
+ opacity: 0;
528
+ transform: translateX(@animation-slide-medium-translate);
529
+ }
530
+ 100% {
531
+ opacity: 1;
532
+ transform: translateX(0);
533
+ }
534
+ }
535
+
536
+ /*
537
+ * Scale Up
538
+ */
539
+
540
+ @-webkit-keyframes uk-fade-scale-02 {
541
+ 0% {
542
+ opacity: 0;
543
+ -webkit-transform: scale(0.2);
544
+ }
545
+ 100% {
546
+ opacity: 1;
547
+ -webkit-transform: scale(1);
548
+ }
549
+ }
550
+
551
+ @keyframes uk-fade-scale-02 {
552
+ 0% {
553
+ opacity: 0;
554
+ transform: scale(0.2);
555
+ }
556
+ 100% {
557
+ opacity: 1;
558
+ transform: scale(1);
559
+ }
560
+ }
561
+
562
+ /*
563
+ * Scale Down
564
+ */
565
+
566
+ @-webkit-keyframes uk-fade-scale-18 {
567
+ 0% {
568
+ opacity: 0;
569
+ -webkit-transform: scale(1.8);
570
+ }
571
+ 100% {
572
+ opacity: 1;
573
+ -webkit-transform: scale(1);
574
+ }
575
+ }
576
+
577
+ @keyframes uk-fade-scale-18 {
578
+ 0% {
579
+ opacity: 0;
580
+ transform: scale(1.8);
581
+ }
582
+ 100% {
583
+ opacity: 1;
584
+ transform: scale(1);
585
+ }
586
+ }
587
+
588
+ /*
589
+ * Kenburns
590
+ */
591
+
592
+ @-webkit-keyframes uk-scale-kenburns {
593
+ 0% { -webkit-transform: scale(1); }
594
+ 100% { -webkit-transform: scale(1.2); }
595
+ }
596
+
597
+ @keyframes uk-scale-kenburns {
598
+ 0% { transform: scale(1); }
599
+ 100% { transform: scale(1.2); }
600
+ }
601
+
602
+ /*
603
+ * Shake
604
+ */
605
+
606
+ @-webkit-keyframes uk-shake {
607
+ 0%, 100% { -webkit-transform: translateX(0); }
608
+ 10% { -webkit-transform: translateX(-9px); }
609
+ 20% { -webkit-transform: translateX(8px); }
610
+ 30% { -webkit-transform: translateX(-7px); }
611
+ 40% { -webkit-transform: translateX(6px); }
612
+ 50% { -webkit-transform: translateX(-5px); }
613
+ 60% { -webkit-transform: translateX(4px); }
614
+ 70% { -webkit-transform: translateX(-3px); }
615
+ 80% { -webkit-transform: translateX(2px); }
616
+ 90% { -webkit-transform: translateX(-1px); }
617
+ }
618
+
619
+ @keyframes uk-shake {
620
+ 0%, 100% { transform: translateX(0); }
621
+ 10% { transform: translateX(-9px); }
622
+ 20% { transform: translateX(8px); }
623
+ 30% { transform: translateX(-7px); }
624
+ 40% { transform: translateX(6px); }
625
+ 50% { transform: translateX(-5px); }
626
+ 60% { transform: translateX(4px); }
627
+ 70% { transform: translateX(-3px); }
628
+ 80% { transform: translateX(2px); }
629
+ 90% { transform: translateX(-1px); }
630
+ }
631
+
632
+
633
+ // Hooks
634
+ // ========================================================================
635
+
636
+ .hook-animation-misc;
637
+
638
+ .hook-animation-misc() {}