-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunitCommonStyles.css
154 lines (124 loc) · 2.16 KB
/
unitCommonStyles.css
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
:root {
}
* {
box-sizing: border-box;
/* line-height: 1.1rem; */
}
h3, h4, div {
padding: 4px;
}
#unitName {
text-align: center;
width: 100%;
}
#readTimeDiv {
background: #ebe1e1;
padding: 4px;
border-radius: 4px;
}
h2 {
background: linear-gradient(#aa96f3, #fac6d5, #aa96f3);
}
h3 {
text-transform: uppercase;
background: linear-gradient(#f396b2, #fac6d5, #f396b2);
}
h4 {
text-decoration: underline;
}
dt {
font-weight: bold;
border-left: 4px groove orange;
border-radius: 6px;
padding: 4px;
}
dd {
font-style: italic;
margin-left: 4ch;
border-left: 4px groove rgb(200, 255, 0);
border-radius: 6px;
padding: 4px;
}
.example {
border: 1px solid greenyellow;
padding: 2px 12px;
}
.question {
color: red;
font-weight: bold;
}
.answer {
color: blue;
font-weight: bold;
}
table {
border: 1px solid black;
border-collapse: collapse;
max-width: 100%;
}
tr, td {
border: 1px solid black;
padding: 4px 8px;
}
th {
border: 2px solid black;
padding: 4px 8px;
background-color: #f8c6d5;
}
tr:nth-child(even) {
background-color: #faeff2;
}
li {
margin: 12px 4px;
}
pre {
white-space: pre-wrap;
overflow-x: auto;
}
.srcFile > pre > .language-javascript,
.srcFile > pre > .language-json {
max-height: 400px;
overflow-y: auto;
width: 90%;
border-right: 2px solid red;
}
@media print {
pre {
white-space: pre-wrap;
overflow-x: auto;
}
.srcFile > pre .language-javascript,
.srcFile > pre > .language-json {
max-height: 100%;
width: 98%;
}
}
mjx-math,
.calculation {
border: 1px dotted green;
padding: 2px 8px;
background-color: #f8eee3;
}
mjx-math > * {
margin: 4px 0px;
}
mjx-math > *:first-child {
margin-left: 4px;
}
mjx-math > *:last-child {
margin-right: 4px;
}
.calculation {
/* line-height: 1.1rem; */
}
.calculation > mjx-container > mjx-math {
border: unset;
}
.formula {
border-left: 8px inset blue;
border-top-left-radius: 14px;
border-bottom-left-radius: 14px;
}
.formula:hover {
border-left: 8px inset red;
}