1. Hammur
  2. Sherlock Holmes
  3. Commercial Templates
  4. Friday, 10 October 2014
  5.  Subscribe via email
Hi, I would kinda like to change the way the polaris template handles the html contents from articles.
e.g. decrease the padding a little between line breaks and then there is a issue with un- and ordered list.
The template doesn't show any numbers 1,2,3... or bullets for these in the articles. Also for ordered list, there is no left margin either.

Added two screenshots that show how the article looks like in the editor compared to how it looks like on the page.
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Would you have a URL to an example of these issues?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi, Ciarán.

Here is the URL the to page where I took the screenshot:
http://kfumlokin.konsult.fo/skotar/2014-10-09-22-10-11
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

To reduce the spacing below paragraph you can add the following to the Custo, CSS field of your templates parameters (default 16px, edit to taste)...


p {
margin-bottom: 16px;
}


To better style your lists try adding the following also to your Custom CSS field...


.maincontent ul {
list-style: disc outside none;
margin-left: 20px;
}
.maincontent ol li {
list-style: decimal outside none;
margin-left: 40px;
}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks got that fixed.

However the element:
p {
margin-bottom: 16px;
}

Only controls the (Enter) line-break type "</p><p>"

which css element controls the space type "<br />" (Shift+Enter)
Or just the space between long texts that just start a new line whenever they reach the width of the page?
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Sorry to day you cant really change the height of the br tag itself, as it's not an element that takes up any space in the page. It's just an instruction to your browser to create a new line.

Text blocks in HTML are usually done using the p tag around long text blocks. That way you can control the line height inside the p tag, and also the spacing between the p tags.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,
Okay, well there gotta be something in the template that makes the space between line larger than normally?

Attach two screenshot which shows the example article earlier within in the polaris template compared to how the same article looks like in the protostar template.
Here you can clearly see that polaris renders a larger space between the lines than in protostar.

Would like normal line breaks to have same height as in those unordered list.

Edit: found the css for this.
It was the body element in the nexus.css file which was set to:
body {
line-height: 2em;
}


Put that into the template custom css and changed it to 1.5em instead :)
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
One more thing. Just noticed that the template doesn't seem to respond on table cell paddings?
Try and have a look at this page: http://kfumlokin.konsult.fo/2014-10-06-22-49-50/fastir-skotadagar

The table html output is:
<table cellspacing="5" cellpadding="5" border="0" style="width: 500px;">

If I try to adjust the "cellpadding". Nothing happens.
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Dolgur

Thank you for the update on resolving your issue.

To set your cell padding you can add the following to the Custom CSS field of your templates parameters (edit to taste)...


td {
padding: 10px;
}


Alternatively you can remove the reset.css by removing the following from your templates styles.php (../templates/j51_polaris/php/styles.php)..


<l-ink rel="stylesheet" href="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/reset.css" type="text/css" />


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 8
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!