Demo application to show how Qooxdoo and IBM's Carbon Styles can work together. Also illustrates how to integrate any standard Sass project into a Qooxdoo project.
This project consists of two namespaces:
- ville.cssuc (library) - Mixins for bypassing layout functionality.
- myapp (application) - Qooxdoo application integrated with IBM Carbon Styles using Sass.
This project is a slight variation from ville.CssUtilityClasses. All inline styles are kept from the DOM by default, relying 100% on CSS for layout (no need for qx.ui.layout).
- This requires replacing or updating framework classes. It is advised to use a local installation of the qooxdoo framework.
- The Widget mixin (MCssUtilityClass.js) responsible for bypassing the layout system is set to "true" by default (specifically, excludeBoundsFromDom and clearAllInlineStyles properties). That means bounds (top, left, width, height) and inline styles are kept from being written to the DOM.
Update the following classes in your project's nodes_modules @qooxdoo/framework copy. Instead of replacing you can update your local copy with just the changes. Search replacement files for the "ville.cssuc" environment variable.
- Replace/Update local framework's qx.ui.form.AbstractField.js file with replacements/AbstractField.js
- Replace/Update local framework's local framework's qx.html.Label.js with replacements/Label.js
- Replace/Update local framework's local framework's qx.ui.core.Widget.js with replacements/Widget.js
- Replace/Update local framework's local framework's qx.ui.root.Application.js with replacements/Application.js
npm install sass
npm install -S @carbon/styles
Run the included bash scripts to build and serve an application:
bash carbonserve.sh