-
-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial commit for ravamping footer #545
Conversation
@MonkeyDo Firstly, I apologize for being so late, I was busy with my semester exams. I have made an initial commit for revamping the footer component, I have some following doubts regarding the styling process used in codebase.
It would be nice if you can guide me on that |
Thanks for opening this PR! Regarding your questions:
|
<Row > | ||
<Col xs={6} xsOffset={3}> | ||
<Row> | ||
<Col xs={2} > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For centering these items properly, here's the structure I ended up with:
The modifications mainly require using <Col xs={3} >
, since we have 4 elements and the bootstrap grid is arranged in 12 columns. With 4*3 col wide we use the full space of the parent element, while the parent's xs={6} xsOffset={3}
ensures it is all centered.
/> | ||
</a> | ||
</small> | ||
<Grid fluid className="padding-top-1 padding-bottom-1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had better results adding these padding-top-1 padding-bottom-1
to this Grid's two Row children
Hey @MonkeyDo, As you can see in the new footer design the "See all revisions " button is not visible because the new footer has more height than the previous one. We have this button in our codebase in the "index.js" file but I am unable to find the file where I can give margin and make space in between them. |
This is where we define the bottom margin size for two different screen sizes: https://github.com/bookbrainz/bookbrainz-site/blob/master/src/client/stylesheets/style.less#L67-L72
You'll find that here: https://github.com/bookbrainz/bookbrainz-site/blob/master/src/client/stylesheets/style.less#L263-L265
That seems to me like the wrong way around to go :) Considering we need a specific equal width and height for the 50% round border, let's not use the bootstrap I also removed the // Here I'm only modifying the .round-color-icon class
// inside the footer, in case it is used somewhere else
footer .round-color-icon {
// Adjust size here as desired.
// For a round icon keep width and height equal
width: 4.5em;
height: 4.5em;
margin-right: 2em;
// Color with and without hovering
background-color: inherit;
&:hover{
background-color: #754e37;
}
// Direct children of round-color-icon
& > * {
min-width: 100%; // Overwrite existing style
justify-content: center; // Vertical alignment for flex items
&:hover{
color: #eb743b; // Adjust color on hover
}
}
} |
Closed in favor of #739, as we are harmonizing the footers between all MetaBrainz projects |
Link to discussion
Problem
UI of footer is less intuitive and less user engaging.
Solution
Revamped the footer as discussed in the link provided above.
Areas of Impact
src/client/components/footer.js
src/client/stylesheets/style.less