Skip to content

Commit

Permalink
re-style indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahG-579462 committed Apr 29, 2024
1 parent f792b55 commit 71a10f1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/_static/indsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function makeVariableList(ind) {
/* kv[0] is the variable name, kv[1] is the variable description. */
/* Convert kv[1] to a string literal */
const text = escapeHTML(kv[1]);
const tooltip = `<button class="indVarname" title="${text}" alt="${text}">${kv[0]}</button>`;
const tooltip = `<button class="indVarname" title="${text}" alt="${text}"><code>${kv[0]}</code></button>`;
return tooltip
}).join('');
}
Expand Down
19 changes: 16 additions & 3 deletions docs/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ ul.simple li {
.indElem {
margin: 10px;
padding: 10px;
background-color: #ddd;
background-color: var(--color-indicator-background);
color: var(--color-indicator-text);
border-radius: 10px;
}

Expand All @@ -84,19 +85,31 @@ ul.simple li {
}

code > .indName {
background-color: #ccc;
background-color: var(--color-indicator-background);
color: var(--color-indicator-text);
}

.indVarname {
border-radius: 10px;
background-color: var(--color-indicator-widget-background);
color: var(--color-indicator-widget-text);
border: solid 1px var(--color-indicator-widget-text);
margin-right: 3px;
margin-bottom: 3px;
line-height: 24px;
cursor: help;
}

/* Rounded corners for keyword labels: */
.keywordlabel {
border-radius: 10px;
padding: 5px;
margin: 5px;
background-color: #ddd;
background-color: var(--color-indicator-widget-background);
color: var(--color-indicator-widget-text);
border: solid 1px var(--color-indicator-widget-text);
line-height: 24px;

}

#incVirtModLbl {
Expand Down
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,18 @@ class XCStyle(AlphaStyle):
"light_css_variables": {
"color-table-rows-even": "#eeebee",
"color-copybutton": "#000",
"color-indicator-text": "#5a5c63",
"color-indicator-background": "#eeebee",
"color-indicator-widget-text": "#2f2f2f",
"color-indicator-widget-background": "#bdbdbd",
},
"dark_css_variables": {
"color-table-rows-even": "#303335",
"color-copybutton": "#fff",
"color-indicator-text": "#cfd0d0",
"color-indicator-background": "#3e3e3e",
"color-indicator-widget-text": "#a8a8a8",
"color-indicator-widget-background": "#303335",
},
}

Expand Down

0 comments on commit 71a10f1

Please sign in to comment.