Tagged: x
-
AuthorPosts
-
November 4, 2016 at 8:59 am #1243751
goodimpParticipantI’m trying to style an accordion but none of the CSS I add is having any effect.
I added and adjusted the default settings in the customiser (see below) and should see big borders. It works if I change the style through the inspect on Chrome. Any thoughts?
.x-accordion-group {
margin: 8px 0;
border: 6px solid #dddddd;
border: 6px solid rgba(0, 0, 0, 1);
border-radius: 3px;
-webkit-box-shadow: 0 0.125em 0.275em 0 rgba(0, 0, 0, 0.125);
box-shadow: 0 0.125em 0.275em 0 rgba(0, 0, 0, 0.125);
}November 4, 2016 at 10:20 am #1243850
JoaoModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
November 5, 2016 at 6:13 am #1244927
goodimpParticipantThis reply has been marked as private.November 5, 2016 at 6:13 am #1244928
goodimpParticipantThis reply has been marked as private.November 5, 2016 at 8:01 am #1245000
ThaiModeratorHi There,
You forgot to close the curly bracket(}) in your custom CSS.
Please find this CSS:
@media (max-width: 650px) { a.x-brand.img { max-width: 200px; margin-top: 25px; } @media (max-width: 979px) { .x-navbar-fixed-top { position: fixed; height: auto; padding-bottom: 0px; } } .x-accordion-group { margin: 8px 0; border: 6px solid #dddddd; border: 6px solid rgba(0, 0, 0, 0.15); border-radius: 3px; -webkit-box-shadow: 0 0.125em 0.275em 0 rgba(0, 0, 0, 0.125); box-shadow: 0 0.125em 0.275em 0 rgba(0, 0, 0, 0.125); }And replace to this:
@media (max-width: 650px) { a.x-brand.img { max-width: 200px; margin-top: 25px; } } @media (max-width: 979px) { .x-navbar-fixed-top { position: fixed; height: auto; padding-bottom: 0px; } } .x-accordion-group { margin: 8px 0; border: 6px solid #dddddd; border: 6px solid rgba(0, 0, 0, 0.15); border-radius: 3px; -webkit-box-shadow: 0 0.125em 0.275em 0 rgba(0, 0, 0, 0.125); box-shadow: 0 0.125em 0.275em 0 rgba(0, 0, 0, 0.125); }Hope it helps 🙂
November 6, 2016 at 12:50 pm #1246111
goodimpParticipantThis reply has been marked as private.November 6, 2016 at 7:48 pm #1246411
Rue NelModeratorHello There,
Thanks for the updates! I have checked your css and you have almost got the font changes. You have added this:
#discover-accordion .x-accordion-heading a { font-family: 'Khand', sans-serif; color:rgb(47, 37, 60); font-size:70px; } #discover-accordion .x-accordion-heading a:hover { font-family: 'Khand', sans-serif; color:white; background-color:magenta; }This code will only change the accordion element with the ID, discover-accordion. Still you haven’t imported the Kand Google Font. You should add this first at the very beginning of your custom css
@import url('https://fonts.googleapis.com/css?family=Khand');And then if you want to apply the font family to all accordion elements, you should be using this:
.x-accordion .x-accordion-heading a { font-family: 'Khand', sans-serif; color:rgb(47, 37, 60); font-size:70px; } .x-accordion .x-accordion-heading a:hover { color:white; background-color:magenta; }We would loved to know if this has work for you. Thank you.
November 7, 2016 at 1:53 pm #1247589
goodimpParticipantThis reply has been marked as private.November 7, 2016 at 10:07 pm #1248115
RupokMemberHi there,
I have checked and I can see font-weight 300 is working fine. It’s not bold as bold is much bolder if you see my screencast – http://recordit.co/nFt6wMJ85y
Cheers!
November 8, 2016 at 5:00 am #1248484
goodimpParticipantThis reply has been marked as private.November 8, 2016 at 5:38 am #1248522
ChristopherModeratorHi there,
I don’t have privilege to access customizer. Please update your @import block code to :
@import url('https://fonts.googleapis.com/css?family=Khand:300,400,500,600,700');And add it in child theme’s style.css file, please see the result on attached screen shot.
Hope it helps.
November 8, 2016 at 8:53 am #1248734
goodimpParticipantThis reply has been marked as private.November 8, 2016 at 10:23 am #1248874
goodimpParticipantThis reply has been marked as private.November 8, 2016 at 10:52 am #1248926
JadeModeratorGlad to hear it’s sorted now.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1243751 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
