mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-24 06:41:30 +00:00
Converted the monster block to use border iamges
This commit is contained in:
@@ -39,8 +39,6 @@
|
|||||||
padding : 10px;
|
padding : 10px;
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
font-size : 13px;
|
font-size : 13px;
|
||||||
//font-weight: 800;
|
|
||||||
//text-transform: uppercase;
|
|
||||||
i{
|
i{
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,13 +24,13 @@ module.exports = function(classname){
|
|||||||
"",
|
"",
|
||||||
"#### Proficiencies",
|
"#### Proficiencies",
|
||||||
"___",
|
"___",
|
||||||
"- **Armor:** " + (_.sample(["Light armor", "Medium armor", "Heavy armor", "Shields"], _.random(0,3)).join(', ') || "None"),
|
"- **Armor:** " + (_.sampleSize(["Light armor", "Medium armor", "Heavy armor", "Shields"], _.random(0,3)).join(', ') || "None"),
|
||||||
"- **Weapons:** " + (_.sample(["Squeegee", "Rubber Chicken", "Simple weapons", "Martial weapons"], _.random(0,2)).join(', ') || "None"),
|
"- **Weapons:** " + (_.sampleSize(["Squeegee", "Rubber Chicken", "Simple weapons", "Martial weapons"], _.random(0,2)).join(', ') || "None"),
|
||||||
"- **Tools:** " + (_.sample(["Artian's tools", "one musical instrument", "Thieve's tools"], _.random(0,2)).join(', ') || "None"),
|
"- **Tools:** " + (_.sampleSize(["Artian's tools", "one musical instrument", "Thieve's tools"], _.random(0,2)).join(', ') || "None"),
|
||||||
"",
|
"",
|
||||||
"___",
|
"___",
|
||||||
"- **Saving Throws:** " + (_.sample(abilityList, 2).join(', ')),
|
"- **Saving Throws:** " + (_.sampleSize(abilityList, 2).join(', ')),
|
||||||
"- **Skills:** Choose two from " + (_.sample(skillList, _.random(4, 6)).join(', ')),
|
"- **Skills:** Choose two from " + (_.sampleSize(skillList, _.random(4, 6)).join(', ')),
|
||||||
"",
|
"",
|
||||||
"#### Equipment",
|
"#### Equipment",
|
||||||
"You start with the following equipment, in addition to the equipment granted by your background:",
|
"You start with the following equipment, in addition to the equipment granted by your background:",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
var _ = require('lodash');
|
var _ = require('lodash');
|
||||||
|
|
||||||
var genList = function(list, max){
|
var genList = function(list, max){
|
||||||
return _.sample(list, _.random(0,max)).join(', ') || "None";
|
return _.sampleSize(list, _.random(0,max)).join(', ') || "None";
|
||||||
}
|
}
|
||||||
|
|
||||||
var getMonsterName = function(){
|
var getMonsterName = function(){
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ var cx = require('classnames');
|
|||||||
|
|
||||||
var CreateRouter = require('pico-router').createRouter;
|
var CreateRouter = require('pico-router').createRouter;
|
||||||
|
|
||||||
var HomePage = require('./pages/homePage/homePage.jsx');
|
var MainPage = require('./pages/mainPage/mainPage.jsx');
|
||||||
var EditPage = require('./pages/editPage/editPage.jsx');
|
var EditPage = require('./pages/editPage/editPage.jsx');
|
||||||
var SharePage = require('./pages/sharePage/sharePage.jsx');
|
var SharePage = require('./pages/sharePage/sharePage.jsx');
|
||||||
var NewPage = require('./pages/newPage/newPage.jsx');
|
var NewPage = require('./pages/newPage/newPage.jsx');
|
||||||
@@ -41,7 +41,7 @@ var Homebrew = React.createClass({
|
|||||||
'/homebrew/new' : (args) => {
|
'/homebrew/new' : (args) => {
|
||||||
return <NewPage />
|
return <NewPage />
|
||||||
},
|
},
|
||||||
'/homebrew*' : <HomePage welcomeText={this.props.welcomeText} />,
|
'/homebrew*' : <MainPage welcomeText={this.props.welcomeText} />,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
render : function(){
|
render : function(){
|
||||||
|
|||||||
BIN
client/homebrew/phbStyle/border.png
Normal file
BIN
client/homebrew/phbStyle/border.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 327 B |
File diff suppressed because one or more lines are too long
@@ -186,8 +186,11 @@
|
|||||||
hr+blockquote{
|
hr+blockquote{
|
||||||
position : relative;
|
position : relative;
|
||||||
background-color : @monsterStatBackground;
|
background-color : @monsterStatBackground;
|
||||||
border : none;
|
//border : none;
|
||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
|
|
||||||
|
border-image : @monsterBorderImage 10;
|
||||||
|
border-width : 10px;
|
||||||
h2{
|
h2{
|
||||||
margin-top: -8px;
|
margin-top: -8px;
|
||||||
margin-bottom : 0px;
|
margin-bottom : 0px;
|
||||||
@@ -231,27 +234,15 @@
|
|||||||
}
|
}
|
||||||
//Triangle dividers
|
//Triangle dividers
|
||||||
hr{
|
hr{
|
||||||
@height : 3px;
|
visibility: visible;
|
||||||
position : relative;
|
border: none;
|
||||||
visibility : visible;
|
height: 6px;
|
||||||
margin : 8px 0px;
|
margin: 4px 0px;
|
||||||
border-color : transparent;
|
background-image: @redTriangleImage;
|
||||||
&:after, &:before{
|
background-size: 100% 100%;
|
||||||
content : "";
|
|
||||||
position : absolute;
|
|
||||||
left : 0px;
|
|
||||||
height : @height;
|
|
||||||
width : 100%;
|
|
||||||
}
|
|
||||||
&:before{
|
|
||||||
top : -@height;
|
|
||||||
background : linear-gradient(to right top, @horizontalRule 40%, transparent 50%)
|
|
||||||
}
|
|
||||||
&:after{
|
|
||||||
top : 0px;
|
|
||||||
background : linear-gradient(to right bottom, @horizontalRule 40%, transparent 50%)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
//Top and Bottom Borders
|
//Top and Bottom Borders
|
||||||
&:after, &:before{
|
&:after, &:before{
|
||||||
content : "";
|
content : "";
|
||||||
@@ -270,6 +261,7 @@
|
|||||||
bottom : 0px;
|
bottom : 0px;
|
||||||
left : -3px;
|
left : -3px;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
//Full Width
|
//Full Width
|
||||||
hr+hr+blockquote{
|
hr+hr+blockquote{
|
||||||
|
|||||||
BIN
client/homebrew/phbStyle/red.png
Normal file
BIN
client/homebrew/phbStyle/red.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 864 B |
Reference in New Issue
Block a user