-
AuthorPosts
-
May 5, 2013 at 2:21 pm #22857
Hi there,
Trying to change a few things as im creating a dark theme with a chocolate background with dark red buttons, labels & icons. Ive looked through the layout CSS file and cant seem to change/find what I need
1) The font sizes throughout – in particular the H1 tags and the main menu fonts. I want to use much bigger font sizes. When I try to change the menu in the layout CSS file nothing happens which I presume is because of responsive control settings
2) Changing the drop down nav background to red with black/white text and also a lighter rollover background version
3) The circular disc backgrounds (as used in the demo ‘About Us’ section) id like to change the disc background to the mentioned red colour
Cheers
May 6, 2013 at 7:54 pm #117548Hi,
Your best bet is to instal Chrome Developer Tools and without needing to know CSS you can manipulate the elements easily. I just made a video https://docs.google.com/file/d/0B8hqGBMSfHtKd2l6UkcwUjVBVWM/edit?usp=sharing showing how easy it is to change the menu any way you want , copy and paste to quick css in the theme backend. This is the best tool for editing without the learning curve.
Thanks,
Nick
May 6, 2013 at 8:08 pm #117549Hi Nick,
thats great and I think when we talk basic changes like H1 text, logo heights etc… the way you mention seems relatively straight forward for a novice. Where Ive become continuously unstuck are things like the discs (behind the icons) if I want them a different colour or size, or to change things that have (what i call) nested button states – the drop down menu for instance as I want to change the colours of the ‘drop down’ background but because there are several states (off, rollover and sometime on) I cant quite find the right piece of code using the method you mention. I also want to alter the (moving) thin underline when you rollover the top nav so that I remove the middle ‘tick’ mark and increase the thickness slightly but again I can’t see where the correct code is amid a sea of other comments. This im sure is my inexperience but any clue as to how to deal with such things would be warmly received
Cheers
all the best
Andy
May 7, 2013 at 2:39 pm #117550Hi,
This is the url of the About Us section of the demo http://kriesi.at/themes/enfold/pages/about-us/ … There are no icons here , but I am guessing thumbnail photos – like when you run the mouse over harrold houdini’s photo?
I got this css exactly the same way as shown on the above video using chrome developer tools
/*---these are the colors when mouse hovers--*/
#top .avia-team-member .twitter:hover {
color: rgb(70, 212, 254);
}
#top .avia-team-member .dribbble:hover {
color: rgb(228, 72, 133);
}
/*---this is the regular color of the icon inside circle--*/
#top .main_color .team-social a
color: grey;
}
/*---this is complete settings controlling size, shape, background color, position of the circle itself--*/
#top .team-social a {
text-decoration: none;
position: relative;
border-radius: 30px;
padding: 0 16px;
background: rgb(224, 17, 17);
margin: 3px;
display: inline-block;
height: 53px;
line-height: 54px;
width: 53px;
}Keep playing with developer tools, i know at first it seems oppressive, but there is nothing better than this to use to quickly be able to edit css of any site.
Thanks,
Nick
May 7, 2013 at 9:55 pm #117551Hi there,
I think we got our wires crossed as the section I was referring to is the ‘Avia icon_list’ the discs which contain the entypo glyphs. I wanted to change the disc and the outline and leave the entypo glyphs white. I also want to resize them too
When I use the inspector I come across the following…
media="screen"
.main_color .avia-icon-list .iconlist_icon {
background-color: #d73119 !important;
}and whilst changing the color works in the inspector as soon as I drop it into the CSS of my child theme nothing changes. I thought adding !important might help (assuming I understood its importance which I guess now I dont!!) but it did nothing.
Thing is, this is where I usually come stuck as ive followed your instructions but things like this wont change. Im clearly not doing something but what is it that im doing wrong? Can you help me understand as my next thing is changing the dropdown background on the top nav and I know that will be the same issue.
May 7, 2013 at 10:09 pm #117552hi again…
and to add to this. what if all I want to do is use the entypo font pictogram inside a single disc/circle? exactly the same as the Icon list but without the text or dotted lines. I cant find anything to help me at all
Cheers
Andrew
May 8, 2013 at 9:02 am #117553Hey Nick,
I think ive fathomed how to change the color although I seem to wrestle with internal CSS components which seems to mean my code is ignored half the time. Theres clearly a process I need to go through but its a bit hit and miss.
**/SEE BELOW/**
.avia-icon-list .iconlist_icon{height:64px; width:64px; line-height: 60px; font-size: 30px; text-align: center; border-radius: 500px; position: relative; float:left; margin-right:30px; margin-left:2px; z-index: 5; border-style:solid; border-width:2px; color:#fff;
}
.main_color .avia-icon-list .iconlist_icon {
background-color: #d73119;
}
it seems that I can do it providing I have both parts but im not sure why. I got the first part from another post.
Anyway, my last question on this is how do I create this same entypo disc without the the list content to the right. This is mainly because I want to create individual entypo discs with my own descriptive text either above or below it (centred or left justified). Im kicking myself for not just asking that question at the start
Cheers
Andy
May 8, 2013 at 1:06 pm #117554Hi,
Ok thats good, however that won’t always work. You need to add #top before everything (which is from the body tag) , this way you will get more specificity and override the original code. Sometimes for some real hard cases, you need to add !important; to the end of the statement — color: red !important;
if your code ignored, do this. Open up chrome developer tools like this ( http://i.imgur.com/RfNyIBs.png ) find custom.css file in there step 2, then you add your changed code into the screen in middle, just don’t forget to copy it if you need to refresh ) and enter the css directly, if nothing changes, add #top, take something off, and you will see results live, so this way you don’t have to copy and paste and save every time to see whats working and what isnt. also you can edit the html live too and any of the files, but as soon as you refresh, its all gone.
also don’t use media=”screen” unless you see something like @media only screen and (max-width:767px) { .. if you see that, you need to grab that since that’s a media query (which is css that works on a specific screen size for mobile/tablets).
so first try (your code with #top directive)
#top .avia-icon-list .iconlist_icon {
height:64px;
width:64px;
line-height:60px;
font-size:30px;
text-align:center;
border-radius:500px;
position:relative;
float:left;
margin-right:30px;
margin-left:2px;
z-index:5;
border-style:solid;
border-width:2px;
color: #fff;
}Then as you get comfortable you will see that css is like a postal address country, state, city, street, house.. further you go in the more specific it becomes. So you can take the less specific stuff off sometimes.
#top .avia-icon-list .iconlist_icon {
background-color: #d73119;
}
I wish you had a url, where I can look at these disks. when i click url from your name , a website loads, but nothing there.
Don’t give up on this tool, watch a youtube tutorial for it because its as easy or complex as you want it to be. Its the only one I use and only one many (if not all) use to debug or modify any website.
Thanks,
Nick
May 9, 2013 at 5:41 am #117555Hey Nick,
Ive taken my personal portfolio offline while I rebuilt it. The basic Enfold installation is there and thats due to be replaced with a countdown. Not sure how I show you something local other than to give you a screen shot.
Good news though in that I sorted the colouring out using your method so thank you. Basically I should have been using ‘icon box’ and not ‘Icon list’ and then it was a case of trial and error.
I think for the most part I can get on now but as im creating a dark (chocolate) background based look and feel I have two other questions which relate to the main menu. should I start a new thread or continue talking to you here?
Cheers again and thanks for all your help. You are the first person who has tried to help me understand it properly and not just assumed im casting a spell in some mystical dark arts… although it does still feel a bit like that.
all the best
Andy
May 9, 2013 at 8:28 am #117556Andy,
You are the first person to ever ask me that question (whether to start a new thread), most just ask 3 pages of unrelated questions over 5 months. Thanks for asking! Nah you can continue here since its relevant to the overall theme of our exchange.
I felt that in your case best thing to do was to get you hooked on the google tool since then you can customize your own look. read somewhere carefully about position:absolute and position:relative and how they relate to each other when one div is relative inside an absolute div and vice versa and how that affects margin and padding. Also try to move your logo for example to the bottom right corner of screen without messing anything else up using right:20px .left, down, top, and the position: tag… Goodstuff.
It’s not difficult to edit it. Now sitting down in front of an empty screen and writing it from nothing is difficult.
So ask away.
Thanks,
Nick
May 9, 2013 at 1:55 pm #117557Hi there,
Well, im having fun trying things out but the menu/navigation is a tricky beast. Ive been trying all sorts of things but nothing seems to work even following other peoples examples and following your process still leaves me stumped… here’s what Id love to do
1) Increase the font size but make it responsive in the right way
2) Change the word spacing
3) Remove the triangle tick over the line and thicken the line
4) Change the colours of the OFF/ROLLOVER & ON states of any dropdown
nice to haves
5) Move the Menu (highlight line) above the text
6) Add a feint line attached to this that spans the entire menu set
Is this all BIG LEAGUE stuff or can I do any of this relatively easily?
Cheers again for all your support
Andy
p.s if theres a way to send me an image of what im trying to do then please let me know and ill send a jpg
May 9, 2013 at 3:06 pm #117558Hi,
Put up a menu on your website. Please don’t talk in abstractions and generalities or i will make up my own colors, sizes, etc. I get a vague notion of #6. The rest I think I get. I made video of me doing it. Good stuff for youttube.. Website crashed in middle of video though. I didn’t do responsive since i dont think it will make any difference regarding colors, that flying underscore though probably needs 1 media query.
/*triangle killer*/
#top .current-menu-item>a>.avia-menu-fx>.avia-arrow-wrap,#top .current_page_item>a>.avia-menu-fx>.avia-arrow-wrap {
display: none;
}
/*menu top font color off*/
#top .header_color .main_menu ul:first-child>li>a {
color:rgb(255,8,8);
font-size: 1.1em;
}
/*menu top font color hover*/
#top .header_color .main_menu ul:first-child>li>a:hover {
color:rgb(8,255,255);
font-size: 1.1em;
}
/*sub menu font color */
#top .main_menu .menu ul li>a {
color:green;
word-spacing:1.2em;
font-size: 1.1em;
}
/*sub menu font color hover*/
#top .main_menu .menu ul li>a:hover {
color: blue !important;
}
/*sub menu background off*/
#top .header_color .main_menu .menu ul li a:hover {
background-color: rgb(12,9,122);
}
/*sub menu background hover*/
#top .header_color .main_menu .menu ul li a:hover {
background-color: rgb(68,9,9);
}
/*underlines now float above menu*/
#top .avia-menu-fx {
display:block;
position:absolute;
top: 25px;
}Video is uploading, gonna be here in 5 mins.
Thanks,
Nick
May 9, 2013 at 3:23 pm #117559Blimey Nick (said in a respectful posh London accent) Im so bloody impressed. Im gonna be sat on a train going home from a client visit in an hour or two and ill give it a try… A video too. Being spoilt but I am very grateful and I mean that
By the way, as im working locally how can I get you examples of my ideas. theres no attach button on here so I dont know how to share my ideas or do we just have t wait till I go live and then tell you the URL?
As always, you are brilliant
Thx
Andy
May 9, 2013 at 3:38 pm #117561Hey,
Here is dat video link (in Brooklyn accent) https://docs.google.com/file/d/0B8hqGBMSfHtKa1VmZVRPVU5ZS2s/edit?usp=sharing
Video for Vimeo.. once I trim 8 minutes off it.
Nick
May 9, 2013 at 4:22 pm #117562Done it! its getting easier.
Thanks for the video too….
Now all I need to do is explain how to actually create this 1px grey solid line that spans the entire menu (Home, Portfolio, Blog, Contact, About Me) and sits behind/at the top of the highlight line we’ve just moved up. I worked out how to make the highlight line 3px deep and adjusted its position
Ill set up a dropdown menu and check that it all still works. I forgot to mention that my aim is to change the dropdown menu background colors and not change the text. Hence… ROLLDOWN – Background is black, ROLLOVER – Highlight background changes to a deep orange and theres a subtle text colour change too. Ill play around myself and see how I get on
Is there a way for me to send you an image?
Once ive done the menu ive pretty much got everything else within the theme as normal. I might want to create a giant slabtext on my home page only but thats it. Just so you know that I wont be sitting on your coat tails for the entire site!!!!!!
Cheers
as always
May 9, 2013 at 9:13 pm #117563Great video Nick although you had me a bit lost in the middle but im deffo learning from you so thx.
So tell me… how can I send you an image to explain this ‘feint line thing’?
Cheers
Andy
May 10, 2013 at 10:34 am #117564Hi,
Use either clipular.com to send screenshots that you don’t need to alter. If you need to add something to screenshot, use https://chrome.google.com/webstore/detail/awesome-screenshot-captur/alelhddbbhepgpmgidjdcjakblofbmce for chrome. You can always add images and get a link on imgur.com
In the video when I always paste the css in Dev Tools at the end of existing css, all under the ‘Sources” tab, what I am doing is making sure that the css actually works since by pasting there, I am adding my changed css at the end of the cascade. When you change things under the “”Elements”” tab, you are virtually changing the css but in the position it is normally located in the cascade.
And no matter how well the Dev Tools have been written, there are situations where bad css and whatnot change things later in the cascade. Thus I don’t rely on my original changes in the ‘Elements”” tab and like to double check them before I paste and save the block of css into my site (or paste it here as an answer to a support request). Its a process of sculpting and tweaking the css to force it to obey.
*Ok lets end this support request since I think with the video and code, this train of thought is complete and will perhaps help others. That other thing you ask about, please open a new ticket since that should have its own discussion, you can add ”nick” as a tag.
Thanks,
Nick
-
AuthorPosts
- The topic ‘Colour & Font Size Changes’ is closed to new replies.