0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 23:52:42 +00:00

Styling is finally split, oh boy

This commit is contained in:
Scott Tolksdorf
2017-02-23 08:32:35 -05:00
parent b20f4ffb46
commit a33b1d845d
11 changed files with 724 additions and 15 deletions

View File

@@ -107,13 +107,13 @@ const BrewRenderer = React.createClass({
},
renderDummyPage : function(index){
return <div className='phb v1' id={`p${index + 1}`} key={index}>
return <div className='phb v2' id={`p${index + 1}`} key={index}>
<i className='fa fa-spinner fa-spin' />
</div>
},
renderPage : function(pageText, index){
return <div className='phb v1' id={`p${index + 1}`} dangerouslySetInnerHTML={{__html:Markdown.render(pageText)}} key={index} />
return <div className='phb v2' id={`p${index + 1}`} dangerouslySetInnerHTML={{__html:Markdown.render(pageText)}} key={index} />
},
renderPages : function(){

View File

@@ -1,5 +1,5 @@
@import (less) './shared/homebrewery/phb_style/phb.style.less';
@import (less) './shared/homebrewery/phb_style/phb.less';
.pane{
position : relative;
}

View File

@@ -0,0 +1,6 @@
@background : #EEE5CE;
@noteGreen : #e0e5c1;
@headerUnderline : #c9ad6a;
@horizontalRule : #9c2b1b;
@headerText : #58180D;
@monsterStatBackground : #FDF1DC;

View File

@@ -1,26 +1,17 @@
@import (less) 'shared/naturalcrit/styles/reset.less';
@import (less) './phb.fonts.css';
@import (less) './phb.assets.less';
@media print {
.phb.v1{
.phb.v2{
.descriptive, blockquote{
box-shadow : none;
}
}
}
.phb.v1{
.phb.v2{
@import (less) './phb.fonts.css';
@import './phb.colors.less';
@import (less) './phb.img.less';
//Colors
@background : #EEE5CE;
@noteGreen : #e0e5c1;
@headerUnderline : #c9ad6a;
@horizontalRule : #9c2b1b;
@headerText : #58180D;
@monsterStatBackground : #FDF1DC;
@page { margin: 0; }
@@ -69,7 +60,8 @@
text-rendering : optimizeLegibility;
page-break-before : always;
page-break-after : always;
color : red;
//*****************************
// * BASE
// *****************************/