Skip to content

Commit

Permalink
Fix font size issue
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuozawa committed Jan 4, 2019
1 parent 266813f commit fbc33d7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
6 changes: 5 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,8 @@ Addressed an issue from v 0.1.12 where page numbers were required for digitally
Addressed an issue from v 0.1.12 where location input fields were formated improperly on large screens.

Added option to change the output font family and size.
Changed directory structure.
Changed directory structure.

-- v 1.0.6 -- January 4, 2019
Addressed an issue from v 1.0.5 where font size was not accurately set.
Updated licensing years.
11 changes: 7 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,13 @@ <h2>Notices</h2>
</div>
<div>
<h2>Current Version</h2>
<p>Version 1.0.5</p>
<p>Type: MINOR RELEASE</p>
<p>Released Dec 30, 2018</p>
<p>Version 1.0.6</p>
<p>Type: PATCH RELEASE</p>
<p>Released January 4, 2019</p>
<h2>Version History</h2>
<h3>v 1.0.6 - January 4, 2019 </h3>
<p>Addressed an issue from v 1.0.5 where font size was not accurately set.</p>
<p>Updated licensing years.</p>
<h3>v 1.0.5 - December 30, 2018</h3>
<p>Addressed an issue from v 0.1.12 where location input fields were formated improperly on large screens.</p>
<p>Added option to change the output font family and size. </p>
Expand Down Expand Up @@ -154,7 +157,7 @@ <h3>v 0.0.1 [pre-alpha] - January 14, 2018</h3>
<h2>Unsupported features</h2>
<p>These formats are being planned for support in future versions: in press articles, conference proceedings, master's theses, doctoral dissertations, reviews, and peer commentaries.</p>
<p>These formats are not going to be supported in the near future: media, unpublished/missing works, legal sources, newsletters, multi-volume works, series, monologues, and more exceptions to the rule.</p>
<p>Please report all bugs to author on GitHub.</p>
<p>Please report all bugs to author on <a href="https://github.com/natsuozawa/citeapa">GitHub.</a></p>
</div>
<div>
<h2>Settings</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/app.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ $(document).ready(function() {
$('#font-type').val(CITEAPA_SETTINGS.fontType);
}
if (CITEAPA_SETTINGS.hasOwnProperty('fontSize')) {
$('#citation').css('font-size', CITEAPA_SETTINGS.fontSize +'px');
$('#citation').css('font-size', CITEAPA_SETTINGS.fontSize +'pt');
$('#font-size').val(CITEAPA_SETTINGS.fontSize);
}
}
Expand Down Expand Up @@ -1611,7 +1611,7 @@ $(document).ready(function() {
$('#font-size').on('change', function() {
const fontSize = Number($(this).val());
if (isNaN(fontSize) || fontSize <= 0) return;
$('#citation').css('font-size', fontSize + 'px');
$('#citation').css('font-size', fontSize + 'pt');
CITEAPA.logSettings({fontSize: fontSize});
});
});
2 changes: 1 addition & 1 deletion src/app.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1134,10 +1134,10 @@ textarea {
}

#citation {
text-indent: -40px;
margin-left: 40px;
text-indent: -.5in;
margin-left: .5in;
font-family: Arial;
font-size: 12px;
font-size: 12pt;
}

.button-container {
Expand Down

0 comments on commit fbc33d7

Please sign in to comment.