Duplicating styles

How to duplicate xtypo styles?
:-)
10 years 11 months ago #1 by Andrew

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5263) Offline
Hi, What do you mean by duplicating styles?
10 years 11 months ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Sorry, i am unclear :-)
So, let say we have default: {xtypo_rounded3} {/xtypo_rounded3}
I wanna create {xtypo_rounded10} {/xtypo_rounded10} customized to my needs.
Is it just about copy/paste in css or there is something else I should do? :)
10 years 11 months ago #3 by Andrew

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5263) Offline
HI, It will need 2 steps :
1. Add the new the css rules in the css file : root/plugins/content/xtypo/themes/default/style.css for
for example :
.xtypo_rounded10 {
	background: url(assets/shadow.png) repeat-x bottom #67b8f7;
	display: block;
	padding: 1em 1.5em;
	box-shadow: 0 0 5px #ccc;
	border-radius: 3px;
	color: #fff;
	margin: 10px 0;
	text-shadow: 0 -1px 0 #4e90c2;
}

2. Then open file
root/plugins/content/xtypo/themes/default/xtypo.php, add the code below after this code (line 56) :
$regex = array(

:
"xtypo_button10" => array("<div class=\"xtypo_button10\">***code***</div>","#{xtypo_button10}(.*?){/xtypo_button10}#s") ,
10 years 11 months ago #4 by TemplatePlazza

Please Log in or Create an account to join the conversation.

you mean php in plugins/content/xtypo? in plugins/content/xtypo/themes/default/xtypo.php here is no php file :-)
I think that you pasted some mistaken code like something missieng. Would you be so kind and check it for me?
Thanks in advance
10 years 11 months ago #5 by Andrew

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5263) Offline

you mean php in plugins/content/xtypo? in

sorry, yes. It's in plugins/content/xtypo?
10 years 11 months ago #6 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum