Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
menu_css_names
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
menu_css_names
Merge requests
!2
An error occurred while fetching the assigned milestone of the selected merge_request.
Issue
#3032416
: apply readme changes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3032416
: apply readme changes
issue/menu_css_names-3032416:3032416-readme
into
2.0.x
Overview
0
Commits
3
Pipelines
3
Changes
1
Merged
aaron.ferris
requested to merge
issue/menu_css_names-3032416:3032416-readme
into
2.0.x
10 months ago
Overview
0
Commits
3
Pipelines
3
Changes
1
Expand
Closes
#3032416
0
0
Merge request reports
Compare
2.0.x
version 2
1d6c9972
10 months ago
version 1
0400d497
10 months ago
2.0.x (base)
and
latest version
latest version
45f022f5
3 commits,
10 months ago
version 2
1d6c9972
2 commits,
10 months ago
version 1
0400d497
1 commit,
10 months ago
1 file
+
56
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
README.txt
+
56
−
22
Options
Menu CSS Names
==============================================================================
CONTENTS OF THIS FILE
---------------------
This is a very simple module that takes the title of each drupal menu item and
adds it as a css class name to the menu's <li> element. Any character from
this title that is not an alphanumeric character, dash, or underscore is
converted to a dash; all letters will be converted to lowercase.
* Introduction
* Requirements
* Installation
* Configuration
* Maintainers
Using these class names, css can be used to style each menu item separately as
needed or css sprite techniques can be used. For a menu item whose title is
"Product Information", a typical css rule would look like this:
ul.menu li.product-information { font-style: bold; }
INTRODUCTION
------------
The Menu CSS Names module adds CSS class names to Drupal menus.
* For a full description of the module, visit the project page:
https://drupal.org/project/menu_css_names
* To submit bug reports and feature suggestions, or to track changes:
https://drupal.org/project/issues/menu_css_names
REQUIREMENTS
------------
This module requires no modules outside of Drupal core.
INSTALLATION
------------
* Install as you would normally install a contributed Drupal module. Visit:
https://www.drupal.org/node/1897420 for further information.
CONFIGURATION
-------------
There are no admin settings for this module, it starts doing its work once
the module is enabled. All caches are automatically cleared at this time also.
the module is enabled. Caches are automatically cleared.
The module takes the title of each Drupal menu item and adds it as a css class name to the
menu's <li> element. Any character from this title that is not an alphanumeric character,
dash, or underscore is converted to a dash; all letters will be converted to lowercase.
Using these class names, css can be used to style each menu item separately as needed or
CSS sprite techniques can be used. For a menu item whose title is "Product Information",
a typical CSS rule would look like this:
```
ul.menu li.product-information { font-style: bold; }
```
Drupal 7 Version
==============================================================================
All of the core and contrib theme functions have been updated to make this
module working with Drupal 7. Also, a new function was added that provides
compatibility with the DHTML Menu module.
MAINTAINERS
-----------
Current maintainers:
* Rian Callahan (rc_100) - https://www.drupal.org/u/rc_100
* Neha (nehajyoti) - https://www.drupal.org/u/
* Aaron (aaron.ferris) - https://www.drupal.org/u/aaronferris
Compatibility
==============================================================================
Tested with the following:
- Nice Menus (7.x-2.0-beta3)
- DHTML Menu (7.x-1.0-beta1)
- Zen theme (7.x-3.1)
This project is sponsored by:
* Ashday Interactive Systems - https://www.drupal.org/ashday-interactive-systems
* Zoocha - https://www.drupal.org/zoocha
Loading