-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document incuna sass #49
Comments
I'll add some brief notes here and then whoever gets chance first can update the files themselves with descriptions where necessary. Mixins
Helpers
Functions
Components
Root
Generally, what do @incuna/frontend think about the idea of making IE9 the minimum as a standard for stuff , as it is for most projects, and then separating other stuff to a "legacy" folder for older browsers. So we aren't actually getting rid of it, but on a project, you could include |
Thinking about webfonts i think these days we might only need woff and ttf. |
beth, we should check what bourbon has. I was going to do this this morning but i'm not on myday anymore. placeholder: may be needed for IE9? |
@incuna/frontend Please see the review of some of the incuna-sass elements and how they relate to bourbon. my recommendation are in bold (of course the final decision belongs to the team:) ) font faceyou can specify weight, style and file formats in bourbon mixin
consider switching to bourbon mixin and remove incuna-sass mediathere's no media mixin in bourbon (it's in neat - bourbon-related project) so we need ours. but there's HIDPI media mixin targeting retina displays. Our media mixin targets retina as well but perhaps we could update the use incuna-sass mixin but consider updating hidpi bit placeholderthe same name, the same functionality, and almost the same code consider using bourbon mixin and remove incuna-sass rgba-backgroundthere's nothing like that in bourbon but sass has a built-in function for that that works like that: move the IE8 fallback to incuna-sass-legacy and remove the mixin from incuna-sass box-sizingThe box-sizing mixin has been deprecated and will be removed in in the next version of Bourbon! clearfixbourbon has its own clearfix that doesn't use use shorter and more modern bourbon mixin and, if needed, create IE7 clearfix mixin in image-replaceBourbon uses
Our helper has IE7 fallback and block functionality included inline-blockThis stuff is for IE6-7 linknothing like that in bourbon. let's keep it? overflow-scrollno duplicate in bourbon. This helper uses webkit-specific feature. pseudo-elementsNo bourbon alternative vertical-centernothing like that in Bourbon. Can we remove it? visually-hiddenno duplicate in Bourbon. Shall we remove it? em & remBourbon has the functions with the same names and functionality. The only difference is that Bourbon allows the argument to be unitless. However, it also accepts units (to make happy all our unit-supporters ;) ) Remove our |
@incuna/frontend can I get some other people's opinions on the following please:
if you think we need these please explain why (and what they do / when they can be used) otherwise I'm going to suggest we remove them because I don't know what they're for :) |
Visually hidden is largely taken from http://snook.ca/archives/html_and_css/hiding-content-for-accessibility |
Vertical center will vertically center a child element within the parent, eg .parent
@extend %vertical-center
.child
@extend %inline-block |
Overflow scroll enables momentum scrolling on overflowed elements in iOS |
@perry can you help me understand the difference between |
Sure. |
thank you, that's really helpful :) |
Here is the list of things that need documentation. For documenting style reference see https://github.com/incuna/incuna-sass/blob/master/incuna-sass/mixins/_svg.sass
Documentation should explain what the code does, why it's needed and provide examples of when / how it can be used.
If the file is not something we use anymore / need for currently supported browsers please make a note of this as well.
Mixins
PlaceholderHelpers
inline-blockFunctions
Components
Root
Browsers@incuna/frontend please find some time to look these over and add some documentation. Alternatively you can come and tell me what it does / why we need it and I'll add the docs.
The text was updated successfully, but these errors were encountered: