Merge branch 'gh-pages' into develop

This commit is contained in:
Bengt Brodersen 2015-12-01 17:11:09 +01:00
commit 6b61082f8c
4 changed files with 19 additions and 18 deletions

BIN
CardExample.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

View File

@ -6,7 +6,7 @@
// YouTrack: http://qoomon.myjetbrains.com/youtrack/dashboard
var global = {};
global.version = "4.3.3";
global.version = "4.3.5";
global.issueTrackingUrl = "https://github.com/qoomon/Jira-Issue-Card-Printer";
global.isDev = document.currentScript == null;
global.isProd = !global.isDev;
@ -165,7 +165,7 @@
function loadSettings(){
var settings = global.settings = global.settings || {};
settings.scale = parseFloat(readCookie("card_printer_scale")) || 1.0;
settings.scale = parseFloat(readCookie("card_printer_scale")) || 0.0;
settings.rowCount = parseInt(readCookie("card_printer_row_count2")) || 2;
settings.colCount = parseInt(readCookie("card_printer_column_count")) || 1;
@ -344,7 +344,7 @@
var style = document.createElement('style');
style.id = 'styleSingleCardPage';
style.type = 'text/css';
style.innerHTML = ".card { page-break-after: always; float: none; }"
style.innerHTML = ".card { page-break-after: always; float: none; margin-bottom: 0.5cm}"
jQuery("head", printDocument).append(style);
}
}

View File

@ -14,6 +14,7 @@ body {
margin: 0rem;
max-height: 100%;
max-width: 100%;
overflow: visible;
}
.badge, .shadow {
border-style: solid;
@ -77,16 +78,16 @@ body {
overflow: visible;
}
.card::after {
overflow: visible;
position: absolute;
top: 0rem;
left: 0rem;
content: "";
width: calc(100% - 0.06cm);
height: calc(100% - 0.06cm);
border-color: LightGray;
border-style: dashed;
border-width: 0.06cm;
overflow: visible;
position: absolute;
top: -0.015rem;
left: -0.015rem;
content: "";
width: calc(100% - 0.015cm);
height: calc(100% - 0.015cm);
border-color: LightGray;
border-style: dashed;
border-width: 0.03cm;
}
.card-content {
position: relative;
@ -244,7 +245,7 @@ body {
height: 2.2rem;
border-radius: 50%;
background-color: WHITESMOKE;
//background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Person.png);
background-image: url(https://www.colourbox.com/preview/10714847-evil-christmas-elf.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
@ -274,13 +275,12 @@ body {
line-height: 0.55rem;
}
.issue-epic-id {
font-size: 0.5rem;
font-size: 0.6rem;
font-weight: bold;
max-width: 1rem;
}
.issue-epic-name {
margin-left: 0.1rem;
font-size: 0.6rem;
font-size: 0.55rem;
font-weight: bold;
}
.issue-due-date-box {
@ -326,5 +326,6 @@ body {
}
.card {
page-break-inside: avoid;
margin: 0.0mm;
}
}

View File

@ -24,7 +24,7 @@
<div class="issue-attachment badge"></div>
<div class="issue-assignee badge"></div>
<div class="issue-epic-box badge">
<span class="issue-epic-id"></span>
<span class="issue-epic-id"></span><br>
<span class="issue-epic-name"></span>
</div>
</div>