Skip to content

Commit

Permalink
camigomezdev#8 Create color variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Gutierrez committed Oct 27, 2019
1 parent 0b69462 commit 2a09ca4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/CharacterCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
&__avatar {
margin: 0 auto;
height: 200px;
border-bottom: 5px solid red;
border-bottom: 5px solid $red;
}
&__avatar-img {
Expand Down Expand Up @@ -99,7 +99,7 @@ export default {
&__nickname-container::before {
content: "";
position: absolute;
background: red;
background: $red;
height: 100%;
transform: scaleY(0);
transform-origin: top;
Expand Down
4 changes: 2 additions & 2 deletions src/components/ComicCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ export default {
flex-wrap: wrap;
margin: 0 5px;
width: 200px;
background: black;
background: $black;
cursor: pointer;
&__avatar {
height: 200px;
overflow: hidden;
border-bottom: 5px solid red;
border-bottom: 5px solid $red;
}
&__avatar-img {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ComicsCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default {
transition: opacity 0.5s ease-in-out;
cursor: pointer;
font-size: 30px;
color: #5bf3ae;
color: $aquamarine;
&--disabled {
opacity: 0.3;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
align-items: center;
width: 100%;
height: 20vh;
background: black;
background: $black;
bottom: 0;
&__social {
Expand All @@ -38,7 +38,7 @@
font-size: 30px;
padding: 5px;
text-decoration: none;
color: white;
color: $white;
}
}
</style>
6 changes: 3 additions & 3 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
.nav {
position: relative;
width: 100%;
background: black;
background: $black;
z-index: 2;
&__items {
Expand All @@ -37,13 +37,13 @@ export default {
&__link {
font-weight: bold;
color: white;
color: $white;
padding: 0 5px;
text-transform: uppercase;
text-decoration: none;
&.router-link-exact-active {
color: #5bf3ae;
color: $aquamarine;
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/sass/_variables.scss
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// Variables
$red: #ff0000;
$white: #ffffff;
$black: #000000;
$aquamarine: #5BF3AE;

0 comments on commit 2a09ca4

Please sign in to comment.