css-examples icon indicating copy to clipboard operation
css-examples copied to clipboard

[Mobile] Section border overlaps the examples

Open mirunacurtean opened this issue 5 years ago • 5 comments

  1. On a mobile browser open https://developer.allizom.org/en-us/docs/web/css/css_flexible_box_layout/aligning_items_in_a_flex_container#Aligning_one_item_with_align-self.
  2. Scroll through the flex examples.
  3. Notice that the section border line overlaps the example itself instead of encapsulating it.

20201211_190650

mirunacurtean avatar Dec 11 '20 17:12 mirunacurtean

They look like iframes. I didn't understand if there is another repository for those iframes right to the content.

Screenshot_20201211-200357.png

Perhaps an

  • iframe.scss atom should be created
  • with a 🟡 yellow
  • ... dotted
  • border
  • and padding.

ghost avatar Dec 11 '20 19:12 ghost

My script blocker points me to https://mdn.github.io/css-examples/flexbox/alignment/align-self.html for the included iFrame.

Ryuno-Ki avatar Dec 13 '20 16:12 Ryuno-Ki

  • It is in Yari file system?
  • It is a Yari issue?

Screenshot_20201213-173213.png

ghost avatar Dec 13 '20 16:12 ghost

That border is set in the example itself: https://mdn.github.io/css-examples/flexbox/alignment/align-items.html

So, it would need to be resolved there.

In fact you can see the problem here:

.box {
    width: 500px;
    border: 2px dotted rgb(96, 139, 168);
}

The fixed-width should be removed.

schalkneethling avatar Jan 11 '21 14:01 schalkneethling

The fixed-width should be removed.

Sounds reasonable, here's where that's located:

https://github.com/mdn/css-examples/blob/2d33a1c5aede31cc0e15415bce708950de582675/flexbox/alignment/align-items.html#L62-L65

caugner avatar Oct 10 '23 18:10 caugner