twitter-bootstrap-4

Change color of SVG background-image (Bootstrap 4 carousel)

岁酱吖の 提交于 2019-12-06 06:31:16
I have a BS 4 carousel with next/prev controls which works so far. I have a light background so I would like to change the color of the controls (currently white). HTML: <div id="carouselQuotes" class="carousel slide quotecaru" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#carouselQuotes" data-slide-to="0" class="active"></li> <li data-target="#carouselQuotes" data-slide-to="1"></li> <li data-target="#carouselQuotes" data-slide-to="2"></li> </ol> <div class="carousel-inner"> ... carousel items ... </div> <a class="carousel-control-prev" href="#carouselQuotes" role=

How can I change link color and hover color in Bootstrap version 4?

旧时模样 提交于 2019-12-05 16:25:06
In my design, I want to change my link and hover color in a specific part. I try my best but I can't do that. I am new in bootstrap. How can I change it for Bootstrap 4 ? A simple code is here- <div class="card" style="max-width: 320px;"> <div class="card-header text-center"><h3>Navigation</h3></div> <div class="card-block"> <ul class="nav navbar-nav" style="font-size: 1.50em;"> <li><a href="#" class="nav-link">Home</a></li> <li><a href="#" class="nav-link">Documents</a></li> <li><a href="#" class="nav-link">Videos</a></li> <li><a href="#" class="nav-link">Gallery</a></li> <li><a href="#"

Divide a row in 5 columns in Bootstrap 4? [duplicate]

夙愿已清 提交于 2019-12-04 22:43:05
This question already has answers here : Five equal columns in twitter bootstrap (39 answers) Closed 12 months ago . How do you equally divide a row in 5 columns in Bootstrap 4 where it has 12 columns total? Anyone knows? Bootstrap 4 doesn't use floats like version 3 did so it can automatically space out your columns using just the col class. So for 5 equally spaced columns, just do this: .col1 { background-color: red; } .col2 { background-color: green; } .col3 { background-color: blue; } .col4 { background-color: orange; } .col5 { background-color: brown; } <link rel="stylesheet" href="https:

bootstrap 4 animate column width change

谁说我不能喝 提交于 2019-12-04 10:56:50
问题 I have two columns like this: <div class="container"> <div class="row"> <div class="col-9"></div> <div class="col-3"></div> </div> </div> I am switching the classnames via angular to be col-8 offset-2 and col-0 . col-0 is width:0;margin:0;padding:0 . I am wondering how to animate both the width, and the positions of columns. 回答1: Since Bootstrap 4 uses flexbox, CSS transition animations don't work unless you use set a numeric flex-grow or flex-shrink on the columns. .col-8 { flex-grow: 1;

What does the `p-N` and its variants represent in Bootstrap v4?

佐手、 提交于 2019-12-04 08:56:30
问题 I find the naming in Bootstrap v4 less than intuitive. I know they want to minimise the impact all the classes cluttering up the markup, but I just can't come to a reasonable conclusion. I can guess - but I can't find concrete answers. p-1, p-2, p-N : Flexbox related, but what does the p stand for? d-flex : Flexbox related, but what does the d stand for? Perhaps display ? mr-auto - Elliots cousin? Guessing margin related - perhaps margin-right-auto but can't confirm in the docs. mt-auto - ?

How to create new set of color styles in Bootstrap 4 with sass

。_饼干妹妹 提交于 2019-12-04 03:57:21
问题 I'm starting to navigate through the wonderful Bootstrap 4 and I'm wondering how to add a whole new set of elements color to the _custom.scss Example: Right now you have btn-danger, text-danger etc... how to create for example, using a random name: "crisp" set... so you will have btn-crisp, text-crisp etc... My guess would be to start with adding a variable $brand-crisp: #color !default; But, then what? Thanks! I appreciate your help. 回答1: There is not an all inclusive color mixin, so I think

Bootstrap 4 card deck table-cell columns responsive based on viewport?

痞子三分冷 提交于 2019-12-03 12:25:33
问题 So in Bootstrap v4, I see there's a new feature for card decks ( http://v4-alpha.getbootstrap.com/components/card/#decks ) that makes a group of cards, with their height equal according to the tallest content in the group. It appears the number of columns are based on how many card-div's are in the group. Is there a way to make the number of columns change based on the viewport? For example, 4 columns / card wide at large width, 2 wide at medium width, and 1 at small width? Currently they

Filter cards in Bootstrap 4 with jQuery

末鹿安然 提交于 2019-12-03 08:51:36
问题 I am attempting to create a page that is populated by many cards, using bootstrap 4's new card component. I want to create a search bar, that when searched, filters out cards whose titles don't match the search query. Here is a plunker of what I have in mind. Plunker I would like the cards to get something like a display: none , or opacity:0 if they don't match. I currently am attempting to write a function that onChange of the search bar does this. I'll post if I can get it figured out. I've

bootstrap 4 animate column width change

蓝咒 提交于 2019-12-03 08:09:06
I have two columns like this: <div class="container"> <div class="row"> <div class="col-9"></div> <div class="col-3"></div> </div> </div> I am switching the classnames via angular to be col-8 offset-2 and col-0 . col-0 is width:0;margin:0;padding:0 . I am wondering how to animate both the width, and the positions of columns. Since Bootstrap 4 uses flexbox, CSS transition animations don't work unless you use set a numeric flex-grow or flex-shrink on the columns. .col-8 { flex-grow: 1; transition: all 400ms ease; } .col-0 { width: 0; flex-shrink: 1; transition: all 400ms ease; } Demo: http://www

Left & right align modal footer buttons in Bootstrap 4

谁说我不能喝 提交于 2019-12-03 06:28:18
问题 Bootstrap 4 uses flex-box for it's modal footers. If I want two buttons, one on the left and one on the right, how do I get it to work properly? The code below tries to use a div.row with col-sm-6 but doesn't work. <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script> <link href=