Skip to content

Commit

Permalink
Update change log. Fix html embed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed May 11, 2016
1 parent a29ba4c commit 058b9ce
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 26 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Changelog

## 3.4.0 (release candidate)
## 3.4.0

- Upgrade Microcosm to 9.21.x
- The `<Field />` component is once again controlled. Upgrading
Microcosm addressed issues with using a controlled input inside
of this add-on.
- Fix html embed styles

### Upgrading

Expand Down
2 changes: 1 addition & 1 deletion addons/html-embed/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = React.createClass({
let javascript = `<script src="${ script }" async></script>`
let embeddable = encoding + escape(html + javascript)

return <iframe className="col-block-frame" src={ embeddable } />
return <iframe className="col-block-html-frame" src={ embeddable } />
},

render() {
Expand Down
5 changes: 5 additions & 0 deletions example/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ let blockTypes = [
component : require('../addons/medium'),
group : 'Rich Text'
},
{
id : 'embed',
label : 'Embed',
component : require('../addons/html-embed')
},
{
id : 'child-text',
label : 'Child Text',
Expand Down
1 change: 1 addition & 0 deletions example/example.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ body {
@import "../style/addons/common";
@import "../style/addons/medium";
@import "../style/addons/section";
@import "../style/addons/html-embed";
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "colonel-kurtz",
"version": "3.4.0-rc",
"version": "3.4.0",
"private": true,
"description": "A block editor",
"main": "src/Colonel.js",
Expand Down
41 changes: 18 additions & 23 deletions style/addons/html-embed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,23 @@
*/

.col-block-html {
padding-top: 8px;

.col-block-html {
background: #223;
border-radius: 3px;
border: 1px solid #222;
box-shadow: inset 0 1px 5px rgba(black, 0.4);
color: #eef;
font-family: monospace;
font-size: 14px;
height: 72px;
line-height: 1.7;
margin: 8px 0 4px;
padding: 4px 12px;
width: 100%;
word-break: break-all;
}

.col-block-frame {
border: 0;
min-height: 350px;
width: 100%;
}
background: #223;
border-radius: 3px;
border: 1px solid #222;
box-shadow: inset 0 1px 5px rgba(black, 0.4);
color: #eef;
font-family: monospace;
font-size: 14px;
height: 72px;
line-height: 1.7;
margin: 8px 0 4px;
padding: 4px 12px;
width: 100%;
word-break: break-all;
}

.col-block-html-frame {
border: 0;
min-height: 350px;
width: 100%;
}

0 comments on commit 058b9ce

Please sign in to comment.