Merge branch 'develop' into gh-pages
This commit is contained in:
commit
4a85f2bb6d
805
bookmarklet.js
805
bookmarklet.js
File diff suppressed because it is too large
Load Diff
321
card.css
Normal file
321
card.css
Normal file
@ -0,0 +1,321 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
html {
|
||||
background: WHITE;
|
||||
padding: 0rem;
|
||||
margin: 0rem;
|
||||
font-size: 1.3cm;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
body {
|
||||
padding: 0rem;
|
||||
margin: 0rem;
|
||||
}
|
||||
.badge, .shadow {
|
||||
border-style: solid;
|
||||
border-color: #333;
|
||||
border-top-width: 0.12rem;
|
||||
border-left-width: 0.12rem;
|
||||
border-bottom-width: 0.21rem;
|
||||
border-right-width: 0.21rem;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
.badge {
|
||||
// WHITESMOKE, GAINSBOROM;
|
||||
background-color: #E0E0E0;
|
||||
}
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
.zigzag {
|
||||
border-bottom-width: 0rem;
|
||||
}
|
||||
.zigzag::after {
|
||||
position: absolute;
|
||||
bottom: 0.03rem;
|
||||
left:-0.16rem;
|
||||
content:"";
|
||||
width: 100%;
|
||||
border-style:solid;
|
||||
border-bottom-width: 1rem;
|
||||
border-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/Tearing.png);
|
||||
border-image-width: 0 0 0.7rem 0;
|
||||
border-image-slice: 56 0 56 1;
|
||||
border-image-repeat: round round;
|
||||
}
|
||||
#preload {
|
||||
position: fixed;
|
||||
top: 0rem;
|
||||
left: 100%;
|
||||
}
|
||||
.author {
|
||||
color: DIMGREY;
|
||||
position: absolute;
|
||||
top:0.35rem;
|
||||
left:calc(50% - 2rem);
|
||||
font-size: 0.6rem;
|
||||
overflow:visible;
|
||||
line-height: 0.38rem;
|
||||
}
|
||||
.author > span {
|
||||
position: relative;
|
||||
left: 0.23rem;
|
||||
font-size: 0.6em;
|
||||
text-align: center;
|
||||
}
|
||||
.card {
|
||||
position: relative;
|
||||
float:left;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0.5cm;
|
||||
min-width:14.5rem;
|
||||
min-height:10.0rem;
|
||||
border-color: LightGray;
|
||||
border-style: dotted;
|
||||
border-width: 0.03cm;
|
||||
}
|
||||
.card-content {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
// find .card-header;
|
||||
padding-top: 2rem;
|
||||
// find .card-footer;
|
||||
padding-bottom: 1.3rem;
|
||||
}
|
||||
.card-body {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
margin-left: 0.4rem;
|
||||
margin-right: 0.4rem;
|
||||
padding-top: 1.1rem;
|
||||
padding-bottom: 1.1rem;
|
||||
padding-left: 0.4rem;
|
||||
padding-right: 0.4rem;
|
||||
background: WHITE;
|
||||
}
|
||||
.card-header {
|
||||
position: absolute;
|
||||
top: 0rem;
|
||||
height: 4.2rem;
|
||||
width: 100%;
|
||||
}
|
||||
.card-footer {
|
||||
position: absolute;
|
||||
bottom: 0rem;
|
||||
height: 2.2rem;
|
||||
width: 100%;
|
||||
}
|
||||
.issue-summary {
|
||||
font-weight: bold;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.issue-description {
|
||||
margin-top: 0.1rem;
|
||||
display: block;
|
||||
font-size: 0.6rem;
|
||||
line-height: 0.62rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
.issue-description p:first-of-type {
|
||||
margin-top: 0rem;
|
||||
}
|
||||
.issue-description p:last-of-type {
|
||||
margin-bottom: 0rem;
|
||||
}
|
||||
.issue-id {
|
||||
position: absolute;
|
||||
left: 1rem;
|
||||
top: 1.2rem;
|
||||
height: 1.5rem;
|
||||
max-width: calc(100% - 7.5rem);
|
||||
min-width: 6.0rem;
|
||||
padding-left: 2.1rem;
|
||||
padding-right: 0.4rem;
|
||||
background-color: WHITESMOKE;
|
||||
line-height: 1.3rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
direction: rtl;
|
||||
}
|
||||
.issue-id-fadeout {
|
||||
position: absolute;
|
||||
left: 2.4rem;
|
||||
top: 1.3rem;
|
||||
width: 1.2rem;
|
||||
height: 1.2rem;
|
||||
z-index: 0;
|
||||
background: linear-gradient(to left, rgba(224, 224, 224, 0) 0%, rgba(224, 224, 224, 1) 60%);
|
||||
}
|
||||
.issue-icon {
|
||||
position: absolute;
|
||||
left: 0rem;
|
||||
top: 0rem;
|
||||
height: 3.0rem;
|
||||
width: 3.0rem;
|
||||
border-radius: 50%;
|
||||
background-color: LIGHTSEAGREEN;
|
||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Objects.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 63%;
|
||||
}
|
||||
.issue-icon[type="story"], .issue-icon[type="user story"] {
|
||||
background-color: GOLD;
|
||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Bulb.png);
|
||||
}
|
||||
.issue-icon[type="bug"], .issue-icon[type="correction"] {
|
||||
background-color: CRIMSON;
|
||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Bug.png);
|
||||
}
|
||||
.issue-icon[type="epic"] {
|
||||
background-color: ROYALBLUE;
|
||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Flash.png);
|
||||
}
|
||||
.issue-icon[type="task"] {
|
||||
background-color: WHEAT;
|
||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Task.png);
|
||||
}
|
||||
.issue-icon[type="new feature"] {
|
||||
background-color: LIMEGREEN;
|
||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Plus.png);
|
||||
}
|
||||
.issue-icon[type="improvement"] {
|
||||
background-color: CORNFLOWERBLUE;
|
||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Arrow.png);
|
||||
}
|
||||
.issue-estimate {
|
||||
position: absolute;
|
||||
left: 2.5rem;
|
||||
top: 0.0rem;
|
||||
height: 1.6rem;
|
||||
width: 1.6rem;
|
||||
border-radius: 50%;
|
||||
background-color: WHITESMOKE;
|
||||
line-height: 1.4rem;
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
.issue-qr-code {
|
||||
position: absolute;
|
||||
left:0rem;
|
||||
top: 0rem;
|
||||
width: 2.2rem;
|
||||
height: 2.2rem;
|
||||
background-image: url(https://chart.googleapis.com/chart?cht=qr&chs=256x256&chld=L|1&chl=blog.qoomon.com);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
.issue-attachment {
|
||||
position: absolute;
|
||||
left:2.5rem;
|
||||
top: 0rem;
|
||||
width: 2.0rem;
|
||||
height: 2.0rem;
|
||||
border-radius: 50%;
|
||||
background-color: LIGHTSKYBLUE;
|
||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Attachment.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 70%;
|
||||
}
|
||||
.issue-assignee {
|
||||
position: absolute;
|
||||
top:0rem;
|
||||
right:0rem;
|
||||
width: 2.2rem;
|
||||
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-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
//-webkit-filter: contrast(200%) grayscale(100%);
|
||||
//filter: contrast(200%) grayscale(100%);
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.9rem;
|
||||
}
|
||||
.issue-epic-box {
|
||||
position: absolute;
|
||||
right:2.5rem;
|
||||
top: 0rem;
|
||||
width: auto;
|
||||
min-width: 2rem;
|
||||
width: auto;
|
||||
max-width: calc(100% - 7.5rem);
|
||||
height: auto;
|
||||
max-height: 2.2rem;
|
||||
padding-top: 0.1rem;
|
||||
padding-bottom: 0.2rem;
|
||||
padding-left: 0.3rem;
|
||||
padding-right: 0.3rem;
|
||||
text-align: left;
|
||||
font-size: 0.5rem;
|
||||
line-height: 0.55rem;
|
||||
}
|
||||
.issue-epic-id {
|
||||
font-size: 0.5rem;
|
||||
font-weight: bold;
|
||||
max-width: 1rem;
|
||||
}
|
||||
.issue-epic-name {
|
||||
margin-left: 0.1rem;
|
||||
font-size: 0.6rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
.issue-due-date-box {
|
||||
position: absolute;
|
||||
right: 0rem;
|
||||
top: 0rem;
|
||||
overflow: visible !important;
|
||||
}
|
||||
.issue-due-date {
|
||||
position: absolute;
|
||||
top: 1.3rem;
|
||||
right: 1rem;
|
||||
width: 5.3rem;
|
||||
min-width: 2.8rem;
|
||||
height: 1.3rem;
|
||||
padding-left: 0.2rem;
|
||||
padding-right: 1.4rem;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 0.7rem;
|
||||
line-height: 1.0rem;
|
||||
}
|
||||
.issue-due-icon {
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
right: 0rem;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
border-radius: 50%;
|
||||
background-color: ORCHID;
|
||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/AlarmClock.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 65%;
|
||||
}
|
||||
|
||||
@media print {
|
||||
@page {
|
||||
margin: 0.0mm;
|
||||
padding: 0.0mm;
|
||||
}
|
||||
html {
|
||||
-webkit-print-color-adjust:exact;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
.card {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
}
|
||||
31
card.html
Normal file
31
card.html
Normal file
@ -0,0 +1,31 @@
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="card-body shadow">
|
||||
<div class="issue-summary"></div>
|
||||
<div class="issue-description"></div>
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<div class="issue-id badge"></div>
|
||||
<div class="issue-id-fadeout"></div>
|
||||
<div class="issue-icon badge" type="story"></div>
|
||||
<div class="issue-estimate badge"></div>
|
||||
<div class="issue-due-box">
|
||||
<div class="issue-due-date badge"></div>
|
||||
<div class="issue-due-icon badge"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="issue-qr-code badge"></div>
|
||||
<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-name"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="author">
|
||||
<span>©BengtBrodersen</span><br>
|
||||
qoomon.com
|
||||
</div>
|
||||
</div>
|
||||
107
printPreview.css
Normal file
107
printPreview.css
Normal file
@ -0,0 +1,107 @@
|
||||
#card-print-overlay {
|
||||
position: fixed;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background:rgba(0, 0, 0, 0.5);
|
||||
|
||||
box-sizing: border-box;
|
||||
word-wrap:break-word;
|
||||
z-index: 99999;
|
||||
|
||||
}
|
||||
|
||||
#card-print-dialog {
|
||||
position: relative;
|
||||
|
||||
top: 60px;
|
||||
right:0px;
|
||||
left:0px;
|
||||
|
||||
height: calc(100% - 120px);
|
||||
width: 1000px;
|
||||
margin: auto;
|
||||
|
||||
border-style: solid;
|
||||
border-color: #cccccc;
|
||||
border-width: 1px;
|
||||
-webkit-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#card-print-dialog-header {
|
||||
position: relative;
|
||||
background: #f0f0f0;
|
||||
height: 25px;
|
||||
|
||||
border-bottom: 1px solid #cccccc;
|
||||
|
||||
padding: 15px 20px 15px 20px;
|
||||
}
|
||||
|
||||
#card-print-dialog-content {
|
||||
position: relative;
|
||||
background: white;
|
||||
height: calc(100% - 106px);
|
||||
width: 100%;
|
||||
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#card-print-dialog-content-iframe {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
overflow: hidden;
|
||||
border:none;
|
||||
}
|
||||
|
||||
#card-print-dialog-footer {
|
||||
position: relative;
|
||||
background: #f0f0f0;
|
||||
border-top: 1px solid #cccccc;
|
||||
height: 30px;
|
||||
padding: 10px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
display: inline-block;
|
||||
height 30px;
|
||||
}
|
||||
|
||||
#info {
|
||||
position: relative;
|
||||
float: right;
|
||||
display: inline-block;
|
||||
height 30px;
|
||||
}
|
||||
#info-line {
|
||||
padding-left: 3rem;
|
||||
padding-right: 3rem;
|
||||
}
|
||||
|
||||
#card-print-dialog-title{
|
||||
position: relative;
|
||||
float: left;
|
||||
color: rgb(51, 51, 51);
|
||||
display: block;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 20px;
|
||||
font-weight: normal;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.cancel{
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
display: inline-block;
|
||||
padding: 5px 10px;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
29
printPreview.html
Normal file
29
printPreview.html
Normal file
@ -0,0 +1,29 @@
|
||||
<div id="card-print-overlay">
|
||||
<div id="card-print-dialog">
|
||||
<div id="card-print-dialog-header">
|
||||
<div id="card-print-dialog-title">Card Printer</div>
|
||||
<div id="info">
|
||||
<label id="info-line"><b>Jira</b> - <b>PivotalTracker</b> - <b>Trello</b> - <b>YouTrack</b></label>
|
||||
<input id="report-issue" type="button" class="aui-button" value="Report Issues" />
|
||||
<input id="about" type="button" class="aui-button" value="About" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="card-print-dialog-content">
|
||||
<iframe id="card-print-dialog-content-iframe"></iframe>
|
||||
</div>
|
||||
<div id="card-print-dialog-footer">
|
||||
<div class="buttons">
|
||||
<label style="display:none; margin-right:10px"><input id="font-scale-range" type="range" min="0.4" max="1.6" step="0.1" value="1.0" />Font Scale</label>
|
||||
<label style="margin-right:10px;"><input id="rowCount" type="text" class="text" maxlength="1" style="width: 10px;" value="2"/>Row Count</label>
|
||||
<label style="margin-right:10px;"><input id="columnCount" type="text" class="text" maxlength="1" style="width: 10px;" value="1"/>Column Count</label>
|
||||
<label style="margin-right:10px"><input id="single-card-page-checkbox" type="checkbox"/>Single Card Per Page</label>
|
||||
<label style="margin-right:10px"><input id="hide-description-checkbox" type="checkbox"/>Hide Description</label>
|
||||
<label style="margin-right:10px"><input id="hide-assignee-checkbox" type="checkbox"/>Hide Assignee</label>
|
||||
<label style="margin-right:10px"><input id="hide-due-date-checkbox" type="checkbox"/>Hide Due Date</label>
|
||||
<label style="display:none; margin-right:10px"><input id="hide-status-checkbox" type="checkbox"/>Hide Status</label>
|
||||
<input id="card-print-dialog-print" type="button" class="aui-button aui-button-primary" value="Print" />
|
||||
<a id="card-print-dialog-cancel" title="Cancel" class="cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
x
Reference in New Issue
Block a user