Skip to content

Commit

Permalink
Update css for "salary"
Browse files Browse the repository at this point in the history
  • Loading branch information
teatimes committed Jul 20, 2023
1 parent 7d1f04c commit e401fbf
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
76 changes: 38 additions & 38 deletions src/summersplash2022/nyutdannet/nyutdannet.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,21 +182,32 @@ p {

.section4 {
padding-top: 10%;
height: 1200px;
min-height: 100vh;
}

.section4 p {
.section4Text,
.section44Calculator {
width: calc(50% - 2rem);
}

.section4Calculator {
position: relative;
z-index: 2;
max-width: 28rem;
}

.wrapper {
.calculatorWrapper {
width: 80%;
margin-bottom: 10%;
margin-right: 2%;
max-width: 23rem;
margin: 0 4rem;
position: relative;
z-index: 1;
}

.pinkBlobWrapper svg {
width: 100%;
height: 100%;
}

.wrapper
[class*='calculator-controls']
[class*='form-row']
Expand All @@ -205,22 +216,36 @@ p {
border: none;
}

.pinkBlobWrapper {
position: absolute;
top: -2rem;
left: 1rem;
width: 90%;
}

.pinkBlobSalarySVG {
position: relative;
z-index: 0;
bottom: 500px;
right: 100px;
}

.section4Flex {
display: flex;
flex-direction: row;
justify-content: center;
gap: 10%;
gap: 4rem;
}

.section4Text {
width: 48%;
@media (max-width: 1110px) {
.section4Flex {
flex-direction: column;
gap: 4rem;
}
.section4Text,
.section4Calculator {
width: 100%;
}

.section4Calculator {
margin: auto;
}
}

/* Section 5*/
Expand Down Expand Up @@ -373,21 +398,6 @@ p {
.section1BlobSVG {
bottom: 1000px;
}

/* Section 4 */
.section4 {
height: auto;
}

.section4 p {
font-size: 150%;
line-height: 150%;
}

.section4Flex {
justify-content: left;
}

/* Section 5 */
.section5 {
height: 5000px;
Expand Down Expand Up @@ -451,16 +461,6 @@ p {

@media (max-width: 1134px) {
/* Breakpoint for Lønnskalkulator*/
.section4Flex {
display: block;
}
.section4Text {
width: auto;
}

.wrapper {
width: 100%;
}

.section1Blob {
display: none;
Expand Down
6 changes: 3 additions & 3 deletions src/summersplash2022/nyutdannet/sections/lonn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ const Payment = () => {
om du vil vite mer om lønn og andre goder i Variant.
</p>
</div>
<div className={style.calculator}>
<div className={style.wrapper}>
<div className={style.section4Calculator}>
<div className={style.calculatorWrapper}>
<Calculator />
</div>
<div>
<div className={style.pinkBlobWrapper}>
<PinkBlob />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/summersplash2022/nyutdannet/utils/calculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Calculator = () => {
backgroundColor: '#FFDCD7',
padding: '5%',
borderRadius: '10px',
width: isMobile ? '100%' : '80%',
width: 'min-content',
marginTop: isMobile ? '10%' : 0,
}}
className={style['calculator-controls__summary']}
Expand Down

0 comments on commit e401fbf

Please sign in to comment.