mobile-responsive

A set of rules for making the web app fit different screen sizes, including phones as narrow as 390 pixels. It defines when navigation collapses and when layouts, spacing, and text should change.

In plain words
What is it for?
Use it when building responsive navigation, stacked page layouts, scrollable tabs, mobile spacing, and phone-specific typography with Bootstrap and CSS.
Why use it?
It prevents desktop layouts from becoming difficult to use on phones and keeps navigation usable on smaller screens.

Cursor rule for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/eliornl/rolemule/mobile-responsive
Clone the repo
git clone --depth 1 https://github.com/eliornl/rolemule

Made for: Claude Code.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,182 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02182
Opus 5 $0.00000 $0.01091
Sonnet 5 $0.00000 $0.00436
Haiku 4.5 $0.00000 $0.00218

Measured yesterday against content hash dad8da4e4b62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mobile-responsive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/rules/mobile-responsive.mdc · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mobile Responsiveness

RoleMule targets full mobile support down to 390px (iPhone 14). The viewport meta tag is set in base.html. Bootstrap 5 provides the grid and collapse utilities.


Breakpoints Used

Breakpoint Width Purpose
xl < 1200px Landing navbar collapses to hamburger
lg < 992px Dashboard navbar collapses to hamburger
md < 768px Primary mobile breakpoint — stack layouts, reduce padding
sm < 576px Auth card margins, small tweaks
xs < 480px Extra-small phones — font/padding reductions

Landing Page (navbar_landing.html)

Uses navbar-expand-xl — collapses at < 1200px.

<nav class="navbar navbar-expand-xl navbar-dark fixed-top">
    <a class="navbar-brand" href="/">...</a>
    <button class="navbar-toggler" type="button"
            data-bs-toggle="collapse" data-bs-target="#navbarNav"
            aria-controls="navbarNav" aria-expanded="false"
            aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav mx-auto">...</ul>
        <div class="nav-cta">...</div>
    </div>
</nav>

Why navbar-expand-xl: The landing nav has 6 links + 2 CTA buttons. At tablet widths (992–1199px) the items wrap to 2 lines without the xl breakpoint.

The hamburger icon uses a custom white SVG (Bootstrap's default is invisible on dark backgrounds):

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

The collapsed menu gets a dark glass background only on mobile via:

@media (max-width: 1199px) {
    .navbar-collapse {
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(24px);
        border-top: 1px solid var(--border-color);
        padding: 0.75rem 0 1rem 0;
        ...
    }
    .navbar-collapse .nav-cta {
        padding: 0 1rem;   /* ← padding on nav-cta, NOT negative margin on collapse */
    }
}

Read the full file on GitHub · 218 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 218 lines · 0 tokens per session scan A dad8da4e4b62

Subscribe to this mod's changes

mobile-responsive is a cursor rule published in the GitHub repository eliornl/rolemule (37 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,182 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other cursor rules, from other repositories

cursorrules

Agent2 is a framework for building production AI agents with typed HTTP APIs. PydanticAI handles the agent loop. Agent2 handles everything else: API, auth, pause/resume, approvals, provider routing, knowledge search.

Artesiana/agent2 · 399 tokens

product-manager

Holistic product leader who owns the full product lifecycle — from discovery and strategy through roadmap, stakeholder alignment, go-to-market, and outcome measurement. Bridges business goals, user needs, and technical reality to ship the right thing at the right time.

Treevu-ai/cli-market-world · 5,350 tokens

api-tester

Expert API testing specialist focused on comprehensive API validation, performance testing, and quality assurance across all systems and third-party integrations.

Treevu-ai/cli-market-world · 23 tokens

developer-advocate

Expert developer advocate specializing in building developer communities, creating compelling technical content, optimizing developer experience (DX), and driving platform adoption through authentic engineering engagement. Bridges product and engineering teams with external developers.

Treevu-ai/cli-market-world · 38 tokens

architectural-and-structural-rules

The project follows a layered architecture with clear separation of concerns.

mrharishkumar/fastapi-cursor-boilerplate · 559 tokens

angular-20

This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.

angular/angular · 0 tokens