Skip to content

Commit

Permalink
further styling on showcase page
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Mar 7, 2024
1 parent 4919682 commit 43627e9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
6 changes: 5 additions & 1 deletion js/src/forum/components/PollShowcaseItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export default class PollShowcaseItem extends Component<PollShowcaseItemAttrs> {
}

view() {
return <PollView poll={this.poll} />;
return (
<div className="PollShowcase--item">
<PollView poll={this.poll} />
</div>
);
}
}
23 changes: 22 additions & 1 deletion resources/less/forum.less
Original file line number Diff line number Diff line change
Expand Up @@ -725,4 +725,25 @@
margin: 15px 0 0;
}
}
}
}

.PollShowcase {
&--item {
background-color: @control-bg;
border-radius: @border-radius;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 10px;
margin-bottom: 20px;

.Poll {
padding: 20px;
border-radius: @border-radius;
background-color: @body-bg;

.Poll-header {
background-color: @header-bg;
color: @header-color;
}
}
}
}

0 comments on commit 43627e9

Please sign in to comment.