The repo tab strip runs to the screen edge on phones and scrolls inside itself
Browse files at this commit3d093a61099f158546a09892c27224d88326b15aParent: 420b0e0- fix
- the repo tab strip runs to the screen edge on phones and scrolls inside itself
1 changed file +11 -0
- style/main.scss +11 -0
style/main.scssmodified+11 -0
| @@ -1018,6 +1018,17 @@ code { | ||
| 1018 | 1018 | } |
| 1019 | 1019 | } |
| 1020 | 1020 | |
| 1021 | +// Below the sidebar breakpoint the strip runs to the screen edges and scrolls inside itself. The | |
| 1022 | +// first tab still starts on the 16px gutter, and the page never scrolls sideways. | |
| 1023 | +@media (max-width: 899px) { | |
| 1024 | + .repo-tabs { | |
| 1025 | + margin-left: -16px; | |
| 1026 | + margin-right: -16px; | |
| 1027 | + padding: 0 16px; | |
| 1028 | + scroll-padding: 0 16px; | |
| 1029 | + } | |
| 1030 | +} | |
| 1031 | + | |
| 1021 | 1032 | .tab { |
| 1022 | 1033 | padding: 8px 12px; |
| 1023 | 1034 | margin-bottom: 0; |