Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Conversation

ckoegel
Copy link
Contributor

@ckoegel ckoegel commented Dec 7, 2022

No description provided.

@ckoegel ckoegel requested a review from a team December 7, 2022 21:36
@ckoegel ckoegel changed the title DX-3022 DX-3022 Optimize Sass Dec 7, 2022
@ckoegel ckoegel marked this pull request as draft December 7, 2022 21:37
@cypress
Copy link

cypress bot commented Dec 7, 2022



Test summary

230 0 0 0Flakiness 0


Run details

Project api-docs
Status Passed
Commit 7537ca2
Started Jan 5, 2023 8:49 PM
Ended Jan 5, 2023 9:03 PM
Duration 13:43 💡
OS Linux Ubuntu - 22.04
Browser Chrome 108

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2022

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2022

@ckoegel ckoegel marked this pull request as ready for review December 8, 2022 21:51
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2022

display: flex;
flex-direction: column;
margin: 2em 0;

@include mobile-view {
height: 300px;
height: 19.8rem;
Copy link

Choose a reason for hiding this comment

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

Thinking out loud here... can the style properties that are proportional (height, font-size) be declared as:

$base-font-size: 2.2em;
.base-container{
    font-size: $base-font-size;
    .something-smaller {
         font-size: $base-font-size - 0.2em; or $base-font-size - math.div($base-font-size , 0.11em)
    }
}

My syntax may not be accurate but hope it makes sense-:)

Copy link

@bpateldx bpateldx left a comment

Choose a reason for hiding this comment

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

Using Sass would be really beneficial to maintain different components with ease. This is awesome.

Did you end-up using any linter for sass files? If not, may be worth finding one.

Please see if there is any opportunity to pull common properties out as commented.

}

h2 {
font-family: 'Overpass Bold';
Copy link

Choose a reason for hiding this comment

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

What's your opinion on managing common properties like font-family? We're defining this in multiple components, can this be moved to common place and imported where used?

}
}
}

.right {
.landing-page-right {
width: 50%;
height: 80vh;
padding-top: 56px;
Copy link
Contributor

Choose a reason for hiding this comment

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

🤮

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rem is actually not advised for things that are relative to the page size, since the page size is measured in px. For this entire PR I left things like padding, margins, borders, and shadows, which are relative to page size instead of font size, in pixels. That's why it seems like there are a lot of px left over. The only non-page size relative thing I left in px was the amoeba images because the svg measures its size in px and I want to guarantee the aspect ratio stays the same for those

@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2023

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2023

@ckoegel ckoegel requested a review from ajrice6713 January 4, 2023 18:59
@ckoegel ckoegel requested a review from bpateldx January 4, 2023 18:59
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2023

@ckoegel ckoegel merged commit 47a5179 into main Jan 5, 2023
@ckoegel ckoegel deleted the DX-3022 branch January 5, 2023 20:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants