It shows two screenshots from Bootstrap for a width below 768px in D8 and D7.
You see in the drupal-8 version that the site_logo is almost touching the border.
In drupal-7 from drupal-bootstap.org site it is displayed correctly.

In D7 you got the class '.navbar .logo' with the attribute 'padding-left: 15px' which negates the attribute 'margin-left: -15px' effect from 'navbar-header' if the width is smaller 768px.

In D8 something similar is missing, and I think that is why the site_logo is so far left.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mvogel created an issue. See original summary.

rudraram’s picture

D8 is missing the Bootstrap style overrides which are present in D7.

njagojevic’s picture

Assigned: Unassigned » njagojevic
Status: Active » Needs review
FileSize
4.55 MB

Provided patch which fixes this issue.

markhalliwell’s picture

Status: Needs review » Needs work
njagojevic’s picture

Status: Needs work » Needs review
FileSize
881 bytes

New patch with changes in Sass and Less files which are not compiled.

markhalliwell’s picture

We really shouldn't be targeting the mobile media query as this uses max-width.

Any solution made should be mobile first.

That being said, this is the relevant 7.x-3.x code that the OP mentions:
http://cgit.drupalcode.org/bootstrap/tree/starterkits/less/less/override...

njagojevic’s picture

Status: Needs work » Needs review
FileSize
1.62 KB
1.7 KB

As far as I can understand, this should be a mobile first solution.

markhalliwell’s picture

Status: Needs review » Needs work

It should match what is currently being done in the 7.x-3.x branch as I said in #6.

njagojevic’s picture

Status: Needs work » Needs review
FileSize
1.83 KB
1.02 KB
markhalliwell’s picture

Assigned: njagojevic » Unassigned
Status: Needs review » Reviewed & tested by the community
FileSize
2.88 KB
2.3 KB

Some minor corrections.

  • markcarver committed 3344258 on 8.x-3.x authored by njagojevic
    Issue #2857303 by njagojevic, markcarver, mvogel: Navbar site_logo is...
  • markcarver committed 55ff7e4 on 8.x-3.x
    Automated commit: grunt compile (CSS)
    
    Issue #2857303 by njagojevic,...
markhalliwell’s picture

Status: Reviewed & tested by the community » Fixed
njagojevic’s picture

Thanks for the help @markcarver.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.