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

[Bug] Tingle does not work on a container grid with relative position below the nav with fixed position on portrait mobile #135

Closed
gusbemacbe opened this issue Jan 2, 2020 · 1 comment

Comments

@gusbemacbe
Copy link

gusbemacbe commented Jan 2, 2020

Hello,

Tingle works only on landscape mobile with less than 20 and 480 pixels. But not on portarit mobile.

On a testing page, it works strangely on on portarit mobile.

My project is particular, so I have to send to you by e-mail.

I tried #42. No luck.

Update

I found the bug – the nav class has fixed positive, the grid-container has relative position, and if I remove the relative position from the grid-container, Tingle will return to normal, but the nav is no longer fixed.

CSS

nav 
{
  overflow: hidden;
}

.nav-content 
{
  display: flex;
}

.nav-content a 
{
  align-items: center;
  display: flex;
  justify-content: center;
}

.nav-links 
{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.gride-container *
{
  position: relative;
}

.gride-container
{
  display: grid;
  /* position: relative; */
  z-index: -1;
}

@media screen and (max-width: 48em)
{
  nav
  {
    position: fixed;
    width: 100%;
  }

  .nav-links 
  {
      position: fixed;
  }
}

HTML:

<nav>
  <div class="caixa-de-barra">
    <div class="nav-content">
       <div class="nav-links">
         <a href="#about">Quem Somos</a>
       </div>
    </div>
  </div>
</nav>

<div class="gride-container tingle-content-wrapper">
  <div class="secção-lacrei">
    <div class="item-1">
      <a class="js-secção-2-saiba-mais">
    </div>
  </div>
</div>

I provide https://jsfiddle.net/gusbemacbe/vnyrt2we/25/.

@gusbemacbe gusbemacbe changed the title [Bug] Tingle does not work on portait mobile with less than 320 and 480 [Bug] Tingle does not work on a container grid with relative position below the nav with fixed position on portrait mobile Jan 2, 2020
@robinparisi
Copy link
Owner

Hey @gusbemacbe,

The problem seems really specific to your layout. I encourage you to ask for help on Stack Overflow since tingle just use a fixed div to place itself. Maybe you need to find "colisions" with other CSS declarations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants