You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Guys,
I was trying to add a custom breakpoint in my sass bootstrap, and I incurred in a very strange behavior.
My custom breakpoint is(as asked by many people) between the sm breakpoint (min-width 768px) and a subdivision of the existent xs breakpoint (exactly at 480px).
I proceeded creating the value of my variables for the new grid, and included them with the variables to modify the aspect of the standard bootstrap (like link colors, text colors and fonts for example) before including bootstrap:
$container-ns: 460px !default;
$screen-ns: 480px !default; // Intermediate small screen / phone. (Custom breakpoint).
$screen-ns-min: ($screen-is) !default; // Minimum screen size for the custom grid.
$screen-ns-max: 767px !default;
$screen-xs-max: ($screen-is-min - 1) !default; // Maximum screen size for xs (We have to call it before bootstrap).
I then created the columns generators in another file included after bootstrap, declaring here the new value for the sm grid min-width (in order to avoid overwrite by bootstrap itself):
The new grid called ns(new small) apparently works fine everywhere, except at width 767px (a px below the sm breakpoint), where the behaviour is xs(I don't understand why).
At 768px the code behave as sm breakpoint, and at 766 behave as ns breakpoint, but at 767 it just behave as xs breakpoint (seems like not overwriting that point at all, effectively that is the last xs breakpoint - the xs-max for the bootstrap default).
I really cannot understand what is going on, except, that maybe we are not really able to overwrite that specific 767??
The grid works ok going down from 767 and right going up to 767. The issue it's just in 767 exactly there!
I think that inside bootstrap, there is some other place where the 767 is hard coded, and that happen to overwrite the ns rule with the xs.
It's like a singularity(it use the xs fluid style), between ns and sm.
The fact that the weird behavior happen exactly around the change point of the grid(the original and not the customized bootstrap), in someway indicate that in some other place something need to be related with that.
What do you think? How I can solve this issue? is it possible to solve?
Thanks
Dinuz
The text was updated successfully, but these errors were encountered:
@radar sorry to have tagged you in...I thought maybe you could have an opinion.
No bad feelings here, just looking to solve an issue, and trying to share my experience with the community.
The interaction and exchange of opinions and experiences is what make development speed up.
@thomas-mcdonald @radar
Hi Guys,
I was trying to add a custom breakpoint in my sass bootstrap, and I incurred in a very strange behavior.
My custom breakpoint is(as asked by many people) between the sm breakpoint (min-width 768px) and a subdivision of the existent xs breakpoint (exactly at 480px).
I proceeded creating the value of my variables for the new grid, and included them with the variables to modify the aspect of the standard bootstrap (like link colors, text colors and fonts for example) before including bootstrap:
I then created the columns generators in another file included after bootstrap, declaring here the new value for the sm grid min-width (in order to avoid overwrite by bootstrap itself):
The new grid called ns(new small) apparently works fine everywhere, except at width 767px (a px below the sm breakpoint), where the behaviour is xs(I don't understand why).
At 768px the code behave as sm breakpoint, and at 766 behave as ns breakpoint, but at 767 it just behave as xs breakpoint (seems like not overwriting that point at all, effectively that is the last xs breakpoint - the xs-max for the bootstrap default).
I really cannot understand what is going on, except, that maybe we are not really able to overwrite that specific 767??
The grid works ok going down from 767 and right going up to 767. The issue it's just in 767 exactly there!
I think that inside bootstrap, there is some other place where the 767 is hard coded, and that happen to overwrite the ns rule with the xs.
It's like a singularity(it use the xs fluid style), between ns and sm.
Let's see if I can be more clear:
Screen <480 => XS
480<= screen < 767 => NS
screen = 767 => XS (singularity)
768<= screen<=991 => SM
Etc
The fact that the weird behavior happen exactly around the change point of the grid(the original and not the customized bootstrap), in someway indicate that in some other place something need to be related with that.
What do you think? How I can solve this issue? is it possible to solve?
Thanks
Dinuz
The text was updated successfully, but these errors were encountered: