Skip to content

Commit

Permalink
adjustment colors with variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Jun 15, 2024
1 parent 69e3c11 commit db723fc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.app {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
color: #2c3e50;
color: var(--main-color);
font-family: 'Avenir', Helvetica, Arial, sans-serif;
text-align: center;
min-height: calc(100vh - 40px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
&:hover {
color: #fff;
background: #fff;
border: 2px solid #2c3e50;
border: 2px solid var(--main-color);
box-shadow: 0 1px 0 rgba(255, 255, 255, 1), 0 2px 5px rgba(0, 0, 0, 0.2);
transform: scale(1.2);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
padding: 1rem 1.5rem 1rem 1rem;
margin: 0.5rem;
border: 2px solid #eee;
color: #2c3e50;
color: var(--main-color);
border-radius: 10px;
text-decoration: none;
width: 100%;
Expand All @@ -32,19 +32,19 @@

&.active {
background: #fff;
border: 2px solid #dd0031;
color: #dd0031;
border: 2px solid var(--primary);
color: var(--primary);

svg {
fill: #dd0031;
fill: var(--primary);
}
}

svg {
width: 25px;
margin-right: 0.5rem;
outline: none;
fill: #2c3e50;
fill: var(--main-color);
}
}
}
4 changes: 2 additions & 2 deletions src/app/views/home/home.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ h3 {

.slide-title {
padding: 2rem 0;
color: #dd0031;
color: var(--primary);
font-size: 2em;

@include mobile {
font-size: 1em;
}

svg {
fill: #dd0031;
fill: var(--primary);
}
}

Expand Down
12 changes: 9 additions & 3 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
src: url("assets/webfonts/fa-solid-900.woff2") format("woff2"), url("assets/webfonts/fa-solid-900.ttf") format("truetype");
}

:root {
--primary: #dd0031;
--secondary: #8750c3;
--main-color: #2c3e50;
}

html {
background: var(--primary);
background: var(--main-color);
}

body {
Expand All @@ -24,8 +30,8 @@ body {
content: "";
display: flex;
height: 20px;
background: #dd0031;
background: linear-gradient(90deg, rgba(221,0,49,1) 0%, rgba(135,80,195,1) 100%);
background: var(--primary);
background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
box-shadow: 0 0 0 1px #fff, 0 0 20px rgba(0,0,0,.4);
}
}
Expand Down

0 comments on commit db723fc

Please sign in to comment.