Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Footer logic/styles #1636

Closed
wants to merge 11 commits into from
Closed

Footer logic/styles #1636

wants to merge 11 commits into from

Conversation

fairlighteth
Copy link
Contributor

Started working on the Footer logic for V2.

@fairlighteth fairlighteth marked this pull request as ready for review November 20, 2020 11:21
@fairlighteth
Copy link
Contributor Author

Added logic and styles for the footer:
Screen Shot 2020-11-20 at 12 14 34

  • Added a separate config file for providing settings for the Footer. Tried an approach to 'feed' the settings as a prop, but encountered some complexity around Typescript doing so.

@fairlighteth fairlighteth changed the title Ui draft Footer logic/styles Nov 20, 2020
@gnosis-info
Copy link

Travis automatic deployment:

src/components/layout/GenericLayout/Footer/index.tsx Outdated Show resolved Hide resolved
App Id: {CONFIG.appId}
</a>
) : (
''
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
''
null

src/components/layout/GenericLayout/Footer/index.tsx Outdated Show resolved Hide resolved
@@ -39,7 +39,7 @@ const DarkColors = `

/* Text */
--color-text-primary: #ffffff;
--color-text-secondary1: #EDEDED
--color-text-secondary1: #EDEDED;
Copy link
Contributor

Choose a reason for hiding this comment

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

👀 👍

Comment on lines +39 to +46
> a {
text-decoration: none;

&:focus,
&:hover {
text-decoration: underline;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
> a {
text-decoration: none;
&:focus,
&:hover {
text-decoration: underline;
}
}
> a {
&,
&:focus,
&:hover {
text-decoration: underline;
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Care to elaborate? Never seen it in use like this :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screen Shot 2020-11-23 at 10 05 26

Is what I get. So in this case we merged all styles ( element + the focus/hover pseudo). But I intended it to be text-decoration: none by default and only on hover have the text-decoration.

Copy link
Contributor

Choose a reason for hiding this comment

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

& duplicates current selector, try here

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, disregard me, I misread tex-decoration values as the same, shame on me 😞

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Still good to explore options! Thanks for checking :)

Comment on lines +48 to +60
> a:not(:last-of-type) {
margin: 0 1.6rem 0 0;
flex-flow: row nowrap;
display: flex;
position: relative;

&::after {
content: '-';
position: absolute;
right: -1rem;
display: block;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
> a:not(:last-of-type) {
margin: 0 1.6rem 0 0;
flex-flow: row nowrap;
display: flex;
position: relative;
&::after {
content: '-';
position: absolute;
right: -1rem;
display: block;
}
}
> a:not(:last-of-type)::after {
content: " - ";
white-space: pre;
}

I feel this would accomplish about the same with less css

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, except that on hover it also applies the underline to the - character:
Screen Shot 2020-11-23 at 09 52 20

Tried doing text-decoration: none; on the parent a element, and then play with border-bottom. But same result otherwise. Using position: absolute in this case mitigates it...

Copy link
Contributor

Choose a reason for hiding this comment

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

Understandable, have a nice day

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.

None yet

3 participants