1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-22 23:41:29 +00:00

Fixed the class table, got rid of the need for the non-breaking spaces

This commit is contained in:
Scott Tolksdorf
2016-01-12 14:14:44 -05:00
parent a11956e860
commit 4165e805c7
3 changed files with 28 additions and 34 deletions

View File

@@ -1,13 +1,12 @@
.homebrewAdmin{ .homebrewAdmin{
table{ table{
max-height: 800px;
overflow-y : scroll; overflow-y : scroll;
max-height : 800px;
th{ th{
font-weight: 800;
padding : 10px; padding : 10px;
font-weight : 800;
} }
tr:nth-child(even){ tr:nth-child(even){
background-color : fade(@green, 10%); background-color : fade(@green, 10%);
} }
@@ -16,38 +15,30 @@
} }
td{ td{
min-width : 100px; min-width : 100px;
text-align: center;
padding : 10px; padding : 10px;
text-align : center;
&.preview{ &.preview{
position : relative; position : relative;
&:hover{ &:hover{
.content{ .content{
display : block; display : block;
} }
} }
.content{ .content{
font-family: monospace;
text-align: left;
padding : 30px;
display: none;
position : absolute; position : absolute;
display : none;
top : 100%; top : 100%;
left : 0px; left : 0px;
width : 300px;
max-height : 500px;
background-color: white;
z-index : 1000; z-index : 1000;
max-height : 500px;
width : 300px;
padding : 30px;
background-color : white;
font-family : monospace;
text-align : left;
pointer-events : none; pointer-events : none;
} }
} }
} }
} }
} }

View File

@@ -56,7 +56,7 @@ module.exports = function(classname){
var slots = 2; var slots = 2;
return "##### The " + classname + "\n" + return "##### The " + classname + "\n" +
"___\n" + "___\n" +
"| Level | Proficiency Bonus | Features | Cantrips Known | Spells Known |   1st   |   2nd   |   3 rd   |   4th   |   5th   |   6th   |   7th   |   8th   |   9th   |\n"+ "| Level | Proficiency Bonus | Features | Cantrips Known | Spells Known | 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th | 9th |\n"+
"|:---:|:---:|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n" + "|:---:|:---:|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n" +
_.map(["1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th", "13th", "14th", "15th", "16th", "17th", "18th", "19th", "20th"],function(levelName, level){ _.map(["1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th", "13th", "14th", "15th", "16th", "17th", "18th", "19th", "20th"],function(levelName, level){
var res = [ var res = [

View File

@@ -161,6 +161,9 @@
font-weight : 800; font-weight : 800;
th{ th{
padding-bottom : 0.3em; padding-bottom : 0.3em;
padding-right: 0.1em;
padding-left: 0.1em;
vertical-align: bottom;
} }
} }
tbody{ tbody{