Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

reducing link width in closed ToC so the full border shows #310

Merged
merged 2 commits into from
May 2, 2016

Conversation

donjo
Copy link
Member

@donjo donjo commented Apr 29, 2016

The width of the ToC items was obscuring some of the border when the ToC was in the "closed" position.

screen shot 2016-04-29 at 11 03 13 am

to

screen shot 2016-04-29 at 11 09 16 am

@@ -187,7 +187,7 @@ currently these are TOC, History, and Search
.close & {
display: block;
border-right: none;
width: 40px;
width: 39px;
Copy link
Member

Choose a reason for hiding this comment

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

Magic numbers frighten me. Can we track down where the 40px came from, put that in a variable, and then use $that_var - 1 here? That'd explain the why much better, if that makes sense.

@donjo
Copy link
Member Author

donjo commented May 2, 2016

@cmc333333 not sure how much of a refactoring rabbit hole we want to go down right now but I defined a variable for the width of the parent container and did the minus - 1 thing for the piece inside. Ultimately though there are a lot of absolutely positioned elements with semi-arbitrary widths and positions that make up the nav that could use some cleaning up in the long term.

@cmc333333
Copy link
Member

@donjo gratzie . Every little bit helps!

@cmc333333 cmc333333 merged commit d4f3797 into eregs:master May 2, 2016
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.

2 participants