patternfly-sass 3.23.2 → 3.31.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +4 -0
- data/QUICKSTART.md +165 -0
- data/README.md +354 -112
- data/dist/fonts/FontAwesome.otf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.woff2 +0 -0
- data/dist/fonts/PatternFlyIcons-webfont.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/PatternFlyIcons-webfont.svg +28 -0
- data/dist/fonts/PatternFlyIcons-webfont.ttf +0 -0
- data/dist/fonts/PatternFlyIcons-webfont.woff +0 -0
- data/dist/fonts/fontawesome-webfont.eot +0 -0
- data/dist/fonts/fontawesome-webfont.svg +2671 -0
- data/{assets/fonts/patternfly → dist/fonts}/fontawesome-webfont.ttf +0 -0
- data/dist/fonts/fontawesome-webfont.woff +0 -0
- data/dist/fonts/fontawesome-webfont.woff2 +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.eot +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.svg +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.ttf +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.woff +0 -0
- data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.woff2 +0 -0
- data/{assets/images/patternfly → dist/img}/OpenShift-Logo-NoText.svg +0 -0
- data/{assets/images/patternfly → dist/img}/OpenShift-Logo-Text.svg +0 -0
- data/{assets/images/patternfly → dist/img}/OpenShift-logo.svg +0 -0
- data/{assets/images/patternfly → dist/img}/RH_Atomic-Logo-NoText.svg +0 -0
- data/{assets/images/patternfly → dist/img}/RH_Atomic-Logo-Text.svg +0 -0
- data/{assets/images/patternfly → dist/img}/RH_atomic.svg +0 -0
- data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-114.png +0 -0
- data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-144.png +0 -0
- data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-152.png +0 -0
- data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-180.png +0 -0
- data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-57.png +0 -0
- data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-72.png +0 -0
- data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-76.png +0 -0
- data/{assets/images/patternfly → dist/img}/bg-login.jpg +0 -0
- data/{assets/images/patternfly → dist/img}/bg-modal-about-pf.png +0 -0
- data/{assets/images/patternfly → dist/img}/bg-navbar-pf-alt.svg +0 -0
- data/{assets/images/patternfly → dist/img}/brand-alt.svg +0 -0
- data/{assets/images/patternfly → dist/img}/brand.svg +0 -0
- data/{assets/images/patternfly → dist/img}/favicon.ico +0 -0
- data/{assets/images/patternfly → dist/img}/kubernetes-Logo.svg +0 -0
- data/{assets/images/patternfly → dist/img}/kubernetes.svg +0 -0
- data/{assets/images/patternfly → dist/img}/logo-alt.svg +0 -0
- data/{assets/images/patternfly → dist/img}/logo.svg +0 -0
- data/{assets/images/patternfly → dist/img}/spinner-inverse-lg.gif +0 -0
- data/{assets/images/patternfly → dist/img}/spinner-inverse-sm.gif +0 -0
- data/{assets/images/patternfly → dist/img}/spinner-inverse-xs.gif +0 -0
- data/{assets/images/patternfly → dist/img}/spinner-inverse.gif +0 -0
- data/{assets/images/patternfly → dist/img}/spinner-lg.gif +0 -0
- data/{assets/images/patternfly → dist/img}/spinner-sm.gif +0 -0
- data/{assets/images/patternfly → dist/img}/spinner-xs.gif +0 -0
- data/{assets/images/patternfly → dist/img}/spinner.gif +0 -0
- data/dist/js/patternfly-functions-base.js +7 -0
- data/dist/js/patternfly-functions-charts.js +13 -0
- data/dist/js/patternfly-functions-colors.js +8 -0
- data/dist/js/patternfly-functions-count-chars.js +59 -0
- data/dist/js/patternfly-functions-data-tables.js +149 -0
- data/dist/js/patternfly-functions-fixed-heights.js +87 -0
- data/dist/js/patternfly-functions-list.js +79 -0
- data/dist/js/patternfly-functions-navigation.js +113 -0
- data/dist/js/patternfly-functions-popovers.js +37 -0
- data/dist/js/patternfly-functions-sidebar.js +31 -0
- data/dist/js/patternfly-functions-tree-grid.js +79 -0
- data/dist/js/patternfly-functions-vertical-nav.js +590 -0
- data/{assets/javascripts → dist/js}/patternfly-functions.js +133 -95
- data/dist/js/patternfly-functions.min.js +1 -0
- data/dist/js/patternfly-settings-base.js +16 -0
- data/dist/js/patternfly-settings-charts.js +423 -0
- data/dist/js/patternfly-settings-colors.js +88 -0
- data/{assets/javascripts → dist/js}/patternfly-settings.js +22 -13
- data/dist/js/patternfly-settings.min.js +1 -0
- data/{assets/javascripts → dist/js}/patternfly.dataTables.pfColVis.js +0 -0
- data/{assets/javascripts → dist/js}/patternfly.dataTables.pfEmpty.js +1 -1
- data/{assets/javascripts → dist/js}/patternfly.dataTables.pfEmpty.min.js +1 -1
- data/{assets/javascripts → dist/js}/patternfly.dataTables.pfFilter.js +0 -0
- data/dist/js/patternfly.dataTables.pfFilter.min.js +1 -0
- data/{assets/javascripts → dist/js}/patternfly.dataTables.pfPagination.js +1 -1
- data/dist/js/patternfly.dataTables.pfPagination.min.js +1 -0
- data/{assets/javascripts → dist/js}/patternfly.dataTables.pfResize.js +0 -0
- data/{assets/javascripts → dist/js}/patternfly.dataTables.pfResize.min.js +1 -1
- data/{assets/javascripts → dist/js}/patternfly.dataTables.pfSelect.js +0 -0
- data/{assets/javascripts → dist/js}/patternfly.dataTables.pfSelect.min.js +1 -1
- data/{assets/javascripts → dist/js}/patternfly.js +153 -106
- data/dist/js/patternfly.min.js +2 -0
- data/{assets/stylesheets → dist/sass}/_patternfly-compass.scss +1 -1
- data/{assets/stylesheets → dist/sass}/_patternfly-sprockets.scss +1 -1
- data/dist/sass/_patternfly.scss +145 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_about-modal.scss +2 -2
- data/{assets/stylesheets → dist/sass}/patternfly/_alerts.scss +0 -0
- data/dist/sass/patternfly/_application-launcher.scss +213 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_badges.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_blank-slate.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-combobox.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-datepicker.scss +13 -5
- data/dist/sass/patternfly/_bootstrap-mixin-overrides.scss +33 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-select.scss +15 -7
- data/dist/sass/patternfly/_bootstrap-slider.scss +66 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-switch.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-touchspin.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-treeview.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_breadcrumbs.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_buttons.scss +2 -2
- data/{assets/stylesheets → dist/sass}/patternfly/_card-view.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_cards.scss +2 -2
- data/{assets/stylesheets → dist/sass}/patternfly/_charts.scss +28 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_close.scss +1 -0
- data/dist/sass/patternfly/_color-variables.scss +85 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_datatables.scss +5 -5
- data/{assets/stylesheets → dist/sass}/patternfly/_dropdowns.scss +9 -4
- data/dist/sass/patternfly/_experimental-features.scss +48 -0
- data/dist/sass/patternfly/_fonts.scss +124 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_footer.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_forms.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_icons.scss +91 -7
- data/{assets/stylesheets → dist/sass}/patternfly/_infotip.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_labels.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_layouts.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_links.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_list-group.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_list-pf.scss +6 -3
- data/{assets/stylesheets → dist/sass}/patternfly/_list-view-dnd.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_list-view.scss +12 -12
- data/{assets/stylesheets → dist/sass}/patternfly/_login.scss +3 -7
- data/dist/sass/patternfly/_mixins.scss +81 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_modals.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_nav-vertical-alt.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_navbar-alt.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_navbar-vertical.scss +9 -2
- data/{assets/stylesheets → dist/sass}/patternfly/_navbar.scss +26 -2
- data/{assets/stylesheets → dist/sass}/patternfly/_notifications-drawer.scss +102 -15
- data/{assets/stylesheets → dist/sass}/patternfly/_pager.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_pagination.scss +2 -2
- data/{assets/stylesheets → dist/sass}/patternfly/_panels.scss +21 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_popovers.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_progress-bars.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_search.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_sidebar.scss +0 -0
- data/dist/sass/patternfly/_skip-to-content.scss +12 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_spinner.scss +16 -16
- data/{assets/stylesheets → dist/sass}/patternfly/_syntax-highlighting.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_table-view.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_tables.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_tabs.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_time-picker.scss +1 -3
- data/{assets/stylesheets → dist/sass}/patternfly/_toast.scss +7 -6
- data/{assets/stylesheets → dist/sass}/patternfly/_toolbar.scss +1 -1
- data/{assets/stylesheets → dist/sass}/patternfly/_tooltip.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_type.scss +0 -0
- data/{assets/stylesheets → dist/sass}/patternfly/_variables.scss +75 -9
- data/{assets/stylesheets → dist/sass}/patternfly/_vertical-nav.scss +41 -42
- data/{assets/stylesheets → dist/sass}/patternfly/_wizard.scss +175 -123
- data/dist/sass/patternfly/dependencies/bootstrap-combobox/combobox.scss +57 -0
- data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker.scss +235 -0
- data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker3.scss +251 -0
- data/dist/sass/patternfly/dependencies/bootstrap-select/bootstrap-select.scss +389 -0
- data/dist/sass/patternfly/dependencies/bootstrap-select/variables.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-slider/_mixins.scss +25 -0
- data/dist/sass/patternfly/dependencies/bootstrap-slider/_rules.scss +246 -0
- data/dist/sass/patternfly/dependencies/bootstrap-slider/_variables.scss +28 -0
- data/dist/sass/patternfly/dependencies/bootstrap-slider/bootstrap-slider.scss +42 -0
- data/{assets/stylesheets/patternfly/lib → dist/sass/patternfly/dependencies/bootstrap-switch}/bootstrap-switch.scss +12 -10
- data/dist/sass/patternfly/dependencies/bootstrap-switch/build.scss +3 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins.scss +40 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/alerts.scss +14 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/background-variant.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/border-radius.scss +18 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss +68 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/center-block.scss +7 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/clearfix.scss +22 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/forms.scss +85 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/gradients.scss +59 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid-framework.scss +98 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid.scss +122 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/hide-text.scss +21 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/image.scss +33 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/labels.scss +12 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/list-group.scss +29 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-divider.scss +10 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-vertical-align.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/opacity.scss +8 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/pagination.scss +23 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/panels.scss +24 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/progress-bar.scss +10 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-filter.scss +8 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-text.scss +18 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/resize.scss +6 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/responsive-visibility.scss +15 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/size.scss +10 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/tab-focus.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/table-row.scss +28 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-emphasis.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-overflow.scss +8 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/vendor-prefixes.scss +227 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/variables.scss +862 -0
- data/{assets/stylesheets/patternfly/lib/bootstrap-touchspin.scss → dist/sass/patternfly/dependencies/bootstrap-touchspin/_jquery.bootstrap-touchspin.scss} +1 -1
- data/{assets/stylesheets/patternfly/lib/c3.scss → dist/sass/patternfly/dependencies/c3/_c3.scss} +7 -0
- data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/_bootstrap-datetimepicker.scss +344 -0
- data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker-build.scss +16 -0
- data/lib/patternfly-sass.rb +4 -4
- data/lib/patternfly-sass/engine.rb +2 -2
- data/lib/patternfly-sass/version.rb +1 -2
- data/patternfly-sass.gemspec +16 -17
- metadata +249 -498
- data/.gitignore +0 -41
- data/.rspec +0 -3
- data/.rubocop.yml +0 -56
- data/.travis.yml +0 -51
- data/Gemfile +0 -3
- data/Rakefile +0 -130
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.eot +0 -0
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.ttf +0 -0
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.woff +0 -0
- data/assets/fonts/patternfly/fontawesome-webfont.eot +0 -0
- data/assets/fonts/patternfly/fontawesome-webfont.svg +0 -685
- data/assets/fonts/patternfly/fontawesome-webfont.woff +0 -0
- data/assets/fonts/patternfly/fontawesome-webfont.woff2 +0 -0
- data/assets/javascripts/patternfly-functions.min.js +0 -1
- data/assets/javascripts/patternfly-settings.min.js +0 -1
- data/assets/javascripts/patternfly.dataTables.pfFilter.min.js +0 -1
- data/assets/javascripts/patternfly.dataTables.pfPagination.min.js +0 -1
- data/assets/javascripts/patternfly.min.js +0 -2
- data/assets/stylesheets/_patternfly.scss +0 -108
- data/assets/stylesheets/patternfly/_color-variables.scss +0 -84
- data/assets/stylesheets/patternfly/_fonts.scss +0 -124
- data/assets/stylesheets/patternfly/_mixin_overrides.scss +0 -65
- data/assets/stylesheets/patternfly/_mixins.scss +0 -120
- data/assets/stylesheets/patternfly/lib/bootstrap-datepicker.scss +0 -678
- data/assets/stylesheets/patternfly/lib/bootstrap-datetimepicker.scss +0 -374
- data/assets/stylesheets/patternfly/lib/bootstrap-select.scss +0 -282
- data/assets/stylesheets/patternfly/lib/patternfly-bootstrap-combobox.scss +0 -44
- data/bower.json +0 -53
- data/package.json +0 -70
- data/spec/compare_spec.rb +0 -60
- data/spec/html/about-modal.html +0 -77
- data/spec/html/accordions.html +0 -336
- data/spec/html/alerts.html +0 -106
- data/spec/html/area-charts.html +0 -103
- data/spec/html/badges.html +0 -73
- data/spec/html/bar-charts.html +0 -350
- data/spec/html/basic.html +0 -796
- data/spec/html/blank-slate.html +0 -81
- data/spec/html/bootstrap-combobox.html +0 -344
- data/spec/html/bootstrap-datepicker.html +0 -148
- data/spec/html/bootstrap-select.html +0 -213
- data/spec/html/bootstrap-switch.html +0 -267
- data/spec/html/bootstrap-switch.js +0 -61
- data/spec/html/bootstrap-touchspin.html +0 -210
- data/spec/html/bootstrap-treeview-2.html +0 -296
- data/spec/html/bootstrap-treeview.html +0 -383
- data/spec/html/breadcrumbs.html +0 -52
- data/spec/html/buttons.html +0 -556
- data/spec/html/card-view-card-variations.html +0 -201
- data/spec/html/card-view-multi-select.html +0 -698
- data/spec/html/card-view-single-select.html +0 -432
- data/spec/html/cards.html +0 -899
- data/spec/html/code.html +0 -83
- data/spec/html/dashboard.html +0 -353
- data/spec/html/dist/css/patternfly-additions.css +0 -7202
- data/spec/html/dist/css/patternfly-additions.css.map +0 -1
- data/spec/html/dist/css/patternfly-additions.min.css +0 -5
- data/spec/html/dist/css/patternfly-additions.min.css.map +0 -1
- data/spec/html/dist/css/patternfly.css +0 -10355
- data/spec/html/dist/css/patternfly.css.map +0 -1
- data/spec/html/dist/css/patternfly.min.css +0 -8
- data/spec/html/dist/css/patternfly.min.css.map +0 -1
- data/spec/html/donut-charts.html +0 -235
- data/spec/html/dropdowns.html +0 -138
- data/spec/html/form.html +0 -281
- data/spec/html/forms.html +0 -875
- data/spec/html/horizontal-navigation.html +0 -765
- data/spec/html/icons.html +0 -447
- data/spec/html/img/dashboard-3.png +0 -0
- data/spec/html/index.html +0 -284
- data/spec/html/infotip.html +0 -89
- data/spec/html/labels.html +0 -108
- data/spec/html/line-charts.html +0 -178
- data/spec/html/list-group.html +0 -111
- data/spec/html/list-pf.html +0 -529
- data/spec/html/list-view-compound-expansion.html +0 -1720
- data/spec/html/list-view-rows.html +0 -597
- data/spec/html/list-view-simple-expansion.html +0 -1003
- data/spec/html/list-view.html +0 -614
- data/spec/html/login.html +0 -92
- data/spec/html/modals.html +0 -83
- data/spec/html/navbar.html +0 -4680
- data/spec/html/notification-drawer-horizontal-nav.html +0 -1503
- data/spec/html/notification-drawer-vertical-nav.html +0 -1631
- data/spec/html/pagination-card-view.html +0 -560
- data/spec/html/pagination-list-view.html +0 -1204
- data/spec/html/pagination-table-view.html +0 -813
- data/spec/html/pagination.html +0 -320
- data/spec/html/panels.html +0 -113
- data/spec/html/pie-charts.html +0 -180
- data/spec/html/popovers.html +0 -115
- data/spec/html/progress-bars.html +0 -335
- data/spec/html/search.html +0 -171
- data/spec/html/spinner.html +0 -77
- data/spec/html/tab.html +0 -842
- data/spec/html/table-view-columns.html +0 -495
- data/spec/html/table-view-navbar.html +0 -814
- data/spec/html/table-view.html +0 -688
- data/spec/html/tables.html +0 -540
- data/spec/html/tabs.html +0 -279
- data/spec/html/tests.css +0 -16
- data/spec/html/time-picker.html +0 -75
- data/spec/html/toast.html +0 -87
- data/spec/html/toolbar.html +0 -268
- data/spec/html/tooltip.html +0 -71
- data/spec/html/typography-2.css +0 -10
- data/spec/html/typography-2.html +0 -313
- data/spec/html/typography.html +0 -212
- data/spec/html/utilization-bar-charts.html +0 -69
- data/spec/html/vertical-navigation-primary-only.html +0 -844
- data/spec/html/vertical-navigation-with-badges.html +0 -1184
- data/spec/html/vertical-navigation-with-secondary.html +0 -911
- data/spec/html/vertical-navigation-with-tertiary-no-icons.html +0 -1085
- data/spec/html/vertical-navigation-with-tertiary-pins.html +0 -1085
- data/spec/html/wizard.html +0 -756
- data/spec/main.html +0 -16
- data/spec/spec_helper.rb +0 -9
- data/tasks/converter.rb +0 -353
data/spec/main.html
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<title>PatternFly</title>
|
4
|
-
</head>
|
5
|
-
<body>
|
6
|
-
<h1>Test webserver for LESS/SASS comparison</h1>
|
7
|
-
<ul>
|
8
|
-
<li>
|
9
|
-
<a href="/less/pages/patternfly/index.html">Reference LESS version</a>
|
10
|
-
</li>
|
11
|
-
<li>
|
12
|
-
<a href="/sass/pages/patternfly/index.html">Converted SASS version</a>
|
13
|
-
</li>
|
14
|
-
</ul>
|
15
|
-
</body>
|
16
|
-
</html>
|
data/spec/spec_helper.rb
DELETED
data/tasks/converter.rb
DELETED
@@ -1,353 +0,0 @@
|
|
1
|
-
BOOTSTRAP_GEM_ROOT = Gem::Specification.find_by_name("bootstrap-sass").gem_dir
|
2
|
-
require "#{BOOTSTRAP_GEM_ROOT}/tasks/converter/less_conversion"
|
3
|
-
require 'rugged'
|
4
|
-
|
5
|
-
class Converter
|
6
|
-
include Converter::LessConversion
|
7
|
-
|
8
|
-
TEST_DIR = File.join('spec', 'html')
|
9
|
-
TRANSFORMATIONS = [
|
10
|
-
:replace_vars,
|
11
|
-
:replace_file_imports,
|
12
|
-
:replace_mixin_definitions,
|
13
|
-
:replace_mixins,
|
14
|
-
:replace_spin,
|
15
|
-
# :replace_fadein,
|
16
|
-
:replace_fade,
|
17
|
-
:replace_image_urls,
|
18
|
-
:remove_unnecessary_escaping,
|
19
|
-
:replace_escaping,
|
20
|
-
:convert_less_ampersand,
|
21
|
-
:deinterpolate_vararg_mixins,
|
22
|
-
:replace_calculation_semantics,
|
23
|
-
:escape_variables_in_calc
|
24
|
-
]
|
25
|
-
TOP = <<-VAR.gsub(/^\s*/, '')
|
26
|
-
// PatternFly SASS
|
27
|
-
@import "patternfly/variables";
|
28
|
-
@import "bootstrap/variables";
|
29
|
-
VAR
|
30
|
-
|
31
|
-
def initialize(options={})
|
32
|
-
@repository = options.fetch(:repository, 'patternfly/patternfly')
|
33
|
-
@branch = options.fetch(:branch, 'master')
|
34
|
-
@destination = options.fetch(:destination, 'assets')
|
35
|
-
@cache_path = options.fetch(:cache_path, 'tmp')
|
36
|
-
|
37
|
-
@source = File.join(@cache_path, 'repository')
|
38
|
-
end
|
39
|
-
|
40
|
-
def convert
|
41
|
-
checkout_upstream
|
42
|
-
build_less
|
43
|
-
copy_non_less
|
44
|
-
process_stylesheets
|
45
|
-
store_version
|
46
|
-
FileUtils.rm_rf(@cache_path) # Clean up the repository & the cache
|
47
|
-
end
|
48
|
-
|
49
|
-
private
|
50
|
-
|
51
|
-
def sass_read_mixins(file)
|
52
|
-
file.scan(/@mixin\s+([^\(]+)\(/).flatten.uniq
|
53
|
-
end
|
54
|
-
|
55
|
-
def replace_mixins(file)
|
56
|
-
mixins = shared_mixins + sass_read_mixins(file)
|
57
|
-
super(file, mixins)
|
58
|
-
end
|
59
|
-
|
60
|
-
def replace_vars(less)
|
61
|
-
less = less.dup
|
62
|
-
# skip header comment
|
63
|
-
less =~ %r(\A/\*(.*?)\*/)m
|
64
|
-
from = $~ ? $~.to_s.length : 0
|
65
|
-
less[from..-1] = less[from..-1].
|
66
|
-
gsub(/(?!@mixin|@media|@page|@supports|@keyframes|@font-face|@-\w)@/, '$').
|
67
|
-
# variables that would be ignored by gsub above: e.g. @page-header-border-color
|
68
|
-
gsub(/@(page[\w-]+)/, '$\1')
|
69
|
-
less
|
70
|
-
end
|
71
|
-
|
72
|
-
def remove_button_variant(file)
|
73
|
-
replace_rules(file, /.button-variant(.*?)/) { |_, _| "" }
|
74
|
-
end
|
75
|
-
|
76
|
-
# SASS doesn't require escaping in calc()
|
77
|
-
def remove_unnecessary_escaping(file)
|
78
|
-
file.gsub(/calc\(\~\'([^\']+)\'\)/, 'calc(\1)').gsub(/calc\(\~\"([^\"]+)\"\)/, 'calc(\1)')
|
79
|
-
end
|
80
|
-
|
81
|
-
def escape_variables_in_calc(file)
|
82
|
-
file.scan(/calc\(.*\$.*\)/).uniq.each do |calc|
|
83
|
-
dest = calc.gsub(/(\$[a-zA-Z0-9_\-]+)/, '#{\1}')
|
84
|
-
file.gsub!(calc, dest)
|
85
|
-
end
|
86
|
-
file
|
87
|
-
end
|
88
|
-
|
89
|
-
# Override
|
90
|
-
def replace_file_imports(less, target_path='')
|
91
|
-
less.gsub!(
|
92
|
-
%r{[@\$]import\s+(?:\(\w+\)\s+)?["|']([\w\-\./]+).less["|'];},
|
93
|
-
"@import \"#{target_path}\\1\";"
|
94
|
-
)
|
95
|
-
less.gsub!(
|
96
|
-
%r{[@\$]import\s+(?:\(\w+\)\s+)?["|']([\w\-\./]+).(css)["|'];},
|
97
|
-
"@import \"#{target_path}\\1.\\2\";"
|
98
|
-
)
|
99
|
-
less
|
100
|
-
end
|
101
|
-
|
102
|
-
def insert_default_vars(file)
|
103
|
-
file = super(file)
|
104
|
-
file = replace_all(file, %r{"../img"}, '"../images"')
|
105
|
-
file = replace_all(file, %r{(\$icon-font-path): (\s*)"(.*)" (!default);\n}, '')
|
106
|
-
file = replace_all(file, %r{\$fa-font-path: .* (!default);\n}, '')
|
107
|
-
file = replace_all(
|
108
|
-
file,
|
109
|
-
%r{(\$(font|img)-path):(\s*)"(.*)" (!default);},
|
110
|
-
'\\1:\\3if($patternfly-sass-asset-helper, "patternfly", "\\4/patternfly") \\5;')
|
111
|
-
['$patternfly-sass-asset-helper: false !default;', file].join("\n")
|
112
|
-
end
|
113
|
-
|
114
|
-
def flatten_mixins(file)
|
115
|
-
NESTED_MIXINS.inject(file) { |a, e| super(a, e.first, e.last) }
|
116
|
-
end
|
117
|
-
|
118
|
-
def fix_dropdown_toggle(file)
|
119
|
-
replacestr = " {\\1}\n .open & { &.dropdown-toggle {\\1} }"
|
120
|
-
file = replace_all(file, /,\s*\.open\s+\.dropdown-toggle& \{([^\{\}]*?)\}/m, replacestr)
|
121
|
-
replace_all(file, /,\s*\.open\s+\.dropdown-toggle& \{(.*?\{.*?\}.*?)\}/m, replacestr)
|
122
|
-
end
|
123
|
-
|
124
|
-
def fix_font_paths(file)
|
125
|
-
replace_rules(file, /\s*@font-face/) { |rule| replace_asset_url(rule, :font) }
|
126
|
-
end
|
127
|
-
|
128
|
-
def fix_top_level(file)
|
129
|
-
file = replace_all(file, %r{@import\s+"variables";}, "")
|
130
|
-
file = replace_all(file, /@import "([^\.]{2})/, '@import "patternfly/\1')
|
131
|
-
|
132
|
-
file = replace_all(file, "@import \"patternfly/bootstrap/less/bootstrap\";", fetch_bootstrap_top)
|
133
|
-
file = replace_all(file, "@import \"patternfly/bootstrap/less/variables\";\n", '')
|
134
|
-
file = replace_all(file, "@import \"patternfly/bootstrap/less/mixins\";\n", '')
|
135
|
-
file = replace_all(file, "@import \"patternfly/font-awesome/less/variables\";\n", '')
|
136
|
-
file = replace_all(file, 'patternfly/font-awesome/less/font-awesome', 'font-awesome')
|
137
|
-
|
138
|
-
bower_contrib('patternfly-bootstrap-combobox/css/bootstrap-combobox.css', 'patternfly-bootstrap-combobox.scss', false)
|
139
|
-
file = replace_all(file, 'patternfly//patternfly-bootstrap-combobox/less/combobox', 'patternfly/lib/patternfly-bootstrap-combobox')
|
140
|
-
|
141
|
-
bower_contrib('bootstrap-select/dist/css/bootstrap-select.css', 'bootstrap-select.scss', false)
|
142
|
-
file = replace_all(file, 'patternfly/bootstrap-select/less/bootstrap-select', 'patternfly/lib/bootstrap-select')
|
143
|
-
|
144
|
-
bower_contrib('bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css', 'bootstrap-touchspin.scss', false)
|
145
|
-
file = replace_all(file, 'patternfly/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css', 'patternfly/lib/bootstrap-touchspin')
|
146
|
-
|
147
|
-
bower_contrib('c3/c3.css', 'c3.scss', false)
|
148
|
-
file = replace_all(file, 'patternfly/c3/c3.css', 'patternfly/lib/c3')
|
149
|
-
|
150
|
-
bower_contrib('bootstrap-datepicker/dist/css/bootstrap-datepicker3.css', 'bootstrap-datepicker.scss', false)
|
151
|
-
file = replace_all(file, 'patternfly/bootstrap-datepicker/less/datepicker3', 'patternfly/lib/bootstrap-datepicker')
|
152
|
-
|
153
|
-
bower_contrib('bootstrap-switch/src/less/bootstrap3/bootstrap-switch.less', 'bootstrap-switch.scss')
|
154
|
-
file = replace_all(file, 'patternfly/bootstrap-switch/src/less/bootstrap3/bootstrap-switch', 'patternfly/lib/bootstrap-switch')
|
155
|
-
|
156
|
-
bower_contrib('eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css', 'bootstrap-datetimepicker.scss', false)
|
157
|
-
file = replace_all(file, 'patternfly/eonasdan-bootstrap-datetimepicker/src/less/bootstrap-datetimepicker-build', 'patternfly/lib/bootstrap-datetimepicker')
|
158
|
-
|
159
|
-
TOP + remove_comments_and_whitespace(file)
|
160
|
-
end
|
161
|
-
|
162
|
-
def bower_contrib(src, dst, convert=true)
|
163
|
-
base = 'assets/stylesheets/patternfly/lib'
|
164
|
-
less = File.read(File.join('bower_components', src))
|
165
|
-
sass = convert ? less_to_sass(nil, less) : less
|
166
|
-
sass = remove_map_comments(sass)
|
167
|
-
FileUtils.mkdir_p(base) unless File.exist?(base)
|
168
|
-
File.open(File.join(base, dst), 'w') { |f| f.write(sass) }
|
169
|
-
end
|
170
|
-
|
171
|
-
def shared_mixins
|
172
|
-
@shared_mixins ||= begin
|
173
|
-
mixins = retrieve_files(File.join('bower_components', 'bootstrap', 'less', 'mixins'), /\.less$/)
|
174
|
-
mixins.unshift File.join(@source, 'src', 'less', 'mixins.less')
|
175
|
-
read_mixins(mixins.map { |f| File.read(f) }.join("\n"), :nested => NESTED_MIXINS)
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
def fetch_bootstrap_top
|
180
|
-
path = File.join(BOOTSTRAP_GEM_ROOT, 'assets', 'stylesheets', '_bootstrap.scss')
|
181
|
-
file = replace_all(File.read(path), %r{@import\s+"bootstrap/variables";}, '')
|
182
|
-
replace_all(file, %r{^(@import\s+"bootstrap/mixins";)}, "\\1\n@import \"patternfly/mixin_overrides\";")
|
183
|
-
end
|
184
|
-
|
185
|
-
def remove_comments_and_whitespace(input)
|
186
|
-
input = replace_all(input, /\/\*.*?\*\//m, '')
|
187
|
-
input = replace_all(input, /\s*\/\/.*$/, '')
|
188
|
-
input.split("\n").reject { |line| line == "" }.join("\n").concat("\n")
|
189
|
-
end
|
190
|
-
|
191
|
-
def process_stylesheets
|
192
|
-
save_to = File.join(@destination, 'stylesheets', 'patternfly')
|
193
|
-
FileUtils.mkdir_p(save_to) unless File.exist?(save_to)
|
194
|
-
|
195
|
-
patternfly_less_files.each do |path|
|
196
|
-
file = File.basename(path)
|
197
|
-
less = File.read(path)
|
198
|
-
output = File.join(save_to, "_#{file.sub(/\.less$/, '.scss')}")
|
199
|
-
File.open(output, 'w') do |f|
|
200
|
-
f.write(less_to_sass(file, less))
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
|
-
File.open(File.join(save_to, '..', '_patternfly.scss'), 'w') do |f|
|
205
|
-
f.write(generate_top_level)
|
206
|
-
end
|
207
|
-
end
|
208
|
-
|
209
|
-
def generate_top_level
|
210
|
-
less_to_sass('patternfly.less', top_level_files.map { |f| File.read(f) }.join("\n"))
|
211
|
-
end
|
212
|
-
|
213
|
-
def build_less
|
214
|
-
Dir.chdir(@source) do
|
215
|
-
system('npm install')
|
216
|
-
system('grunt build')
|
217
|
-
end
|
218
|
-
end
|
219
|
-
|
220
|
-
def copy_non_less
|
221
|
-
copy_config.each do |asset|
|
222
|
-
FileUtils.rm_rf(asset[:destination])
|
223
|
-
retrieve_files(asset[:source], asset[:select], asset[:reject]).each do |f|
|
224
|
-
copy_with_path(f, asset[:source], asset[:destination])
|
225
|
-
end
|
226
|
-
end
|
227
|
-
end
|
228
|
-
|
229
|
-
def retrieve_files(folder, select=%r{.*}, reject=nil)
|
230
|
-
Dir["#{folder}/**/*"].reject { |f| File.directory?(f) || f !~ select || f =~ reject }
|
231
|
-
end
|
232
|
-
|
233
|
-
def copy_with_path(file, src, dst)
|
234
|
-
dst = file.sub(/^#{src}/, dst)
|
235
|
-
dir = File.dirname(dst)
|
236
|
-
FileUtils.mkdir_p(dir) unless File.exist?(dir)
|
237
|
-
FileUtils.cp(file, dst)
|
238
|
-
end
|
239
|
-
|
240
|
-
def checkout_upstream
|
241
|
-
unless Dir.exist?(@source)
|
242
|
-
repo = Rugged::Repository.clone_at("https://github.com/#{@repository}.git", @source)
|
243
|
-
end
|
244
|
-
repo ||= Rugged::Repository.new(@source)
|
245
|
-
repo.checkout(@branch)
|
246
|
-
@sha = repo.last_commit.oid
|
247
|
-
|
248
|
-
FileUtils.cp( # Mixins correction
|
249
|
-
File.join(@source, 'src', 'less', 'mixins.less'),
|
250
|
-
File.join(@source, 'src', 'less', 'mixin_overrides.less')
|
251
|
-
)
|
252
|
-
end
|
253
|
-
|
254
|
-
def replace_fade(less)
|
255
|
-
less.gsub(/(?![\-$@.])fade\((.*?),\s*(.*?)%\)/) { "rgba(#{$1}, #{$2.to_f / 100.0})" }
|
256
|
-
end
|
257
|
-
|
258
|
-
|
259
|
-
def replace_escaping(less)
|
260
|
-
less = less.gsub(/~"([^"]+)"/, '#{\1}')
|
261
|
-
less.gsub!(/\$\{([\w\-]+)\}/, '#{$\1}')
|
262
|
-
less.gsub!(/\$\{([^}]+)\}/, '$\1')
|
263
|
-
less.gsub(/(\W)e\(%\("?([^"]*)"?\)\)/, '\1\2')
|
264
|
-
end
|
265
|
-
|
266
|
-
def remove_map_comments(less)
|
267
|
-
less.gsub(%r{\s*(#|@) sourceMappingURL=[^\s]+}, '')
|
268
|
-
end
|
269
|
-
|
270
|
-
def less_to_sass(file, input)
|
271
|
-
transforms = TRANSFORMATIONS.dup
|
272
|
-
case file
|
273
|
-
when 'fonts.less'
|
274
|
-
transforms << :fix_font_paths
|
275
|
-
when 'icons.less'
|
276
|
-
transforms << :fix_font_paths
|
277
|
-
transforms.delete(:replace_spin)
|
278
|
-
when 'mixins.less',
|
279
|
-
transforms << :flatten_mixins
|
280
|
-
transforms << :fix_dropdown_toggle
|
281
|
-
when 'mixin_overrides.less'
|
282
|
-
transforms.unshift(:remove_button_variant)
|
283
|
-
transforms << :flatten_mixins
|
284
|
-
when 'variables.less'
|
285
|
-
transforms.delete(:replace_spin)
|
286
|
-
transforms << :insert_default_vars
|
287
|
-
when 'patternfly.less'
|
288
|
-
transforms.delete(:replace_spin)
|
289
|
-
transforms << :fix_top_level
|
290
|
-
when 'bootstrap-touchspin.less', 'spinner.less'
|
291
|
-
transforms.delete(:replace_spin)
|
292
|
-
end
|
293
|
-
|
294
|
-
transforms.inject(input) { |a, e| send(e, a) }
|
295
|
-
end
|
296
|
-
|
297
|
-
def copy_config
|
298
|
-
[
|
299
|
-
{
|
300
|
-
:source => File.join(@source, 'dist', 'img'),
|
301
|
-
:select => /\.(png|gif|jpe?g|svg|ico)$/,
|
302
|
-
:reject => nil,
|
303
|
-
:destination => File.join(@destination, 'images', 'patternfly')
|
304
|
-
},
|
305
|
-
{
|
306
|
-
:source => File.join(@source, 'dist', 'fonts'),
|
307
|
-
:select => /\.(eot|svg|ttf|woff2?)$/,
|
308
|
-
:reject => nil,
|
309
|
-
:destination => File.join(@destination, 'fonts', 'patternfly')
|
310
|
-
},
|
311
|
-
{
|
312
|
-
:source => File.join(@source, 'dist', 'js'),
|
313
|
-
:select => /\.js$/,
|
314
|
-
:reject => nil,
|
315
|
-
:destination => File.join(@destination, 'javascripts')
|
316
|
-
},
|
317
|
-
{
|
318
|
-
:source => File.join(@source, 'dist', 'tests'),
|
319
|
-
:select => /.*/,
|
320
|
-
:reject => nil,
|
321
|
-
:destination => TEST_DIR
|
322
|
-
},
|
323
|
-
{
|
324
|
-
:source => File.join(@source, 'dist', 'css'),
|
325
|
-
:select => /css/,
|
326
|
-
:reject => /styles(-additions)?(\.min)?\.css/,
|
327
|
-
:destination => File.join(TEST_DIR, 'dist', 'css')
|
328
|
-
}
|
329
|
-
]
|
330
|
-
end
|
331
|
-
|
332
|
-
def patternfly_less_files
|
333
|
-
retrieve_files(File.join(@source, 'src', 'less'), /\.less$/, /lib|patternfly/)
|
334
|
-
end
|
335
|
-
|
336
|
-
def top_level_files
|
337
|
-
retrieve_files(File.join(@source, 'src', 'less'), /patternfly(\-additions)?\.less$/).reverse
|
338
|
-
end
|
339
|
-
|
340
|
-
def store_version
|
341
|
-
path = 'lib/patternfly-sass/version.rb'
|
342
|
-
content = File.read(path).sub(/PATTERNFLY_SHA\s*=\s*['"][\w]+['"]/, "PATTERNFLY_SHA = '#{@sha}'")
|
343
|
-
File.open(path, 'w') { |f| f.write(content) }
|
344
|
-
end
|
345
|
-
|
346
|
-
def log_transform(*_opts)
|
347
|
-
end
|
348
|
-
|
349
|
-
def log_file_info(*_opts)
|
350
|
-
end
|
351
|
-
|
352
|
-
alias_method :bootstrap_less_files, :patternfly_less_files
|
353
|
-
end
|