-
AuthorPosts
-
romagromov Friend
romagromov
- Join date:
- July 2009
- Posts:
- 23
- Downloads:
- 7
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 22, 2014 at 8:58 pm #198074HI!
I created new style for module title – in file custom.css added new class
.module-title {
margin-bottom: 20px;
background: #008FE0
padding: 15px;
color: #FFF
}http://monosnap.com/image/RLOd65HyHiV49UM1zJKReLDL8NvxF9.png
But now all modules have same title style.
How I can add new module suffixes with different styles for module titile and module body?
Something like mysuffix.module-title and mysuffix.module-ct ?TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 22, 2014 at 9:03 pm #536308You can use module class suffix to distinguish that module from others with regard to the css classes it uses.
Using the JA OnePage template as an example . . . . .
You can create module class suffix as follows . . . .
1. Add new code block into templates/ja_onepage/css/custom.css
example:
.hero-unit {
margin: 59px 0 0;
padding: 0;
text-align: center;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
}2. Add your module class suffix within the selected module as follows:
Here are some additional resources concerning using module class suffix in Joomla . . . ..
JOOMLA DOCS: MODULE CLASS SUFFIX
USING TYPOGRAPHY PAGE to IDENTIFY MODULE CLASSES
Hope That Helps
😎
romagromov Friendromagromov
- Join date:
- July 2009
- Posts:
- 23
- Downloads:
- 7
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 22, 2014 at 9:11 pm #536311Thanks.
I understand this.
I added your example to custom css and edited suffix field in module.
Now all module area have new style.
But how I can add different styles for module title and module body?TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 22, 2014 at 9:12 pm #536313<em>@romagromov 428785 wrote:</em><blockquote>Thanks.
I understand this.
I added your example to custom css and edited suffix field in module.
Now all module area have new style.
But how I can add different styles for module title and module body?</blockquote>You would need to create specific CSS classes for those elements.
romagromov Friendromagromov
- Join date:
- July 2009
- Posts:
- 23
- Downloads:
- 7
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 22, 2014 at 9:16 pm #536314I explain:
When I set
.module-title {
margin-bottom: 20px;
background: #008FE0
padding: 15px;
color: #FFFOnly titles have blue background.
But when I set
.blue_style {
margin-bottom: 20px;
background: #008FE0
padding: 15px;
color: #FFF
}and then set suffix for module ” blue_style”
all module is blueI need blue title and red background…
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 23, 2014 at 4:24 am #536340Could you post URL of page where this module locates here so that we can have a closer look?
romagromov Friendromagromov
- Join date:
- July 2009
- Posts:
- 23
- Downloads:
- 7
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 23, 2014 at 6:23 am #536349Yes, it is your Purity III template, you can check any module.
http://moy1dom.ru/index.php/joomla-pages/other-pages/single-articles
PLease, point me in right direction.I need blue title and red background…
But I can’t undestand, how to create new class (suffix) for module title and body.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 24, 2014 at 5:56 am #536477In this single article page, there is a menu module which has
Suppose that you’ve already have /purity_iii/css/custom.css file, you can try adding this css rule:
.t3-module.module_menu .module-inner .module-title {
background: /*your color goes here*/;
}.t3-module.module_menu .module-inner .module-ct {
background: /*your color goes here*/;
}
Hope this helps.
1 user says Thank You to Saguaros for this useful post
romagromov Friendromagromov
- Join date:
- July 2009
- Posts:
- 23
- Downloads:
- 7
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 26, 2014 at 3:34 am #536618Could you send me the URL of page where I can see this module?
romagromov Friendromagromov
- Join date:
- July 2009
- Posts:
- 23
- Downloads:
- 7
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 26, 2014 at 12:23 pm #536684Yes, of cource.
Here pagehttp://moy1dom.ru/index.php/joomla-pages/other-pages/tag
I set suffix mtblue for this modules:
Blog Categories
Who’s Onlineand I added in custom.css new class
h3.mtblue {
margin-bottom: 20px;
background: #008FE0
padding: 15px;
color: #FFF
}Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 27, 2014 at 9:59 am #536807You can try with this css rule:
.t3-module.mtblue .module-inner .module-title {
margin-bottom: 20px;
background: #008FE0
padding: 15px;
color: #FFF
}
2 users say Thank You to Saguaros for this useful post
romagromov Friendromagromov
- Join date:
- July 2009
- Posts:
- 23
- Downloads:
- 7
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 27, 2014 at 11:04 am #536817Yes!
It works. Now I can create different colors for modules title.But how I can create new style (suffix) for module body?
romagromov Friendromagromov
- Join date:
- July 2009
- Posts:
- 23
- Downloads:
- 7
- Uploads:
- 1
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
okkhalid Friendokkhalid
- Join date:
- November 2012
- Posts:
- 229
- Downloads:
- 2
- Uploads:
- 133
- Thanked:
- 3 times in 1 posts
November 2, 2014 at 10:24 pm #553864I’m trying to create the same thing, but I want only to change the title of the module not the body like this image:4
but I’m not able to do that with Module Class Suffix.
Now all my module getting the same thing, and I want only to specify some of them not the rest.
I tried with this.t3-module.mtblue .module-inner .module-title {
all my code here
}then I inserted: mtblue in the Module Class Suffix but it did not work for me.
Now I inserted this code below,, but it changes all my modules with the same style, all I need as mentioned to specify some moudle with the Class Suffix, please help.:
.module-title{
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
opacity: 0.88;
padding: 20px;
overflow: hidden;
border: none;
-webkit-border-radius: 0 5px 0 0;
border-radius: 0 5px 0 0;
color: rgba(255,255,255,1);
text-align: center;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
background: #08677e
-webkit-box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.3) ;
box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.3) ;
text-shadow: 1px 1px 1px rgba(0,0,0,0.2) ;
}
AuthorPostsThis topic contains 16 replies, has 4 voices, and was last updated by Saguaros 9 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum