Skip to content

Commit

Permalink
Fix exercise side styling
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjnaT41756 committed Oct 31, 2023
1 parent cadeef8 commit e660b85
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/shared/ExerciseSide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function ExerciseSide({ incrementExercise }: ExerciseSideProps): JSX.Element {
);
} else if (exercises[completeExercises] === 'unitcircle') {
curExercise = (
<div className="exercise-box">
<div>
<div>
<UnitCircleExercise
turtleAngle={1}
Expand Down
22 changes: 8 additions & 14 deletions src/styles/Exercises/UnitCircleExercise.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
.circle-container {
// display: flex;
// flex-direction: row;
// justify-content: center;
// margin: 25% 10% 15%;
// position: relative;
// width: calc(550px + 1vw);
align-items: center;
align-self: center;
display: flex;
flex-direction: row;
height: calc(150px + 1vw);
justify-content: center;
margin: 2%;
max-width: 100%;
width: 50%;
//margin: 25% 10% 15%;
//width: calc(550px + 1vw);
margin-bottom: 5%;
margin-left: 30%;
position: relative;
width: 400px;
}

.circle {
Expand All @@ -30,15 +24,15 @@

.circle-exercise {
font-family: Quattrocento Sans, sans-serif;
font-size: 4.5vh;
font-size: 2vh;
font-style: italic;
font-weight: bold;
position: absolute;
}

.circle-label {
font-family: Cascadia Code, sans-serif;
font-size: 4.5vh;
font-size: 2vh;
font-weight: regular;
position: absolute;
}
Expand Down
5 changes: 4 additions & 1 deletion src/styles/Exercises/UnitCircleInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@
flex-direction: column;
margin-bottom: -15px;
margin-top: -15px;
padding-left: 20%;
padding-left: 8%;
}

#unitcircle-check-question {
@include font-styles();
font-size: calc(13px + 1vw);
font-style: normal;
margin-bottom: 2vh;
margin-left: auto;
margin-right: auto;
}

.unitcircle-check-box {
Expand Down

0 comments on commit e660b85

Please sign in to comment.