bootstrap-sass

Bootstrap Sass Rails 4 customize styling

最后都变了- 提交于 2019-12-06 01:21:26
I'm trying to customize the styling of my rails app with bootstrap Less variables available here. I am using the bootstrap Sass and I included all javascript css and fonts in my /vendor/assets . I followed Erik Minkel tutorial word for word or should I say code for code. In assets/javascript/application.js //= require jquery //= require jquery.countdown //= require bootstrap //= require jquery_ujs //= require tinymce-jquery //= require jquery.turbolinks //= require turbolinks //= require masonry/jquery.masonry //= require_tree . And in assets/stylesheets/application.css *= require_tree . *=

how does $icon-font-path works in bootstrap scss?

Deadly 提交于 2019-12-04 19:13:45
问题 I recently started using bootstrap SCSS on my node project. So I have app/bower_components/bootstrap-sass/lib/_glyphicons.scss for example. Looking at my CSS output I see things like: @media -sass-debug-info{filename{font-family:file\:\/\/\/home\/some\/path\/project\/app\/bower_components\/bootstrap-sass\/lib\/_normalize\.scss}line{font-family:\0000332}} audio, canvas, video { display: inline-block; } I have 2 questions: This seems like a security hole. Everyone can deduce something about my

Easiest way to change when Bootstrap navbar collapses (using bootstrap gem)

岁酱吖の 提交于 2019-12-04 16:54:47
I've got a rails app using the bootstrap-sass gem. I'd like to change the width the navbar collapses from tablet (979px) to phone (769px). Overriding a media query isn't a tidy solution. I've edited @navbarCollapseWidth in variables.less and built bootstrap, then copied the contents bootstrap-responsive.css into responsive.scss in gems...vendor/assets/stylesheets/bootstrap. Now however, I've lost the ability to update the gem without losing my changes. What's the best method here? I'd like to make what I think is a simple change but keep my gem update-able. Perhaps using @import "bootstrap

Bootstrap - Sass: relative glyphicons icon path

天大地大妈咪最大 提交于 2019-12-04 12:28:43
How do I set a relative glyphicons icon path in bootstrap sass version? By default, the path used in the css font-face is an absolute one. @font-face { font-family: 'Glyphicons Halflings'; src: url(/fonts/bootstrap/glyphicons-halflings-regular.eot?1422262129); src: url(/fonts/bootstrap/glyphicons-halflings-regular.eot?&1422262129#iefix) format("embedded-opentype"), url(/fonts/bootstrap/glyphicons-halflings-regular.woff2?1422262129) format("woff2"), url(/fonts/bootstrap/glyphicons-halflings-regular.woff?1422262129) format("woff"), url(/fonts/bootstrap/glyphicons-halflings-regular.ttf?1422262129

References to font (font-awesome) resources are not updated in yeoman/angular grunt build

半腔热情 提交于 2019-12-03 15:01:25
问题 I'm aware of the SO threads about this (I've linked them below), but unfortunately I couldn't solve this with them, so please allow me this question :-) I've bootstrapped an AngularJS project with Yeoman and thus rely on a grunt.js build utilizing bower.js and SCSS. I want to use font-awesome and the glyphicons-halflings-regular from bootstrap-sass-official. When running "grunt serve" everything is fine, but when I want to create a fileset for distribution, the references to the font files

how does $icon-font-path works in bootstrap scss?

回眸只為那壹抹淺笑 提交于 2019-12-03 11:36:13
I recently started using bootstrap SCSS on my node project. So I have app/bower_components/bootstrap-sass/lib/_glyphicons.scss for example. Looking at my CSS output I see things like: @media -sass-debug-info{filename{font-family:file\:\/\/\/home\/some\/path\/project\/app\/bower_components\/bootstrap-sass\/lib\/_normalize\.scss}line{font-family:\0000332}} audio, canvas, video { display: inline-block; } I have 2 questions: This seems like a security hole. Everyone can deduce something about my OS and directory structure simply by looking at my CSS. What is the correct way to close this security

Rails Bootstrap how to format form_for (width grid collapses)

我的梦境 提交于 2019-12-03 10:16:37
问题 I'm trying to make a form with bootstrap-sass. I need to find the optimal configuration of bootstrap classes to make it look nice. It is not showing up the way I expect, specifically when the browser width is smaller than a certain size the spaces between labels and form fields collapse and it doesn't look good anymore. It would be ok if it only happens on small width, but that's not the case. I would really appreciate some help with this, really, what is the best way to format the form

Rails 4 + bootstrap set up assets

不打扰是莪最后的温柔 提交于 2019-12-03 09:47:55
问题 I am trying to setup bootstrap on Rails4 using bootstrap-sass and I am getting this famous error: Sprockets::FileNotFound - couldn't find file 'bootstrap' (in app/assets/javascripts/application.js:16): I have tried following: twitter/bootstrap in application.js gem 'bootstrap-sass', '~> 3.1.0' is outside group assets Also tried bunch of other things on internet I have spend lot of time taking different suggestions from other posts. How do I systematically debug this , how to setup bootstrap

References to font (font-awesome) resources are not updated in yeoman/angular grunt build

我只是一个虾纸丫 提交于 2019-12-03 04:56:29
I'm aware of the SO threads about this (I've linked them below), but unfortunately I couldn't solve this with them, so please allow me this question :-) I've bootstrapped an AngularJS project with Yeoman and thus rely on a grunt.js build utilizing bower.js and SCSS. I want to use font-awesome and the glyphicons-halflings-regular from bootstrap-sass-official. When running "grunt serve" everything is fine, but when I want to create a fileset for distribution, the references to the font files are not updated as they should. The main.scss contains $icon-font-path: "../bower_components/bootstrap

Wrapping the bootstrap-sass gem in another gem causes asset manifests to break

限于喜欢 提交于 2019-12-01 08:45:51
I'm trying to wrap the bootstrap-sass gem inside another gem (let's call it my-engine). Along the way, I'm building a small Rails application to test things out. As a first step, I wanted to make sure I could get bootstrap-sass working directly in my Rails application. The Gemfile for the Rails app looks like this: gem 'bootstrap-sass', '3.3.1.0' gem 'my-engine, path: "~/dev/my-engine" This works fine. The bootstrap assets are loaded into my Rails application and everything looks good. Now, I want to take bootstrap-sass out of my Rails app and let it load through my-engine. So, my Rails