Skip to content
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

Added custom screen size to account for header links #11118

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) {
<Search path={pathname} searchPlatforms={searchPlatforms} showChatBot />
</div>
)}
<div className="hidden lg:flex justify-end flex-1 space-x-2 items-center">
<div className="hidden lg-xl:flex justify-end flex-1 space-x-2 items-center">
<NavLink href="https://sentry.io/changelog/">Changelog</NavLink>
<NavLink href="https://try.sentry-demo.com/demo/start/">Sandbox</NavLink>
<NavLink href="https://sentry.io/">Sign In</NavLink>
Expand All @@ -66,7 +66,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) {
Get Started
</NavLink>
</div>
<div className="lg:hidden ml-auto">
<div className="lg-xl:hidden ml-auto">
<MobileMenu pathname={pathname} searchPlatforms={searchPlatforms} />
</div>
</nav>
Expand Down
23 changes: 12 additions & 11 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
const defaultTheme = require('tailwindcss/defaultTheme');

import {
scopedPreflightStyles,
isolateInsideOfContainer,
scopedPreflightStyles,
} from 'tailwindcss-scoped-preflight';

/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./app/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
],
content: ['./app/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
animation: {
Expand All @@ -22,16 +20,16 @@ module.exports = {
},
keyframes: () => ({
fadeIn: {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
'0%': {opacity: 0},
'100%': {opacity: 1},
},
fadeInLeft: {
'0%': { opacity: 0, transform: 'translateX(-20px)' },
'100%': { opacity: 1, transform: 'translateX(0)' },
'0%': {opacity: 0, transform: 'translateX(-20px)'},
'100%': {opacity: 1, transform: 'translateX(0)'},
},
fadeInRight: {
'0%': { opacity: 0, transform: 'translateX(20px)' },
'100%': { opacity: 1, transform: 'translateX(0)' },
'0%': {opacity: 0, transform: 'translateX(20px)'},
'100%': {opacity: 1, transform: 'translateX(0)'},
},
}),
fontFamily: {
Expand All @@ -55,6 +53,9 @@ module.exports = {
red: '#e1567c',
gold: '#F1B71C',
},
screens: {
'lg-xl': {min: '1130px'},
},
},
},
plugins: [
Expand Down
Loading