Skip to content

Commit f37722f

Browse files
authored
Merge pull request #26 from executablebooks/fix/22/add-exercise-logo
👌 IMPROVE: Add exercise directive logo
2 parents c1be42f + b947bd5 commit f37722f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

sphinx_exercise/_static/exercise.css

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,28 @@
1111
* Exercise *
1212
*********************************************/
1313
div.exercise {
14-
padding-left: 0rem !important;
15-
padding-right: 0rem !important;
16-
border-left: .2rem solid var(--note-border-color);
14+
border-color: var(--note-border-color);
1715
background-color: var(--note-title-color);
1816
}
1917

2018
div.exercise p.admonition-title {
21-
padding: .6rem .4rem .6rem 1.6rem;
2219
background-color: var(--note-title-color);
2320
}
2421

2522
/* Remove content box */
2623
div.exercise p.admonition-title::before {
27-
content: none;
24+
content: "\f303";
2825
}
2926

3027
/*********************************************
3128
* Solution *
3229
*********************************************/
3330
div.solution{
34-
padding-left: 0rem !important;
35-
padding-right: 0rem !important;
36-
border-left: .2rem solid var(--grey-border-color);
31+
border-color: var(--grey-border-color);
3732
background-color: none;
3833
}
3934

4035
div.solution p.admonition-title {
41-
padding: .6rem .4rem .6rem 1.6rem;
4236
background-color: transparent;
4337
text-decoration: none;
4438
}

0 commit comments

Comments
 (0)