Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove navbar rounded corners using border-radius property when using SASS for Ruby on Rails?

I am new to programming and learning bootstrap through a course called One Month Rails. I want to remove the rounded corners on the inverse-navbar but am having a hard time. I have looked through both of the stackoverflow threads in the links below but still am having trouble.

Currently I have a file called "Bootstrap_and_customization.css.scss" and it has the following code:

$body-bg:   #95a5a6; $border-radius: 0px; @import 'bootstrap'; 

However, the border radius is still rounded. I hope I've provided enough information but I might not have so please let me know.

Thanks

===== Links:

Getting rid of all the rounded corners in Twitter Bootstrap

https://stackoverflow.com/questions/20926522/flat-ui-round-corners-css-html

like image 425
Faique Moqeet Avatar asked Jan 06 '14 01:01

Faique Moqeet


1 Answers

I will instead of modifying the css add the class: navbar-static-top

ie:

<nav class="navbar navbar-default navbar-static-top" role="navigation"> 

or the class navbar-fixed-top, if you want the menu to be fixed on the top(on large pages)

ie:

<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> 
like image 137
Manza Avatar answered Oct 03 '22 10:10

Manza