20minutes / colette Goto Github PK
View Code? Open in Web Editor NEWA CSS and JS starter kit for 20 Minutes web projects
Home Page: http://developers.20minutes.fr/colette/
License: MIT License
A CSS and JS starter kit for 20 Minutes web projects
Home Page: http://developers.20minutes.fr/colette/
License: MIT License
In order to:
Make them consistent with recommended default styles
(see http://www.w3schools.com/tags/tag_hn.asp)
As we aim at removing all bower dependecies, use headroom.js npm package:
npm install headroom.js --save
px width on .socialbar li
: https://github.com/20minutes/colette/blob/master/assets/styl/_modules/_socialbar.styl#L7
rem width on .btn-icon
:
https://github.com/20minutes/colette/blob/master/assets/styl/_layout/_buttons.styl#L24
Use em
values for sizes, widths and heights.
=> Use variables only
.list-pos-outside
.list-pos-outside li
list-style-position inside
padding-left 1em
text-indent -1em
Add:
Corriger l'alignement des guillemets avec le texte quand il y a des paragraphes dans la balise blockquote
.
https://files.slack.com/files-pri/T0J95DTSQ-F24U6U7J8/capture_d_____cran_2016-08-25____16.35.46.png
assets/styl
source filesnpm
dependency (needs package.json and gulpfile.js files' update)A newspaper can be more specific than 20minutes and by exemple a sport newspaper:
It's why categories should be configurable.
Currently we have a set or margin and padding classes, based on a 1.2rem guetter width:
<p class="pa1">Paragraph with a 1.2rem padding</p>
Create, in addition to these classes, mixins so that we can define gutter-based paddings and margins within css declaration. The mixins would look like:
_pa(n)
padding: n * $gutter * 0.1rem
_pl(n)
padding-left: n * $gutter * 0.1rem
... etc
To be more consistent with smacss methodoly.
Keep in layout/
:
Move to theme/
:
https://github.com/20minutes/colette/blob/master/assets/styl/_base/_normalize.styl#L78 => needs to investigate if it's still necessary to display img
as block
.
Use vertical-align: middle
on textarea to have same behaviour than text input
If we use alerts on colored background the color will change by the opacity
For a better a11y we need to improve contrast http://contrast-finder.tanaguru.com/
Contrast ratio 4.5 minimum.
https://20minutes.github.io/colette/section-components.html#kssref-components-alerts
Not yet supported by kss: kss-node/kss-node#52
It's for use aria state attributes (aria-diabled
, aria-busy
, …).
To avoid $gutter * .1rem
Split _settings.styl
into _settings
and helpers/text
+ helpers/block
files.
At this time, spiner use this html.
<div class="spinner">
<span class="bounce1"></span>
<span class="bounce2"></span>
<span class="bounce3"></span>
</div>
I think to be able to do same effect with this markup :
<div class="spinner">
<span>Loading…</span>
</div>
It could be better for a11y.
Warning message can be useful to show something wrong but softer than a error.
settings.styl
into multiple files (group variables/classes/mixins/etc. by concern)Dans colette gérer les critical / non critical avec des tableaux dans le fichier _settings.styl, pour indiquer les fichiers de styles qui doivent être inclus en ligne dans le html ou dans la css finale
In the same time, fix the error: invalid-meta The "main" field cannot contain minified files
(when running bower install command
)
Adapter le rendu des font de fallback (interlignage, interlettrage entre autre) pour être au plus proche d’Open Sans
Rework socialbar
assets/styl/_modules/socialbar.twig
assets/styl/_modules/_socialbar.styl
Rework buttons
assets/styl/_modules/_buttons.styl
assets/styl/_modules/buttons-icon-default.twig
assets/styl/_modules/buttons-icon-social.twig
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.