Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff-2857303-9-10.txt | 2.3 KB | markhalliwell |
#10 | navbar_site_logo_is-2857303-10.patch | 2.88 KB | markhalliwell |
Comments
Comment #2
rudraram CreditAttribution: rudraram at Axelerant commentedD8 is missing the Bootstrap style overrides which are present in D7.
Comment #3
njagojevic CreditAttribution: njagojevic commentedProvided patch which fixes this issue.
Comment #4
markhalliwellPlease only change the source files:
http://cgit.drupalcode.org/bootstrap/tree/starterkits/less/less/componen...
http://cgit.drupalcode.org/bootstrap/tree/starterkits/sass/scss/componen...
The code in the CSS folder is automatically compiled on commit by maintainers:
https://drupal-bootstrap.org/api/bootstrap/docs%21Maintainers.md/group/m...
Comment #5
njagojevic CreditAttribution: njagojevic commentedNew patch with changes in Sass and Less files which are not compiled.
Comment #6
markhalliwellWe really shouldn't be targeting the
mobile
media query as this usesmax-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...
Comment #7
njagojevic CreditAttribution: njagojevic commentedAs far as I can understand, this should be a mobile first solution.
Comment #8
markhalliwellIt should match what is currently being done in the 7.x-3.x branch as I said in #6.
Comment #9
njagojevic CreditAttribution: njagojevic commentedComment #10
markhalliwellSome minor corrections.
Comment #12
markhalliwellComment #13
njagojevic CreditAttribution: njagojevic commentedThanks for the help @markcarver.