Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Modified converter for 3.0.0
Browse files Browse the repository at this point in the history
* Dependencies are now living under the lib folder (like upstream)
* FontAwesome and Bootstrap are included from gems (unlike upstream)
* Dropped dependency on rails-assets-* gems
* Bower dependencies are now production dependencies (like upstream)
* Improved rakefile task dependencies
* NPM packaging not supported yet
  • Loading branch information
skateman committed Feb 5, 2016
1 parent e0ba623 commit de2ce22
Show file tree
Hide file tree
Showing 90 changed files with 3,682 additions and 259 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cache:
- bower_components
sudo: false
rvm:
- 2.0.0
- 2.3.0
before_script:
- npm install bower
- bundle exec rake compile
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
source 'https://rubygems.org'
source "https://rails-assets.org"

gemspec
1,366 changes: 1,366 additions & 0 deletions OPEN_SOURCE_LICENCES.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Please see the appropriate guide for your environment of choice:
In your Gemfile you need to add the `patternfly-sass` gem, and ensure that the `sass-rails` gem is present - it is added to new Rails applications by default.

```ruby
gem 'patternfly-sass', '~> 2.6.0'
gem 'patternfly-sass', '~> 3.0.0'
gem 'sass-rails', '>= 3.2'
```

Expand Down
10 changes: 3 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def gem_asset_path(package, path)
end

desc "Convert LESS to SCSS"
task :convert, [:branch] do |_, args|
task :convert, [:branch] => [:deps] do |_, args|
require './tasks/converter'
branch = args.has_key?(:branch) ? args[:branch] : 'master'
Converter.new(:branch => branch).convert
Expand All @@ -21,11 +21,7 @@ task :compile do

Sass.load_paths << File.join(gem_asset_path('bootstrap-sass', 'assets/stylesheets'))
Sass.load_paths << File.join(gem_asset_path('font-awesome-sass', 'assets/stylesheets'))
Sass.load_paths << File.join(gem_asset_path('rails-assets-bootstrap-combobox', 'app/assets/stylesheets'))
Sass.load_paths << File.join(gem_asset_path('rails-assets-bootstrap-datepicker', 'app/assets/stylesheets'))
Sass.load_paths << File.join(gem_asset_path('rails-assets-bootstrap-select', 'app/assets/stylesheets'))
Sass.load_paths << File.join(gem_asset_path('rails-assets-bootstrap-touchspin', 'app/assets/stylesheets'))
Sass.load_paths << File.join(gem_asset_path('rails-assets-c3', 'app/assets/stylesheets'))

::Sass::Script::Value::Number.precision = [8, ::Sass::Script::Value::Number.precision].max

path = 'assets/stylesheets'
Expand All @@ -46,7 +42,7 @@ task :compile do
end

desc "Start a web server with both the less and the sass version"
task :serve => :deps do
task :serve => :compile do
require 'webrick'
server = WEBrick::HTTPServer.new :Port => 9000, :DirectoryIndex => []
{
Expand Down
Binary file modified assets/fonts/patternfly/PatternFlyIcons-webfont.eot
Binary file not shown.
8 changes: 3 additions & 5 deletions assets/fonts/patternfly/PatternFlyIcons-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/fonts/patternfly/PatternFlyIcons-webfont.ttf
Binary file not shown.
Binary file modified assets/fonts/patternfly/PatternFlyIcons-webfont.woff
Binary file not shown.
Binary file added assets/fonts/patternfly/fontawesome-webfont.eot
Binary file not shown.
565 changes: 565 additions & 0 deletions assets/fonts/patternfly/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/patternfly/fontawesome-webfont.ttf
Binary file not shown.
Binary file added assets/fonts/patternfly/fontawesome-webfont.woff
Binary file not shown.
Binary file added assets/fonts/patternfly/fontawesome-webfont.woff2
Binary file not shown.
Binary file not shown.
288 changes: 288 additions & 0 deletions assets/fonts/patternfly/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 6 additions & 6 deletions assets/stylesheets/_patternfly.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
@import "patternfly/tabs";
@import "patternfly/tooltip";
@import "patternfly/type";
@import "bootstrap-combobox";
@import "bootstrap-datepicker/bootstrap-datepicker3";
@import "bootstrap-select";
@import "patternfly/sass-contrib/bootstrap-switch";
@import "bootstrap-touchspin/dist/jquery.bootstrap-touchspin";
@import "c3";
@import "patternfly/lib/bootstrap-combobox";
@import "patternfly/lib/bootstrap-datepicker";
@import "patternfly/lib/bootstrap-select";
@import "patternfly/lib/bootstrap-switch";
@import "patternfly/lib/bootstrap-touchspin";
@import "patternfly/lib/c3";
@import "patternfly/mixins";
@import "patternfly/blank-slate";
@import "patternfly/bootstrap-combobox";
Expand Down
6 changes: 0 additions & 6 deletions assets/stylesheets/patternfly/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@
.#{$icon-prefix}-info:before {
content: $pficon-var-info;
}
.#{$icon-prefix}-kubernetes:before {
content: $pficon-var-kubernetes;
}
.#{$icon-prefix}-memory:before {
content: $pficon-var-memory;
}
Expand All @@ -116,9 +113,6 @@
color: $brand-success;
content: $pficon-var-ok;
}
.#{$icon-prefix}-openshift:before {
content: $pficon-var-openshift;
}
.#{$icon-prefix}-print:before {
content: $pficon-var-print;
}
Expand Down
42 changes: 42 additions & 0 deletions assets/stylesheets/patternfly/lib/bootstrap-combobox.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.form-search .combobox-container,
.form-inline .combobox-container {
display: inline-block;
margin-bottom: 0;
vertical-align: top;
}
.form-search .combobox-container .input-group-addon,
.form-inline .combobox-container .input-group-addon {
width: auto;
}
.combobox-selected .caret {
display: none;
}
/* :not doesn't work in IE8 */
.combobox-container:not(.combobox-selected) .glyphicon-remove {
display: none;
}
.typeahead-long {
max-height: 300px;
overflow-y: auto;
}
.control-group.error .combobox-container .add-on {
color: #B94A48;
border-color: #B94A48;
}
.control-group.error .combobox-container .caret {
border-top-color: #B94A48;
}
.control-group.warning .combobox-container .add-on {
color: #C09853;
border-color: #C09853;
}
.control-group.warning .combobox-container .caret {
border-top-color: #C09853;
}
.control-group.success .combobox-container .add-on {
color: #468847;
border-color: #468847;
}
.control-group.success .combobox-container .caret {
border-top-color: #468847;
}
Loading

0 comments on commit de2ce22

Please sign in to comment.