not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

  1. Sugar Graphics
  2. ==============
  3. Sugar widgets and graphics, implementing the [Sugar Interface
  4. Guidelines](http://wiki.sugarlabs.org/go/Human_Interface_Guidelines).
  5. Modifying the CSS
  6. -----------------
  7. We use [LESS](http://lesscss.org) and then compile the CSS files.
  8. This is to be able to use calculations and variables for colors and
  9. measures. And to be able to output different CSS files for different
  10. screen resolutions.
  11. To compile the CSS files do:
  12. lessc graphics/css/sugar-96dpi.less graphics/css/sugar-96dpi.css
  13. lessc graphics/css/sugar-200dpi.less graphics/css/sugar-200dpi.css
  14. Be sure to compile them before commit.
  15. The grid helper
  16. ---------------
  17. The grid is a visual debug tool that allows you to check if the
  18. elements have the correct size. To activate the grid, open the
  19. inspector console and paste the following.
  20. If RequireJS is not in the page head (ie. in the sugar-web-samples),
  21. load it:
  22. var script = document.createElement('script');
  23. script.src = 'lib/require.js';
  24. document.head.appendChild(script);
  25. requirejs.config({ baseUrl: "lib" });
  26. Then do:
  27. require(["sugar-web/graphics/grid"], function (grid) { grid.addGrid(11) });