Skip to content

Commit

Permalink
WIP style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Jan 3, 2023
1 parent 07bef69 commit d094645
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchBlock/BlockContainer/BlockContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function BlockContainer(props) {
blocksConfig={blocksConfig}
/>
) : (
<div>
<div className="block-wrapper">
<NewBlockAddButton block={block} onMutateBlock={onChangeSlotfill} />
</div>
);
Expand Down
1 change: 1 addition & 0 deletions src/SearchBlock/BlockContainer/NewBlockAddButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const NewBlockAddButton = (props) => {
<Button
basic
icon
title="Add block"
onClick={() => setOpenMenu(true)}
className="add-block-button"
aria-label={`Add block in position ${block}`}
Expand Down
19 changes: 19 additions & 0 deletions src/SearchBlock/edit.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
position: relative;

.ui.tabular.menu {
border: none;

.item {
border: none;
}

.ui.basic.button {
border: 0px;

Expand All @@ -21,9 +27,22 @@

&:hover {
box-shadow: none;
background-color: transparent !important;
}
}
}

.block-wrapper {
display: flex;
align-items: center;
justify-content: center;
}

.ui.basic.button.add-block-button {
&:hover {
box-shadow: none !important;
}
}
}

.searchlib-edit-overlay {
Expand Down

0 comments on commit d094645

Please sign in to comment.