-
I'm relatively new to CSS and I'm having trouble figuring out why my previously working custom style stopped working as it used to.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The first thing I immediately see is that you are missing a colon in one selector: The next thing I see is that you are missing an open-paren as well as I hope this helps you. |
Beta Was this translation helpful? Give feedback.
-
Hello @huzaif2636 :) I had to change the HTML/CSS of the search bar because it wasn't working well with right-to-left languages. The issue here is that your CSS copies some of the outdated styling. I essentially moved some background and border properties from As @Gitoffthelawn pointed out, some parts of your CSS are not valid, but it is old styling anyways. Here is a quick fix replacing your old CSS: #interface #sb_container #searchbar:hover,
#interface #sb_container #searchbar:focus {
width: 25em;
}
#interface #sb_container #searchbar {
/* no need for padding now */
width: 15em;
height: 3em;
color: #F6F6F6;
font-size: 1.4em;
font-weight: 500;
transition: width 0.6s ease-in-out;
}
#interface #sb_container #searchbar-wrapper {
border: 1px solid rgba(255,255,255,.075);
backdrop-filter: blur(4px);
} |
Beta Was this translation helpful? Give feedback.
Hello @huzaif2636 :)
I had to change the HTML/CSS of the search bar because it wasn't working well with right-to-left languages. The issue here is that your CSS copies some of the outdated styling. I essentially moved some background and border properties from
#searchbar
to#searchbar-wrapper
.As @Gitoffthelawn pointed out, some parts of your CSS are not valid, but it is old styling anyways. Here is a quick fix replacing your old CSS: