I want to change my application background color. I use;
ion-content { background-color: green; }
And no matter the color, it stay white. Then I noticed there some green at the back around buttons. It as if there's a layer of white that I'm not sure how to remove.
At first I though it was my dark mode, changed it and its still there. I reached out my lecturer and even she don't know, so I hope you all can help.
Related
I have a simple React app that uses material-ui. No matter what I try, I cannot remove a grey background from a section of an app.
Tried:
body {
background-color: #ffffff !important;
}
* {
background-color: #ffffff !important;
}
No matter what I do, I cannot make the main container white. It always goes grey. I've searched my app and all css for this background-color and cannot find it...I cannot determine what is causing this grey background.
Ugh!
Double check your header doesn't have a box-shadow on it! This will cause the grey below...
Leaving this question as maybe it can help someone else.
Ensure that your element does not have any class. If it does try removing it or check the style of the class and whether it has a backgroundColor parameter.
I am working on this wordpress site using the Bridge theme (by Qode): http://www.musegroupreno.com/plp/
There are images in the smaller squares on the home page that have a hover effect. I am using the Masonry Gallery (a Qode addon to the Visual Composer plugin) that makes me set each square/rectangle type to either have a solid overlay/background color or not. All small squares (text and image) are the same. The problem is that we want the text squares to have a pink background and the image squares to not transition to pink on mouse hover.
We want small square images to look and act like the tall rectangle does where if you hover over it, nothing changes. This happens because the overlay/background color is set to be have opacity:0;. If I do this for the small squares I lose the pink behind the text squares but the images look great.
In the existing system, there is no way to set an individual class for image/text square or each square separately.
So what I can't figure out is how to remove the hover state transition so that it doesn't cover the image in pink on mouseover but leaves the background pink in the text squares.
It looks like it is the .masonry_gallery_item_inner element that changes the opacity. I think that it is shifting the background-color but am unsure. Any help is appreciated.
.masonry_gallery_item.standard:hover .masonry_gallery_item_inner {
opacity: 0;
}
.masonry_gallery_item.square_small .masonry_gallery_item_inner {
background-color: rgba(255,235,233,1);
}
This is working the same way you need.
May be you are setting opacity:0; to class ".masonry_gallery_item.square_small .masonry_gallery_item_inner" and that is why you are losing the pink background.
Twitter Bootstrap has background-color properties set for navigation items on their :focus state, but I want to undo that declaration for a specific navigation element.
For example, in some custom theme, let's say when the navigation item is in its default state, its background color is dark red. And then when you hover over it, it changes to light red.
Then, because of Bootstrap's declaration for the :focus state, if you click a navigation item, and move your mouse away from it, it will become light grey (from the default Bootsrap theme). This is what I want to get rid of.
What I want to achieve here is that, when you click an item, it should keep its default behavior, meaning dark red without the mouse over, and light red when the mouse is over it. But this doesn't work, because the :focus state seems to override the :hover state, so whatever I try to declare for :focus, works for both mouse over and mouse away.
I've also tried with background-color:transparent, and background-color:inherit. But the problem is always the same, which is that, whatever the color renders to, it keep being that regardless of the mouse being over the link or not. I want the background color to keep changing on hover, even when that link gets focus.
in your special element put an extra class and set the css.
.ExtraClass:focus{
color: #FFF !important;
}
.ExtraClass:hover{
color: #000 !important;
}
.ExtraClass{
color:#555 !important;
}
I have the task to track down and remove this blue border around the drop down box however I have not seen any css that is relevant to this. From what I've read the drop down is part of the shadow dom but where is this blue border coming from?
I am not sure where it's coming from, but you can override it by using CSS if you have the privilege to update the css.
I don't know how your markup is like, but this will override the blue border.
.class-dropdown {
outline: none;
}
NOTE: If accessibility is a requirement, it's probably bad idea to remove the blue border. What is better probably have a state style when the dropdown showing / selected
Hope this helps.
OK, sorry...this is kind of a basic CSS question but it's driving me crazy. I'm self-taught so I'm sure I am just missing something simple.
Site: http://notes.benadelt.com
The logo image sprite is just a home link...I'm trying to remove that background color that you can see is ruining the transparency of the image:
<a class="ben-logo" href="/"></a>
You can see that CSS gives any links in that section a light background-color, which is being applied to the image sprite as well. I'm trying to remove that background color from my image, but not from the body links, and cannot figure it out. Using dev tools I can only impact the style using:
header .words a { background: none; }
But that obviously removes the background from ALL links, so it also removes my image background in the sprite.
Figured there would be something I could add after the background URL to do this, such as:
background: url(http://www.benadelt.com/notes/wp-content/uploads/2013/04/Ben-Logo-Sprite.svg) none;
When you hover, it looks like I want it to look normally without that darn background-color.
Any help would be appreciated!
Ben
header .words a.ben-logo { background-color: transparent; }
The above code will target only the logo link. By setting the background colour to transparent, you leave the image itself (and all the other background properties!) intact.
Edit: One thing - I believe you already have transparent set on that background image by virtue of not specifying a colour (transparent is the default). What is probably happening in your case is that the a.ben-logo declaration comes before the .words a declaration in your stylesheet, so it's being overridden. The reason the above code should fix it is because the extra class names add more specificity. Here is Andy Clarke's specificity cheat sheet for you to peruse: http://www.stuffandnonsense.co.uk/archives/images/specificitywars-05v2.jpg