fomantic-ui-sass 2.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +27 -0
- data/.rspec +1 -0
- data/.travis.yml +5 -0
- data/CHANGELOG.md +370 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +177 -0
- data/Rakefile +8 -0
- data/app/assets/fonts/semantic-ui/brand-icons.eot +0 -0
- data/app/assets/fonts/semantic-ui/brand-icons.svg +1008 -0
- data/app/assets/fonts/semantic-ui/brand-icons.ttf +0 -0
- data/app/assets/fonts/semantic-ui/brand-icons.woff +0 -0
- data/app/assets/fonts/semantic-ui/brand-icons.woff2 +0 -0
- data/app/assets/fonts/semantic-ui/icons.eot +0 -0
- data/app/assets/fonts/semantic-ui/icons.otf +0 -0
- data/app/assets/fonts/semantic-ui/icons.svg +1518 -0
- data/app/assets/fonts/semantic-ui/icons.ttf +0 -0
- data/app/assets/fonts/semantic-ui/icons.woff +0 -0
- data/app/assets/fonts/semantic-ui/icons.woff2 +0 -0
- data/app/assets/fonts/semantic-ui/outline-icons.eot +0 -0
- data/app/assets/fonts/semantic-ui/outline-icons.svg +366 -0
- data/app/assets/fonts/semantic-ui/outline-icons.ttf +0 -0
- data/app/assets/fonts/semantic-ui/outline-icons.woff +0 -0
- data/app/assets/fonts/semantic-ui/outline-icons.woff2 +0 -0
- data/app/assets/images/semantic-ui/flags.png +0 -0
- data/app/assets/javascripts/semantic-ui.js +27 -0
- data/app/assets/javascripts/semantic-ui/accordion.js +613 -0
- data/app/assets/javascripts/semantic-ui/api.js +1167 -0
- data/app/assets/javascripts/semantic-ui/calendar.js +1476 -0
- data/app/assets/javascripts/semantic-ui/checkbox.js +828 -0
- data/app/assets/javascripts/semantic-ui/colorize.js +280 -0
- data/app/assets/javascripts/semantic-ui/dimmer.js +735 -0
- data/app/assets/javascripts/semantic-ui/dropdown.js +4030 -0
- data/app/assets/javascripts/semantic-ui/embed.js +706 -0
- data/app/assets/javascripts/semantic-ui/form.js +1707 -0
- data/app/assets/javascripts/semantic-ui/modal.js +1090 -0
- data/app/assets/javascripts/semantic-ui/nag.js +507 -0
- data/app/assets/javascripts/semantic-ui/popup.js +1532 -0
- data/app/assets/javascripts/semantic-ui/progress.js +923 -0
- data/app/assets/javascripts/semantic-ui/range.js +278 -0
- data/app/assets/javascripts/semantic-ui/rating.js +511 -0
- data/app/assets/javascripts/semantic-ui/search.js +1515 -0
- data/app/assets/javascripts/semantic-ui/shape.js +921 -0
- data/app/assets/javascripts/semantic-ui/sidebar.js +1033 -0
- data/app/assets/javascripts/semantic-ui/site.js +490 -0
- data/app/assets/javascripts/semantic-ui/state.js +708 -0
- data/app/assets/javascripts/semantic-ui/sticky.js +959 -0
- data/app/assets/javascripts/semantic-ui/tab.js +952 -0
- data/app/assets/javascripts/semantic-ui/toast.js +592 -0
- data/app/assets/javascripts/semantic-ui/transition.js +1106 -0
- data/app/assets/javascripts/semantic-ui/video.js +532 -0
- data/app/assets/javascripts/semantic-ui/visibility.js +1311 -0
- data/app/assets/javascripts/semantic-ui/visit.js +525 -0
- data/app/assets/stylesheets/semantic-ui.scss +5 -0
- data/app/assets/stylesheets/semantic-ui/collections/_all.scss +6 -0
- data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +124 -0
- data/app/assets/stylesheets/semantic-ui/collections/_form.scss +1158 -0
- data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +2093 -0
- data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +2193 -0
- data/app/assets/stylesheets/semantic-ui/collections/_message.scss +606 -0
- data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1117 -0
- data/app/assets/stylesheets/semantic-ui/elements/_all.scss +16 -0
- data/app/assets/stylesheets/semantic-ui/elements/_button.scss +4530 -0
- data/app/assets/stylesheets/semantic-ui/elements/_container.scss +145 -0
- data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +259 -0
- data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1036 -0
- data/app/assets/stylesheets/semantic-ui/elements/_header.scss +762 -0
- data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +6330 -0
- data/app/assets/stylesheets/semantic-ui/elements/_image.scss +310 -0
- data/app/assets/stylesheets/semantic-ui/elements/_input.scss +519 -0
- data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1395 -0
- data/app/assets/stylesheets/semantic-ui/elements/_list.scss +959 -0
- data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +458 -0
- data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +242 -0
- data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +152 -0
- data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +295 -0
- data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +884 -0
- data/app/assets/stylesheets/semantic-ui/elements/_step.scss +675 -0
- data/app/assets/stylesheets/semantic-ui/globals/_all.scss +3 -0
- data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +485 -0
- data/app/assets/stylesheets/semantic-ui/globals/_site.scss +206 -0
- data/app/assets/stylesheets/semantic-ui/globals/_variables.scss +4 -0
- data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +247 -0
- data/app/assets/stylesheets/semantic-ui/modules/_all.scss +20 -0
- data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +165 -0
- data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +718 -0
- data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +464 -0
- data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +1745 -0
- data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +165 -0
- data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +646 -0
- data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +148 -0
- data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +789 -0
- data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +523 -0
- data/app/assets/stylesheets/semantic-ui/modules/_range.scss +192 -0
- data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +263 -0
- data/app/assets/stylesheets/semantic-ui/modules/_search.scss +445 -0
- data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +154 -0
- data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +626 -0
- data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +78 -0
- data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +92 -0
- data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +291 -0
- data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +2059 -0
- data/app/assets/stylesheets/semantic-ui/modules/_video.scss +125 -0
- data/app/assets/stylesheets/semantic-ui/views/_ad.scss +275 -0
- data/app/assets/stylesheets/semantic-ui/views/_all.scss +6 -0
- data/app/assets/stylesheets/semantic-ui/views/_card.scss +1124 -0
- data/app/assets/stylesheets/semantic-ui/views/_comment.scss +296 -0
- data/app/assets/stylesheets/semantic-ui/views/_feed.scss +314 -0
- data/app/assets/stylesheets/semantic-ui/views/_item.scss +555 -0
- data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +583 -0
- data/app/helpers/semantic_breadcrumbs_helper.rb +10 -0
- data/app/helpers/semantic_flash_helper.rb +22 -0
- data/app/helpers/semantic_icon_helper.rb +8 -0
- data/app/views/semantic/_breadcrumbs.html.erb +12 -0
- data/fomantic-ui-sass.gemspec +31 -0
- data/lib/fomantic-ui-sass.rb +62 -0
- data/lib/fomantic/ui/sass/breadcrumbs.rb +41 -0
- data/lib/fomantic/ui/sass/engine.rb +23 -0
- data/lib/fomantic/ui/sass/version.rb +8 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/helpers/semantic_breadcrumbs_helper_spec.rb +38 -0
- data/spec/helpers/semantic_flash_helper_spec.rb +36 -0
- data/spec/helpers/semantic_icon_helper_spec.rb +48 -0
- data/spec/spec_helper.rb +17 -0
- data/tasks/converter.rb +216 -0
- data/templates/project/manifest.rb +29 -0
- data/templates/project/styles.scss +1 -0
- metadata +390 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= 'test'
|
2
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
3
|
+
require 'rspec/rails'
|
4
|
+
|
5
|
+
RSpec.configure do |config|
|
6
|
+
config.infer_spec_type_from_file_location!
|
7
|
+
end
|
8
|
+
|
9
|
+
def normalize(str)
|
10
|
+
str.split("\n").map(&:strip).join("")
|
11
|
+
end
|
12
|
+
|
13
|
+
RSpec::Matchers.define :like_of do |expected|
|
14
|
+
match do |actual|
|
15
|
+
normalize(actual) == normalize(expected)
|
16
|
+
end
|
17
|
+
end
|
data/tasks/converter.rb
ADDED
@@ -0,0 +1,216 @@
|
|
1
|
+
# Based on convert script from vwall/compass-twitter-bootstrap gem.
|
2
|
+
# https://github.com/vwall/compass-twitter-bootstrap/blob/#{@branch}/build/convert.rb
|
3
|
+
|
4
|
+
require 'open-uri'
|
5
|
+
require 'json'
|
6
|
+
require 'fileutils'
|
7
|
+
require "pry"
|
8
|
+
require "dotenv"
|
9
|
+
|
10
|
+
require 'pathname'
|
11
|
+
|
12
|
+
Dotenv.load
|
13
|
+
|
14
|
+
class Converter
|
15
|
+
|
16
|
+
GIT_DATA = 'https://api.github.com/repos'
|
17
|
+
GIT_RAW = 'https://raw.githubusercontent.com'
|
18
|
+
TOKEN = ENV['TOKEN']
|
19
|
+
|
20
|
+
|
21
|
+
def initialize(branch)
|
22
|
+
@repo = 'fomantic/Fomantic-UI'
|
23
|
+
@repo_url = "https://github.com/#@repo"
|
24
|
+
@branch = branch || 'master'
|
25
|
+
@git_data_trees = "#{GIT_DATA}/#{@repo}/git/trees"
|
26
|
+
@git_raw_src = "#{GIT_RAW}/#{@repo}/#{@branch}/dist"
|
27
|
+
@branch_sha = get_tree_sha
|
28
|
+
end
|
29
|
+
|
30
|
+
def process
|
31
|
+
# process_stylesheets_assets
|
32
|
+
|
33
|
+
process_images_and_fonts_assets
|
34
|
+
# store_version
|
35
|
+
|
36
|
+
checkout_repository
|
37
|
+
choose_version(@branch)
|
38
|
+
process_stylesheets_assets
|
39
|
+
process_javascript_assets
|
40
|
+
store_version
|
41
|
+
end
|
42
|
+
|
43
|
+
def paths
|
44
|
+
@gem_paths ||= Paths.new
|
45
|
+
end
|
46
|
+
|
47
|
+
def checkout_repository
|
48
|
+
if Dir.exist?(paths.tmp_semantic_ui)
|
49
|
+
system %Q{cd '#{paths.tmp_semantic_ui}' && git fetch --quiet}
|
50
|
+
else
|
51
|
+
system %Q{git clone --quiet git@github.com:fomantic/Fomantic-UI.git '#{paths.tmp_semantic_ui}'}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def choose_version(version)
|
56
|
+
system %Q{cd '#{paths.tmp_semantic_ui}' && git checkout --quiet #{version}}
|
57
|
+
end
|
58
|
+
|
59
|
+
def process_images_and_fonts_assets
|
60
|
+
fonts = File.join(paths.tmp_semantic_ui_dist, 'themes/default/assets/fonts', '*')
|
61
|
+
Dir[fonts].each do |src|
|
62
|
+
FileUtils.cp(src, paths.fonts)
|
63
|
+
end
|
64
|
+
images = File.join(paths.tmp_semantic_ui_dist, 'themes/default/assets/images', '*')
|
65
|
+
Dir[images].each do |src|
|
66
|
+
FileUtils.cp(src, paths.images)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
def process_stylesheets_assets
|
71
|
+
# content = ""
|
72
|
+
Dir[File.join(paths.tmp_semantic_ui_definitions, '*')].each do |path|
|
73
|
+
# all = ""
|
74
|
+
|
75
|
+
Dir[File.join(path, "*.less")].each do |file|
|
76
|
+
|
77
|
+
filename = File.basename(file).gsub(".less", '.css')
|
78
|
+
|
79
|
+
Dir[File.join(paths.tmp_semantic_ui_components, "*.css")].each do |src|
|
80
|
+
name = File.basename(src)
|
81
|
+
|
82
|
+
if name == filename
|
83
|
+
file = open(src).read
|
84
|
+
file = convert(file)
|
85
|
+
save_file(name, file, File.basename(path))
|
86
|
+
|
87
|
+
# all << "@import '#{name.gsub(".css", "")}';\n"
|
88
|
+
end #filename
|
89
|
+
end
|
90
|
+
end
|
91
|
+
# save_file("all", all, File.basename(path)) if all != ''
|
92
|
+
# content << "@import 'semantic-ui/#{File.basename(path)}/all';\n";
|
93
|
+
|
94
|
+
end
|
95
|
+
# File.open("app/assets/stylesheets/semantic-ui.scss", "w+") { |file| file.write(content) }
|
96
|
+
end
|
97
|
+
|
98
|
+
|
99
|
+
def process_javascript_assets
|
100
|
+
# js = ""
|
101
|
+
Dir[File.join(paths.tmp_semantic_ui_definitions, '**/*.js')].each do |src|
|
102
|
+
name = File.basename(src).gsub(".js", '')
|
103
|
+
# js << "//= require #{name}\n"
|
104
|
+
FileUtils.cp(src, paths.javascripts)
|
105
|
+
end
|
106
|
+
# File.open("app/assets/javascripts/semantic-ui.js", "w+") { |file| file.write(js) }
|
107
|
+
end
|
108
|
+
|
109
|
+
|
110
|
+
private
|
111
|
+
|
112
|
+
# Get the sha of less branch
|
113
|
+
def get_tree_sha
|
114
|
+
sha = nil
|
115
|
+
trees = get_json("#{@git_data_trees}/#{@branch}")
|
116
|
+
trees['tree'].find{|t| t['path'] == 'dist'}['sha']
|
117
|
+
end
|
118
|
+
|
119
|
+
|
120
|
+
def convert(file)
|
121
|
+
file = replace_fonts_url(file)
|
122
|
+
file = replace_import_font_url(file)
|
123
|
+
file = replace_font_family(file)
|
124
|
+
file = replace_image_urls(file)
|
125
|
+
file = replace_image_paths(file)
|
126
|
+
|
127
|
+
file
|
128
|
+
end
|
129
|
+
|
130
|
+
|
131
|
+
def save_file(name, content, path, type='stylesheets')
|
132
|
+
|
133
|
+
name = name.gsub(/\.css/, '')
|
134
|
+
file = "#{paths.stylesheets}/#{path}/_#{name}.scss"
|
135
|
+
dir = File.dirname(file)
|
136
|
+
FileUtils.mkdir_p(dir) unless File.directory?(file)
|
137
|
+
File.open(file, 'w+') { |f| f.write(content) }
|
138
|
+
# puts "Saved #{name} at #{path}\n"
|
139
|
+
end
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
def get_json(url)
|
144
|
+
url += "?access_token=#{TOKEN}" unless TOKEN.nil?
|
145
|
+
data = open_git_file(url)
|
146
|
+
data = JSON.parse data
|
147
|
+
end
|
148
|
+
|
149
|
+
def open_git_file(file)
|
150
|
+
open(file).read
|
151
|
+
end
|
152
|
+
|
153
|
+
def store_version
|
154
|
+
path = 'lib/fomantic/ui/sass/version.rb'
|
155
|
+
content = File.read(path).sub(/SEMANTIC_UI_SHA\s*=\s*['"][\w]+['"]/, "SEMANTIC_UI_SHA = '#@branch_sha'")
|
156
|
+
File.open(path, 'w') { |f| f.write(content) }
|
157
|
+
end
|
158
|
+
|
159
|
+
def replace_fonts_url(less)
|
160
|
+
less.gsub(/url\(\"\.\/\.\.\/themes\/default\/assets\/fonts\/?(.*?)\"\)/) {|s| "font-url(\"semantic-ui/#{$1}\")" }
|
161
|
+
end
|
162
|
+
|
163
|
+
def replace_font_family(less)
|
164
|
+
less.gsub("font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif", 'font-family: $font-family')
|
165
|
+
end
|
166
|
+
|
167
|
+
def replace_import_font_url(less)
|
168
|
+
less.gsub("@import url('https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin');", '@if $import-google-fonts {
|
169
|
+
@import url($font-url);
|
170
|
+
}')
|
171
|
+
end
|
172
|
+
|
173
|
+
def replace_image_urls(less)
|
174
|
+
less.gsub(/url\("?(.*?).png"?\)/) {|s| "image-url(\"#{$1}.png\")" }
|
175
|
+
end
|
176
|
+
|
177
|
+
def replace_image_paths(less)
|
178
|
+
less = less.gsub('./../themes/default/assets/images/flags.png', 'semantic-ui/flags.png')
|
179
|
+
less.gsub('../themes/default/assets/images/', 'semantic-ui/')
|
180
|
+
end
|
181
|
+
|
182
|
+
end
|
183
|
+
|
184
|
+
class Paths
|
185
|
+
attr_reader :root
|
186
|
+
attr_reader :tmp
|
187
|
+
attr_reader :tmp_semantic_ui
|
188
|
+
attr_reader :tmp_semantic_ui_src
|
189
|
+
attr_reader :tmp_semantic_ui_definitions
|
190
|
+
attr_reader :tmp_semantic_ui_dist
|
191
|
+
attr_reader :tmp_semantic_ui_components
|
192
|
+
|
193
|
+
attr_reader :fonts
|
194
|
+
attr_reader :images
|
195
|
+
attr_reader :javascripts
|
196
|
+
attr_reader :stylesheets
|
197
|
+
|
198
|
+
|
199
|
+
def initialize
|
200
|
+
@root = File.expand_path('..', __dir__)
|
201
|
+
|
202
|
+
@tmp = File.join(@root, 'tmp')
|
203
|
+
@tmp_semantic_ui = File.join(@tmp, 'semantic-ui')
|
204
|
+
@tmp_semantic_ui_src = File.join(@tmp_semantic_ui, 'src')
|
205
|
+
@tmp_semantic_ui_definitions = File.join(@tmp_semantic_ui_src, 'definitions')
|
206
|
+
|
207
|
+
@tmp_semantic_ui_dist = File.join(@tmp_semantic_ui, 'dist')
|
208
|
+
@tmp_semantic_ui_components = File.join(@tmp_semantic_ui_dist, 'components')
|
209
|
+
|
210
|
+
@app = File.join(@root, 'app')
|
211
|
+
@fonts = File.join(@app, 'assets', 'fonts', 'semantic-ui')
|
212
|
+
@images = File.join(@app, 'assets', 'images', 'semantic-ui')
|
213
|
+
@javascripts = File.join(@app, 'assets', 'javascripts', 'semantic-ui')
|
214
|
+
@stylesheets = File.join(@app, 'assets', 'stylesheets', 'semantic-ui')
|
215
|
+
end
|
216
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
description "Semantic UI for Sass"
|
2
|
+
|
3
|
+
# Stylesheet importing semantic
|
4
|
+
stylesheet 'styles.scss'
|
5
|
+
|
6
|
+
# Other Semantic UI assets
|
7
|
+
basedir = '../../app/assets'
|
8
|
+
image_dir = "#{basedir}/images/semantic-ui"
|
9
|
+
javascript_dir = ["#{basedir}/javascripts/semantic-ui", "#{basedir}/javascripts/semantic-ui/behavior"]
|
10
|
+
font_dir = "#{basedir}/fonts/semantic-ui"
|
11
|
+
|
12
|
+
|
13
|
+
Dir[File.join(File.dirname(__FILE__), image_dir, '*.png')].each do |file|
|
14
|
+
filename = File.basename(file)
|
15
|
+
image "#{image_dir}/#{filename}", to: "semantic-ui/#{filename}"
|
16
|
+
end
|
17
|
+
|
18
|
+
javascript_dir.each do |dir|
|
19
|
+
Dir[File.join(File.dirname(__FILE__), dir, '*.js')].each do |file|
|
20
|
+
filename = File.basename(file)
|
21
|
+
to_path = dir.include?('behavior') ? "semantic-ui/behavior/#{filename}" : "semantic-ui/#{filename}"
|
22
|
+
javascript "#{dir}/#{filename}", to: to_path
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
Dir[File.join(File.dirname(__FILE__), font_dir, '*')].each do |file|
|
27
|
+
filename = File.basename(file)
|
28
|
+
font "#{font_dir}/#{filename}", to: "semantic-ui/#{filename}"
|
29
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
@import 'semantic-ui';
|
metadata
ADDED
@@ -0,0 +1,390 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fomantic-ui-sass
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.6.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- doabit
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sass
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sass-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sprockets-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.1.3
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.1.3
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: dotenv
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rails
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.2.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.2.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: autoprefixer-rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: Fomantic UI, converted to Sass and ready to drop into Rails, Compass,
|
154
|
+
or Sprockets.
|
155
|
+
email:
|
156
|
+
- doinsist@gmail.com
|
157
|
+
executables: []
|
158
|
+
extensions: []
|
159
|
+
extra_rdoc_files: []
|
160
|
+
files:
|
161
|
+
- ".gitignore"
|
162
|
+
- ".rspec"
|
163
|
+
- ".travis.yml"
|
164
|
+
- CHANGELOG.md
|
165
|
+
- Gemfile
|
166
|
+
- LICENSE.txt
|
167
|
+
- README.md
|
168
|
+
- Rakefile
|
169
|
+
- app/assets/fonts/semantic-ui/brand-icons.eot
|
170
|
+
- app/assets/fonts/semantic-ui/brand-icons.svg
|
171
|
+
- app/assets/fonts/semantic-ui/brand-icons.ttf
|
172
|
+
- app/assets/fonts/semantic-ui/brand-icons.woff
|
173
|
+
- app/assets/fonts/semantic-ui/brand-icons.woff2
|
174
|
+
- app/assets/fonts/semantic-ui/icons.eot
|
175
|
+
- app/assets/fonts/semantic-ui/icons.otf
|
176
|
+
- app/assets/fonts/semantic-ui/icons.svg
|
177
|
+
- app/assets/fonts/semantic-ui/icons.ttf
|
178
|
+
- app/assets/fonts/semantic-ui/icons.woff
|
179
|
+
- app/assets/fonts/semantic-ui/icons.woff2
|
180
|
+
- app/assets/fonts/semantic-ui/outline-icons.eot
|
181
|
+
- app/assets/fonts/semantic-ui/outline-icons.svg
|
182
|
+
- app/assets/fonts/semantic-ui/outline-icons.ttf
|
183
|
+
- app/assets/fonts/semantic-ui/outline-icons.woff
|
184
|
+
- app/assets/fonts/semantic-ui/outline-icons.woff2
|
185
|
+
- app/assets/images/semantic-ui/flags.png
|
186
|
+
- app/assets/javascripts/semantic-ui.js
|
187
|
+
- app/assets/javascripts/semantic-ui/accordion.js
|
188
|
+
- app/assets/javascripts/semantic-ui/api.js
|
189
|
+
- app/assets/javascripts/semantic-ui/calendar.js
|
190
|
+
- app/assets/javascripts/semantic-ui/checkbox.js
|
191
|
+
- app/assets/javascripts/semantic-ui/colorize.js
|
192
|
+
- app/assets/javascripts/semantic-ui/dimmer.js
|
193
|
+
- app/assets/javascripts/semantic-ui/dropdown.js
|
194
|
+
- app/assets/javascripts/semantic-ui/embed.js
|
195
|
+
- app/assets/javascripts/semantic-ui/form.js
|
196
|
+
- app/assets/javascripts/semantic-ui/modal.js
|
197
|
+
- app/assets/javascripts/semantic-ui/nag.js
|
198
|
+
- app/assets/javascripts/semantic-ui/popup.js
|
199
|
+
- app/assets/javascripts/semantic-ui/progress.js
|
200
|
+
- app/assets/javascripts/semantic-ui/range.js
|
201
|
+
- app/assets/javascripts/semantic-ui/rating.js
|
202
|
+
- app/assets/javascripts/semantic-ui/search.js
|
203
|
+
- app/assets/javascripts/semantic-ui/shape.js
|
204
|
+
- app/assets/javascripts/semantic-ui/sidebar.js
|
205
|
+
- app/assets/javascripts/semantic-ui/site.js
|
206
|
+
- app/assets/javascripts/semantic-ui/state.js
|
207
|
+
- app/assets/javascripts/semantic-ui/sticky.js
|
208
|
+
- app/assets/javascripts/semantic-ui/tab.js
|
209
|
+
- app/assets/javascripts/semantic-ui/toast.js
|
210
|
+
- app/assets/javascripts/semantic-ui/transition.js
|
211
|
+
- app/assets/javascripts/semantic-ui/video.js
|
212
|
+
- app/assets/javascripts/semantic-ui/visibility.js
|
213
|
+
- app/assets/javascripts/semantic-ui/visit.js
|
214
|
+
- app/assets/stylesheets/semantic-ui.scss
|
215
|
+
- app/assets/stylesheets/semantic-ui/collections/_all.scss
|
216
|
+
- app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss
|
217
|
+
- app/assets/stylesheets/semantic-ui/collections/_form.scss
|
218
|
+
- app/assets/stylesheets/semantic-ui/collections/_grid.scss
|
219
|
+
- app/assets/stylesheets/semantic-ui/collections/_menu.scss
|
220
|
+
- app/assets/stylesheets/semantic-ui/collections/_message.scss
|
221
|
+
- app/assets/stylesheets/semantic-ui/collections/_table.scss
|
222
|
+
- app/assets/stylesheets/semantic-ui/elements/_all.scss
|
223
|
+
- app/assets/stylesheets/semantic-ui/elements/_button.scss
|
224
|
+
- app/assets/stylesheets/semantic-ui/elements/_container.scss
|
225
|
+
- app/assets/stylesheets/semantic-ui/elements/_divider.scss
|
226
|
+
- app/assets/stylesheets/semantic-ui/elements/_flag.scss
|
227
|
+
- app/assets/stylesheets/semantic-ui/elements/_header.scss
|
228
|
+
- app/assets/stylesheets/semantic-ui/elements/_icon.scss
|
229
|
+
- app/assets/stylesheets/semantic-ui/elements/_image.scss
|
230
|
+
- app/assets/stylesheets/semantic-ui/elements/_input.scss
|
231
|
+
- app/assets/stylesheets/semantic-ui/elements/_label.scss
|
232
|
+
- app/assets/stylesheets/semantic-ui/elements/_list.scss
|
233
|
+
- app/assets/stylesheets/semantic-ui/elements/_loader.scss
|
234
|
+
- app/assets/stylesheets/semantic-ui/elements/_placeholder.scss
|
235
|
+
- app/assets/stylesheets/semantic-ui/elements/_rail.scss
|
236
|
+
- app/assets/stylesheets/semantic-ui/elements/_reveal.scss
|
237
|
+
- app/assets/stylesheets/semantic-ui/elements/_segment.scss
|
238
|
+
- app/assets/stylesheets/semantic-ui/elements/_step.scss
|
239
|
+
- app/assets/stylesheets/semantic-ui/globals/_all.scss
|
240
|
+
- app/assets/stylesheets/semantic-ui/globals/_reset.scss
|
241
|
+
- app/assets/stylesheets/semantic-ui/globals/_site.scss
|
242
|
+
- app/assets/stylesheets/semantic-ui/globals/_variables.scss
|
243
|
+
- app/assets/stylesheets/semantic-ui/modules/_accordion.scss
|
244
|
+
- app/assets/stylesheets/semantic-ui/modules/_all.scss
|
245
|
+
- app/assets/stylesheets/semantic-ui/modules/_calendar.scss
|
246
|
+
- app/assets/stylesheets/semantic-ui/modules/_checkbox.scss
|
247
|
+
- app/assets/stylesheets/semantic-ui/modules/_dimmer.scss
|
248
|
+
- app/assets/stylesheets/semantic-ui/modules/_dropdown.scss
|
249
|
+
- app/assets/stylesheets/semantic-ui/modules/_embed.scss
|
250
|
+
- app/assets/stylesheets/semantic-ui/modules/_modal.scss
|
251
|
+
- app/assets/stylesheets/semantic-ui/modules/_nag.scss
|
252
|
+
- app/assets/stylesheets/semantic-ui/modules/_popup.scss
|
253
|
+
- app/assets/stylesheets/semantic-ui/modules/_progress.scss
|
254
|
+
- app/assets/stylesheets/semantic-ui/modules/_range.scss
|
255
|
+
- app/assets/stylesheets/semantic-ui/modules/_rating.scss
|
256
|
+
- app/assets/stylesheets/semantic-ui/modules/_search.scss
|
257
|
+
- app/assets/stylesheets/semantic-ui/modules/_shape.scss
|
258
|
+
- app/assets/stylesheets/semantic-ui/modules/_sidebar.scss
|
259
|
+
- app/assets/stylesheets/semantic-ui/modules/_sticky.scss
|
260
|
+
- app/assets/stylesheets/semantic-ui/modules/_tab.scss
|
261
|
+
- app/assets/stylesheets/semantic-ui/modules/_toast.scss
|
262
|
+
- app/assets/stylesheets/semantic-ui/modules/_transition.scss
|
263
|
+
- app/assets/stylesheets/semantic-ui/modules/_video.scss
|
264
|
+
- app/assets/stylesheets/semantic-ui/views/_ad.scss
|
265
|
+
- app/assets/stylesheets/semantic-ui/views/_all.scss
|
266
|
+
- app/assets/stylesheets/semantic-ui/views/_card.scss
|
267
|
+
- app/assets/stylesheets/semantic-ui/views/_comment.scss
|
268
|
+
- app/assets/stylesheets/semantic-ui/views/_feed.scss
|
269
|
+
- app/assets/stylesheets/semantic-ui/views/_item.scss
|
270
|
+
- app/assets/stylesheets/semantic-ui/views/_statistic.scss
|
271
|
+
- app/helpers/semantic_breadcrumbs_helper.rb
|
272
|
+
- app/helpers/semantic_flash_helper.rb
|
273
|
+
- app/helpers/semantic_icon_helper.rb
|
274
|
+
- app/views/semantic/_breadcrumbs.html.erb
|
275
|
+
- fomantic-ui-sass.gemspec
|
276
|
+
- lib/fomantic-ui-sass.rb
|
277
|
+
- lib/fomantic/ui/sass/breadcrumbs.rb
|
278
|
+
- lib/fomantic/ui/sass/engine.rb
|
279
|
+
- lib/fomantic/ui/sass/version.rb
|
280
|
+
- spec/dummy/README.rdoc
|
281
|
+
- spec/dummy/Rakefile
|
282
|
+
- spec/dummy/app/assets/images/.keep
|
283
|
+
- spec/dummy/app/assets/javascripts/application.js
|
284
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
285
|
+
- spec/dummy/app/controllers/application_controller.rb
|
286
|
+
- spec/dummy/app/controllers/concerns/.keep
|
287
|
+
- spec/dummy/app/helpers/application_helper.rb
|
288
|
+
- spec/dummy/app/mailers/.keep
|
289
|
+
- spec/dummy/app/models/.keep
|
290
|
+
- spec/dummy/app/models/concerns/.keep
|
291
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
292
|
+
- spec/dummy/bin/bundle
|
293
|
+
- spec/dummy/bin/rails
|
294
|
+
- spec/dummy/bin/rake
|
295
|
+
- spec/dummy/config.ru
|
296
|
+
- spec/dummy/config/application.rb
|
297
|
+
- spec/dummy/config/boot.rb
|
298
|
+
- spec/dummy/config/environment.rb
|
299
|
+
- spec/dummy/config/environments/development.rb
|
300
|
+
- spec/dummy/config/environments/production.rb
|
301
|
+
- spec/dummy/config/environments/test.rb
|
302
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
303
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
304
|
+
- spec/dummy/config/initializers/inflections.rb
|
305
|
+
- spec/dummy/config/initializers/mime_types.rb
|
306
|
+
- spec/dummy/config/initializers/secret_token.rb
|
307
|
+
- spec/dummy/config/initializers/session_store.rb
|
308
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
309
|
+
- spec/dummy/config/locales/en.yml
|
310
|
+
- spec/dummy/config/routes.rb
|
311
|
+
- spec/dummy/lib/assets/.keep
|
312
|
+
- spec/dummy/log/.keep
|
313
|
+
- spec/dummy/public/404.html
|
314
|
+
- spec/dummy/public/422.html
|
315
|
+
- spec/dummy/public/500.html
|
316
|
+
- spec/dummy/public/favicon.ico
|
317
|
+
- spec/helpers/semantic_breadcrumbs_helper_spec.rb
|
318
|
+
- spec/helpers/semantic_flash_helper_spec.rb
|
319
|
+
- spec/helpers/semantic_icon_helper_spec.rb
|
320
|
+
- spec/spec_helper.rb
|
321
|
+
- tasks/converter.rb
|
322
|
+
- templates/project/manifest.rb
|
323
|
+
- templates/project/styles.scss
|
324
|
+
homepage: http://github.com/shanecav84/fomantic-ui-sass
|
325
|
+
licenses:
|
326
|
+
- MIT
|
327
|
+
metadata: {}
|
328
|
+
post_install_message:
|
329
|
+
rdoc_options: []
|
330
|
+
require_paths:
|
331
|
+
- lib
|
332
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
333
|
+
requirements:
|
334
|
+
- - ">="
|
335
|
+
- !ruby/object:Gem::Version
|
336
|
+
version: '0'
|
337
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - ">="
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '0'
|
342
|
+
requirements: []
|
343
|
+
rubyforge_project:
|
344
|
+
rubygems_version: 2.7.6
|
345
|
+
signing_key:
|
346
|
+
specification_version: 4
|
347
|
+
summary: Fomantic UI, converted to Sass and ready to drop into Rails, Compass, or
|
348
|
+
Sprockets.
|
349
|
+
test_files:
|
350
|
+
- spec/dummy/README.rdoc
|
351
|
+
- spec/dummy/Rakefile
|
352
|
+
- spec/dummy/app/assets/images/.keep
|
353
|
+
- spec/dummy/app/assets/javascripts/application.js
|
354
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
355
|
+
- spec/dummy/app/controllers/application_controller.rb
|
356
|
+
- spec/dummy/app/controllers/concerns/.keep
|
357
|
+
- spec/dummy/app/helpers/application_helper.rb
|
358
|
+
- spec/dummy/app/mailers/.keep
|
359
|
+
- spec/dummy/app/models/.keep
|
360
|
+
- spec/dummy/app/models/concerns/.keep
|
361
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
362
|
+
- spec/dummy/bin/bundle
|
363
|
+
- spec/dummy/bin/rails
|
364
|
+
- spec/dummy/bin/rake
|
365
|
+
- spec/dummy/config.ru
|
366
|
+
- spec/dummy/config/application.rb
|
367
|
+
- spec/dummy/config/boot.rb
|
368
|
+
- spec/dummy/config/environment.rb
|
369
|
+
- spec/dummy/config/environments/development.rb
|
370
|
+
- spec/dummy/config/environments/production.rb
|
371
|
+
- spec/dummy/config/environments/test.rb
|
372
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
373
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
374
|
+
- spec/dummy/config/initializers/inflections.rb
|
375
|
+
- spec/dummy/config/initializers/mime_types.rb
|
376
|
+
- spec/dummy/config/initializers/secret_token.rb
|
377
|
+
- spec/dummy/config/initializers/session_store.rb
|
378
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
379
|
+
- spec/dummy/config/locales/en.yml
|
380
|
+
- spec/dummy/config/routes.rb
|
381
|
+
- spec/dummy/lib/assets/.keep
|
382
|
+
- spec/dummy/log/.keep
|
383
|
+
- spec/dummy/public/404.html
|
384
|
+
- spec/dummy/public/422.html
|
385
|
+
- spec/dummy/public/500.html
|
386
|
+
- spec/dummy/public/favicon.ico
|
387
|
+
- spec/helpers/semantic_breadcrumbs_helper_spec.rb
|
388
|
+
- spec/helpers/semantic_flash_helper_spec.rb
|
389
|
+
- spec/helpers/semantic_icon_helper_spec.rb
|
390
|
+
- spec/spec_helper.rb
|