RFS (Responsive Font Size) for Bootstrap (4.3.1) not generating media query at 1200px thresholdTwitter Bootstrap 3: how to use media queries?media queries / loading different image depending on screen sizeBootstrap glyphicons misaligning on mobile with font size changeMedia-List and Text-Overflow in Bootstrap 3.3.2Bootstrap sass: set font-size-base in em?Media Query Bootstrap IssueBootstrap 3 breakpoint override not workingBootstrap Responsive Image Carousel SizingWhy doesn't the @media query change elements on particular screen sizes?Cannot override bootstrap font-size
Is it more effective to add yeast before or after kneading?
reverse a list of generic type
Idiom for "I came, I saw, I ate" (or drank)
Meaning of 'ran' in German?
Does the Orange League not count as an official Pokemon League, making the Alolan League his first-ever win?
Is it impolite to ask for halal food when traveling to and in Thailand?
Counting most common combination of values in dataframe column
Is there any reason nowadays to use a neon indicator lamp instead of an LED?
What is the lowest voltage that a microcontroller can successfully read on the analog pin?
Social leper versus social leopard
Guitar tuning (EADGBE), "perfect" fourths?
Do the villains know Batman has no superpowers?
Is It Possible to Have Different Sea Levels, Eventually Causing New Landforms to Appear?
Performance for simple code that converts a RGB tuple to hex string
What are these ingforms of learning?
If an object moving in a circle experiences centripetal force, then doesn't it also experience centrifugal force, because of Newton's third law?
Allocating credit card points
Do we know the situation in Britain before Sealion (summer 1940)?
Wrong result by FindRoot
Find missing number in the transformation
A high quality contribution but an annoying error is present in my published article
Was there a trial by combat between a man and a dog in medieval France?
How to deal with my team leader who keeps calling me about project updates even though I am on leave for personal reasons?
A drug that allows people to survive on less food
RFS (Responsive Font Size) for Bootstrap (4.3.1) not generating media query at 1200px threshold
Twitter Bootstrap 3: how to use media queries?media queries / loading different image depending on screen sizeBootstrap glyphicons misaligning on mobile with font size changeMedia-List and Text-Overflow in Bootstrap 3.3.2Bootstrap sass: set font-size-base in em?Media Query Bootstrap IssueBootstrap 3 breakpoint override not workingBootstrap Responsive Image Carousel SizingWhy doesn't the @media query change elements on particular screen sizes?Cannot override bootstrap font-size
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've recently updated our project's Bootstrap version to the latest (4.3.1). One of the new features in that version is RFS (https://github.com/twbs/rfs). I'm importing all of Bootstrap via node_modules. I haven't modified the RFS mixin in any way. I'm using the version that ships with Bootstrap 4.3.1 as configured by default. Bootstrap is compiling just fine with the exception of this particular RFS issue.
RFS is designed to generate a media query (default is 1200px
) below which threshold the font automatically scales downward in size.
That media query is not being generated in my current environment. It is a large project with many dependencies and I'm pretty much shooting the dark trying to come up with a reduced test case. I realize that that makes helping me with this issue very difficult if not impossible. But I'm desperate at this point.
Also, I'm reasonably sure (say, 90%) this is a me problem, not an RFS problem, but I haven't been able to sort the issue.
I'm invoking the mixin as follows:
.my-test
@include rfs(3rem);
Note that this font size is greater than the minimum font size of 1.25rem at or below which no scaling will take place. So, that's not the issue.
I've also tried invoking the aliased versions of the mixin:
.my-test
@include responsive-font-size(3rem);
and
.my-test
@include font-size(3rem);
I've tried it with rem
, px
, and unitless values.
The mixin is definitely being recognized and is halfway working. I.e., it compiles out to regular CSS without a hitch.
So, the code above does indeed generate the following CSS:
.my-test
font-size: 3rem;
But, again, no media query (at 1200px
) is being generated by the mixin in my current environment and, thus, no downward scaling is taking place below the 1200px threshold.
At screen widths below 1200px
, I would expect to see something similar to the following:
@media (max-width: 1200px)
.my-test
font-size: calc(1.525rem + 3.3vw);
But, no dice.
Again, I haven't modified the default configuration of the RFS mixin in any way, and it does appear to be halfway working, as it's compiling out to CSS.
Tried in my coworker's environment and he gets the same results. But, that's expected, as we have pretty similar local environments, I suppose.
Can someone point me in a direction to try to sort this?
twitter-bootstrap
add a comment
|
I've recently updated our project's Bootstrap version to the latest (4.3.1). One of the new features in that version is RFS (https://github.com/twbs/rfs). I'm importing all of Bootstrap via node_modules. I haven't modified the RFS mixin in any way. I'm using the version that ships with Bootstrap 4.3.1 as configured by default. Bootstrap is compiling just fine with the exception of this particular RFS issue.
RFS is designed to generate a media query (default is 1200px
) below which threshold the font automatically scales downward in size.
That media query is not being generated in my current environment. It is a large project with many dependencies and I'm pretty much shooting the dark trying to come up with a reduced test case. I realize that that makes helping me with this issue very difficult if not impossible. But I'm desperate at this point.
Also, I'm reasonably sure (say, 90%) this is a me problem, not an RFS problem, but I haven't been able to sort the issue.
I'm invoking the mixin as follows:
.my-test
@include rfs(3rem);
Note that this font size is greater than the minimum font size of 1.25rem at or below which no scaling will take place. So, that's not the issue.
I've also tried invoking the aliased versions of the mixin:
.my-test
@include responsive-font-size(3rem);
and
.my-test
@include font-size(3rem);
I've tried it with rem
, px
, and unitless values.
The mixin is definitely being recognized and is halfway working. I.e., it compiles out to regular CSS without a hitch.
So, the code above does indeed generate the following CSS:
.my-test
font-size: 3rem;
But, again, no media query (at 1200px
) is being generated by the mixin in my current environment and, thus, no downward scaling is taking place below the 1200px threshold.
At screen widths below 1200px
, I would expect to see something similar to the following:
@media (max-width: 1200px)
.my-test
font-size: calc(1.525rem + 3.3vw);
But, no dice.
Again, I haven't modified the default configuration of the RFS mixin in any way, and it does appear to be halfway working, as it's compiling out to CSS.
Tried in my coworker's environment and he gets the same results. But, that's expected, as we have pretty similar local environments, I suppose.
Can someone point me in a direction to try to sort this?
twitter-bootstrap
add a comment
|
I've recently updated our project's Bootstrap version to the latest (4.3.1). One of the new features in that version is RFS (https://github.com/twbs/rfs). I'm importing all of Bootstrap via node_modules. I haven't modified the RFS mixin in any way. I'm using the version that ships with Bootstrap 4.3.1 as configured by default. Bootstrap is compiling just fine with the exception of this particular RFS issue.
RFS is designed to generate a media query (default is 1200px
) below which threshold the font automatically scales downward in size.
That media query is not being generated in my current environment. It is a large project with many dependencies and I'm pretty much shooting the dark trying to come up with a reduced test case. I realize that that makes helping me with this issue very difficult if not impossible. But I'm desperate at this point.
Also, I'm reasonably sure (say, 90%) this is a me problem, not an RFS problem, but I haven't been able to sort the issue.
I'm invoking the mixin as follows:
.my-test
@include rfs(3rem);
Note that this font size is greater than the minimum font size of 1.25rem at or below which no scaling will take place. So, that's not the issue.
I've also tried invoking the aliased versions of the mixin:
.my-test
@include responsive-font-size(3rem);
and
.my-test
@include font-size(3rem);
I've tried it with rem
, px
, and unitless values.
The mixin is definitely being recognized and is halfway working. I.e., it compiles out to regular CSS without a hitch.
So, the code above does indeed generate the following CSS:
.my-test
font-size: 3rem;
But, again, no media query (at 1200px
) is being generated by the mixin in my current environment and, thus, no downward scaling is taking place below the 1200px threshold.
At screen widths below 1200px
, I would expect to see something similar to the following:
@media (max-width: 1200px)
.my-test
font-size: calc(1.525rem + 3.3vw);
But, no dice.
Again, I haven't modified the default configuration of the RFS mixin in any way, and it does appear to be halfway working, as it's compiling out to CSS.
Tried in my coworker's environment and he gets the same results. But, that's expected, as we have pretty similar local environments, I suppose.
Can someone point me in a direction to try to sort this?
twitter-bootstrap
I've recently updated our project's Bootstrap version to the latest (4.3.1). One of the new features in that version is RFS (https://github.com/twbs/rfs). I'm importing all of Bootstrap via node_modules. I haven't modified the RFS mixin in any way. I'm using the version that ships with Bootstrap 4.3.1 as configured by default. Bootstrap is compiling just fine with the exception of this particular RFS issue.
RFS is designed to generate a media query (default is 1200px
) below which threshold the font automatically scales downward in size.
That media query is not being generated in my current environment. It is a large project with many dependencies and I'm pretty much shooting the dark trying to come up with a reduced test case. I realize that that makes helping me with this issue very difficult if not impossible. But I'm desperate at this point.
Also, I'm reasonably sure (say, 90%) this is a me problem, not an RFS problem, but I haven't been able to sort the issue.
I'm invoking the mixin as follows:
.my-test
@include rfs(3rem);
Note that this font size is greater than the minimum font size of 1.25rem at or below which no scaling will take place. So, that's not the issue.
I've also tried invoking the aliased versions of the mixin:
.my-test
@include responsive-font-size(3rem);
and
.my-test
@include font-size(3rem);
I've tried it with rem
, px
, and unitless values.
The mixin is definitely being recognized and is halfway working. I.e., it compiles out to regular CSS without a hitch.
So, the code above does indeed generate the following CSS:
.my-test
font-size: 3rem;
But, again, no media query (at 1200px
) is being generated by the mixin in my current environment and, thus, no downward scaling is taking place below the 1200px threshold.
At screen widths below 1200px
, I would expect to see something similar to the following:
@media (max-width: 1200px)
.my-test
font-size: calc(1.525rem + 3.3vw);
But, no dice.
Again, I haven't modified the default configuration of the RFS mixin in any way, and it does appear to be halfway working, as it's compiling out to CSS.
Tried in my coworker's environment and he gets the same results. But, that's expected, as we have pretty similar local environments, I suppose.
Can someone point me in a direction to try to sort this?
twitter-bootstrap
twitter-bootstrap
edited Mar 28 at 16:12
Donkey Shame
asked Mar 28 at 15:49
Donkey ShameDonkey Shame
4872 silver badges10 bronze badges
4872 silver badges10 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
Solution:
tl;dr - RTFM
Expanded solution:
I didn't update my custom variables
file after updating Bootstrap. The source variables
file had the $enable-responsive-font-size
boolean set to false and I didn't have it in my un-updated custom variables
file. Thus, I didn't override the false
value with true
.
smh.
just as small correction. as seen in getbootstrap.com/docs/4.3/content/typography/… Its$enable-responsive-font-sizes
(you are missing the last 's'
– Andreas Hadjithoma
Aug 21 at 9:59
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55401819%2frfs-responsive-font-size-for-bootstrap-4-3-1-not-generating-media-query-at-1%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Solution:
tl;dr - RTFM
Expanded solution:
I didn't update my custom variables
file after updating Bootstrap. The source variables
file had the $enable-responsive-font-size
boolean set to false and I didn't have it in my un-updated custom variables
file. Thus, I didn't override the false
value with true
.
smh.
just as small correction. as seen in getbootstrap.com/docs/4.3/content/typography/… Its$enable-responsive-font-sizes
(you are missing the last 's'
– Andreas Hadjithoma
Aug 21 at 9:59
add a comment
|
Solution:
tl;dr - RTFM
Expanded solution:
I didn't update my custom variables
file after updating Bootstrap. The source variables
file had the $enable-responsive-font-size
boolean set to false and I didn't have it in my un-updated custom variables
file. Thus, I didn't override the false
value with true
.
smh.
just as small correction. as seen in getbootstrap.com/docs/4.3/content/typography/… Its$enable-responsive-font-sizes
(you are missing the last 's'
– Andreas Hadjithoma
Aug 21 at 9:59
add a comment
|
Solution:
tl;dr - RTFM
Expanded solution:
I didn't update my custom variables
file after updating Bootstrap. The source variables
file had the $enable-responsive-font-size
boolean set to false and I didn't have it in my un-updated custom variables
file. Thus, I didn't override the false
value with true
.
smh.
Solution:
tl;dr - RTFM
Expanded solution:
I didn't update my custom variables
file after updating Bootstrap. The source variables
file had the $enable-responsive-font-size
boolean set to false and I didn't have it in my un-updated custom variables
file. Thus, I didn't override the false
value with true
.
smh.
answered Mar 29 at 18:50
Donkey ShameDonkey Shame
4872 silver badges10 bronze badges
4872 silver badges10 bronze badges
just as small correction. as seen in getbootstrap.com/docs/4.3/content/typography/… Its$enable-responsive-font-sizes
(you are missing the last 's'
– Andreas Hadjithoma
Aug 21 at 9:59
add a comment
|
just as small correction. as seen in getbootstrap.com/docs/4.3/content/typography/… Its$enable-responsive-font-sizes
(you are missing the last 's'
– Andreas Hadjithoma
Aug 21 at 9:59
just as small correction. as seen in getbootstrap.com/docs/4.3/content/typography/… Its
$enable-responsive-font-sizes
(you are missing the last 's'– Andreas Hadjithoma
Aug 21 at 9:59
just as small correction. as seen in getbootstrap.com/docs/4.3/content/typography/… Its
$enable-responsive-font-sizes
(you are missing the last 's'– Andreas Hadjithoma
Aug 21 at 9:59
add a comment
|
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55401819%2frfs-responsive-font-size-for-bootstrap-4-3-1-not-generating-media-query-at-1%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown