Skip to content

Commit 257baf5

Browse files
committed
2 parents aff194a + 3a2b4cb commit 257baf5

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

global.css

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,6 @@ If the problem environment(s) have the "titletext" attribute defined, then overw
188188
Note: This is used to do automatic translation, but could also be used to change the default text in *any* way we would want,
189189
e.g. use "P1", "Problem 1", "Prob 1", "Exciting Problem 1", etc.
190190
*/
191-
.problem-environment[titletext]::before {
192-
/* Numbered everything in CSS is causing trouble. TeX should decide the numbering. */
193-
/* content:"${nameOfClass} " counter($counterToIncrement) ". ";*/
194-
content:attr(titletext) attr(numbered) ".";
195-
}
196191

197192
.theorem-like[titletext]::before {
198193
content:attr(titletext);
@@ -202,6 +197,12 @@ e.g. use "P1", "Problem 1", "Prob 1", "Exciting Problem 1", etc.
202197
content:attr(titletext) ": ";
203198
}
204199

200+
.problem-environment[titletext]::before {
201+
/* Numbered everything in CSS is causing trouble. TeX should decide the numbering. */
202+
/* content:"${nameOfClass} " counter($counterToIncrement) ". ";*/
203+
content:attr(titletext) attr(numbered) ".";
204+
}
205+
205206

206207
/* Outcome Formatting */
207208

@@ -216,4 +217,29 @@ e.g. use "P1", "Problem 1", "Prob 1", "Exciting Problem 1", etc.
216217
/*
217218
.outcomeHead:hover + .outcomeContent {
218219
display: block;
219-
} */
220+
} */
221+
222+
/* 202511:Add proof label/background color */
223+
.proof::before {
224+
content: "proof:";
225+
display: inline;
226+
text-transform: capitalize;
227+
font-weight: bold;
228+
padding-right: 0.5em;
229+
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
230+
}
231+
232+
.proof {
233+
background-color: whitesmoke;
234+
}
235+
236+
237+
/* No numbers/left border for explanation-inside-example */
238+
.example .explanation::before {
239+
content: attr(titletext) ":";
240+
}
241+
242+
.example .explanation {
243+
border-left: unset;
244+
padding-left: 0px;
245+
}

0 commit comments

Comments
 (0)