Change the Default Buttons
Hello there we are. Going to tackle this button here. Okay we're gonna go from blue and solid to white and outlined and bigger and better. It's going to have a cool little hover as well. Okay we're going to do all that now using a mixture of our own CSS and bootstraps goodness. Okay, so what do we want to do this button first of all? I want to push it down a bit because on my mock up here It is down a bit further so I want to go and do that. Nice easy one. Okay so the button here, where is he Beltran? He's inside of it. There's the button, we're going to add a class of remember it was margin and I want to add it to the top and I wanted to be natural, I'll try four. It's good to go, definitely a nice bigger gap that'll do for me. Alright, next thing I wanna do is outline it because it's a solid blue color. I want to make it a white outline like my mock up here instantly. I was like no way boot shape does that. They don't do an outline button. Okay, so I started making my own class only ...
to discover later on making this tutorial, like they do do one. Okay, so sometimes you can be like they don't do that and sometimes you just actually need to check. Okay, so in here I typed in buttons. Okay and what do we get buttons button tags? Oh look there's an outline button, it's gonna click on button buttons Okay and get to the right page and there's lots of them. Okay. There he is there he outlined buttons so I just need to use the outline class of. I want this one. Okay so I want the button outline of probably white. They've got a light one. Do they have white there? They don't seem to have it there. Let's test it. Maybe they couldn't have it because you couldn't see it. Let's give it a roll. So we're going to say B. T. N. Actually not there and I want a separate class. I've already got one. There's already something applied to it called B. T. N. Primary. It's a B. T. N. Outline we're gonna guess for wait to see if they do it. Let's check. It does not do white because it's freaked out. Okay it does a light version and now you're going to decide how much is the light one? How much do I really want it to be white? Why didn't they have a white 1? Okay so let's have a look now. Light yeah you're like no it has to be white then. Alright how do we go and change it now? We're going to go through and say actually so it's just kind of like think it through. So there's a few things applying to this but there's something called there's an a tag there's something called a B. T. N. There's something called our Bt and outline. Okay then there's a button large by the looks of it. Okay so I imagine I could put an S. M. To get a small one And we added the margin to the top of four. So over here we could say all right, let's just do all buttons. Let's do B. T. N. Okay well dot Bt in, come on Daniel Beaty in and let's say I want the color, what do we want the color or do a background? Let's have a little look background color, I know what it is but I'm trying to trying to like tell a story here. Background color white, is that right? Like it's not what I want. I want the outline to be white. And the other problem is that that Bt n background white. Let's change it to red just to show you. I think it's too generic because like it's getting used there and over here. Okay so we need to make sure that maybe attacking the button is not quite what we want to do. So instead of just the button we will do this slightly more specific. Okay, B. T. N. Outline light. So this guy is gonna be this and it's not going to be the background color. Okay so we're going to delete that. It is going to be the border color of white. Thank you very much. Nice. So it's kind of the you're like awesome, they've got it and then you're like not the right color so a bit of both. It's me and Bootstrap high five, we're doing stuff. One of the other things we might include here is the Hover. Okay, and that's, I guess one of the perks of using Bootstrap is that, you know, you might have decided in your head, like why are you bothering using this class when it doesn't do anything of really what you want? It? Did the line. Okay, but the other thing that this kind of invokes is that it pulls through like the hover class because remember when I first started using it, it was blue with a dark blue background. Okay, so when I, and you know, called on this one, the light version. Okay, it kind of switched out the hover classes, all those pseudo classes as well. So bootstrap is doing lots of things. Okay, what else do we want to do? We want to do a pseudo class, So we are going to grab all of this and you remember pseudo classes, don't you? Okay, so you smash on a colon at the end with no space and type in Hover. Okay, so I want this particular class to be attacked. So I want this particular class to be looked at and I want the hover pseudo class to work with it. So I don't want this, what I want to do is maybe the background color now it's a background color, I want it to be white, but I want it to be going to click on it and a white but quite transparent. Okay so somewhere like that. 20%. Let's have a little look now my hover you see he's just kind of hinting there. Good hinting dan, let's look at some of the other but anything's okay so size is ours is already a button large seems to be only button large and small. I want mine to be extra big. There's no extra big here. Okay, so we're gonna have to kind of style it a little bit more so let's jump back in and you're like, okay, I'm just going to add it to this one here at some padding. We're like no way we've got classes for that for Bootstrap, don't we? Okay, we've got margin top, Okay, remember we can add some padding and the left and the right remember is X and I want that to be five and I would like the up and the down to be something that's a little smaller of why? Case of petting left and right, five top and bottom three, we can make a joint button again. Teamwork me and Bootstrap doing stuff together, being quick, doing all the hard yards but then dan the designer spending ages trying to fight with bootstrap to get him to do what he wants but with all the checks and balances for what I've been able to throw in real quick, especially with the navigation and all the media queries, I think we're still on to a winner with Bootstrap. Thank you Bootstrap.