summaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
authortpowers <devnull@localhost>2010-04-27 20:09:11 -0700
committertpowers <devnull@localhost>2010-04-27 20:09:11 -0700
commitd20fca253699e3d85e66e4d203fb5b2a95ee23a4 (patch)
treec45e7a358ac7b9bbabfb03f0b15c9ac5ba04ea3e /sphinx
parent70f2499d407bfff1d22694e4294fade97520821f (diff)
downloadsphinx-d20fca253699e3d85e66e4d203fb5b2a95ee23a4.tar.gz
Rename "underline" class to accelerator to preserve separation of semantics & presentation.
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/roles.py9
-rw-r--r--sphinx/themes/basic/static/basic.css2
2 files changed, 6 insertions, 5 deletions
diff --git a/sphinx/roles.py b/sphinx/roles.py
index 0e1c7fda..0f3eaf14 100644
--- a/sphinx/roles.py
+++ b/sphinx/roles.py
@@ -1,3 +1,4 @@
+
# -*- coding: utf-8 -*-
"""
sphinx.roles
@@ -231,11 +232,11 @@ def menusel_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
textnode = nodes.Text(span)
node += textnode
continue
- underline_node = nodes.inline()
+ accel_node = nodes.inline()
letter_node = nodes.Text(span[0])
- underline_node += letter_node
- underline_node['classes'].append('underline')
- node += underline_node
+ accel_node += letter_node
+ accel_node['classes'].append('accelerator')
+ node += accel_node
textnode = nodes.Text(span[1:])
node += textnode
diff --git a/sphinx/themes/basic/static/basic.css b/sphinx/themes/basic/static/basic.css
index e0aef71e..e78109f4 100644
--- a/sphinx/themes/basic/static/basic.css
+++ b/sphinx/themes/basic/static/basic.css
@@ -400,7 +400,7 @@ dl.glossary dt {
font-weight: bold;
}
-.underline {
+.accelerator {
text-decoration: underline;
}