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,254 @@
1
+ // Name: Text
2
+ // Description: Utilities for text
3
+ //
4
+ // Component: `uk-text-*`
5
+ //
6
+ // ========================================================================
7
+
8
+
9
+ // Variables
10
+ // ========================================================================
11
+
12
+ @text-lead-font-size: @global-large-font-size;
13
+ @text-lead-line-height: 1.5;
14
+ @text-lead-color: @global-emphasis-color;
15
+
16
+ @text-meta-font-size: @global-small-font-size;
17
+ @text-meta-line-height: 1.4;
18
+ @text-meta-color: @global-muted-color;
19
+
20
+ @text-small-font-size: @global-small-font-size;
21
+ @text-small-line-height: 1.5;
22
+
23
+ @text-large-font-size: @global-large-font-size;
24
+ @text-large-line-height: 1.5;
25
+
26
+ @text-muted-color: @global-muted-color;
27
+ @text-primary-color: @global-primary-background;
28
+ @text-success-color: @global-success-background;
29
+ @text-warning-color: @global-warning-background;
30
+ @text-danger-color: @global-danger-background;
31
+
32
+
33
+ /* ========================================================================
34
+ Component: Text
35
+ ========================================================================== */
36
+
37
+
38
+ /* Style modifiers
39
+ ========================================================================== */
40
+
41
+ .uk-text-lead {
42
+ font-size: @text-lead-font-size;
43
+ line-height: @text-lead-line-height;
44
+ color: @text-lead-color;
45
+ .hook-text-lead;
46
+ }
47
+
48
+ .uk-text-meta {
49
+ font-size: @text-meta-font-size;
50
+ line-height: @text-meta-line-height;
51
+ color: @text-meta-color;
52
+ .hook-text-meta;
53
+ }
54
+
55
+
56
+ /* Size modifiers
57
+ ========================================================================== */
58
+
59
+ .uk-text-small {
60
+ font-size: @text-small-font-size;
61
+ line-height: @text-small-line-height;
62
+ .hook-text-small;
63
+ }
64
+
65
+ .uk-text-large {
66
+ font-size: @text-large-font-size;
67
+ line-height: @text-large-line-height;
68
+ .hook-text-large;
69
+ }
70
+
71
+
72
+ /* Weight modifier
73
+ ========================================================================== */
74
+
75
+ .uk-text-bold { font-weight: bolder; }
76
+
77
+
78
+ /* Transform modifier
79
+ ========================================================================== */
80
+
81
+ .uk-text-uppercase { text-transform: uppercase !important; }
82
+ .uk-text-capitalize { text-transform: capitalize !important; }
83
+ .uk-text-lowercase { text-transform: lowercase !important; }
84
+
85
+
86
+ /* Color modifiers
87
+ ========================================================================== */
88
+
89
+ .uk-text-muted { color: @text-muted-color !important; }
90
+
91
+ .uk-text-primary {
92
+ color: @text-primary-color !important;
93
+ .hook-text-primary;
94
+ }
95
+
96
+ .uk-text-success { color: @text-success-color !important; }
97
+ .uk-text-warning { color: @text-warning-color !important; }
98
+ .uk-text-danger { color: @text-danger-color !important; }
99
+
100
+
101
+ /* Alignment modifiers
102
+ ========================================================================== */
103
+
104
+ .uk-text-left { text-align: left !important; }
105
+ .uk-text-right { text-align: right !important; }
106
+ .uk-text-center { text-align: center !important; }
107
+ .uk-text-justify { text-align: justify !important; }
108
+
109
+ /* Phone landscape and bigger */
110
+ @media (min-width: @breakpoint-small) {
111
+
112
+ .uk-text-left\@s { text-align: left !important; }
113
+ .uk-text-right\@s { text-align: right !important; }
114
+ .uk-text-center\@s { text-align: center !important; }
115
+
116
+ }
117
+
118
+ /* Tablet landscape and bigger */
119
+ @media (min-width: @breakpoint-medium) {
120
+
121
+ .uk-text-left\@m { text-align: left !important; }
122
+ .uk-text-right\@m { text-align: right !important; }
123
+ .uk-text-center\@m { text-align: center !important; }
124
+
125
+ }
126
+
127
+ /* Desktop and bigger */
128
+ @media (min-width: @breakpoint-large) {
129
+
130
+ .uk-text-left\@l { text-align: left !important; }
131
+ .uk-text-right\@l { text-align: right !important; }
132
+ .uk-text-center\@l { text-align: center !important; }
133
+
134
+ }
135
+
136
+ /* Large screen and bigger */
137
+ @media (min-width: @breakpoint-xlarge) {
138
+
139
+ .uk-text-left\@xl { text-align: left !important; }
140
+ .uk-text-right\@xl { text-align: right !important; }
141
+ .uk-text-center\@xl { text-align: center !important; }
142
+
143
+ }
144
+
145
+ /*
146
+ * Vertical
147
+ */
148
+
149
+ .uk-text-top { vertical-align: top !important; }
150
+ .uk-text-middle { vertical-align: middle !important; }
151
+ .uk-text-bottom { vertical-align: bottom !important; }
152
+ .uk-text-baseline { vertical-align: baseline !important; }
153
+
154
+
155
+ /* Wrap modifiers
156
+ ========================================================================== */
157
+
158
+ /*
159
+ * Prevent text from wrapping onto multiple lines
160
+ */
161
+
162
+ .uk-text-nowrap { white-space: nowrap; }
163
+
164
+ /*
165
+ * 1. Make sure a max-width is set after which truncation can occur
166
+ * 2. Prevent text from wrapping onto multiple lines, and truncate with an ellipsis
167
+ * 3. Fix for table cells
168
+ */
169
+
170
+ .uk-text-truncate {
171
+ /* 1 */
172
+ max-width: 100%;
173
+ /* 2 */
174
+ overflow: hidden;
175
+ text-overflow: ellipsis;
176
+ white-space: nowrap;
177
+ }
178
+
179
+ /* 2 */
180
+ th.uk-text-truncate,
181
+ td.uk-text-truncate { max-width: 0; }
182
+
183
+
184
+ /*
185
+ * 1. Wrap long words onto the next line and break them if they are too long to fit
186
+ * 2. Legacy `word-wrap` as fallback for `overflow-wrap`
187
+ * 3. Add a hyphen where the word breaks
188
+ * 4. Fix `overflow-wrap` which doesn't work with table cells in Chrome, Opera, IE11 and Edge
189
+ * Must use `break-all` to support IE11 and Edge
190
+ */
191
+
192
+ .uk-text-break {
193
+ /* 1 */
194
+ overflow-wrap: break-word;
195
+ /* 2 */
196
+ word-wrap: break-word;
197
+ /* 3 */
198
+ -webkit-hyphens: auto;
199
+ -ms-hyphens: auto;
200
+ -moz-hyphens: auto;
201
+ hyphens: auto;
202
+ }
203
+
204
+ /* 4 */
205
+ th.uk-text-break,
206
+ td.uk-text-break { word-break: break-all; }
207
+
208
+
209
+
210
+ // Hooks
211
+ // ========================================================================
212
+
213
+ .hook-text-misc;
214
+
215
+ .hook-text-lead() {}
216
+ .hook-text-meta() {}
217
+ .hook-text-small() {}
218
+ .hook-text-large() {}
219
+ .hook-text-primary() {}
220
+ .hook-text-misc() {}
221
+
222
+
223
+ // Inverse
224
+ // ========================================================================
225
+
226
+ @inverse-text-lead-color: @inverse-global-color;
227
+ @inverse-text-meta-color: @inverse-global-muted-color;
228
+ @inverse-text-muted-color: @inverse-global-muted-color;
229
+ @inverse-text-primary-color: @inverse-global-color;
230
+
231
+ .hook-inverse() {
232
+
233
+ .uk-text-lead {
234
+ color: @inverse-text-lead-color;
235
+ .hook-inverse-text-lead;
236
+ }
237
+
238
+ .uk-text-meta {
239
+ color: @inverse-text-meta-color;
240
+ .hook-inverse-text-meta;
241
+ }
242
+
243
+ .uk-text-muted { color: @inverse-text-muted-color !important; }
244
+
245
+ .uk-text-primary {
246
+ color: @inverse-text-primary-color !important;
247
+ .hook-inverse-text-primary;
248
+ }
249
+
250
+ }
251
+
252
+ .hook-inverse-text-lead() {}
253
+ .hook-inverse-text-meta() {}
254
+ .hook-inverse-text-primary() {}
@@ -0,0 +1,84 @@
1
+ // Name: Tooltip
2
+ // Description: Component to create tooltips
3
+ //
4
+ // Component: `uk-tooltip`
5
+ //
6
+ // Modifiers `uk-tooltip-top`
7
+ // `uk-tooltip-top-left`
8
+ // `uk-tooltip-top-right`
9
+ // `uk-tooltip-bottom`
10
+ // `uk-tooltip-bottom-left`
11
+ // `uk-tooltip-bottom-right`
12
+ // `uk-tooltip-left`
13
+ // `uk-tooltip-right`
14
+ //
15
+ // States: `uk-active`
16
+ //
17
+ // ========================================================================
18
+
19
+
20
+ // Variables
21
+ // ========================================================================
22
+
23
+ @tooltip-z-index: @global-z-index + 30;
24
+ @tooltip-max-width: 200px;
25
+ @tooltip-padding-vertical: 3px;
26
+ @tooltip-padding-horizontal: 6px;
27
+ @tooltip-background: #666;
28
+ @tooltip-border-radius: 2px;
29
+ @tooltip-color: @global-inverse-color;
30
+ @tooltip-font-size: 12px;
31
+
32
+ @tooltip-margin: 10px;
33
+
34
+
35
+ /* ========================================================================
36
+ Component: Tooltip
37
+ ========================================================================== */
38
+
39
+ /*
40
+ * 1. Hide by default
41
+ * 2. Position
42
+ * 3. Dimensions
43
+ * 4. Style
44
+ */
45
+
46
+ .uk-tooltip {
47
+ /* 1 */
48
+ display: none;
49
+ /* 2 */
50
+ position: absolute;
51
+ z-index: @tooltip-z-index;
52
+ /* 3 */
53
+ box-sizing: border-box;
54
+ max-width: @tooltip-max-width;
55
+ padding: @tooltip-padding-vertical @tooltip-padding-horizontal;
56
+ /* 4 */
57
+ background: @tooltip-background;
58
+ border-radius: @tooltip-border-radius;
59
+ color: @tooltip-color;
60
+ font-size: @tooltip-font-size;
61
+ .hook-tooltip;
62
+ }
63
+
64
+ /* Show */
65
+ .uk-tooltip.uk-active { display: block; }
66
+
67
+
68
+ /* Direction / Alignment modifiers
69
+ ========================================================================== */
70
+
71
+ /* Direction */
72
+ [class*='uk-tooltip-top'] { margin-top: -@tooltip-margin; }
73
+ [class*='uk-tooltip-bottom'] { margin-top: @tooltip-margin; }
74
+ [class*='uk-tooltip-left'] { margin-left: -@tooltip-margin; }
75
+ [class*='uk-tooltip-right'] { margin-left: @tooltip-margin; }
76
+
77
+
78
+ // Hooks
79
+ // ========================================================================
80
+
81
+ .hook-tooltip-misc;
82
+
83
+ .hook-tooltip() {}
84
+ .hook-tooltip-misc() {}
@@ -0,0 +1,97 @@
1
+ // Name: Totop
2
+ // Description: Component to create an icon to scroll back to top
3
+ //
4
+ // Component: `uk-totop`
5
+ //
6
+ // ========================================================================
7
+
8
+
9
+ // Variables
10
+ // ========================================================================
11
+
12
+ @totop-padding: 5px;
13
+ @totop-color: @global-muted-color;
14
+
15
+ @totop-hover-color: @global-color;
16
+
17
+ @totop-active-color: @global-emphasis-color;
18
+
19
+ @internal-totop-image: "../../images/components/totop.svg";
20
+
21
+
22
+ /* ========================================================================
23
+ Component: Totop
24
+ ========================================================================== */
25
+
26
+ /*
27
+ * Icon
28
+ */
29
+
30
+ .uk-totop::before { background-image: data-uri('image/svg+xml;charset=UTF-8', @internal-totop-image); }
31
+
32
+ /*
33
+ * Addopts `uk-icon`
34
+ */
35
+
36
+ .uk-totop {
37
+ padding: @totop-padding;
38
+ color: @totop-color;
39
+ .hook-totop;
40
+ }
41
+
42
+ /* Hover + Focus */
43
+ .uk-totop:hover,
44
+ .uk-totop:focus {
45
+ color: @totop-hover-color;
46
+ outline: none;
47
+ .hook-totop-hover;
48
+ }
49
+
50
+ /* OnClick */
51
+ .uk-totop:active {
52
+ color: @totop-active-color;
53
+ .hook-totop-active;
54
+ }
55
+
56
+
57
+ // Hooks
58
+ // ========================================================================
59
+
60
+ .hook-totop-misc;
61
+
62
+ .hook-totop() {}
63
+ .hook-totop-hover() {}
64
+ .hook-totop-active() {}
65
+ .hook-totop-misc() {}
66
+
67
+
68
+ // Inverse
69
+ // ========================================================================
70
+
71
+ @inverse-totop-color: @inverse-global-muted-color;
72
+ @inverse-totop-hover-color: @inverse-global-color;
73
+ @inverse-totop-active-color: @inverse-global-emphasis-color;
74
+
75
+ .hook-inverse() {
76
+
77
+ .uk-totop {
78
+ color: @inverse-totop-color;
79
+ .hook-inverse-totop;
80
+ }
81
+
82
+ .uk-totop:hover,
83
+ .uk-totop:focus {
84
+ color: @inverse-totop-hover-color;
85
+ .hook-inverse-totop-hover;
86
+ }
87
+
88
+ .uk-totop:active {
89
+ color: @inverse-totop-active-color;
90
+ .hook-inverse-totop-active;
91
+ }
92
+
93
+ }
94
+
95
+ .hook-inverse-totop() {}
96
+ .hook-inverse-totop-hover() {}
97
+ .hook-inverse-totop-active() {}
@@ -0,0 +1,187 @@
1
+ // Name: Transition
2
+ // Description: Utilities for transitions
3
+ //
4
+ // Component: `uk-transition-*`
5
+ //
6
+ // Modifiers: `uk-transition-fade`
7
+ // `uk-transition-scale-up`
8
+ // `uk-transition-scale-down`
9
+ // `uk-transition-slide-top-*`
10
+ // `uk-transition-slide-bottom-*`
11
+ // `uk-transition-slide-left-*`
12
+ // `uk-transition-slide-right-*`
13
+ // `uk-transition-opaque`
14
+ // `uk-transition-slow`
15
+ //
16
+ // Sub-objects: `uk-transition-toggle`
17
+ //
18
+ // States: `uk-hover`
19
+ // `uk-active`
20
+ //
21
+ // ========================================================================
22
+
23
+
24
+ // Variables
25
+ // ========================================================================
26
+
27
+ @transition-duration: 0.3s;
28
+
29
+ @transition-scale: 1.1;
30
+
31
+ @transition-slide-small-translate: 10px;
32
+ @transition-slide-medium-translate: 50px;
33
+
34
+ @transition-slow-duration: 0.7s;
35
+
36
+
37
+ /* ========================================================================
38
+ Component: Transition
39
+ ========================================================================== */
40
+
41
+ /*
42
+ * Using multiple selectors to exclude `uk-transition-toggle`
43
+ * Note: Transitions don't work with `uk-postion-center-*` classes because they also use `transform`
44
+ * Just put the transition in an extra `div`
45
+ */
46
+
47
+ .uk-transition-fade,
48
+ [class*='uk-transition-scale'],
49
+ [class*='uk-transition-slide'] {
50
+ transition-duration: @transition-duration;
51
+ transition-timing-function: ease-out;
52
+ transition-property: opacity, transform, filter;
53
+ }
54
+
55
+ /*
56
+ * Fade
57
+ */
58
+
59
+ .uk-transition-fade { opacity: 0; }
60
+
61
+ .uk-transition-toggle:hover [class*='uk-transition-fade'],
62
+ .uk-transition-toggle.uk-hover [class*='uk-transition-fade'] { opacity: 1; }
63
+
64
+ /*
65
+ * Scale
66
+ * Note: Using `scale3d` for better image rendering
67
+ */
68
+
69
+ [class*='uk-transition-scale'] { opacity: 0; }
70
+
71
+ .uk-transition-scale-up {
72
+ -webkit-transform: scale3d(1,1,1);
73
+ transform: scale3d(1,1,1);
74
+ }
75
+
76
+ .uk-transition-toggle:hover .uk-transition-scale-up,
77
+ .uk-transition-toggle.uk-hover .uk-transition-scale-up {
78
+ opacity: 1;
79
+ -webkit-transform: scale3d(@transition-scale,@transition-scale,1);
80
+ transform: scale3d(@transition-scale,@transition-scale,1);
81
+ }
82
+
83
+ .uk-transition-scale-down {
84
+ -webkit-transform: scale3d(@transition-scale,@transition-scale,1);
85
+ transform: scale3d(@transition-scale,@transition-scale,1);
86
+ }
87
+
88
+ .uk-transition-toggle:hover .uk-transition-scale-down,
89
+ .uk-transition-toggle.uk-hover .uk-transition-scale-down {
90
+ opacity: 1;
91
+ -webkit-transform: scale3d(1,1,1);
92
+ transform: scale3d(1,1,1);
93
+ }
94
+
95
+ /*
96
+ * Slide
97
+ */
98
+
99
+ [class*='uk-transition-slide'] { opacity: 0; }
100
+
101
+ .uk-transition-slide-top {
102
+ -webkit-transform: translateY(-100%);
103
+ transform: translateY(-100%);
104
+ }
105
+
106
+ .uk-transition-slide-bottom {
107
+ -webkit-transform: translateY(100%);
108
+ transform: translateY(100%);
109
+ }
110
+
111
+ .uk-transition-slide-left {
112
+ -webkit-transform: translateX(-100%);
113
+ transform: translateX(-100%);
114
+ }
115
+
116
+ .uk-transition-slide-right {
117
+ -webkit-transform: translateX(100%);
118
+ transform: translateX(100%);
119
+ }
120
+
121
+ .uk-transition-slide-top-small {
122
+ -webkit-transform: translateY(-@transition-slide-small-translate);
123
+ transform: translateY(-@transition-slide-small-translate);
124
+ }
125
+
126
+ .uk-transition-slide-bottom-small {
127
+ -webkit-transform: translateY(@transition-slide-small-translate);
128
+ transform: translateY(@transition-slide-small-translate);
129
+ }
130
+
131
+ .uk-transition-slide-left-small {
132
+ -webkit-transform: translateX(-@transition-slide-small-translate);
133
+ transform: translateX(-@transition-slide-small-translate);
134
+ }
135
+
136
+ .uk-transition-slide-right-small {
137
+ -webkit-transform: translateX(@transition-slide-small-translate);
138
+ transform: translateX(@transition-slide-small-translate);
139
+ }
140
+
141
+ .uk-transition-slide-top-medium {
142
+ -webkit-transform: translateY(-@transition-slide-medium-translate);
143
+ transform: translateY(-@transition-slide-medium-translate);
144
+ }
145
+
146
+ .uk-transition-slide-bottom-medium {
147
+ -webkit-transform: translateY(@transition-slide-medium-translate);
148
+ transform: translateY(@transition-slide-medium-translate);
149
+ }
150
+
151
+ .uk-transition-slide-left-medium {
152
+ -webkit-transform: translateX(-@transition-slide-medium-translate);
153
+ transform: translateX(-@transition-slide-medium-translate);
154
+ }
155
+
156
+ .uk-transition-slide-right-medium {
157
+ -webkit-transform: translateX(@transition-slide-medium-translate);
158
+ transform: translateX(@transition-slide-medium-translate);
159
+ }
160
+
161
+ /* Hover */
162
+ .uk-transition-toggle:hover [class*='uk-transition-slide'],
163
+ .uk-transition-toggle.uk-hover [class*='uk-transition-slide'] {
164
+ opacity: 1;
165
+ -webkit-transform: translateX(0) translateY(0);
166
+ transform: translateX(0) translateY(0);
167
+ }
168
+
169
+
170
+ /* Opacity modifier
171
+ ========================================================================== */
172
+
173
+ .uk-transition-opaque { opacity: 1; }
174
+
175
+
176
+ /* Duration modifiers
177
+ ========================================================================== */
178
+
179
+ .uk-transition-slow { transition-duration: @transition-slow-duration; }
180
+
181
+
182
+ // Hooks
183
+ // ========================================================================
184
+
185
+ .hook-transition-misc;
186
+
187
+ .hook-transition-misc() {}