Posted in site bugs
4043
3:04 am, January 1, 2021
 

badge border colour is too dark or light on number badges [fixed]

I noticed that the badges here were to light, so i must have missed something when updating the badge css.

Demo Link
https://www.kruxor.com/search/code/site+bugs/

Bug Status:
Fixed

Problem:
The borders should be darker and they are currently too dark or light.

How to fix, look at the correct badge and see what the difference is.

Correct Colours:

Vs Incorrect.

We can see here that the class is different on these badges, so need to change the .badge-secondary to the badge-info unless we want different colour's on these. For now just make them the same. 

CSS

.dark-mode .badge-secondary {
    color: #fff;
    background-color: #2e3c50;
    border: 2px solid;
    border-color: rgb(17 24 39);
}
.light-mode .badge-secondary {
    color: #fff;
    background-color: #38b2ac;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
    text-shadow: 0px 1px 2px rgba(0,0,0,0.2);
}

View Statistics
This Week
58
This Month
424
This Year
538

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Our brains are wired to find things we are looking for - if your always cynical or waiting for things to go wrong, then your life will reflect that. On the other hand, having a positive outlook on life will bring you joy and provide you with inspiration when you least expect it ☀️🍉🌴
Unknown
Random CSS Property

@page

The @page CSS at-rule is used to modify some CSS properties when printing a document.
@top-center css reference