-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmascot.css
More file actions
137 lines (126 loc) · 4.05 KB
/
Copy pathmascot.css
File metadata and controls
137 lines (126 loc) · 4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/* ============================================
Learning Mascot: Monty the Python
Pedagogical agent for Beginning Python
Colors: primary #642580 purple, accent #41BAC1 teal
============================================ */
:root {
--mascot-primary: #642580; /* primary purple */
--mascot-secondary: #41BAC1; /* accent teal */
--mascot-bg: #f3eaf8; /* light purple tint */
--mascot-border: #7a2f9e; /* medium purple */
--mascot-size: 90px;
}
/* ---- Shared base: match body font size, not MkDocs' smaller admonition default ---- */
.md-typeset .admonition.mascot-welcome,
.md-typeset .admonition.mascot-thinking,
.md-typeset .admonition.mascot-tip,
.md-typeset .admonition.mascot-warning,
.md-typeset .admonition.mascot-celebration,
.md-typeset .admonition.mascot-encourage,
.md-typeset .admonition.mascot-neutral,
.md-typeset details.mascot-welcome,
.md-typeset details.mascot-thinking,
.md-typeset details.mascot-tip,
.md-typeset details.mascot-warning,
.md-typeset details.mascot-celebration,
.md-typeset details.mascot-encourage,
.md-typeset details.mascot-neutral {
font-size: inherit;
}
/* ---- Welcome (chapter openings) — primary purple ---- */
.md-typeset .admonition.mascot-welcome,
.md-typeset details.mascot-welcome {
border-color: var(--mascot-primary);
background-color: var(--mascot-bg);
}
.md-typeset .mascot-welcome > .admonition-title,
.md-typeset .mascot-welcome > summary {
background-color: var(--mascot-primary);
color: white;
}
/* ---- Thinking (key concepts) — accent teal ---- */
.md-typeset .admonition.mascot-thinking,
.md-typeset details.mascot-thinking {
border-color: var(--mascot-secondary);
background-color: #e0f7fa;
}
.md-typeset .mascot-thinking > .admonition-title,
.md-typeset .mascot-thinking > summary {
background-color: var(--mascot-secondary);
color: white;
}
/* ---- Tip (hints) — emerald green (nod to Monty's green scales) ---- */
.md-typeset .admonition.mascot-tip,
.md-typeset details.mascot-tip {
border-color: #2e7d32;
background-color: #e8f5e9;
}
.md-typeset .mascot-tip > .admonition-title,
.md-typeset .mascot-tip > summary {
background-color: #2e7d32;
color: white;
}
/* ---- Warning (common mistakes) — red ---- */
.md-typeset .admonition.mascot-warning,
.md-typeset details.mascot-warning {
border-color: #c62828;
background-color: #ffebee;
}
.md-typeset .mascot-warning > .admonition-title,
.md-typeset .mascot-warning > summary {
background-color: #c62828;
color: white;
}
/* ---- Celebration (achievements) — deep purple with light text ---- */
.md-typeset .admonition.mascot-celebration,
.md-typeset details.mascot-celebration {
border-color: #4a148c;
background-color: #311b4f;
color: #f3e5f5;
}
.md-typeset .mascot-celebration > .admonition-title,
.md-typeset .mascot-celebration > summary {
background-color: #4a148c;
color: white;
}
/* ---- Encourage (difficult content) — blue ---- */
.md-typeset .admonition.mascot-encourage,
.md-typeset details.mascot-encourage {
border-color: #0277bd;
background-color: #e1f5fe;
}
.md-typeset .mascot-encourage > .admonition-title,
.md-typeset .mascot-encourage > summary {
background-color: #0277bd;
color: white;
}
/* ---- Neutral (general purpose) — slate gray ---- */
.md-typeset .admonition.mascot-neutral,
.md-typeset details.mascot-neutral {
border-color: #546e7a;
background-color: #eceff1;
}
.md-typeset .mascot-neutral > .admonition-title,
.md-typeset .mascot-neutral > summary {
background-color: #546e7a;
color: white;
}
/* ---- Title bar: left-align text, hide default MkDocs icon ---- */
.md-typeset [class*="mascot-"] > .admonition-title,
.md-typeset [class*="mascot-"] > summary {
text-align: left;
padding-left: 0.8rem;
}
.md-typeset [class*="mascot-"] > .admonition-title::before,
.md-typeset [class*="mascot-"] > summary::before {
display: none;
}
/* ---- Mascot image floated left inside admonition body ---- */
.mascot-admonition-img {
float: left;
width: var(--mascot-size);
height: var(--mascot-size);
margin: 0 0.6em 0.2em 0;
object-fit: contain;
pointer-events: none;
}