Comments (9)
Which files aren't theme related?
Note that as we split each widget's CSS into widget specific directories,
there won't be much left in themes/.
from delite.
Actually there maybe none right now but at least @dmandrioli have a candidate for a non theme related one. I let him elaborate. And this is a non-widget specific CSS and so even when the CSS for the various widgets will be split out into their own directories (#14) we will still need that common place which might be better named css than theme?
from delite.
OK. It's just strange because I used to have such CSS in dijit.css but I
got rid of it, rolling it into the claro .less files. I consider it an
improvement.
from delite.
I plan to have a CSS file such as dui/css/defaultapp.css which would contain some useful global CSS for typical app development. This CSS would be optional for users, depending on their needs.
Here is the content of this file:
html, body {
height: 100%;
margin: 0;
}
*{
box-sizing: border-box;
}
from delite.
@wkeese I guess the difference is what @dmandrioli mentioned would be optional and loaded only when the user request it while the theme things are automatically loaded as soon as the corresponding widget / theme is loaded. Maybe this could still be in theme after all but this would need to be duplicated in all themes and the user might have more trouble finding it inside all the themes .css files than at root place.
from delite.
First of all, I don't care if you rename the themes directory.
As for the file you are suggesting, it sounds like dojo.css, albeit the
height: 100% is a twist. I mention this because originally dojo.css was
included from Claro, but there was a lot of opposition, a lot of people
upset. So eventually, we made it opt in, ie to be included manually.
My other observations is that general page CSS could also vary by the
theme. For example, doesn't bootstrap have general page CSS setting fonts
etc.?
It seems like general page CSS should be opt in but theme specific.
from delite.
Speaking of "generic" CSS classes that are not related to themes, what are we going to do about the dojo mobile dom buttoms (css under dojox/mobile/themes/common/domButtons) ? Are we going to release them as CSS files, are we going to release them "wrapped" into a domButton widget ? Something else ?
from delite.
Not sure what happens with those domButtons classes. It seems strange to me to have predefined classes for specific colors.
One other note on themes/ vs. css/: Some of the widgets' theme-specific directories will contain more than just CSS. They will have custom icons (implemented as custom fonts or sprites). So while it might make sense to have a generic css/ directory for non-theme-specific CSS files, I think it makes sense for each widget to have a themes/ directory:
Button/
themes/
android/
ios/
...
nls/
...
Either that, or just have the theme directories directly under the widget directory, i.e.
Button/
android/
ios/
...
nls/
...
PS: Well, I'm optimistically assuming that the icons will vary by theme. Perhaps we don't have the manpower for that.
from delite.
You are right that theming is actually potentially more than CSS. So let's keep "themes" naming for each widget. Now as you said we might still have a css top level directory for things like what @dmandrioli is proposing. I propose we close this issue and create that css directory when/if needed.
For domButtons I propose @sbrunot you create a different issue as this sounds a bit orthogonal discussion to me. My take is that as we want CSS to be premium citizen there is not requirement to wrap them into a widget to bring them into deliteful but we can discuss this.
@wkeese the purpose of the dom buttons is more than changing colors, this was to replace PNG icons by lighter alternatives for mobile (in several colors indeed). See http://www.ibm.com/developerworks/mobile/library/mo-dojo-mobile-performance/index.html.
from delite.
Related Issues (20)
- Don't set blank attribute values
- HasDropDown: SPACE key doesn't open dropdown when JAWS is running
- HasDropDown: add flag for popup type
- Upgrade to DCL V2 HOT 7
- HasDropDown: DOM node leak, old popups not always destroyed.
- FormWidget: caret can jump to end of text while typing
- delite/popup: automatically detect popup size change
- Centered popups disappear on resize in RTL mode
- Viewport: replace polling HOT 1
- element resize observer HOT 4
- delite/popup: replace polling
- Fix iOS focus problems when dialog input element is clicked
- Close dropdown when anchor node scrolled out of view
- delite not working in Safari 12.1 HOT 2
- delite/popup: support scrub gesture to close popup HOT 1
- JAWS browse mode broken in dropdown dialogs
- KeyNav: let handler choose to not handle key
- Shift-tabbing into KeyNav container from browser address bar broken
- ES6 module format conversion
- lit-html preparation and conversion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delite.