This question already has answers here:
Removing the blue glow from an HTML text input when selected
(3 answers)
Closed 2 years ago.
how can I remove this light blue glow around my matInput inside mat-form-field?
I'm not sure if what property I need to override and I have no idea how to go about this, I tried searching but couldn't find anything.
any help would be appreciated
Try this in your CSS:
input:focus {
outline: 0;
}
Related
This question already has answers here:
How to style the option of an html "select" element?
(21 answers)
How do I style a <select> dropdown with only CSS?
(25 answers)
Closed last month.
Usually when you create a <select> option field and use color to change the color.
This applies only to when the dropdown is clicked upon and is in an active state.
Is it actually possible to change the color of the option that is selected? So if you look at the code, only make the option Apple red that is selected (when another fruit is selected, make that red). However, the colors of the text need to black in the dropdown.
select option {
color: red;
}
<select>
<option>Apple</option>
<option>Banana</option>
<option>Peach</option>
<option>Strawberry</option>
<option>Pineapple</option>
</select>
Since this component is a re-used one, I can not edit the HTML structure of it.
I tried to give the options a color, but this resulted in changed all of the option in the active dropdown and not the item selected.
I also looked up other topics and answers in here but every provided code also changes the color in the active dropdown state or they modify the HTML.
This question already has answers here:
How do I apply opacity to a CSS color variable?
(14 answers)
Closed 6 months ago.
I'm using CSS variables for my colors, but my designers just love hitting me with a 'its that same color, but with an opacity'.
I know its possible to do a #ff000099 (the 2 last digits being the opacity) but now I'm looking to be able to cocatenate the color (#ff0000) and then add that opacity at the end.
What I tried was something like background:var(--color)99 but that doesnt seem to work.
So is there a way to add an opacity to a hexadecimal color that is set with a variable?
Is it different than this?
div {
opacity: 0.5;
}
https://www.w3schools.com/cssref/css3_pr_opacity.asp
This question already has answers here:
How to replace color of PNG image using CSS? [duplicate]
(3 answers)
Change color of PNG image via CSS?
(22 answers)
Closed 2 years ago.
I have this image:
On this site: https://spa0001.alanvo.com/
It's under Our Fuel Text
In this dev I have added a class called home-our-fuel and I am trying convert that black image to red color image using cs3 filter:
.home-our-fuel {
filter:grayscale(1);
}
.home-our-fuel:hover {
filter:grayscale(0);
}
.home-our-fuel a img:hover {
filter:hue-rotate(0deg);
}
But it's not converting to red color.
I think your question can be resolve in this ticket Change color of PNG image via CSS?.
If you want the red color image you can use { filter: saturate(3); }
But in your case you want the image all is black. I think you can change it to a font icon. and you can use them like color for text in css :)
This question already has answers here:
How to set custom button text color in Bootstrap 4 and Sass?
(1 answer)
How to change the bootstrap primary color?
(16 answers)
Customize bootstrap 5 text color contrast in button
(1 answer)
Customizing bootstrap 5 button colors and properties in it
(1 answer)
Closed 1 year ago.
I am trying to use sass to set the text color of btn-primary to white from it's default grey.
I can see by looking at the default _buttons.scss file that the variable used to set the color is $body-color but if I change this variable to white then obviously all body text also becomes white on a white background.
I have tried just manually setting the color of .btn, but then hovering sets the text back to grey. As Below:
#import "../node_modules/bootstrap/scss/bootstrap";
.btn {
color: #fff;
}
How can I override this style?
you can easily change only the button color using the button-variant mixins. Since you only want to change the button color, and not the entire primary theme color, you need to use the button-variant mixins in SASS.
$mynewcolor:teal;
.btn{
#include button-variant($mynewcolor);
}
This question already has answers here:
Bootstrap 3 - Change dropdown background colour
(4 answers)
Closed 8 years ago.
I have a dropdown pill that turns pink on hover and stays pink when clicked. However if you click it twice and then move the mouse away it turns grey.
It is the "recipient" link in the following example:
Example and code
Why is this? Is there some CSS I can use to overwrite this functionality? I'd rather the background went black again.
This is what I mean:
Thanks
I cant' reproduce your issue with the double click but I can see a gray background with Tab Navigation. Add also the state for the :focus. Try this:
.nav-pills>li>a:hover, .nav-pills>li>a:focus {
background-color: #FF6699;
}
BootplyDemo