Skip to content

Commit

Permalink
Merge pull request #215 from Andres2D/css-variables
Browse files Browse the repository at this point in the history
Css variables
  • Loading branch information
Andres2D authored Feb 21, 2023
2 parents c546293 + 7a5aeb1 commit f947dcf
Show file tree
Hide file tree
Showing 39 changed files with 158 additions and 132 deletions.
5 changes: 3 additions & 2 deletions components/auth/login-form.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../styles/breakpoints';
@import '../../styles/sizes';

.form {
display: flex;
Expand Down Expand Up @@ -32,12 +33,12 @@
.form {
.control {
.input {
width: 90%;
width: $content;
}
}

.actions {
width: 90%;
width: $content;
justify-content: space-between;

.login {
Expand Down
24 changes: 10 additions & 14 deletions components/layout/navbar.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '../../styles/colors';

.navbarSpacing {
height: 80px;
}
Expand All @@ -8,30 +10,24 @@
justify-content: space-between;
}

.avatar {
box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
.avatar,
.avatarMenu {
box-shadow: $dark-shadow 0px 10px 20px, $dark-shadow 0px 6px 6px;
cursor: pointer;
}

.avatarMenu {
margin-top: 20px;
}

.headerMenu {
display: flex;
flex-direction: column;
align-items: center;
color: #333;
}

.avatarMenu {
margin-top: 2rem;
box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
cursor: pointer;
}

.username {
padding-top: 16px ;
}

.dark {
color: #333;
padding-top: 16px;
}

.columnMenu {
Expand Down
4 changes: 2 additions & 2 deletions components/layout/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Navbar: NextPage = () => {
>
<DrawerOverlay />
<DrawerContent>
<DrawerCloseButton className={styles.dark} />
<DrawerCloseButton />
<DrawerHeader className={styles.headerMenu}>
<Avatar
className={styles.avatarMenu}
Expand Down Expand Up @@ -99,7 +99,7 @@ const Navbar: NextPage = () => {
>
Log out
</Button>
<p>Version 2.6.2</p>
<p>Version 2.6.3</p>
</DrawerFooter>
</DrawerContent>
</Drawer>
Expand Down
13 changes: 7 additions & 6 deletions components/matches/detail/avatar/avatar.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import '../../../../styles/colors';
@import '../../../../styles/breakpoints';

.container {
Expand All @@ -14,29 +15,29 @@
z-index: 2;

.avatar {
border: 2px solid white;
border: 2px solid $white;
cursor: pointer;
}

.playerName,
.playerOverall {
position: absolute;
font-weight: bold;
text-shadow: #333 -2px 0 10px;
text-shadow: $dark -2px 0 10px;
text-align: center;
word-break: break-word;
line-height: 15px;
color: #F7FAFC;
z-index: 3;
}

.playerName {
color: $white;
width: 105px;
bottom: 65px;
}

.playerOverall {
color: #FAE505;
color: $gold;
right: 55px;
width: 30px;
}
Expand All @@ -53,7 +54,7 @@
.replaceIcon {
cursor: pointer;
filter: drop-shadow(
#333 -2px 0 10px
$dark -2px 0 10px
);
margin: 2px auto;
z-index: 2;
Expand All @@ -62,7 +63,7 @@
.changeIcon {
animation: spin 2s infinite linear;
filter: drop-shadow(
#333 -2px 0 10px
$dark -2px 0 10px
);
margin: 2px auto;
z-index: 2;
Expand Down
10 changes: 6 additions & 4 deletions components/matches/detail/avatar/change-player.modal.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import '../../../../styles/breakpoints';
@import '../../../../styles/colors';
@import '../../../../styles/sizes';

.modalContent {
.container {
Expand All @@ -15,7 +17,7 @@

.playerResult {
margin: 5px;
border: 2px solid gray;
border: 2px solid $skeleton;
border-radius: 10px;
display: flex;
justify-content: space-between;
Expand All @@ -24,7 +26,7 @@

&:hover {
color: white;
background-color: gray;
background-color: $skeleton;
}
}

Expand All @@ -39,15 +41,15 @@
flex-direction: column;

.inputPlayer {
border: 2px solid gray;
border: 2px solid $skeleton;
}
}
}
}

@media (max-width: $medium-small-device) {
.modalContent {
width: 90% !important;
width: $content !important;
}
}

Expand Down
30 changes: 14 additions & 16 deletions components/matches/detail/field/field.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import '../../../../styles/breakpoints';
@import '../../../../styles/colors';
@import '../../../../styles/sizes';

.fieldGroup {
width: 550px;
Expand All @@ -9,30 +11,30 @@

.field {
border-radius: 20px;
border: 3px solid ghostwhite;
border: 3px solid $clear;
height: 400px;
background-color: #6abd67;
background-color: $field;
display: grid;
margin-top: 20px;
position: relative;
width: 90%;
width: $content;

.smallArea {
border: 4px solid ghostwhite;
border: 4px solid $clear;
border-bottom: 0;
bottom: -43px;
left: 50%;
left: $half;
transform: translate(-50%, -50%);
position: absolute;
height: 80px;
width: 30%;
}

.bigArea {
border: 4px solid ghostwhite;
border: 4px solid $clear;
border-bottom: 0;
bottom: -64px;
left: 50%;
left: $half;
transform: translate(-50%, -50%);
position: absolute;
height: 128px;
Expand All @@ -41,25 +43,25 @@

.outArea {
position: absolute;
left: 50%;
left: $half;
transform: translate(-50%, -50%);
height: 71px;
bottom: 89px;
border-radius: 150px 150px 0 0;
border: 4px solid ghostwhite;
border: 4px solid $clear;
width: 25%;
}

.middle {
position: absolute;
left: 50%;
left: $half;
top: 32px;
transform: translate(-50%, -50%);
height: 70px;
bottom: 89px;
width: 25%;
border-radius: 0 0 150px 150px;
border: 4px solid ghostwhite;
border: 4px solid $clear;
}


Expand Down Expand Up @@ -113,10 +115,6 @@
}
}

.check {
color: #F7FAFC;
}

.formations {
margin: 10px auto;
text-align: center;
Expand Down Expand Up @@ -440,7 +438,7 @@

@media (max-width: $medium-device) {
.fieldGroup {
width: 90%;
width: $content;

.field {
.smallArea {
Expand Down
2 changes: 1 addition & 1 deletion components/matches/detail/field/field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const FieldLayout: NextPage<Props> = ({team, isAway}) => {
<div className={styles.outArea} />
<div className={styles.middle} />
</section>
<Stack className={styles.check} spacing={5} direction='row'>
<Stack color='white' spacing={5} direction='row'>
<Checkbox
colorScheme='yellow'
isChecked={
Expand Down
8 changes: 3 additions & 5 deletions components/matches/detail/field/header.module.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
@import '../../../../styles/breakpoints';
@import '../../../../styles/sizes';

.header {
display: flex;
flex-direction: column;
align-items: center;
width: 50%;
width: $half;
justify-content: center;

.shield {
Expand All @@ -30,17 +31,14 @@
@media (max-width: $small-device) {
.header {
justify-content: flex-start;
width: 90%;
width: $content;
}
}

@media (max-width: $extra-small-device) {
.header {
.shield {
flex-direction: column;
// .teamDetails {

// }
}
}
}
3 changes: 2 additions & 1 deletion components/matches/detail/field/set-team.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../../../styles/breakpoints';
@import '../../../../styles/sizes';

.modal {
.shieldSelector {
Expand Down Expand Up @@ -27,6 +28,6 @@

@media (max-width: $medium-small-device) {
.modal {
width: 90% !important;
width: $content !important;
}
}
3 changes: 2 additions & 1 deletion components/matches/detail/match-detail.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../../styles/breakpoints';
@import '../../../styles/sizes';

.details {
display: flex;
Expand All @@ -10,7 +11,7 @@
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
width: 100%;
width: $full;
}

.leaveButton {
Expand Down
8 changes: 5 additions & 3 deletions components/matches/detail/ratio-stars/ratio-stars.module.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
@import '../../../../styles/colors';

.ratio {
display: flex;
justify-content: center;

.star {
height: 24px;
margin-right: 5px;
stroke: white;
stroke: $white;
width: 24px;
}

.filled {
fill: gold;
fill: $gold;
}

.notFilled {
fill: white;
fill: $white;
}
}
Loading

1 comment on commit f947dcf

@vercel
Copy link

@vercel vercel bot commented on f947dcf Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cotejoapp – ./

cotejoapp-git-main-andres2d.vercel.app
cotejoapp.vercel.app
cotejoapp-andres2d.vercel.app

Please sign in to comment.