Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Issues
  • #349
Closed
Open
Issue created Dec 17, 2015 by Administrator@rootContributor

Allow easier hooks to provide simple, custom stylesheet/javascript requires

Created by: coneybeare

Problem

I made a custom Font-Awesome field that displays a stored icon name string ("fa-facebook") as its rendered icon rather than its name. After getting the appropriate gem, I need to add one line into the application.css file.

Generating the entire administrate:assets:stylesheets stack so I can plug this one value in seems a bit sledgehammerish.

Ideas

Not sure if any/all of these are technically possible.

  • Somehow add a hook into the stylesheet and javascript manifest files that can require into the main app by looking in a special folder or file.
  • Have main app define the root manifest files for the engine, with only a require administrate.scss etc... entry in it. This would allow additional requires before or after the gem scss.
  • Setup some sort of config variable that could take some paths to require within administrate.scss

Or maybe I am just dense and am not seeing the easy way to do this without freezing the entire stylesheet stack into my main app. Ideas?

Assignee
Assign to
Time tracking