Comments (5)
Yes, see https://getbootstrap.com/docs/5.0/content/typography/#responsive-font-sizes
Best demo to view is the display headings: https://getbootstrap.com/docs/5.0/content/typography/#display-headings
from rfs.
Yes, that page does show the fonts getting smaller as the page narrows. Very nice, although perhaps not always wanted. So, what I want to know is how to turn this feature off and on. Is there a Bootstrap 5 class for this? Or is it turned off and on for certain features like the Responsive Grid or Fluid Layout? Is it always on? Or is it turned off for a certain set of classes? The documentation doesn't answer such questions.
from rfs.
So, what I want to know is how to turn this feature off and on.
There's a Sass option $enable-rfs
to enable/disable RFS: https://getbootstrap.com/docs/5.0/customize/options/
Or is it turned off and on for certain features like the Responsive Grid or Fluid Layout?
RFS is a unit resize tool, nothing to do with the grid.
Is it always on?
It's turned on for all font sizes, can be turned on in the utility API for whatever property you need.
from rfs.
I don't wish to use SASS. I change colors, for example, by using custom CSS. I believe that all website stuff belongs in the served files, so it is easy to change or bug-fix.
What does SASS do to its generated CSS when you disable RFS? Probably I could do the same thing in CSS, no?
By "utility API" do you mean a Bootstrap 5 class in the HTML, or something different? So I could make an image change size according to the viewport width by adding a class to it? Or is API something related to JS? Can you be more specific, or do you mean that the RFS source code would have to be changed?
from rfs.
I don't wish to use SASS.
Well, Sass is used to customize the CSS, so it's quite essential to use.
Probably I could do the same thing in CSS, no?
No. There are if/else tests in Sass which don't exist in CSS.
By "utility API" do you mean a Bootstrap 5 class in the HTML, or something different?
By "utility API", I mean "utility API", like what you can read in the docs I referred to earlier: https://getbootstrap.com/docs/5.0/utilities/api/
Or is API something related to JS?
No, it's Sass based, see "The utility API is a Sass-based tool to generate utility classes." here: https://getbootstrap.com/docs/5.0/utilities/api/
Can you be more specific, or do you mean that the RFS source code would have to be changed?
No, you just got to configure what you want in Sass.
from rfs.
Related Issues (20)
- Error while running less - Potentially unhandled rejection [2] Could not parse call arguments or missing ')' on line 120 HOT 5
- Error with custom values HOT 1
- rfs() doens't work inside calc()
- PostCSS 8 compatibility HOT 2
- Strange values generated in Bootstrap 4.6 HOT 1
- Unclear doc concerning rfs-base-value or bug
- Use Sass Modules (dart-sass) HOT 18
- RFS + Less + css variables warning HOT 3
- Variation in size range seems too small HOT 1
- Migrate to postcss 8.x HOT 1
- rfs not working with $variable list ? HOT 1
- Minimum font size. HOT 2
- Feature Request - add overloads for shorthand mixins HOT 2
- rem and px have incompatible units in rfs-breakpoint HOT 2
- $rfs-base-value with rem breaks
- How to it this with tailwind ? HOT 4
- Sass ABS deprecation warning HOT 2
- using rfs() in SCSS with PostCSS syntax doesnt work HOT 1
- How to use it with react ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfs.