Skip to content

Commit

Permalink
UI Tweaks to buttons and labels
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Dec 3, 2020
1 parent fc711df commit 9e942bb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
12 changes: 6 additions & 6 deletions components/Button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ button.Button {

.Button {
color: $color-white;
font-size: 1.5rem;
line-height: 1.8rem;
font-size: 1.3rem;
line-height: 1.5rem;
margin: 0 auto;
text-align: center;
padding: 1.3rem 1.8rem;
padding: 1rem 1.3rem;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
Expand All @@ -48,7 +48,7 @@ button.Button {
position: relative;
background-size: 100%;
transition: all $transition-speed ease-in;
border: 1px solid $color-background;
border: none;

&:focus,
&:hover {
Expand All @@ -65,10 +65,10 @@ button.Button {
}

&--secondary {
background-color: $color-background;
background-color: $color-light-gray;

@media (prefers-color-scheme: dark) {
background-color: $color-text;
background-color: $color-text-gray;
}

&:focus,
Expand Down
1 change: 1 addition & 0 deletions components/Layout/Footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
text-align: left;
line-height: 1.4em;
font-size: 0.9em;
text-align: center;

@media #{$bigger-screen} {
margin: 1em;
Expand Down
2 changes: 2 additions & 0 deletions components/Panels/Budgets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const Container = styled.section`
flex-direction: column;
flex: 1;
margin: 0 10px;
max-height: 80vh;
overflow: auto;
`;

const AddButton = styled(Button)`
Expand Down
2 changes: 2 additions & 0 deletions components/Panels/Expenses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const Container = styled.section`
display: flex;
flex-direction: column;
flex: 1;
max-height: 80vh;
overflow: auto;
`;

const FiltersContainer = styled.section`
Expand Down
6 changes: 5 additions & 1 deletion components/TextInput/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ $transition-speed: 140ms;
text-transform: uppercase;
font-weight: 500;
display: block;
font-size: 0.9rem;
font-size: 1.3rem;

@media (prefers-color-scheme: dark) {
color: $color-link-hover;
}
}

&__input {
Expand Down
1 change: 1 addition & 0 deletions styles/__variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ $color-text: #222;
$color-text-button: #222;
$color-text-gray: #333;
$color-white: #fff;
$color-light-gray: #999;

$color-link: #222;
$color-link-hover: #555;
Expand Down

0 comments on commit 9e942bb

Please sign in to comment.