".node_index-collection" - content not centered #48993

Closed
opened 2016-08-01 16:46:39 +02:00 by nucularJohn · 6 comments

Examples:
https://cloud.blender.org/training
https://cloud.blender.org/open-projects

Observed behaviour:
Below 767px window's width, "node_index-collection-card project" is not centered because its width is 100% of its container's width plus 2*15px (left/right) margin, making it bigger than its container.

Over 767px content is not centered (expected behavior?).

Expected behaviour:
"node_index-collection-card project" total width (width + margin) should be equal (or inferior) to its container.

Proposed solutions:

/* For centered content on all sizes */
/* Set left-right margin to auto */

.node_index-collection-card project {
    /* margin: 12px; */
    margin: 12px auto;
}
**Examples:** https://cloud.blender.org/training https://cloud.blender.org/open-projects **Observed behaviour:** Below 767px window's width, "node_index-collection-card project" is not centered because its width is 100% of its container's width plus 2*15px (left/right) margin, making it bigger than its container. Over 767px content is not centered (expected behavior?). **Expected behaviour:** "node_index-collection-card project" total width (width + margin) should be equal (or inferior) to its container. **Proposed solutions:** ``` /* For centered content on all sizes */ /* Set left-right margin to auto */ .node_index-collection-card project { /* margin: 12px; */ margin: 12px auto; } ```
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @nucularJohn

Added subscriber: @nucularJohn

Added subscriber: @fsiddi

Added subscriber: @fsiddi
Pablo Vazquez was assigned by Francesco Siddi 2016-08-02 09:22:01 +02:00

Thanks for this, will investigate ASAP.

Thanks for this, will investigate ASAP.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Thanks for the report! I've pushed the fix for mobile.

Over 767px indeed that's the expected behavior, because we want cards aligned to the left, not centered.

Thanks for the report! I've pushed the fix for mobile. Over 767px indeed that's the expected behavior, because we want cards aligned to the left, not centered.
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: archive/pillar#48993
No description provided.