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

The first tab element is displaced vertically #2172

Closed
micobarac opened this issue Oct 21, 2018 · 5 comments
Closed

The first tab element is displaced vertically #2172

micobarac opened this issue Oct 21, 2018 · 5 comments

Comments

@micobarac
Copy link

micobarac commented Oct 21, 2018

This is about Bulma.

Overview of the problem

This is about the Bulma CSS framework.

I am using the latest Bulma version.

Description

The first tab element is displaced vertically a few pixels, forming a small gap from the bottom border. This problem is almost 2 years old, but wasn't fixed along the way.

#474

Steps to Reproduce

I am facing the this issue on Windows 10 x64 with the latest Chrome version.

bug

<section class="section content">
  <div class="container is-fluid">
    <h1 class="title">Dashboard</h1>
    <div class="tabs">
      <ul>
        <li class="is-active"><a>Pictures</a></li>
        <li><a>Music</a></li>
        <li><a>Videos</a></li>
        <li><a>Documents</a></li>
      </ul>
    </div>
  </div>
</section>

Aligning items to the baseline did the trick.

.tabs ul { align-items: baseline; ... }

ok

Expected behavior

All tabs should be aligned vetically.

Actual behavior

The first tab is displaced.

@micobarac micobarac changed the title First tab element is displaced vertically The first tab element is displaced vertically Oct 21, 2018
diomed added a commit to diomed/bulma that referenced this issue Oct 23, 2018
@tulsileathers
Copy link

I can confirm I'm seeing the same problem

@mobayen
Copy link

mobayen commented Dec 25, 2018

same here
this style causes

.content li + li {
    margin-top: 0.25em;
}

either removeing it or lose the "+ li" part will solve the issue

@MikelisB
Copy link

MikelisB commented Apr 14, 2019

If it helps resolving it - same to me and the fix by OP did the trick. Thanks! :)
EDIT
Just realised it happends with pagination to me too. Same fix though.

jgthms pushed a commit that referenced this issue May 18, 2019
* adds baseline to tabs ul

[x] fix for #2172

* Update tabs.sass

* Update content.sass

* Update content.sass

* Update content.sass

* Update content.sass

* Update content.sass
@stale
Copy link

stale bot commented Oct 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 11, 2019
@logological
Copy link

The issue appears to have been fixed in Bulma 0.7.5. (I can reproduce it with Bulma 0.7.4, but not Bulma 0.7.5.) I think this issue can be closed now.

@stale stale bot removed the stale label Oct 15, 2019
@jgthms jgthms closed this as completed Oct 15, 2019
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

6 participants