Is it possible to utilize Bootstrap 4 with Sass instead of SCSS in web development?

Just added Bootstrap 4 to my Rails 6 application and realized that all the files are in .SCSS format.

Any way to switch Bootstrap to using Sass?

I prefer using Sass because it's more streamlined without having to deal with brackets and semicolons...

Answer №1

In the past, there have been initiatives to convert previous versions of Bootstrap into SASS syntax, like https://github.com/twbs/bootstrap-sass for Bootstrap 3. However, as of now, I am not aware of any similar projects for Bootstrap 4.

Personally, I prefer using SASS over SCSS in my own projects. It's important to note that whether a library like Bootstrap utilizes SCSS or SASS doesn't really impact your ability to write files in SASS syntax and import variables from SCSS files. The beauty of SASS/SCSS lies in the flexibility it offers—just focus on writing your files in SASS without worrying about Bootstrap's choice of SCSS.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Incapable of utilizing CSS Custom Properties (also known as CSS Variables) in conjunction with SASS @if Conditional Statements

I'm attempting to transfer CSS Custom Properties to a SASS Mixin. I can successfully use the variables directly in the desired styling. However, there seems to be a problem when utilizing a variable within an If statement. Here's an example of t ...

When hovering, the CSS border-bottom should extend

I am looking to create an animated border effect. When hovering over the link, I want the border-bottom to extend seamlessly from left to right. After much searching, I am still unsure what this effect is called. Below is the code I have: .a{ width ...

How can I perfectly align a form in twitter-bootstrap?

Currently in the process of developing a social networking platform for a specific student community and more. In order to improve user experience, I am aiming to center this form on the webpage. If interested, you can view my progress here: http://jsfid ...

Is it possible that the div's height is not being set to 0 pixels

<div style="height:0px;max-height:0px"> </div> It appears that setting the height of a div to 0 pixels is not having the desired effect. The div is still expanding to display its contents, so how can we stop this from occurring? ...

What is the best way to apply hover effects to all links except the one being hovered over, using a combination of javascript, jquery,

While browsing the web, I came across a fascinating hover effect that I'm eager to replicate in a website's navigation bar. This effect doesn't just change the link you hover over, but it alters every other link in a unique way. When hoverin ...

The CSS focus-within and hover properties are not functioning as expected

How can I make the search tags visible (the buttons above the text input field) when the search bar below them is clicked? I've tried using :hover, :focus, and :focus-within, but none of them seem to be working. Can someone help me figure out the issu ...

Incorporate the HTML CTA on top of the background image within the email template

In my email template, I am trying to place an HTML CTA over a background image. The code works perfectly on all email clients including mobile and desktop, except for Outlook where the alignment of the CTA copy is off. Below is the code snippet along with ...

Adjust the background to scroll to the bottom of the image first and then change it to be fixed

Here is the code I have written: body{ margin:0; padding:0; line-height: 1.5em; background-image: url(http://fehlbelichtet.stefanwensing.de/wp-content/uploads/sites/6/2016/04/alte-strasse-endlos.jpg); background-repeat:no-repeat; background-attachment: ...

Is a fixed div located inside a fluid grid container?

Having developed a website with a fluid 12 column grid, I am looking to lock the position of a div in the right hand column once it reaches the top of the page (using something like StickyJs or a similar tool). However, when the fixed position is applied, ...

Adjust the height of a div element and enable scrolling to fit the

There are numerous inquiries regarding this particular issue. I have exhausted nearly all possible solutions I could find, yet none of them delivered the desired outcome. This is the structure of my page: <div> <header id="status"> / ...

Using the power of Selenium's XPath, we can easily navigate through a table to access

Looking for assistance in creating selenium xpath for the various column links within a table. Each row has a unique identifier and contains information about a product, including the name. Based on the product name, I need to locate other links within the ...

The comparison between Bootstrap 4 collapsible and expanded menus

Forgive me if this question has already been asked (I'm still new to all of this and learning, finding the answer in search is challenging). I'm attempting to create a collapsible navbar that, when expanded, displays items separated by a "|" sym ...

Is there a way to apply dual linear-gradients to both the left and right borders simultaneously?

I want to design a yellow div with wide left and right borders that gradually fade to white towards the edges to create a transparent effect. Although I have successfully created the div, I am struggling to achieve the desired gradient: .fade { margi ...

Manage positioning of input elements within group button arrangements

I'm attempting to align the firstname, lastname inputs, and button on the same line. The combined width of the above three elements should be equal to the width of the 'xxxxxxx' input. You can view the code here: http://jsfiddle.net/zxb5 ...

Using AngularJS to dynamically apply a CSS class to message text depending on the HTTP post response

I am looking to implement a method for adding a CSS class to the text color of a message based on the response. Currently, I achieve this by: if (response.data.status == 201) { angular.element(document.getElementById("msg")).addClass("text-green"); ...

Google Font customization causing issues with Internet Explorer 8

I am currently building a website that utilizes custom Google fonts. However, I have noticed that in IE8, the fonts are not displaying properly or only partially rendering (the left content is fine, but the right content—specifically AJAX—is not lookin ...

Text To Appear Gradually When Button Is Clicked

Is it possible to create a fading effect for text when a button is clicked? Currently, my code displays some text as block while hiding the rest with display:none. Take a look at my JavaScript code: <script> //Select button by id const btn1 ...

IE 11 does not support the use of absolute positioning with a height of 100%, however, this functionality works perfectly on Microsoft Edge

It appears that in IE 11, my absolutely positioned element is not displaying within another element with a height:100%. Strangely, it only works if I assign a fixed height to the element (even though its parent has a fixed height). Here is the HTML code: ...

Enhancing the appearance of text with CSS font borders

I'm currently working on a webpage that features various shades of red, green, yellow, and black in the background. I want to add font borders to the text displayed on this page, but using a single color just won't cut it. Check out the code here ...

Create a unique custom design for your Mapbox GL control

When developing the website, we utilized Angular 8, Typescript, and SCSS. We are using mgl-map to display a map, and I wanted to create a custom control for it with unique styles. I added the custom control to the map using: const centerOnCoordinatesC ...