Skip to content

Commit

Permalink
Restyle user-feedback (#1100)
Browse files Browse the repository at this point in the history
* Restyle user-feedback

* Make font size bigger and fix opacity for default user-feedback
  • Loading branch information
Jikstra committed Nov 4, 2019
1 parent 2e6f971 commit b0134fe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
39 changes: 23 additions & 16 deletions scss/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,23 +149,30 @@ code {


.user-feedback {
font-size: 20px;
position: fixed;
bottom: 0;
max-width: 80%;
margin: 12px 10px;
border-radius: 4px;
position: fixed;
bottom: 0;
text-align: center;
width: 100%;
z-index: 10;

p {
display: inline-block;
text-align: center;
color: black;
padding: 10px;
z-index: 30;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.5);
}
.user-feedback.error {
background-color: #ffffba;
}
.user-feedback.success {
background-color: #4caf50;
font-style: italic;
font-weight: bold;
padding: 7px 14px;
background-color: #696868;
border-radius: 10px;
color: white;
font-size: medium;
max-width: 90%;
}
&.error p {
background-color: #b73a3a;
}
&.success p {
background-color: #3ca26a;
}
}

.clear-button {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/ScreenController.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class ScreenController extends React.Component {
{this.state.message && (
<div onClick={this.userFeedbackClick}
className={classNames}>
{this.state.message.text}
<p>{this.state.message.text}</p>
</div>
)}
<ScreenContext.Provider value={{
Expand Down

0 comments on commit b0134fe

Please sign in to comment.