Skip to content

Commit

Permalink
Block tunes margins now better works with more than 3 buttons (codex-…
Browse files Browse the repository at this point in the history
…team#643)

* Fix settings margins

* Remove "not last-of-type" option for settings buttons

* Update CHANGELOG.md
  • Loading branch information
talyguryn authored Mar 11, 2019
1 parent afa158d commit ef50f5c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
10 changes: 5 additions & 5 deletions dist/editor.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 2.11.8

- `Fix` — Block tunes margins now better works with more than 3 buttons

### 2.11.7

- `Fix` *Paste* — Fix pasting into non-initial Blocks
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/editorjs",
"version": "2.11.7",
"version": "2.11.8",
"description": "Editor.js — Native JS, based on API and Open Source",
"main": "dist/editor.js",
"types": "./types/index.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion src/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,14 @@
vertical-align: bottom;
color: var(--grayText);

&:not(:last-of-type){
&:not(:nth-child(3n+3)) {
margin-right: 5px;
}

&:nth-child(n+4) {
margin-top: 5px;
}

&:hover {
background-color: var(--bg-light);
}
Expand Down

0 comments on commit ef50f5c

Please sign in to comment.