mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-26 06:01:29 +00:00
ADding in stlying and snippet for a descriptive text box
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
# changelog
|
# changelog
|
||||||
|
|
||||||
|
### Friday, 29/07/2016
|
||||||
|
- Adding in descriptive note blocks. (Thanks calculuschild!)
|
||||||
|
|
||||||
### Thursday, 07/07/2016 - v2.2.6
|
### Thursday, 07/07/2016 - v2.2.6
|
||||||
- Added a new nav item on the homepage for accessing both recently viewed and edited brews (thanks [ChosenSeraph!](https://github.com/stolksdorf/homebrewery/issues/147))
|
- Added a new nav item on the homepage for accessing both recently viewed and edited brews (thanks [ChosenSeraph!](https://github.com/stolksdorf/homebrewery/issues/147))
|
||||||
|
|
||||||
|
|||||||
@@ -107,6 +107,20 @@ module.exports = [
|
|||||||
].join('\n');
|
].join('\n');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name : 'Descriptive Text Box',
|
||||||
|
icon : 'fa-sticky-note-o',
|
||||||
|
gen : function(){
|
||||||
|
return [
|
||||||
|
"<div class='descriptive'>",
|
||||||
|
"##### Time to Drop Knowledge",
|
||||||
|
"Use notes to point out some interesting information. ",
|
||||||
|
"",
|
||||||
|
"**Tables and lists** both work within a note.",
|
||||||
|
"</div>"
|
||||||
|
].join('\n');
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name : 'Monster Stat Block',
|
name : 'Monster Stat Block',
|
||||||
icon : 'fa-bug',
|
icon : 'fa-bug',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ var Navbar = React.createClass({
|
|||||||
<Nav.item href='/' className='homebrewLogo'>
|
<Nav.item href='/' className='homebrewLogo'>
|
||||||
<div>The Homebrewery</div>
|
<div>The Homebrewery</div>
|
||||||
</Nav.item>
|
</Nav.item>
|
||||||
<Nav.item>v2.2.6</Nav.item>
|
<Nav.item>v2.2.7</Nav.item>
|
||||||
|
|
||||||
{this.renderChromeWarning()}
|
{this.renderChromeWarning()}
|
||||||
</Nav.section>
|
</Nav.section>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -12,7 +12,7 @@
|
|||||||
@monsterStatBackground : #FDF1DC;
|
@monsterStatBackground : #FDF1DC;
|
||||||
@page { margin: 0; }
|
@page { margin: 0; }
|
||||||
body {
|
body {
|
||||||
counter-reset: phb-page-numbers;
|
counter-reset : phb-page-numbers;
|
||||||
}
|
}
|
||||||
.useSansSerif(){
|
.useSansSerif(){
|
||||||
font-family : ScalySans;
|
font-family : ScalySans;
|
||||||
@@ -40,7 +40,7 @@ body {
|
|||||||
}
|
}
|
||||||
.phb{
|
.phb{
|
||||||
.useColumns();
|
.useColumns();
|
||||||
counter-increment: phb-page-numbers;
|
counter-increment : phb-page-numbers;
|
||||||
position : relative;
|
position : relative;
|
||||||
z-index : 15;
|
z-index : 15;
|
||||||
box-sizing : border-box;
|
box-sizing : border-box;
|
||||||
@@ -63,7 +63,7 @@ body {
|
|||||||
padding-bottom : 0.8em;
|
padding-bottom : 0.8em;
|
||||||
line-height : 1.3em;
|
line-height : 1.3em;
|
||||||
&+p{
|
&+p{
|
||||||
margin-top : -0.8em;
|
margin-top : -0.8em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ul{
|
ul{
|
||||||
@@ -218,12 +218,12 @@ body {
|
|||||||
border-bottom : 1px solid @headerText;
|
border-bottom : 1px solid @headerText;
|
||||||
}
|
}
|
||||||
hr+ul{
|
hr+ul{
|
||||||
color : @headerText;
|
color : @headerText;
|
||||||
}
|
}
|
||||||
ul{
|
ul{
|
||||||
.useSansSerif();
|
.useSansSerif();
|
||||||
padding-left : 1em;
|
padding-left : 1em;
|
||||||
font-size : 0.352cm;
|
font-size : 0.352cm;
|
||||||
}
|
}
|
||||||
// Monster Ability table
|
// Monster Ability table
|
||||||
hr+table{
|
hr+table{
|
||||||
@@ -261,7 +261,6 @@ body {
|
|||||||
hr+hr+blockquote{
|
hr+hr+blockquote{
|
||||||
.useColumns(0.96);
|
.useColumns(0.96);
|
||||||
}
|
}
|
||||||
|
|
||||||
//*****************************
|
//*****************************
|
||||||
// * FOOTER
|
// * FOOTER
|
||||||
// *****************************/
|
// *****************************/
|
||||||
@@ -295,10 +294,8 @@ body {
|
|||||||
font-size : 0.9em;
|
font-size : 0.9em;
|
||||||
color : #c9ad6a;
|
color : #c9ad6a;
|
||||||
text-align : center;
|
text-align : center;
|
||||||
|
|
||||||
&.auto::after {
|
&.auto::after {
|
||||||
|
content : counter(phb-page-numbers);
|
||||||
content: counter(phb-page-numbers);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.footnote{
|
.footnote{
|
||||||
@@ -324,7 +321,6 @@ body {
|
|||||||
text-indent : -1em;
|
text-indent : -1em;
|
||||||
list-style-type : none;
|
list-style-type : none;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Column Break
|
//Column Break
|
||||||
pre, code{
|
pre, code{
|
||||||
visibility : hidden;
|
visibility : hidden;
|
||||||
@@ -386,8 +382,6 @@ body {
|
|||||||
box-shadow : none;
|
box-shadow : none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//*****************************
|
//*****************************
|
||||||
// * WIDE
|
// * WIDE
|
||||||
// *****************************/
|
// *****************************/
|
||||||
@@ -396,14 +390,11 @@ body {
|
|||||||
-webkit-column-span : all;
|
-webkit-column-span : all;
|
||||||
-moz-column-span : all;
|
-moz-column-span : all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//*****************************
|
//*****************************
|
||||||
// * CLASS TABLE
|
// * CLASS TABLE
|
||||||
// *****************************/
|
// *****************************/
|
||||||
|
|
||||||
.phb .classTable{
|
.phb .classTable{
|
||||||
margin-top : 25px;
|
margin-top : 25px;
|
||||||
margin-bottom : 40px;
|
margin-bottom : 40px;
|
||||||
border-collapse : separate;
|
border-collapse : separate;
|
||||||
background-color : white;
|
background-color : white;
|
||||||
@@ -415,6 +406,40 @@ body {
|
|||||||
border-image-source : @frameBorderImage;
|
border-image-source : @frameBorderImage;
|
||||||
border-image-width : 47px;
|
border-image-width : 47px;
|
||||||
h5{
|
h5{
|
||||||
margin-bottom: 10px;
|
margin-bottom : 10px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
//*****************************
|
||||||
|
// * CLASS TABLE
|
||||||
|
// *****************************/
|
||||||
|
.phb .descriptive{
|
||||||
|
display : block-inline;
|
||||||
|
margin-bottom : 1em;
|
||||||
|
background-color : #faf7ea;
|
||||||
|
font-family : ScalySans;
|
||||||
|
border-style : solid;
|
||||||
|
border-width : 7px;
|
||||||
|
border-image : @descriptiveBoxImage 12 round;
|
||||||
|
border-image-outset : 4px;
|
||||||
|
box-shadow : 0px 0px 6px #faf7ea;
|
||||||
|
p{
|
||||||
|
display : block;
|
||||||
|
padding-bottom : 0px;
|
||||||
|
line-height : 1.5em;
|
||||||
|
}
|
||||||
|
p + p {
|
||||||
|
padding-top : .8em;
|
||||||
|
}
|
||||||
|
em {
|
||||||
|
font-family : ScalySans;
|
||||||
|
font-style : italic;
|
||||||
|
}
|
||||||
|
strong {
|
||||||
|
font-family : ScalySans;
|
||||||
|
font-weight : 800;
|
||||||
|
letter-spacing : -0.02em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.phb pre+.descriptive{
|
||||||
|
margin-top : 8px;
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "homebrewery",
|
"name": "homebrewery",
|
||||||
"description": "Create authentic looking D&D homebrews using only markdown",
|
"description": "Create authentic looking D&D homebrews using only markdown",
|
||||||
"version": "2.2.6",
|
"version": "2.2.7",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "gulp prod",
|
"postinstall": "gulp prod",
|
||||||
"start": "node server.js"
|
"start": "node server.js"
|
||||||
|
|||||||
@@ -589,3 +589,34 @@ body {
|
|||||||
.phb .classTable h5 {
|
.phb .classTable h5 {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
.phb .descriptive {
|
||||||
|
display: block-inline;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
background-color: #faf7ea;
|
||||||
|
font-family: ScalySans;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 7px;
|
||||||
|
border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAA8CAMAAADG+c2+AAAAM1BMVEUAAAAAAAAAAAAkAAA1GwA0GgA5GgA5GwA4HgA7HgA5HgA7HgA7HwA7HgA8HgA7HgA8HwDn6RpAAAAAEHRSTlMAAQcHMDExQ1ZW1dXY3t7+02zZCAAAAKNJREFUWMPt2LEOwyAMBNCkSXGpKfb/f20G3AGUiWOJdNlueYrt6di2J3xHrmZF9mVCdnd3T/NgCO+ItUWdB0P4RrQWfR4chOVggUcu/cgCH0X6o+ynuivg3QjIAm8FggQJEiRIkCBBggQJEoTApO56An15EFIrVgJ4vaAtlnlwEKKbGrLATlgOxg9XeORfv9IMH+Xzb7tSzGo+gL7chNcjXpUulIwXVrjWS+0AAAAASUVORK5CYII=") 12 round;
|
||||||
|
border-image-outset: 4px;
|
||||||
|
box-shadow: 0px 0px 6px #faf7ea;
|
||||||
|
}
|
||||||
|
.phb .descriptive p {
|
||||||
|
display: block;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
.phb .descriptive p + p {
|
||||||
|
padding-top: .8em;
|
||||||
|
}
|
||||||
|
.phb .descriptive em {
|
||||||
|
font-family: ScalySans;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.phb .descriptive strong {
|
||||||
|
font-family: ScalySans;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
}
|
||||||
|
.phb pre + .descriptive {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user