Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #61 from irmerk/jl-issue52-parameter-condition
Browse files Browse the repository at this point in the history
refactor(FormatToolbar): remove parameter icon with css adjustments - I52
  • Loading branch information
jolanglinais authored Jun 24, 2019
2 parents 03ac8e8 + 1d06559 commit a68e855
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 56 deletions.
43 changes: 12 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@
"style-loader": "^0.23.1",
"styled-components": "^4.3.2"
}
}
}
11 changes: 0 additions & 11 deletions src/FormatToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,17 +359,6 @@ export default class FormatToolbar extends React.Component {
)
}
<VertDivider className='toolbar-4x2' />
{
this.renderMarkButton(
pIcon.type(),
pIcon.icon,
pIcon.height(),
pIcon.width(),
pIcon.padding(),
pIcon.vBox(),
'toolbar-2x0'
)
}
{
this.renderLinkButton(
lIcon.type(),
Expand Down
24 changes: 11 additions & 13 deletions src/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
auto auto auto
auto auto auto
auto auto auto
auto auto auto
auto auto
auto auto;
}
.toolbar-0x0 { grid-column-start: 1; }
Expand All @@ -21,12 +21,11 @@
.toolbar-1x2 { grid-column-start: 9; }
.toolbar-1x3 { grid-column-start: 10; }
.toolbar-4x2 { grid-column-start: 11; }
.toolbar-2x0 { grid-column-start: 12; }
.toolbar-2x1 { grid-column-start: 13; }
.toolbar-4x3 { grid-column-start: 14; }
.toolbar-2x2 { grid-column-start: 15; }
.toolbar-2x3 { grid-column-start: 16; }
.toolbar-2x4 { grid-column-start: 17; }
.toolbar-2x1 { grid-column-start: 12; }
.toolbar-4x3 { grid-column-start: 13; }
.toolbar-2x2 { grid-column-start: 14; }
.toolbar-2x3 { grid-column-start: 15; }
.toolbar-2x4 { grid-column-start: 16; }

@media (max-width: 1150px) {
.format-toolbar {
Expand All @@ -49,10 +48,9 @@
.toolbar-1x2 { grid-column-start: 1; grid-row-start: 2; }
.toolbar-1x3 { grid-column-start: 2; grid-row-start: 2; }
.toolbar-4x2 { grid-column-start: 3; grid-row-start: 2; margin: 0 5px; }
.toolbar-2x0 { grid-column-start: 4; grid-row-start: 2; }
.toolbar-2x1 { grid-column-start: 5; grid-row-start: 2; }
.toolbar-4x3 { grid-column-start: 6; grid-row-start: 2; }
.toolbar-2x2 { grid-column-start: 7; grid-row-start: 2; }
.toolbar-2x3 { grid-column-start: 8; grid-row-start: 2; }
.toolbar-2x4 { grid-column-start: 9; grid-row-start: 2; }
.toolbar-2x1 { grid-column-start: 4; grid-row-start: 2; }
.toolbar-4x3 { grid-column-start: 5; grid-row-start: 2; }
.toolbar-2x2 { grid-column-start: 6; grid-row-start: 2; }
.toolbar-2x3 { grid-column-start: 7; grid-row-start: 2; }
.toolbar-2x4 { grid-column-start: 8; grid-row-start: 2; }
}

0 comments on commit a68e855

Please sign in to comment.