Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created css for third-caster table with snippet #1079

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions client/homebrew/editor/snippetbar/snippets/snippets.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,38 @@ module.exports = [
icon : 'fa-list-alt',
gen : ClassTableGen.half,
},
{
name : 'Third-Caster Spells Table',
icon : 'fa-table',
gen : function() {
return [
'<div class=\'arch-table\'>',
'##### Third-Caster Spellcasting',
'###### —Spell Slots per Spell Level—',
'| Class<br>Level | Cantrips<br>Known | Spells<br>Known | 1st | 2nd | 3rd | 4th |',
'|:---:|:-:|:-:|:-:|:-:|:-:|:-:|',
'| 3rd | 2 | 3 | 2 | — | — | — |',
'| 4th | 2 | 4 | 3 | — | — | — |',
'| 5th | 2 | 4 | 3 | — | — | — |',
'| 6th | 2 | 4 | 3 | — | — | — |',
'| 7th | 2 | 5 | 4 | 2 | — | — |',
'| 8th | 2 | 6 | 4 | 2 | — | — |',
'| 9th | 2 | 6 | 4 | 2 | — | — |',
'|10th | 3 | 7 | 4 | 3 | — | — |',
'|11th | 3 | 8 | 4 | 3 | — | — |',
'|12th | 3 | 8 | 4 | 3 | — | — |',
'|13th | 3 | 9 | 4 | 3 | 2 | — |',
'|14th | 3 |10 | 4 | 3 | 2 | — |',
'|15th | 3 |10 | 4 | 3 | 2 | — |',
'|16th | 3 |11 | 4 | 3 | 3 | — |',
'|17th | 3 |11 | 4 | 3 | 3 | — |',
'|18th | 3 |11 | 4 | 3 | 3 | — |',
'|19th | 3 |12 | 4 | 3 | 3 | 1 |',
'|20th | 3 |13 | 4 | 3 | 3 | 1 |',
'</div>',
].join('\n');
},
},
{
name : 'Table',
icon : 'fa-th-list',
Expand Down
41 changes: 41 additions & 0 deletions client/homebrew/phbStyle/phb.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,47 @@ body {
margin-bottom : 10px;
}
}
//*****************************
// * ARCHETYPE CLASS TABLE
// *****************************/
.phb .arch-table{
table {
margin-top: 8px;
}
td:nth-child(1) {
width: 60px
}
td:nth-child(2) {
width: 60px
}
td:nth-child(3) {
width: 60px
}
td:nth-child(4) {
width: 36px
}
td:nth-child(5) {
width: 36px
}
td:nth-child(6) {
width: 36px
}
td:nth-child(7) {
width: 36px
}
table thead th {
font-size: 95%;
}
h6 {
font-family:'ScalySans';
font-size: 95%;
font-weight: bold;
line-height: 1.3em;
margin-bottom: -25px;
padding-bottom: .8em;
text-align: right;
};
}
//************************************
// * DESCRIPTIVE TEXT BOX
// ************************************/
Expand Down