Open Gerhut opened 6 years ago
This is about Bulma.
This is about the Bulma CSS framework
I'm using Bulma version 0.6.1 My browser is: Safari 11 This is a Sass issue: I'm using version 0.6.1 I am sure this issue is not a duplicate.
Using rem on html tag can only relative to browser default html font-size(16px).
Setting font-size of html tag can not affect rem value set on itself.
Although it is a browser bug, move .has-navbar-fixed-top to body will be a workaround.
.has-navbar-fixed-top
body
$body-size
14px
.is-fixed-top
Both .navbar's min-height and html.has-navbar-fixed-top's padding-top are 45.5px (=3.25rem * 14px)
.navbar
min-height
html.has-navbar-fixed-top
padding-top
.navbar's min-height is 45.5px while html.has-navbar-fixed-top's padding-top is 52px (= 3.25rem * 16px)
Mmmh that's good shout. The padding could be applied to body instead.
This is about Bulma.
Overview of the problem
This is about the Bulma CSS framework
I'm using Bulma version 0.6.1 My browser is: Safari 11 This is a Sass issue: I'm using version 0.6.1 I am sure this issue is not a duplicate.
Description
Using rem on html tag can only relative to browser default html font-size(16px).
Setting font-size of html tag can not affect rem value set on itself.
Although it is a browser bug, move
.has-navbar-fixed-top
tobody
will be a workaround.Steps to Reproduce
$body-size
to14px
.is-fixed-top
navbar with.has-navbar-fixed-top
htmlExpected behavior
Both
.navbar
'smin-height
andhtml.has-navbar-fixed-top
'spadding-top
are 45.5px (=3.25rem * 14px)Actual behavior
.navbar
'smin-height
is 45.5px whilehtml.has-navbar-fixed-top
'spadding-top
is 52px (= 3.25rem * 16px)