Skip to content

Commit 9f3eaab

Browse files
committed
fix: simplify styling of callouts use correct margins
1 parent 66f84f4 commit 9f3eaab

File tree

1 file changed

+10
-29
lines changed

1 file changed

+10
-29
lines changed

assets/style.css

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -144,45 +144,26 @@ th {
144144
padding: 15px;
145145
}
146146

147-
.callout {
148-
margin-top: 28px;
149-
margin-bottom: 28px;
150-
width: 100%;
151-
border-radius: 5px;
152-
padding-left: 16px;
153-
padding-right: 16px;
154-
padding-bottom: 4px;
155-
box-sizing: border-box;
156-
}
157-
158147
.callout p {
159-
padding-top: 8px;
160-
margin-top: 0px;
161-
margin-bottom: 4px;
162-
line-height: 18pt;
163-
color: var(--fg);
148+
margin: 0px;
164149
}
165150

166-
.callout p:last-child {
167-
margin-bottom: 4px;
151+
.callout {
152+
border-radius: 5px;
153+
overflow: hidden;
154+
margin-bottom: 20px;
168155
}
169156

170157
.callout .callout-title {
171-
border-top-right-radius: 5px;
172-
border-top-left-radius: 5px;
173-
margin-left: -16px;
174-
margin-top: -16px;
175-
margin-right: -16px;
176-
margin-bottom: 0px;
177-
padding-left: 16px;
178-
padding-right: 16px;
179-
padding-top: 8px;
180-
padding-bottom: 8px;
181-
158+
padding: 2px 10px;
182159
font-weight: 700;
183160
color: #fff !important;
184161
}
185162

163+
.callout p:not(.callout-title) {
164+
margin: 5px 10px;
165+
}
166+
186167
.callout.info {
187168
background: var(--info-dim);
188169
}

0 commit comments

Comments
 (0)