![]() |
Help with blog styling
1 Attachment(s)
I'm working on a custom skin for a site I'm gonna launch soon and I need some help finding the CSS to change some tag code. I want to make the white background in the popup in the screen shot be transparent so I need to know where to edit the CSS to do this. I cannot find it anywhere. :(
|
Looks like it's one of the tag_edit templates, maybe tag_edit_ajax_popup.
|
Quote:
Code:
<div class="ajax_tag_edit_container" style="background-color:#281f28;border:1px solid #5a022b;border-radius:8px;padding:10px;color:#ffffff;"> Code:
<div id="blogtagmenu_1_menu" style="width: 300px; background: none repeat scroll 0% 0% rgb(255, 255, 255); border: 1px solid rgb(0, 0, 0); padding: 10px; position: absolute; z-index: 50; clip: rect(auto, auto, auto, auto); left: 239px; top: 492px; display: none;"> The actual template code is: Code:
<span id="blogtagmenu_{vb:raw blog.blogid}"><a href="threadtag.php?{vb:raw session.sessionurl}do=manage&contenttype=vBBlog_BlogEntry&contentid={vb:raw blog.blogid}"><img src="{vb:stylevar imgdir_misc}/blog/tag_edit.png" border="0" class="inlineimg" id="blogtag_{vb:raw blog.blogid}" alt="{vb:rawphrase edit_tags}" /></a></span There is no call for "blogtagmenu" or "blogtagmenu_" in any of the CSS in the templates and I tried adding it to the additional.css template to no avail. :( --------------- Added [DATE]1425820304[/DATE] at [TIME]1425820304[/TIME] --------------- Also there is CSS but I cannot find it anywhere in the templates this is what I need to change but I have no idea where to find it: Code:
element.style { |
I'm not sure, but I'd guess that element.style means that those attributes come from the style="..." in one of the tags.
|
Thanks. :( Still have not found it. Its got to be somewhere. Is there a separate tag.css file or something in the files somewhere?
|
According to Lynne it's not in any css file.
https://vborg.vbsupport.ru/showpost....58&postcount=2 From thread ... https://vborg.vbsupport.ru/showthread.php?t=266697 |
Quote:
|
When you searched did you search in templates for blogtagmenu_1_menu ?
|
Quote:
|
EDIT:
Found it! :D Template = tag_edit_ajax_popup |
Quote:
https://getfirebug.com/wiki/index.php/Style_Side_Panel So do as John Lester mentioned and check out Lynne's info. |
Well, as has been pointed out a few times now, you're looking at template tag_edit_ajax_popup. I guess the part that's confusing you is that the outer div is marked as class class="ajax_tag_edit_container", but that doesn't exist in any of the CSS templates (which I admit seems strange - I'm guessing someone didn't quite finish the style). The CSS has been put in the style attribute of that tag, so it looks like this:
HTML Code:
<div class="ajax_tag_edit_container" style="background-color:white;color:black;padding:10px;padding-top:0px;border:2px solid black;"> OK, since you're making your own style anyway, edit that template and take out the style attribute, so that it looks like this: HTML Code:
<div class="ajax_tag_edit_container"> Then make it in to CSS and put it in one of the existing CSS templates: Code:
.ajax_tag_edit_container { I really don't know much about making custom skins, so I don't know where you'd want to put it. I guess not in additional.css since that's for user changes. Maybe in blog.css if that's the only place it's used. The tag editing code seems to be common to forum threads, but I don't see any way to get that popup in the forum. Anyway, now you can change it. |
Quote:
Quote:
Quote:
UPDATE: Another member on a different site found where this code is at. Its in the clientscript/vbulletin_ajax_tageditor.js file. I could edit the file and it works but this would mean that I cannot overwrite the js file in the future or lose the edit and it also means that this will show no matter what skin I have on the site, which if in the future I decide to add a light colored skin this will present a problem. Does anyone know the css that I can use from this js code? Code:
else{if(!this.divobj){this.divobj=document.createElement("div");this.divobj.id=this.divname;this.divobj.style.display="none";this.divobj.style.width="300px";this.divobj.style.background="#ffffff";this.divobj.style.border="1px solid #000000";this.divobj.style.padding="10px";document.body.appendChild(this.divobj); Code:
.divobj, #divobj, .divobj.style, & #divobj.style |
Quote:
Edit: No, I'm sorry, I'm just catching up with what you were asking: you want the white border of the popup to be transparent. And it's obvious from the picture that you already have managed to change the color of the rest of the popup background. So yeah, that part seems to be in that .js file. Sorry it took me so long to understand. So what I said above is wrong, I *didn't* get it to work, I misunderstood what you were asking. |
OK, as I mentioned in the edit above, I'm sorry I didn't understand this sooner. I think we all misunderstood what you were asking. But I think there is a way to do it (obviously the 'color:blue' is just a test):
Code:
div[id^="blogtagmenu_"] { But apparently this is CSS 3, so I don't know what that means as far as browsers that support it. |
1 Attachment(s)
Quote:
Code:
<div class="ajax_tag_edit_container" style="background-color:white;color:black;padding:0px;padding-top:0px;border:0px solid black;"> Quote:
|
Try adding this to additional.css template in your custom style:
Code:
#blogtagmenu_1_menu, .ajax_tag_edit_container { Worked for me on 4.2.1 but let us know ;). |
Quote:
Quote:
Quote:
|
Glad you got it figured out. For future reference, if someone wants to do it with CSS, it can be done like this:
Code:
div[id^="blogtagmenu_"] { |
I'm happy it's been resolved :) Good job ozzy :) Also wanted to thank Kevin for the css as it's given me an idea about editing the editor without editing a core file ;)
|
Quote:
|
All times are GMT. The time now is 02:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|