Skip to content

Commit

Permalink
buttons: change styling to match design
Browse files Browse the repository at this point in the history
- Global roundness (radius: 100px).
- Color palette ($primary, $secondary).
- Text transform: uppercase.

Closes: #17
  • Loading branch information
samanera committed Nov 2, 2023
1 parent de96f70 commit 9d8b866
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
19 changes: 15 additions & 4 deletions app/packs/stylesheets/okbr/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,26 @@ body {
text-align: left;
}

.button {
text-transform: uppercase;
}

.button--sc {
background-color: $color-pink;
color: black;
border-radius: 100px;
padding: .5rem 1rem;
font-weight: 900;
font-size: 22px;
}

.button--shadow{
$shadows: (
primary: shade($color-primary, 50%),
secondary: shade($color-purple, 50%),
);

@include modifiers(background-color, $shadows){
color: $white;
}
}

.floating-helper__content {
border-top: none;
}
7 changes: 7 additions & 0 deletions app/packs/stylesheets/okbr/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ $color-gray: #ececec;

$color-primary: $color-pink;
$anchor-color: $color-purple;

$button-padding: .5rem 1rem;
$button-background: $color-pink;
$button-background-hover: scale-color($button-background, $lightness: -15%);
$button-color: $black;
$button-color-alt: $white;
$button-radius: 100px;

0 comments on commit 9d8b866

Please sign in to comment.