Skip to content

Commit

Permalink
Issue #11, various small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seballot committed Oct 25, 2018
1 parent 34366bb commit 7b0a627
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 43 deletions.
3 changes: 3 additions & 0 deletions dist/gogocarto.css
Original file line number Diff line number Diff line change
Expand Up @@ -6468,6 +6468,9 @@ html[data-useragent*='MSIE 10.0'] .iconInsideMarker-wrapper {
color: inherit; }
.gogo-load-css .gogocarto-container #element-info-bar.display-bottom .element-item .collapsible-header a:hover {
color: black; }
.gogo-load-css .gogocarto-container #element-info-bar.display-bottom .element-item .collapsible-header, .gogo-load-css .gogocarto-container #element-info-bar.display-bottom .element-item .collapsible-body {
padding-left: .5rem;
padding-right: .5rem; }
.gogo-load-css .gogocarto-container #element-info-bar.display-aside .element-item .collapsible-header {
border: none;
color: white;
Expand Down
70 changes: 35 additions & 35 deletions dist/gogocarto.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gogocarto.min.css

Large diffs are not rendered by default.

Binary file modified dist/gogocarto.min.css.gz
Binary file not shown.
6 changes: 3 additions & 3 deletions dist/gogocarto.min.js

Large diffs are not rendered by default.

Binary file modified dist/gogocarto.min.js.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions src/js/modules/element/template-element-filters.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ declare var commonmark;

export class TemplateElementFiltersModule
{
filters = [ 'gogo_text', 'gogo_email', 'gogo_openhours', 'gogo_tags', 'gogo_vimeo', 'gogo_url', 'gogo_title', 'gogo_separator', 'gogo_taxonomy', 'gogo_textarea', 'gogo_phone' ];
filters = [ 'gogo_text', 'gogo_email', 'gogo_openhours', 'gogo_tags', 'gogo_vimeo', 'gogo_url', 'gogo_title', 'gogo_separator', 'gogo_taxonomy', 'gogo_textarea', 'gogo_tel' ];

public addGoGoFilters(nunjucksEnvironment)
{
Expand Down Expand Up @@ -41,7 +41,7 @@ export class TemplateElementFiltersModule
case 'gogo_textarea':
functionToAdd['splitLongText'] = splitLongText;
break;
case 'gogo_phone':
case 'gogo_tel':
functionToAdd['formatPhoneNumber'] = formatPhoneNumber;
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/element/template-element.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class TemplateElementModule

private fixTemplate(template) {
template = template.replace(/&amp;/g, "&").replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&quot;/g, '"');
template = template.replace('<hr />', '<div class="info-bar-divider"></div>');
template = template.replace(/<hr \/>|<hr>/, '<div class="info-bar-divider"></div>');
template = template.replace(/<h1>|<h2>|<h4>|<h5>/g, '<h3>');
template = template.replace(/<\/h1>|<\/h2>|<\/h4>|<\/h5>/g, '</h3>');
return template;
Expand Down
5 changes: 5 additions & 0 deletions src/scss/components/info-bar/_info-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
background-color: white !important;
a { color: inherit; &:hover { color: black; } }
}

.collapsible-header, .collapsible-body {
padding-left: .5rem;
padding-right: .5rem;
}
}

#element-info-bar.display-aside .element-item
Expand Down
2 changes: 1 addition & 1 deletion src/views/components/element/default-body-content.html.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ address|gogo_text }}

{# Tel #}
{{ telephone|gogo_phone }}
{{ telephone|gogo_tel }}

{# Mail #}
{{ email|gogo_email }}
Expand Down

0 comments on commit 7b0a627

Please sign in to comment.