-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
report: sticky topbar #8300
report: sticky topbar #8300
Conversation
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.
The design doesn't have the top left URL be a link, but I like it as a link, but maybe keep it black instead of "url blue" to be more subtle?
Co-Authored-By: Hoten <cjamcl@gmail.com>
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
done |
much! :D |
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.
some nits but this can land.
--topbar-padding: 0 8px; | ||
|
||
--logo-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="192px" height="192px" viewBox="0 0 192 192" version="1.1"><g id="symbol_1_black" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group"><g><rect id="Rectangle" x="0" y="0" width="192" height="192"/><path d="M67.7054588,179.352453 L70.3079591,158.532451 L119.643145,142.141282 L124.294541,179.352453 C115.41478,182.365787 105.898235,184 96,184 C86.1017646,184 76.5852201,182.365787 67.7054588,179.352453 L67.7054588,179.352453 Z M52.439998,172.48 C25.8942826,157.328 8,128.753717 8,96 C8,47.398942 47.398942,8 96,8 C144.601058,8 184,47.398942 184,96 C184,128.753717 166.105717,157.328 139.560002,172.48 L130,96 L136,96 L136,80 L128,80 L128,48 L96,28 L64,48 L64,80 L56,80 L56,96 L62,96 L52.4399988,172.48001 L52.439998,172.48 Z M113.875485,96 L116.756843,119.050869 L73.439198,133.48254 L78.1245155,96 L113.875485,96 Z M80,80 L80,56.8679623 L96,46.8679623 L112,56.8679623 L112,80 L80,80 Z" id="Shape" fill="%23000000"/></g></g></g></svg>'); |
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.
can you run this through svgo? I think it'll knock some precision off those points.
and def the id="symbol_1_black"
isn't used.
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.
neat tool
544 bytes → 360 bytes 66.18%
@@ -143,6 +149,7 @@ | |||
--circle-size-big: 96px; | |||
--circle-size: 72px; | |||
--header-padding: 16px 0 16px 0; | |||
--icon-size: 20px; |
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.
--topbar-icon-size is a bit more clear.
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.
done
margin-right: 2px; | ||
|
||
.lh-topbar__url { | ||
margin-left: 8px; |
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.
seems like you could reuse --topbar-padding here.
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.
done
#8185
This is the skinny sticky header, containing the logo / URL.
I also put the export button in the top right. We aren't doing the sidebar menu yet, so it seems fine for that button to live there for now.
Removed the animation code for the previous header.
I disabled fireworks for now.
Help: Why won't the SVG logo show?