Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfr <johan.ronsse@gmail.com>

# Conflicts:
#	package.json
  • Loading branch information
Wolfr committed Feb 7, 2019
2 parents fc694e5 + 165c700 commit 9a0d706
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
6 changes: 6 additions & 0 deletions content/templates/_components/c-example/03-with-source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Example (2)
source: Unofficial
---

Example of a component with a named source.
2 changes: 2 additions & 0 deletions content/templates/_components/c-example/03-with-source.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.example
p This is an example component with a named source.
16 changes: 15 additions & 1 deletion core/scss/prototype.scss
Original file line number Diff line number Diff line change
Expand Up @@ -521,4 +521,18 @@ $br-bordered-list-title-font-size: 1.5rem*$br-rem-multiplier !defa
background-color: #FFF;
}
}
}
}

/* Category
========================================================================== */

.br-sample-category {
background: #EEE;
display: inline-block;
border-radius: 12px;
padding: 0.2rem 0.8rem;
font-size: 90%;
margin: 0 0 0 1rem;
position: relative;
top: 0.7rem;
}
2 changes: 2 additions & 0 deletions core/templates/mixins/sample.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ mixin sample(component)
.br-sample-header.br-sample-clearfix
if component.docs
h3.br-sample-heading(class=styleguideSampleHeadingClass)= component.docs.attributes.title || component.name
if component.docs.attributes.source
p.br-sample-category=component.docs.attributes.source
else
h3.br-sample-heading(class=styleguideSampleHeadingClass)= component.name
a.br-sample-header-link(href="#component-"+component.name) #
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bedrock",
"version": "1.13",
"version": "1.13.0",
"description": "Static site generator to easily make HTML prototypes",
"main": "gulpfile.js",
"scripts": {
Expand Down Expand Up @@ -70,5 +70,6 @@
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0",
"watchify": "^3.6.0"
}
},
"dependencies": {}
}

0 comments on commit 9a0d706

Please sign in to comment.