Skip to content

Commit

Permalink
Improve Facebook SCSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyTolene committed Nov 28, 2024
1 parent 7f7c48f commit dd2d306
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "red-portals",
"version": "1.7.0",
"version": "1.8.0",
"license": "MIT",
"scripts": {
"build": "npx eleventy",
Expand Down
28 changes: 15 additions & 13 deletions src/facebook.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
// Colors
$color-background: #f2f4f7;
$color-black-light: #111111;
$color-gray: #999;
$color-blue-background: #1877f2;
$color-blue-hover: #166fe5;
$color-blue: #304cb2;
$color-gray-light: #cccccc;
$color-gray-lighter: #dddddd;
$color-gray: #999999;
$color-notice-background: #fff9d7;
$color-notice-border: #e2c822;
$color-shadow: rgba(0, 0, 0, 0.1);
$color-white: #ffffff;
$color-blue-darker: #143f85;
$color-blue-dark: #1a4a8f;
$color-blue: #304cb2;

body {
align-items: center;
background-color: #f2f4f7;
background-color: $color-background;
color: $color-black-light;
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -40,10 +43,9 @@ main {
border-radius: 0.5rem;
padding: 1rem;
width: 320px;

box-shadow:
0px 2px 4px rgba(0, 0, 0, 0.1),
0px 8px 16px rgba(0, 0, 0, 0.1);
0px 2px 4px $color-shadow,
0px 8px 16px $color-shadow;
width: 400px;

@media (max-width: 768px) {
Expand All @@ -61,8 +63,8 @@ main {
}

div.notice {
background-color: #fff9d7;
border: 1px solid #e2c822;
background-color: $color-notice-background;
border: 1px solid $color-notice-border;
font-size: 0.75rem;
padding: 0.75rem 1rem;
text-align: center;
Expand All @@ -82,7 +84,7 @@ main {
}

button {
background: #1877f2;
background: $color-blue-background;
border-radius: 0.5rem;
border: none;
color: $color-white;
Expand All @@ -93,7 +95,7 @@ main {
width: 100%;

&:hover {
background: #166fe5;
background: $color-blue-hover;
}
}

Expand Down

0 comments on commit dd2d306

Please sign in to comment.