Commits

Anonymous committed e443905

Rename "underline" class to accelerator to preserve separation of semantics & presentation.

Comments (0)

Files changed (2)

+
 # -*- coding: utf-8 -*-
 """
     sphinx.roles
                 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
 

sphinx/themes/basic/static/basic.css

     font-weight: bold;
 }
 
-.underline {
+.accelerator {
     text-decoration: underline;
 }