twitter-bootstrap-3

Customize Twitter Bootstrap Classnames

£可爱£侵袭症+ 提交于 2020-01-03 17:04:14
问题 http://getbootstrap.com/customize/ Above link, customizes Bootstrap's components, Less variables, and jQuery plugins to get your very own version. I am wondering if it's possible to customize bootstrap by adding prefixes to it's classes, for example: ".container" = ".myid_container" ".btn-group" = ".myid_btn-group" 回答1: You can @extend bootstrap classes and call them whatever you want if you are using sass. Here is the info http://www.sitepoint.com/sass-semantically-extend-bootstrap/ But if

Dynamically change bootstrap tooltip placement

倖福魔咒の 提交于 2020-01-03 15:39:58
问题 I tried to change the tooltip placement dynamically but it does not work. <input type="text" id="sample" title="Tip"> <button name="change me" id="changeBtn">Change Tool Tip!</button> And for js: //Initiall tooltip for all elements $("[title!='']").tooltip(); $("#changeBtn").click(function () { //Change tooltip placment $("#sample").tooltip({placement : 'left'}).tooltip('show'); }) http://jsfiddle.net/znvv9ar5/ I found a good answer at Change Twitter Bootstrap Tooltip content on click which

Opening modal from within a modal, backdrop z-index

萝らか妹 提交于 2020-01-03 12:34:57
问题 I need to be able to open a modal within another modal (while the first modal stays open). Here's an example of that: http://jsfiddle.net/k2coz893/2/ When you open the second modal, you'll notice that the backdrop/background of the second modal doesn't cover the first modal (i.e. the first modal can still clearly be seen when the second modal is open). This seems to be because the z-index of the second modal's backdrop is the same as the other and therefore the first modal is still visible.

How to get year and month of Bootstrap Datepicker as it on change

筅森魡賤 提交于 2020-01-03 11:18:28
问题 I'm new to this datepicker and I don't know how to get the month and year string on change events changeMonth and changeYear . Here is a link to the plugin: https://github.com/eternicode/bootstrap-datepicker The issue is that onchange captures only the transition from months to years. I am only able to get the day/date of the selected date, and nothing is selected during transition. I tried to grab text from the div, but I am always one selection too late. How can I get the month and year of

Bootstrap 3 tooltip gets wrapped on every white space?

爷,独闯天下 提交于 2020-01-03 10:45:21
问题 After Upgrading to bootstrap 3 the tooltips are getting wrapped on every white space. I believe that this is happening because of the grid. So if I select a column col-sm-3 for a textbox and If I place the tooltip on right it wraps all the white spaces and shows it as below. If I do the data-placement=top then everything seems okay. I played around with css to get it work. .tooltip-inner { white-space:nowrap; } but this is also not acceptable that it should wrap when it is longer than lets

How to put multiple Bootstrap inputs on same line?

泪湿孤枕 提交于 2020-01-03 07:29:20
问题 I have the following HTML: <input type="text" class="form-control" name="watch" value="" placeholder="watch"> <div class="input-group"> <span class="input-group-addon">$</span> <input type="number" class="form-control" name="price" value="" placeholder="Price (optional)" style="width: 140px;"> </div> <span class="btn btn-primary" onclick="update($(this));"><span class="glyphicon glyphicon-upload" aria-hidden="true"></span> Update</span> JSFIDDLE It renders like this: How can I get both inputs

How to put multiple Bootstrap inputs on same line?

守給你的承諾、 提交于 2020-01-03 07:29:18
问题 I have the following HTML: <input type="text" class="form-control" name="watch" value="" placeholder="watch"> <div class="input-group"> <span class="input-group-addon">$</span> <input type="number" class="form-control" name="price" value="" placeholder="Price (optional)" style="width: 140px;"> </div> <span class="btn btn-primary" onclick="update($(this));"><span class="glyphicon glyphicon-upload" aria-hidden="true"></span> Update</span> JSFIDDLE It renders like this: How can I get both inputs

Bootstrap Tagsinput with Typeahead not working

杀马特。学长 韩版系。学妹 提交于 2020-01-03 07:09:21
问题 This is with reference to the "Bootstrap Tagsinput" from http://timschlechter.github.io/bootstrap-tagsinput/examples/bootstrap3/ Plugins used: (latest versions of) Bootstrap 3 typeahead.js bootstrap-tagsinput.min.js What I wanted is to use Typeahead to input field to add tags. <div class="input-group col-sm-4"> <input type="text" class="form-control" id="tagsinput" /> </div> The jQuery part is below. $('#tagsinput').tagsinput({ typeahead: { name: 'towns', local: ['Amsterdam', 'Washington',

don't want to use col-sm-# for (>=1200px)

醉酒当歌 提交于 2020-01-03 06:38:18
问题 My .container has fixed width of 960px. I have used col-lg-# but when I resize page to a smaller width than 1200px, that div spans the whole width. Is there any way that I don't need to include col-sm-# and col-md-# ? .container{ width:960px; border:2px solid red; height:700px; margin:0 auto; } <div class="container"> <form role="form"> <div class="col-lg-3"> <input type="email" class="form-control" id="email" placeholder="email" /> </div> <button type="submit" class="btn btn-default">Submit<

Load bootstrap with webpack for vue

限于喜欢 提交于 2020-01-03 03:03:29
问题 How can I get bootstrap working and loaded with webpack for a vue project? I have been trying to use this: https://www.npmjs.com/package/bootstrap-sass-webpack I added the loaders to my webpack.config.js and installed bootstrap-sass-webpack. I get the following error when trying to build: ERROR in ./~/bootstrap-sass-webpack/index.js Module not found: Error: Cannot resolve module 'sass' in /Users/joebob/Desktop/vue-webpack-starter/node_modules/bootstrap-sass-webpack @ ./~/bootstrap-sass