Skip to content
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

V1 - Rework/separe elements components #220

Merged
merged 3 commits into from
Mar 22, 2018

Conversation

ryuran
Copy link
Contributor

@ryuran ryuran commented Feb 2, 2018

v1 beta

  • split elements and components Make difference between Elements and Components #212
  • Reorganize doc for designers Reorganize doc #242
  • Convert $gutter to rem Convert $gutter to rem #120
  • Remove old tabs and breaking news RECO : Voir comment gérer les différents types de "tabs" #174
  • add new breaking new
  • improve twig.js use
  • move btn modifiers to themes .btnSkin-…
  • move btn-icon as a element btnIcon
  • move box to component
  • change box styl (remove border and add rounded corners and shadow)
  • add lazy loading logic in js
  • rename .linkwithsvg to .linkIcon
  • separe _settings.styl in multiple files in _settings/
  • rename $svgLogo to $mediaPlaceholder
  • rename $svgLogoStyle to $mediaPlaceholder-style
  • rename $gutter and $columns to $grid-gutter and $grid-columns
  • rename $font-base, $font-headings and $font-secondary and $fontstack-base, $fontstack-headings and $fontstack-secondary
  • rename .form-single-row to .formSingleInput
  • add .formSingleInput-input and .formSingleInput-btn to make css selector lighter
  • remove .form-single-row in benefit to .btnSkin-…

@ryuran ryuran self-assigned this Feb 2, 2018
@ryuran ryuran force-pushed the rework/separe-elements-components branch from 6f17b7e to 1146ecf Compare February 8, 2018 16:21
@ryuran ryuran force-pushed the rework/separe-elements-components branch from 1146ecf to 952bc29 Compare February 16, 2018 14:07
@ryuran ryuran force-pushed the rework/separe-elements-components branch 2 times, most recently from 94f51ab to 505d24f Compare March 20, 2018 15:43
@@ -1,2 +1,9 @@
// Symbols
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still Symbols ?

//
// Special form components.
// A colette form should have `form` class to benefit exevy features provided
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

every

{% block block_body_content %}
{% for item in list %}
<li class="block-list-item" {{ loop.index > itemPerPage ? ' aria-hidden="true"' }}>
{% include 'card.twig' with {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be {{ include('card.twig', {

Copy link
Contributor Author

@ryuran ryuran Mar 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Twig js don't work support named arguments :sad:
twigjs/twig.js#410

@ryuran ryuran changed the base branch from master to v1 March 20, 2018 16:30
@ryuran ryuran changed the base branch from v1 to master March 20, 2018 16:34
@ryuran ryuran changed the base branch from master to v1 March 20, 2018 16:36
// Form elements
//
// Colette comes with basic CSS to style forms' elements.
// Colette comes with basic CSS to style form’s elements.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣

@@ -0,0 +1,49 @@
{# Card
#
# @param uri isDated (optional) (default true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not an uri it's a bool

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha pasted from vega

# @param str theme (optional) override theme
# @param bool lazyloadImg (optional) image lazyload (default false)
# @param array classes (optional) classes array added to each cards (defaut [])
# @param str attributes (optional) (default '')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be consistent in your twig files, use either string or str, but not both

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha pasted from vega

@ryuran ryuran force-pushed the rework/separe-elements-components branch from 505d24f to ee3d9b0 Compare March 21, 2018 10:48
@ryuran ryuran force-pushed the rework/separe-elements-components branch from 2e96e80 to e8199f7 Compare March 22, 2018 14:16
Copy link
Contributor

@nredoulez nredoulez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ryuran ryuran merged commit 925fb4d into 20minutes:v1 Mar 22, 2018
@ryuran ryuran deleted the rework/separe-elements-components branch March 22, 2018 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants