563a46f55a | 6 years ago | |
---|---|---|
.. | ||
dgrid | 6 years ago | |
dijit | 6 years ago | |
dojox | 6 years ago | |
icons | 6 years ago | |
tests | 6 years ago | |
README.md | 6 years ago | |
flat.css | 6 years ago | |
flat_dijit.css | 6 years ago | |
flat_dijit_rtl.css | 6 years ago | |
flat_rtl.css | 6 years ago | |
mixins.styl | 6 years ago | |
variables.styl | 6 years ago | |
variables_material_colors.styl | 6 years ago |
README.md
Flat Theme
A flat theme for Dojo Dijit.
To Do:
- Fix any outlying dijits using opacity for disabled.
- TitlePane and Accordion headers should have a separate mixin function from buttons.
- Alternate color classes TitlePane headers.
- Alternate color classes for AccordionContainer (active pane header).
- Alternate color classes for Sliders; and remove transparency for disabled.
Icons:
All icons are Material Design icons by Google (LICENSE), and were generated using the IcoMoon App.
Icons, along with class names, .dijitIcon*
aliases and hex codes, can be viewed in Flat Theme Test app.
This theme includes the selection.json
file, which can be loaded into the IcoMoon App for editing. This icon font includes all the icons needed for icons used in dijits (close in Dialog, etc) and all aliased .dijitIcon*
and .dijitEditorIcon*
classes. The hex codes should be maintained as is.
The test app uses the selection.json
to create the icons tests. The test app includes a globally exposed method createIconClasses()
, which will create and download a text file containing the icon classes and dijit aliases, which can then be added to flat-icons.sty
when changes are made to the icon set.
NOTE: This icon set is incomplete. Many of the .dijitIcon*
and .dijitEditorIcon*
icons do not have suitable icons in the Google icon set. These icons have a placeholder and have been assigned hex codes. Instead of using icons which do not quite fit the use, or from different icon sets, SVGs for these icons need to be created and added to the font. The SVGs need to be created on a 24 x 24 grid and generally be of the same design as the other icons.
Issues:
- Toggle button doesn't maintain width when unchecked.
- For input dijits with alternate color and required/validate, the border should also change via
.dijitTextBoxError
and equivalents. Alternate color styles are overriding. - Hover and selected calendar days with background 50% border radius looks a bit off on some days.
.dijitIcon
class can cause issues when using certain icon fonts.
Improvements:
- Consider typography, complimentary styling for native elements, helper classes, etc; and some components like Bootstrap.
- Alternate colors for text input dijits, checkboxes, radio buttons, sliders, title pane, tooltips.