flatui3-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +102 -0
  5. data/Rakefile +1 -0
  6. data/app/assets/fonts/Flat-UI-Icons.dev.svg +140 -0
  7. data/app/assets/fonts/Flat-UI-Icons.eot +0 -0
  8. data/app/assets/fonts/Flat-UI-Icons.svg +140 -0
  9. data/app/assets/fonts/Flat-UI-Icons.ttf +0 -0
  10. data/app/assets/fonts/Flat-UI-Icons.woff +0 -0
  11. data/app/assets/fonts/icomoon-session.json +1 -0
  12. data/app/assets/fonts/lato/lato-black-webfont.eot +0 -0
  13. data/app/assets/fonts/lato/lato-black-webfont.svg +4691 -0
  14. data/app/assets/fonts/lato/lato-black-webfont.ttf +0 -0
  15. data/app/assets/fonts/lato/lato-black-webfont.woff +0 -0
  16. data/app/assets/fonts/lato/lato-bold-webfont.eot +0 -0
  17. data/app/assets/fonts/lato/lato-bold-webfont.svg +5085 -0
  18. data/app/assets/fonts/lato/lato-bold-webfont.ttf +0 -0
  19. data/app/assets/fonts/lato/lato-bold-webfont.woff +0 -0
  20. data/app/assets/fonts/lato/lato-bolditalic-webfont.eot +0 -0
  21. data/app/assets/fonts/lato/lato-bolditalic-webfont.svg +4514 -0
  22. data/app/assets/fonts/lato/lato-bolditalic-webfont.ttf +0 -0
  23. data/app/assets/fonts/lato/lato-bolditalic-webfont.woff +0 -0
  24. data/app/assets/fonts/lato/lato-italic-webfont.eot +0 -0
  25. data/app/assets/fonts/lato/lato-italic-webfont.svg +4514 -0
  26. data/app/assets/fonts/lato/lato-italic-webfont.ttf +0 -0
  27. data/app/assets/fonts/lato/lato-italic-webfont.woff +0 -0
  28. data/app/assets/fonts/lato/lato-light-webfont.eot +0 -0
  29. data/app/assets/fonts/lato/lato-light-webfont.svg +4691 -0
  30. data/app/assets/fonts/lato/lato-light-webfont.ttf +0 -0
  31. data/app/assets/fonts/lato/lato-light-webfont.woff +0 -0
  32. data/app/assets/fonts/lato/lato-regular-webfont.eot +0 -0
  33. data/app/assets/fonts/lato/lato-regular-webfont.svg +4691 -0
  34. data/app/assets/fonts/lato/lato-regular-webfont.ttf +0 -0
  35. data/app/assets/fonts/lato/lato-regular-webfont.woff +0 -0
  36. data/app/assets/images/demo/browser-2x.png +0 -0
  37. data/app/assets/images/demo/browser-author.jpg +0 -0
  38. data/app/assets/images/demo/browser-pic-1.jpg +0 -0
  39. data/app/assets/images/demo/browser-pic-2.jpg +0 -0
  40. data/app/assets/images/demo/browser-pic-3.jpg +0 -0
  41. data/app/assets/images/demo/browser-pic-4.jpg +0 -0
  42. data/app/assets/images/demo/browser-pic-5.jpg +0 -0
  43. data/app/assets/images/demo/browser-pic-6.jpg +0 -0
  44. data/app/assets/images/demo/browser.png +0 -0
  45. data/app/assets/images/demo/html-icon.png +0 -0
  46. data/app/assets/images/demo/logo-mask-2x.png +0 -0
  47. data/app/assets/images/demo/logo-mask.png +0 -0
  48. data/app/assets/images/demo/video.jpg +0 -0
  49. data/app/assets/images/exaple-image.jpg +0 -0
  50. data/app/assets/images/favicon.ico +0 -0
  51. data/app/assets/images/footer/logo.png +0 -0
  52. data/app/assets/images/icons/png/Book.png +0 -0
  53. data/app/assets/images/icons/png/Calendar.png +0 -0
  54. data/app/assets/images/icons/png/Chat.png +0 -0
  55. data/app/assets/images/icons/png/Clipboard.png +0 -0
  56. data/app/assets/images/icons/png/Compas.png +0 -0
  57. data/app/assets/images/icons/png/Gift-Box.png +0 -0
  58. data/app/assets/images/icons/png/Infinity-Loop.png +0 -0
  59. data/app/assets/images/icons/png/Mail.png +0 -0
  60. data/app/assets/images/icons/png/Map.png +0 -0
  61. data/app/assets/images/icons/png/Pensils.png +0 -0
  62. data/app/assets/images/icons/png/Pocket.png +0 -0
  63. data/app/assets/images/icons/png/Retina-Ready.png +0 -0
  64. data/app/assets/images/icons/png/Toilet-Paper.png +0 -0
  65. data/app/assets/images/icons/png/Watches.png +0 -0
  66. data/app/assets/images/icons/svg/book.svg +1 -0
  67. data/app/assets/images/icons/svg/calendar.svg +1 -0
  68. data/app/assets/images/icons/svg/chat.svg +1 -0
  69. data/app/assets/images/icons/svg/clipboard.svg +1 -0
  70. data/app/assets/images/icons/svg/clocks.svg +9 -0
  71. data/app/assets/images/icons/svg/compas.svg +1 -0
  72. data/app/assets/images/icons/svg/gift-box.svg +1 -0
  73. data/app/assets/images/icons/svg/loop.svg +5 -0
  74. data/app/assets/images/icons/svg/mail.svg +1 -0
  75. data/app/assets/images/icons/svg/map.svg +1 -0
  76. data/app/assets/images/icons/svg/paper-bag.svg +1 -0
  77. data/app/assets/images/icons/svg/pencils.svg +1 -0
  78. data/app/assets/images/icons/svg/retina.svg +1 -0
  79. data/app/assets/images/icons/svg/toilet-paper.svg +1 -0
  80. data/app/assets/images/login/icon.png +0 -0
  81. data/app/assets/images/login/imac-2x.png +0 -0
  82. data/app/assets/images/login/imac.png +0 -0
  83. data/app/assets/images/switch/mask-square.png +0 -0
  84. data/app/assets/images/switch/mask.png +0 -0
  85. data/app/assets/images/tile/ribbon-2x.png +0 -0
  86. data/app/assets/images/tile/ribbon.png +0 -0
  87. data/app/assets/images/todo/done-2x.png +0 -0
  88. data/app/assets/images/todo/done.png +0 -0
  89. data/app/assets/images/todo/search-2x.png +0 -0
  90. data/app/assets/images/todo/search.png +0 -0
  91. data/app/assets/images/todo/todo-2x.png +0 -0
  92. data/app/assets/images/todo/todo.png +0 -0
  93. data/app/assets/images/video/fullscreen-2x.png +0 -0
  94. data/app/assets/images/video/fullscreen.png +0 -0
  95. data/app/assets/images/video/pause-2x.png +0 -0
  96. data/app/assets/images/video/pause.png +0 -0
  97. data/app/assets/images/video/play-2x.png +0 -0
  98. data/app/assets/images/video/play.png +0 -0
  99. data/app/assets/images/video/poster.jpg +0 -0
  100. data/app/assets/images/video/volume-full-2x.png +0 -0
  101. data/app/assets/images/video/volume-full.png +0 -0
  102. data/app/assets/images/video/volume-off-2x.png +0 -0
  103. data/app/assets/images/video/volume-off.png +0 -0
  104. data/app/assets/javascripts/bootstrap-select.js +412 -0
  105. data/app/assets/javascripts/bootstrap-switch.js +251 -0
  106. data/app/assets/javascripts/bootstrap-typeahead.js +335 -0
  107. data/app/assets/javascripts/flatui-checkbox.js +112 -0
  108. data/app/assets/javascripts/flatui-radio.js +141 -0
  109. data/app/assets/javascripts/flatui.js +9 -0
  110. data/app/assets/javascripts/html5shiv.js +8 -0
  111. data/app/assets/javascripts/icon-font-ie7.js +57 -0
  112. data/app/assets/javascripts/jquery-ui-1.10.3.min.js +6 -0
  113. data/app/assets/javascripts/jquery.placeholder.js +157 -0
  114. data/app/assets/javascripts/jquery.stacktable.js +54 -0
  115. data/app/assets/javascripts/jquery.tagsinput.js +355 -0
  116. data/app/assets/javascripts/jquery.ui.touch-punch.min.js +11 -0
  117. data/app/assets/stylesheets/flatui.less +45 -0
  118. data/flatui3-rails.gemspec +25 -0
  119. data/lib/flatui3-rails.rb +1 -0
  120. data/lib/flatui3/rails.rb +7 -0
  121. data/lib/flatui3/rails/engine.rb +13 -0
  122. data/lib/flatui3/rails/version.rb +5 -0
  123. data/lib/generators/flatui3/override/override_generator.rb +15 -0
  124. data/lib/generators/flatui3/override/templates/flatui_and_overrides.less +49 -0
  125. data/vendor/toolkit/flat-ui/flat-ui.less +45 -0
  126. data/vendor/toolkit/flat-ui/fonts.less +65 -0
  127. data/vendor/toolkit/flat-ui/icon-font.less +128 -0
  128. data/vendor/toolkit/flat-ui/mixins.less +365 -0
  129. data/vendor/toolkit/flat-ui/modules/buttons.less +231 -0
  130. data/vendor/toolkit/flat-ui/modules/caret.less +31 -0
  131. data/vendor/toolkit/flat-ui/modules/checkbox-and-radio.less +104 -0
  132. data/vendor/toolkit/flat-ui/modules/dropdown.less +225 -0
  133. data/vendor/toolkit/flat-ui/modules/footer.less +75 -0
  134. data/vendor/toolkit/flat-ui/modules/forms.less +127 -0
  135. data/vendor/toolkit/flat-ui/modules/input-icons.less +71 -0
  136. data/vendor/toolkit/flat-ui/modules/login.less +111 -0
  137. data/vendor/toolkit/flat-ui/modules/navbar.less +487 -0
  138. data/vendor/toolkit/flat-ui/modules/pager.less +49 -0
  139. data/vendor/toolkit/flat-ui/modules/pagination.less +153 -0
  140. data/vendor/toolkit/flat-ui/modules/palette.less +64 -0
  141. data/vendor/toolkit/flat-ui/modules/progress-bars.less +36 -0
  142. data/vendor/toolkit/flat-ui/modules/select.less +143 -0
  143. data/vendor/toolkit/flat-ui/modules/share.less +41 -0
  144. data/vendor/toolkit/flat-ui/modules/switch.less +150 -0
  145. data/vendor/toolkit/flat-ui/modules/tagsinput.less +117 -0
  146. data/vendor/toolkit/flat-ui/modules/tile.less +54 -0
  147. data/vendor/toolkit/flat-ui/modules/todo.less +107 -0
  148. data/vendor/toolkit/flat-ui/modules/tooltip.less +55 -0
  149. data/vendor/toolkit/flat-ui/modules/type.less +126 -0
  150. data/vendor/toolkit/flat-ui/modules/ui-slider.less +62 -0
  151. data/vendor/toolkit/flat-ui/modules/video.less +458 -0
  152. data/vendor/toolkit/flat-ui/scaffolding.less +46 -0
  153. data/vendor/toolkit/flat-ui/spaces.less +172 -0
  154. data/vendor/toolkit/flat-ui/variables.less +167 -0
  155. metadata +248 -0
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'flatui3/rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "flatui3-rails"
8
+ spec.version = Flatui3::Rails::VERSION
9
+ spec.authors = ["kamechb"]
10
+ spec.email = ["kamechb@gmail.com"]
11
+ spec.description = %q{Integrate flatui based on bootstrap3 with rails}
12
+ spec.summary = %q{Integrate flatui based on bootstrap3 with rails}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_runtime_dependency 'railties', '~> 4.0.0'
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.3"
24
+ spec.add_development_dependency "rake"
25
+ end
@@ -0,0 +1 @@
1
+ require 'flatui3/rails'
@@ -0,0 +1,7 @@
1
+ require "flatui3/rails/version"
2
+ require "flatui3/rails/engine"
3
+
4
+ module Flatui3
5
+ module Rails
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ module Flatui3
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ initializer 'flatui3.setup',
5
+ :after => 'less-rails.after.load_config_initializers',
6
+ :group => :all do |app|
7
+ if defined?(Less)
8
+ app.config.less.paths << File.join(config.root, 'vendor', 'toolkit')
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ module Flatui3
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,15 @@
1
+ require 'rails/generators'
2
+
3
+ module Flatui3
4
+ module Generators
5
+ class OverrideGenerator < ::Rails::Generators::Base
6
+
7
+ source_root File.expand_path("../templates", __FILE__)
8
+ desc "This generator generates flatui_and_overrides.less to Asset Pipeline"
9
+
10
+ def add_overrides_less
11
+ copy_file "flatui_and_overrides.less", "app/assets/stylesheets/flatui_and_overrides.css.less"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,49 @@
1
+ // Flat UI main stylesheet that aggregates all modules
2
+
3
+ // Loading custom fonts
4
+ //@import url("https://fonts.googleapis.com/css?family=Lato:400,700,700italic,900,400italic,300");
5
+ @import "flat-ui/fonts";
6
+ @import "flat-ui/icon-font";
7
+
8
+ // Loading config with variables (changing them leads to changing a color scheme)
9
+ @import "flat-ui/variables";
10
+
11
+ // Utility mixins for greater good
12
+ @import "flat-ui/mixins";
13
+
14
+ @import "flat-ui/scaffolding";
15
+
16
+ // Modules
17
+ @import "flat-ui/modules/type";
18
+ @import "flat-ui/modules/buttons";
19
+ @import "flat-ui/modules/caret";
20
+ @import "flat-ui/modules/navbar";
21
+ @import "flat-ui/modules/select";
22
+ @import "flat-ui/modules/forms";
23
+ @import "flat-ui/modules/input-icons";
24
+ @import "flat-ui/modules/checkbox-and-radio";
25
+ @import "flat-ui/modules/tagsinput";
26
+ @import "flat-ui/modules/progress-bars";
27
+ @import "flat-ui/modules/ui-slider";
28
+ @import "flat-ui/modules/pager";
29
+ @import "flat-ui/modules/pagination";
30
+ @import "flat-ui/modules/tooltip";
31
+ @import "flat-ui/modules/dropdown";
32
+ @import "flat-ui/modules/switch";
33
+ @import "flat-ui/modules/share";
34
+
35
+ // Examples
36
+ @import "flat-ui/modules/palette";
37
+ @import "flat-ui/modules/tile";
38
+ @import "flat-ui/modules/todo";
39
+ @import "flat-ui/modules/video";
40
+ @import "flat-ui/modules/login";
41
+
42
+ @import "flat-ui/modules/footer";
43
+
44
+ // Spaces
45
+ @import "flat-ui/spaces";
46
+
47
+ // Custom Variables
48
+ // @text-color: #333;
49
+
@@ -0,0 +1,45 @@
1
+ // Flat UI main stylesheet that aggregates all modules
2
+
3
+ // Loading custom fonts
4
+ //@import url("https://fonts.googleapis.com/css?family=Lato:400,700,700italic,900,400italic,300");
5
+ @import "fonts";
6
+ @import "icon-font";
7
+
8
+ // Loading config with variables (changing them leads to changing a color scheme)
9
+ @import "variables";
10
+
11
+ // Utility mixins for greater good
12
+ @import "mixins";
13
+
14
+ @import "scaffolding";
15
+
16
+ // Modules
17
+ @import "modules/type";
18
+ @import "modules/buttons";
19
+ @import "modules/caret";
20
+ @import "modules/navbar";
21
+ @import "modules/select";
22
+ @import "modules/forms";
23
+ @import "modules/input-icons";
24
+ @import "modules/checkbox-and-radio";
25
+ @import "modules/tagsinput";
26
+ @import "modules/progress-bars";
27
+ @import "modules/ui-slider";
28
+ @import "modules/pager";
29
+ @import "modules/pagination";
30
+ @import "modules/tooltip";
31
+ @import "modules/dropdown";
32
+ @import "modules/switch";
33
+ @import "modules/share";
34
+
35
+ // Examples
36
+ @import "modules/palette";
37
+ @import "modules/tile";
38
+ @import "modules/todo";
39
+ @import "modules/video";
40
+ @import "modules/login";
41
+
42
+ @import "modules/footer";
43
+
44
+ // Spaces
45
+ @import "spaces";
@@ -0,0 +1,65 @@
1
+ @font-face {
2
+ font-family: 'Lato';
3
+ src: font-url('lato/lato-black-webfont.eot');
4
+ src: font-url('lato/lato-black-webfont.eot?#iefix') format('embedded-opentype'),
5
+ font-url('lato/lato-black-webfont.woff') format('woff'),
6
+ font-url('lato/lato-black-webfont.ttf') format('truetype'),
7
+ font-url('lato/lato-black-webfont.svg#latoblack') format('svg');
8
+ font-weight: 900;
9
+ font-style: normal;
10
+ }
11
+
12
+ @font-face {
13
+ font-family: 'Lato';
14
+ src: font-url('lato/lato-bold-webfont.eot');
15
+ src: font-url('lato/lato-bold-webfont.eot?#iefix') format('embedded-opentype'),
16
+ font-url('lato/lato-bold-webfont.woff') format('woff'),
17
+ font-url('lato/lato-bold-webfont.ttf') format('truetype'),
18
+ font-url('lato/lato-bold-webfont.svg#latobold') format('svg');
19
+ font-weight: bold;
20
+ font-style: normal;
21
+ }
22
+
23
+ @font-face {
24
+ font-family: 'Lato';
25
+ src: font-url('lato/lato-bolditalic-webfont.eot');
26
+ src: font-url('lato/lato-bolditalic-webfont.eot?#iefix') format('embedded-opentype'),
27
+ font-url('lato/lato-bolditalic-webfont.woff') format('woff'),
28
+ font-url('lato/lato-bolditalic-webfont.ttf') format('truetype'),
29
+ font-url('lato/lato-bolditalic-webfont.svg#latobold_italic') format('svg');
30
+ font-weight: bold;
31
+ font-style: italic;
32
+ }
33
+
34
+ @font-face {
35
+ font-family: 'Lato';
36
+ src: font-url('lato/lato-italic-webfont.eot');
37
+ src: font-url('lato/lato-italic-webfont.eot?#iefix') format('embedded-opentype'),
38
+ font-url('lato/lato-italic-webfont.woff') format('woff'),
39
+ font-url('lato/lato-italic-webfont.ttf') format('truetype'),
40
+ font-url('lato/lato-italic-webfont.svg#latoitalic') format('svg');
41
+ font-weight: normal;
42
+ font-style: italic;
43
+ }
44
+
45
+ @font-face {
46
+ font-family: 'Lato';
47
+ src: font-url('lato/lato-light-webfont.eot');
48
+ src: font-url('lato/lato-light-webfont.eot?#iefix') format('embedded-opentype'),
49
+ font-url('lato/lato-light-webfont.woff') format('woff'),
50
+ font-url('lato/lato-light-webfont.ttf') format('truetype'),
51
+ font-url('lato/lato-light-webfont.svg#latolight') format('svg');
52
+ font-weight: 300;
53
+ font-style: normal;
54
+ }
55
+
56
+ @font-face {
57
+ font-family: 'Lato';
58
+ src: font-url('lato/lato-regular-webfont.eot');
59
+ src: font-url('lato/lato-regular-webfont.eot?#iefix') format('embedded-opentype'),
60
+ font-url('lato/lato-regular-webfont.woff') format('woff'),
61
+ font-url('lato/lato-regular-webfont.ttf') format('truetype'),
62
+ font-url('lato/lato-regular-webfont.svg#latoregular') format('svg');
63
+ font-weight: normal;
64
+ font-style: normal;
65
+ }
@@ -0,0 +1,128 @@
1
+ @font-face {
2
+ font-family: 'Flat-UI-Icons';
3
+ src:font-url('Flat-UI-Icons.eot');
4
+ src:font-url('Flat-UI-Icons.eot?#iefix') format('embedded-opentype'),
5
+ font-url('Flat-UI-Icons.woff') format('woff'),
6
+ font-url('Flat-UI-Icons.ttf') format('truetype'),
7
+ font-url('Flat-UI-Icons.svg#Flat-UI-Icons') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+
12
+ /* Use the following CSS code if you want to use data attributes for inserting your icons */
13
+ [data-icon]:before {
14
+ font-family: 'Flat-UI-Icons';
15
+ content: attr(data-icon);
16
+ speak: none;
17
+ font-weight: normal;
18
+ font-variant: normal;
19
+ text-transform: none;
20
+ -webkit-font-smoothing: antialiased;
21
+ }
22
+
23
+ /* Use the following CSS code if you want to have a class per icon */
24
+ /*
25
+ Instead of a list of all class selectors,
26
+ you can use the generic selector below, but it's slower:
27
+ [class*="fui-"] {
28
+ */
29
+ .fui-arrow-right, .fui-arrow-left, .fui-cmd, .fui-check-inverted, .fui-heart, .fui-location, .fui-plus, .fui-check, .fui-cross, .fui-list, .fui-new, .fui-video, .fui-photo, .fui-volume, .fui-time, .fui-eye, .fui-chat, .fui-search, .fui-user, .fui-mail, .fui-lock, .fui-gear, .fui-radio-unchecked, .fui-radio-checked, .fui-checkbox-unchecked, .fui-checkbox-checked, .fui-calendar-solid, .fui-pause, .fui-play, .fui-check-inverted-2 {
30
+ display: inline-block;
31
+ font-family: 'Flat-UI-Icons';
32
+ speak: none;
33
+ font-style: normal;
34
+ font-weight: normal;
35
+ font-variant: normal;
36
+ text-transform: none;
37
+ -webkit-font-smoothing: antialiased;
38
+ }
39
+ .fui-arrow-right:before {
40
+ content: "\e02c";
41
+ }
42
+ .fui-arrow-left:before {
43
+ content: "\e02d";
44
+ }
45
+ .fui-cmd:before {
46
+ content: "\e02f";
47
+ }
48
+ .fui-check-inverted:before {
49
+ content: "\e006";
50
+ }
51
+ .fui-heart:before {
52
+ content: "\e007";
53
+ }
54
+ .fui-location:before {
55
+ content: "\e008";
56
+ }
57
+ .fui-plus:before {
58
+ content: "\e009";
59
+ }
60
+ .fui-check:before {
61
+ content: "\e00a";
62
+ }
63
+ .fui-cross:before {
64
+ content: "\e00b";
65
+ }
66
+ .fui-list:before {
67
+ content: "\e00c";
68
+ }
69
+ .fui-new:before {
70
+ content: "\e00d";
71
+ }
72
+ .fui-video:before {
73
+ content: "\e00e";
74
+ }
75
+ .fui-photo:before {
76
+ content: "\e00f";
77
+ }
78
+ .fui-volume:before {
79
+ content: "\e010";
80
+ }
81
+ .fui-time:before {
82
+ content: "\e011";
83
+ }
84
+ .fui-eye:before {
85
+ content: "\e012";
86
+ }
87
+ .fui-chat:before {
88
+ content: "\e013";
89
+ }
90
+ .fui-search:before {
91
+ content: "\e01c";
92
+ }
93
+ .fui-user:before {
94
+ content: "\e01d";
95
+ }
96
+ .fui-mail:before {
97
+ content: "\e01e";
98
+ }
99
+ .fui-lock:before {
100
+ content: "\e01f";
101
+ }
102
+ .fui-gear:before {
103
+ content: "\e024";
104
+ }
105
+ .fui-radio-unchecked:before {
106
+ content: "\e02b";
107
+ }
108
+ .fui-radio-checked:before {
109
+ content: "\e032";
110
+ }
111
+ .fui-checkbox-unchecked:before {
112
+ content: "\e033";
113
+ }
114
+ .fui-checkbox-checked:before {
115
+ content: "\e034";
116
+ }
117
+ .fui-calendar-solid:before {
118
+ content: "\e022";
119
+ }
120
+ .fui-pause:before {
121
+ content: "\e03b";
122
+ }
123
+ .fui-play:before {
124
+ content: "\e03c";
125
+ }
126
+ .fui-check-inverted-2:before {
127
+ content: "\e000";
128
+ }
@@ -0,0 +1,365 @@
1
+ //
2
+ // Mixins
3
+ // --------------------------------------------------
4
+
5
+ .animation(@properties) {
6
+ -webkit-animation: @properties;
7
+ -moz-animation: @properties;
8
+ -o-animation: @properties;
9
+ animation: @properties;
10
+ }
11
+
12
+ .border-radius(@radius) {
13
+ -webkit-border-radius: @radius;
14
+ -moz-border-radius: @radius;
15
+ border-radius: @radius;
16
+ }
17
+
18
+ // Single side border-radius
19
+ .border-top-radius(@radius) {
20
+ border-top-right-radius: @radius;
21
+ border-top-left-radius: @radius;
22
+ }
23
+ .border-right-radius(@radius) {
24
+ border-bottom-right-radius: @radius;
25
+ border-top-right-radius: @radius;
26
+ }
27
+ .border-bottom-radius(@radius) {
28
+ border-bottom-right-radius: @radius;
29
+ border-bottom-left-radius: @radius;
30
+ }
31
+ .border-left-radius(@radius) {
32
+ border-bottom-left-radius: @radius;
33
+ border-top-left-radius: @radius;
34
+ }
35
+
36
+ .box-sizing(@boxmodel: border-box) {
37
+ -webkit-box-sizing: @boxmodel;
38
+ -moz-box-sizing: @boxmodel;
39
+ box-sizing: @boxmodel;
40
+ }
41
+
42
+ .background-clip(@clip: border-box) {
43
+ -webkit-background-clip: @clip;
44
+ -moz-background-clip: @clip;
45
+ background-clip: @clip;
46
+ }
47
+
48
+ .box-shadow(@properties) {
49
+ -webkit-box-shadow: @properties;
50
+ -moz-box-shadow: @properties;
51
+ box-shadow: @properties;
52
+ }
53
+
54
+ .inline-block {
55
+ display: inline-block;
56
+ zoom: 1;
57
+ *display: inline;
58
+ }
59
+
60
+ // Opacity
61
+ .opacity(@opacity) {
62
+ opacity: @opacity;
63
+ // IE8 filter
64
+ @opacity-ie: (@opacity * 100);
65
+ filter: ~"alpha(opacity=@{opacity-ie})";
66
+ }
67
+
68
+ // User select
69
+ // For selecting text on the page
70
+ .user-select(@select) {
71
+ -webkit-user-select: @select;
72
+ -moz-user-select: @select;
73
+ -ms-user-select: @select;
74
+ -o-user-select: @select;
75
+ user-select: @select;
76
+ }
77
+
78
+ .placeholder-height(@height) {
79
+ &:-moz-placeholder {
80
+ line-height: @height;
81
+ }
82
+ &::-webkit-input-placeholder {
83
+ line-height: @height;
84
+ }
85
+ &.placeholder {
86
+ line-height: @height;
87
+ }
88
+ }
89
+
90
+ .mask(@arguments) {
91
+ -webkit-mask: @arguments;
92
+ mask: @arguments;
93
+ }
94
+
95
+ .placeholder-color(@color) {
96
+ &:-moz-placeholder { color: @color; } // Firefox 4-18
97
+ &::-moz-placeholder { color: @color; } // Firefox 19+
98
+ &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+
99
+ &::-webkit-input-placeholder { color: @color; } // Safari and Chrome
100
+ &.placeholder { color: @color; } // Fallback
101
+ }
102
+
103
+ .transition(@properties) {
104
+ -webkit-transition: @properties;
105
+ -moz-transition: @properties;
106
+ -o-transition: @properties;
107
+ transition: @properties;
108
+ -webkit-backface-visibility: hidden;
109
+ }
110
+
111
+ .transform(@properties) {
112
+ -webkit-transform: @properties;
113
+ -moz-transform: @properties;
114
+ -ms-transform: @properties;
115
+ -o-transform: @properties;
116
+ transform: @properties;
117
+ }
118
+
119
+ .vertical-gradient(@from, @to) {
120
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @from), color-stop(100%, @to));
121
+ background: -webkit-linear-gradient(top, @from, @to);
122
+ background: -moz-linear-gradient(top, @from, @to);
123
+ background: -ms-linear-gradient(top, @from, @to);
124
+ background: -o-linear-gradient(top, @from, @to);
125
+ background: linear-gradient(to bottom, @from, @to);
126
+ }
127
+
128
+ .selection(@color) {
129
+ &::selection {
130
+ background: @color;
131
+ }
132
+ &::-moz-selection {
133
+ background: @color;
134
+ }
135
+ }
136
+
137
+ .clearfix {
138
+ *zoom: 1;
139
+ &:before,
140
+ &:after {
141
+ display: table;
142
+ content: "";
143
+ }
144
+ &:after {
145
+ clear: both;
146
+ }
147
+ }
148
+
149
+ .dropdown-arrow(@color: @base, @top: 5px, @left: 15px, @size: 9px) {
150
+ &:before {
151
+ content: "";
152
+ border-style: solid;
153
+ border-width: 0 @size @size @size;
154
+ border-color: transparent transparent @color transparent;
155
+ height: 0;
156
+ position: absolute;
157
+ left: @left;
158
+ top: @top;
159
+ width: 0;
160
+ // Make corners smooth
161
+ -webkit-transform: rotate(360deg);
162
+ }
163
+ }
164
+
165
+ .drop-ie-gradient {
166
+ filter: unquote("progid:DXImageTransform.Microsoft.gradient(enabled = false)");
167
+ }
168
+
169
+ .swap-button-color(@color, @hover, @active) {
170
+ background-color: @color;
171
+
172
+ &:hover,
173
+ &:focus,
174
+ .btn-group:focus &.dropdown-toggle {
175
+ background-color: @hover;
176
+ }
177
+ &:active,
178
+ .btn-group.open &.dropdown-toggle,
179
+ &.active {
180
+ background-color: @active;
181
+ }
182
+ }
183
+
184
+ .swap-social-button(@color) {
185
+ background-color: @color;
186
+
187
+ &:hover, &:focus {
188
+ background-color: mix(@color, white, 80%);
189
+ }
190
+ &:active, &.active {
191
+ background-color: mix(@color, black, 85%);
192
+ }
193
+ }
194
+
195
+ .swap-dialog-color(@color) {
196
+ background-color: mix(@color, white, 9%);
197
+ border-top-color: mix(@color, white, 20%);
198
+ }
199
+
200
+ .dropdown-arrow-inverse {
201
+ border-bottom-color: @base !important;
202
+ border-top-color: @base !important;
203
+ }
204
+
205
+ .swap-iconbar-color(@color) {
206
+ background-color: @color;
207
+ > ul {
208
+ > li {
209
+ &.active {
210
+ > a {
211
+ color: mix(@color, black, 66%);
212
+ }
213
+ }
214
+ > a {
215
+ &:hover, &:focus {
216
+ color: mix(@color, black, 66%);
217
+ }
218
+ }
219
+ }
220
+ }
221
+ .iconbar-unread { background-color: mix(@color, black, 66%); }
222
+ }
223
+
224
+ .swap-pagination-color(@color, @hover, @active) {
225
+ ul {
226
+ background-color: @color;
227
+
228
+ li {
229
+ &.previous {
230
+ > a {
231
+ border-right-color: mix(@color, white, 66%);
232
+ }
233
+ }
234
+ > a, > span {
235
+ border-left-color: mix(@color, white, 66%);
236
+
237
+ &:hover, &:focus {
238
+ background-color: @hover;
239
+ }
240
+ &:active {
241
+ background-color: @active;
242
+ }
243
+ }
244
+ &.active {
245
+ > a, > span {
246
+ background-color: @active;
247
+ }
248
+ }
249
+
250
+ &.pagination-dropdown.dropup {
251
+ .dropdown-arrow {
252
+ border-top-color: @color;
253
+ }
254
+ }
255
+ }
256
+ }
257
+ }
258
+
259
+ .swap-text-color(@color) {
260
+ color: @color;
261
+ a&:hover, a&:focus { color: mix(@color, black, 80%); }
262
+ }
263
+
264
+ // Color swatches grid
265
+ .calc-color(@first-color, @second-color) {
266
+ .palette-@{first-color} {
267
+ background-color: ~"@{@{first-color}}";
268
+ }
269
+ .palette-@{second-color} {
270
+ background-color: ~"@{@{second-color}}";
271
+ }
272
+ }
273
+
274
+ // Labels
275
+ // -------------------------
276
+ .label-variant(@color, @hover-color, @text-color: @inverse) {
277
+ background-color: @color;
278
+ color: @text-color;
279
+
280
+ &[href] {
281
+ color: @text-color;
282
+
283
+ &:hover,
284
+ &:focus {
285
+ color: @text-color;
286
+ background-color: @hover-color;
287
+ }
288
+ }
289
+ }
290
+
291
+ // Form validation states
292
+ //
293
+ // Used in forms.less to generate the form validation CSS for warnings, errors,
294
+ // and successes.
295
+
296
+ .form-control-validation(@text-color: @base; @border-color: @lightgray; @background-color: @inverse) {
297
+ // Color the label and help text
298
+ .help-block,
299
+ .control-label {
300
+ color: @text-color;
301
+ }
302
+ // Set the border and box shadow on specific inputs to match
303
+ .form-control {
304
+ color: @text-color;
305
+ border-color: @border-color;
306
+ .box-shadow(none);
307
+ .placeholder-color(@text-color);
308
+
309
+ &:focus {
310
+ border-color: @border-color;
311
+ .box-shadow(none);
312
+ }
313
+ }
314
+ // Set validation states also for addons
315
+ .input-group-addon {
316
+ color: @text-color;
317
+ border-color: @border-color;
318
+ background-color: @background-color;
319
+ }
320
+ }
321
+
322
+ // Form control focus state
323
+ //
324
+ // Generate a customized focus state and for any input with the specified color,
325
+ // which defaults to the `@input-focus-border` variable.
326
+ //
327
+ // We highly encourage you to not customize the default value, but instead use
328
+ // this to tweak colors on an as-needed basis. This aesthetic change is based on
329
+ // WebKit's default styles, but applicable to a wider range of browsers. Its
330
+ // usability and accessibility should be taken into account with any change.
331
+ //
332
+ // Example usage: change the default blue border and shadow to white for better
333
+ // contrast against a dark gray background.
334
+
335
+ .form-control-focus(@color: @firm) {
336
+ .form-group.focus &,
337
+ &:focus {
338
+ border-color: @color;
339
+ outline: 0;
340
+ .box-shadow(none);
341
+ }
342
+ }
343
+
344
+ // Form control sizing
345
+ //
346
+ // Relative text size, padding, and border-radii changes for form controls. For
347
+ // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
348
+ // element gets special love because it's special, and that's a fact!
349
+
350
+ .input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius: @border-radius-large) {
351
+ height: @input-height;
352
+ padding: @padding-vertical @padding-horizontal;
353
+ font-size: @font-size;
354
+ line-height: @line-height;
355
+ border-radius: @border-radius;
356
+
357
+ select& {
358
+ height: @input-height;
359
+ line-height: @input-height;
360
+ }
361
+
362
+ textarea& {
363
+ height: auto;
364
+ }
365
+ }