Skip to content

fix(ui): correct media query scope in program.css#2586

Open
bhavyamsharmaa wants to merge 9 commits intomeshery:masterfrom
bhavyamsharmaa:fix/program-css-layout-bug
Open

fix(ui): correct media query scope in program.css#2586
bhavyamsharmaa wants to merge 9 commits intomeshery:masterfrom
bhavyamsharmaa:fix/program-css-layout-bug

Conversation

@bhavyamsharmaa
Copy link

Description

This PR fixes a CSS syntax error where the closing brace for a media query @media screen and (max-width: 640px)\ was misplaced. This caused the .project-details\ and .community-details\ rules to fall outside the media query.

Changes:

  • Corrected the scope of the media query in \css/program.css.

Fixes: #2585

Signed-off-by

Signed-off-by: Bhavya Sharma bhavyamsharmaa@gmail.com

AresPhoenix345 and others added 6 commits January 4, 2026 10:47
- Changed primary button to saffron yellow (#E0C077)
- Changed secondary button to keppel green (#00b39f)
- Added tertiary button with transparent background

Signed-off-by: Aditya Tiwari <phoenixcodeforces@gmail.com>
Signed-off-by: Awanish Tripathi <phoenixcodeforces@gmail.com>
Signed-off-by: Bhavyam <positionbhavyamsharma@gmail.com>
- Change Download buttons to use primary .import class
- Update tertiary button text color to #00b39f for visibility
- Fix SCSS formatting (spacing around >)

Signed-off-by: Bhavyam <positionbhavyamsharma@gmail.com>
Fixes a layout issue where .project-details and .community-details were outside the mobile media query block. This ensures these elements correctly take full width on smaller screens.

Fixes: meshery#2585
Signed-off-by: Bhavyam <positionbhavyamsharma@gmail.com>
@welcome
Copy link

welcome bot commented Feb 17, 2026

Yay, your first pull request! 👍 A contributor will be by to give feedback soon. In the meantime, please review the Newcomers' Guide and sure to join the community Slack.
Be sure to double-check that you have signed your commits. Here are instructions for making signing an implicit activity while peforming a commit.

@netlify
Copy link

netlify bot commented Feb 17, 2026

Deploy Preview for mesheryio-preview ready!

Name Link
🔨 Latest commit 0427081
🔍 Latest deploy log https://app.netlify.com/projects/mesheryio-preview/deploys/69949fd5df52cc00080bd25e
😎 Deploy Preview https://deploy-preview-2586--mesheryio-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @bhavyamsharmaa, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily addresses a critical CSS media query scoping issue that was preventing responsive styles from applying correctly to certain UI elements. In addition to this fix, it refines the styling of various buttons across the application, introducing a new tertiary button style and enhancing existing ones for a more cohesive user interface. The changes also include general code formatting improvements to boost maintainability.

Highlights

  • CSS Media Query Fix: Corrected a CSS syntax error in program.css where a misplaced closing brace caused .project-details and .community-details rules to fall outside a media query, ensuring proper responsive styling.
  • Button Styling Refinement: Refactored button styles in _sass/catalog.scss by introducing a new .import-tertiary class and updating existing .import and .import-secondary styles with new colors and hover effects.
  • UI Button Class Update: Applied the newly defined .import-tertiary class to 'Quick Start' and 'Add New Model' buttons in _includes/models/modal.html and _layouts/single-page-model.html for consistent styling.
  • Code Formatting and Readability: Improved code readability across multiple HTML and SCSS files by consistently adding newlines between CSS rules and HTML attributes, and adjusting indentation.
Changelog
  • _includes/models/modal.html
    • Updated 'Quick Start' button class from import to import-tertiary.
    • Updated 'Add New Model' button class from import to import-tertiary.
  • _layouts/single-page-model.html
    • Adjusted pagination block formatting.
    • Added newlines for improved readability within style blocks and HTML structure.
    • Updated image tag attributes for data-snapshot-light and data-snapshot-dark.
    • Reformatted import instructions section for better readability.
    • Adjusted formatting for documentation and contribution buttons.
    • Reformatted feature list items.
    • Reformatted component display structure.
    • Adjusted blog navigation link formatting.
  • _sass/catalog.scss
    • Added newlines between various CSS rules for improved readability.
    • Updated .import button styles with new background color and hover effects.
    • Updated .import-secondary button styles with new background color, border, and hover effects.
    • Introduced a new .import-tertiary button style with transparent background, border, and hover effects.
    • Adjusted formatting for various modal and catalog-related CSS rules.
  • css/program.css
    • Removed a misplaced closing brace } to correctly scope media queries for .project-details and .community-details.
Activity
  • The pull request was created to address a reported CSS media query issue.
  • The author implemented changes to correct the media query scope and refine button styles.
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request primarily fixes a CSS syntax error in program.css by removing a misplaced closing brace. It also includes extensive formatting cleanups and refactors button styles in _sass/catalog.scss, applying these new styles in _includes/models/modal.html and _layouts/single-page-model.html. The changes improve code quality and fix the intended bug. I've made a couple of minor suggestions to add missing newlines at the end of files, which is a standard best practice.

Fixes a layout issue where .project-details and .community-details were outside the mobile media query block. This ensures these elements correctly take full width on smaller screens.

Fixes: meshery#2585
Signed-off-by: Bhavyam <positionbhavyamsharma@gmail.com>
Signed-off-by: Bhavyam <positionbhavyamsharma@gmail.com>
@pontusringblom
Copy link
Member

@Bhumikagarggg will you review?

@Bhumikagarggg
Copy link
Contributor

@bhavyamsharmaa Thank you for your contribution! Let's discuss this during the website call tomorrow at 6:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Layout issue on Programs page due to misplaced closing brace in CSS

5 participants