-
Notifications
You must be signed in to change notification settings - Fork 476
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
Update page.scss - Add Sticky Header/Fix Alignment #895
base: master
Are you sure you want to change the base?
Conversation
Add Sticky Header and also Fix Alignment of NavBar so it aligns with the Site Logo
I think I once raised this same complaint in other PR somewhere else,
but ATM don't remember where.
I like padding-top 1.5 better when 'nav ul li.lang' is positioned under
"ABOUT"...
Id NAK eventually, only if and when I can review properly with pics and
everything.
…On Tue, Aug 23, 2022 at 6:18 PM Ant ***@***.***> wrote:
*Introduce a Sticky Header and Fix NavBar/Logo Alignment with 3 small CSS
edits*
Results: Adds Sticky Header and also fixes alignment of NavBar so it
aligns with the Site Logo
Steps Taken:
1. Created Sticky Header: Added position:sticky; and top:0; to
.navigation-wrapper on page.scss
2. Fixed NavBar Alignment: Edited .nav on page.scss from
padding-top:1.5em; to padding-top:1.2em;
3. Tested and verified locally as working
------------------------------
You can view, comment on, or merge this pull request online at:
#895
Commit Summary
- 4a4784f
<4a4784f>
Update page.scss - Add Sticky Header/Fix Alignment
File Changes
(1 file <https://github.com/bitcoin-core/bitcoincore.org/pull/895/files>)
- *M* _sass/page.scss
<https://github.com/bitcoin-core/bitcoincore.org/pull/895/files#diff-dac73126905b454218e9461ab6eb61c9c79d1450e6777dde4344c18d55f68235>
(4)
Patch Links:
- https://github.com/bitcoin-core/bitcoincore.org/pull/895.patch
- https://github.com/bitcoin-core/bitcoincore.org/pull/895.diff
—
Reply to this email directly, view it on GitHub
<#895>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMRS4WY3D37J25QTB4IG5QDV2T2WDANCNFSM57MDZVZA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
Yes, I am not seeing it broken on mobile, but I do see the flagged z-index issue (exists independently of this PR and could be fixed on its own). |
there "smaller" looks better with the current padding-top,
more elegantly aligned with the rest of the line,
don't you think?
…On Tue, Aug 23, 2022 at 10:17 PM Ant ***@***.***> wrote:
On desktop with padding-top: 1.5em :
[image: header]
<https://user-images.githubusercontent.com/72945059/186256427-67262ec5-ffac-4296-be7f-400e37b82e42.png>
On smaller width with padding-top: 1.5em :
[image: header-smaller]
<https://user-images.githubusercontent.com/72945059/186256601-3926689c-8ad9-45e6-851e-8ebb6d57f018.png>
Here's a look at the Sticky header:
[image: header-sticky]
<https://user-images.githubusercontent.com/72945059/186257383-a5c1d1a3-8da7-4058-9fcb-51142a202b09.png>
—
Reply to this email directly, view it on GitHub
<#895 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMRS4WYF7SCW3S4P2BHOIN3V2UWUNANCNFSM57MDZVZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yes, I agree it does align properly when screens are smaller and the NavBar wraps to the second line... but is that the default view? On desktop, the NavBar appears misaligned. We could make it a true responsive header, align the NavBar and Logo properly across all scenarios, and add a couple simple media queries to handle the display on all screensizes. -- Mid-Comment Update... I just went to make a screenshot of the desktop view and realized the alignment issue is actually on the logo, not the NavBar... the NavBar is properly aligned in the middle of the Navigation Area, but the logo is closer to the top than the bottom. It looks like Site-Name has |
|
It's probably not a |
Nice! Removing |
I agree |
yes, that is the default view
…On Wed, Aug 24, 2022 at 9:05 PM Ant ***@***.***> wrote:
there "smaller" looks better with the current padding-top, more elegantly
aligned with the rest of the line, don't you think?
… <#m_-5815734364623598347_>
On Tue, Aug 23, 2022 at 10:17 PM Ant *@*.*> wrote: On desktop with
padding-top: 1.5em : [image: header]
https://user-images.githubusercontent.com/72945059/186256427-67262ec5-ffac-4296-be7f-400e37b82e42.png
<https://user-images.githubusercontent.com/72945059/186256427-67262ec5-ffac-4296-be7f-400e37b82e42.png>
On smaller width with padding-top: 1.5em : [image: header-smaller]
https://user-images.githubusercontent.com/72945059/186256601-3926689c-8ad9-45e6-851e-8ebb6d57f018.png
<https://user-images.githubusercontent.com/72945059/186256601-3926689c-8ad9-45e6-851e-8ebb6d57f018.png>
Here's a look at the Sticky header: [image: header-sticky]
https://user-images.githubusercontent.com/72945059/186257383-a5c1d1a3-8da7-4058-9fcb-51142a202b09.png
<https://user-images.githubusercontent.com/72945059/186257383-a5c1d1a3-8da7-4058-9fcb-51142a202b09.png>
— Reply to this email directly, view it on GitHub <#895 (comment)
<#895 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMRS4WYF7SCW3S4P2BHOIN3V2UWUNANCNFSM57MDZVZA
<https://github.com/notifications/unsubscribe-auth/AMRS4WYF7SCW3S4P2BHOIN3V2UWUNANCNFSM57MDZVZA>
. You are receiving this because you commented.Message ID: @.*>
Yes, I agree it does align properly when screens are smaller and the
NavBar wraps to the second line... but is that the default view? On
desktop, the NavBar appears misaligned. We could make it a true responsive
header, align the NavBar and Logo properly across all scenarios, and add a
couple simple media queries to handle the display on all screensizes.
--
Mid-Comment Update... I just went to make a screenshot of the desktop view
and realized the alignment issue is actually on the logo, not the NavBar...
the NavBar is properly aligned in the middle of the Navigation Area, but
the logo is closer to the top than the bottom. It looks like Site-Name has padding-top:
1.15em; but padding-top: 1.4em; or padding-top: 1.5em; provides true
alignment. Could use a media query to keep the alignment true at all
breakpoints...
[image: Screen Shot 2022-08-24 at 1 57 10 PM]
<https://user-images.githubusercontent.com/72945059/186502117-11cafe5b-aac1-43b3-9464-c1679460dbc8.png>
.
—
Reply to this email directly, view it on GitHub
<#895 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMRS4WZAFVVC5J5YDUUXGY3V2ZW67ANCNFSM57MDZVZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Introduce a Sticky Header and Fix NavBar/Logo Alignment with 3 small CSS edits
Results: Adds Sticky Header and also fixes alignment of NavBar so it aligns with the Site Logo
Steps Taken:
position:sticky;
andtop:0;
to .navigation-wrapper on page.scsspadding-top:1.5em;
topadding-top:1.2em;