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:
@@ -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(){
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
@import (less) './shared/homebrewery/phb_style/phb.style.less';
|
||||
@import (less) './shared/homebrewery/phb_style/phb.less';
|
||||
.pane{
|
||||
position : relative;
|
||||
}
|
||||
|
||||
6
shared/homebrewery/phb_style/phb.colors.less
Normal file
6
shared/homebrewery/phb_style/phb.colors.less
Normal file
@@ -0,0 +1,6 @@
|
||||
@background : #EEE5CE;
|
||||
@noteGreen : #e0e5c1;
|
||||
@headerUnderline : #c9ad6a;
|
||||
@horizontalRule : #9c2b1b;
|
||||
@headerText : #58180D;
|
||||
@monsterStatBackground : #FDF1DC;
|
||||
@@ -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
|
||||
// *****************************/
|
||||
Reference in New Issue
Block a user