-
AuthorPosts
-
bobptz Friend
bobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
November 26, 2016 at 6:29 am #989890Hello
I would like to change the text size on the main body of the article. So I went to theme-magic and changed the text font from 14px to 18px.
Indeed the text increased, along with H1, H2 etc.
However I see that the menu increased, the masthead font size increased, along with the margins in there.
Maybe I could use "Inspect Element" and customize (see hardcode) each property to my liking. And in order to do this I find the source code (.css file) and change it there? Is this the way to do this? Or I have to create an additional .css file and somehow include this? Is this the recommended way to do it? This was suggested here: https://www.joomlart.com/forums/topic/change-font-size-5/ , but I did not know where to place this file and include it in the project.
However I would prefer a more modular approach. ie be able to increase the size (and possibly the margins) separately in the main body of the article, separately for the main menu, separately for the masthead. Is this possible?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 26, 2016 at 7:49 am #989899Or I have to create an additional .css file and somehow include this? Is this the recommended way to do it? This was suggested here:
Hi
You can create a new css file and call it custom.css in this folder /templates/ja_purityIII/css/
Then add all your customized code in that file.
Take a look HERE
Regards
bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
November 26, 2016 at 2:16 pm #989956Hello
Thank you for the reply.
Is it possible to make a custom .less file and this to be compiled into .css when I am not in development mode?
Or maybe just change the .less source files? It will be easier.
If I do it with .css, I will have to hardcode every single element (basic font, H1, H2, borders etc. But if I do it from your .less files, I am sure that you have a variable that everything depends upon. If I alter this variable, then everything will change proportionally.
Makes sense?
bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
November 26, 2016 at 2:51 pm #989958body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #444444;
background-color: #ffffff;
}Looking to inspect the font size (font-size: 14px;) with INSPECT ELEMENT, I see the above code in the following file:
t3-assets/dev/templates.xxx.less.templates.less.cssHowever when I go with FTP, the file templates.xxx.less.templates.less.css is empty.
xxx is the name of the template which is a copy from Purity III.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
November 26, 2016 at 7:46 pm #989989Hello
I did read the article in the link you gave me. I did find at line 80:
@font-size-base: 14px;What I cannot find is where is the code that controls the font and other dimensions of the main article.
I read with great interest the section #3: replace font for specific element. But which .less file is the one that deals with the main article?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 27, 2016 at 7:01 am #990038But which .less file is the one that deals with the main article?
If not specified then it is used the base font – that’s why you can use the custom.css file
example:
.corporate .items-leading { font-size:----- color:----- font-family:----- }
regards
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by bobptz 7 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum