facebook / facebook/docusaurus

Allow CSS to target layout of a single page (for docs, blog, pages)

未关闭
#7,592 12 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature
主要语言
TypeScript
星标
66.2k
派生
10k
平均合并
1 天 3 小时
30 天内合并 PR
52

描述

### Have you read the Contributing Guidelines on issues?

- [X] I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#reporting-new-issues).

### Description

I went trough documentation and i'm unable to find an option to disable stickiness of navbar for specific page/s

this refers to class `.navbar--fixed-top`

as an example of page that i'd like to disable stickiness is a typescript-eslint [playground](https://typescript-eslint.io/play/#ts=4.7.1-rc&sourceType=module&code=JYMwBAFALgTgrgUzAMmWAjGA1BglGAbzAF8BYAKCA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6ZfKsugIwHs+SAIZN6AD2LQUySnyaoMAbXDYciaND7RIAGhWqsq7JCHx4fAO4BlTswDm6MADNTyRHqPHT5iwDlYALY86o4u8G4enlDelv5mQjxIAPI8AFaI3KGuiPrYAL65ALqROAQk5FQ09MiMLKxMfLRO5kL49rSSfAGUbgpQ6praJVBlpMgU1HQMzGwNtN3IsG4AJh2aCyiOkANaurl4RGMTVdN1c7BMS4irAG5C0H3bGrvDB+XjlVM1M-WNPEJuWj4RocKhMBwYJ6DSAqAp5IA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA)

![image](https://user-images.githubusercontent.com/625469/172965234-8b3bc7fc-2737-4a5b-bc6d-53411bdb380d.png)

![image](https://user-images.githubusercontent.com/625469/172965337-7a284749-f42e-46ca-978a-ce9977b3d752.png)

-----------

i'm not sure if this is a documentation request or feature request

### Self-service

- [ ] I'd be willing to address this documentation request myself.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。