Skip to content

Commit edd298d

Browse files
authored
Merge pull request rails#52674 from adityapandit17/guides-style-fixes
Fix center alignment issue in guides blocks [ci skip]
2 parents af4be52 + eee0cc7 commit edd298d

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

guides/assets/stylesrc/_dark.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@
219219
} // #feature
220220

221221
.interstitial {
222+
display: flex;
223+
align-items: center;
222224
&.code {
223225
background-color: $gray-900;
224226
border: 1px solid $gray-800 !important;
@@ -230,23 +232,21 @@
230232
border-color: $note-dark;
231233
background-color: $note-bkgnd-dark;
232234
}
233-
235+
234236
&.info {
235237
border-color: $tip-dark;
236238
background-color: $tip-bkgnd-dark;
237239
}
238-
240+
239241
&.warning {
240242
border-color: $stop-dark;
241243
background-color: $stop-bkgnd-dark;
242244
}
243-
245+
244246
&.question {
245247
border-color: $gray-600;
246248
background-color: $gray-700;
247249
}
248-
249-
250-
}
250+
}
251251
} // body.guide
252252
} // @media (prefers-color-scheme: dark

guides/assets/stylesrc/print.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,28 +146,29 @@
146146
}
147147

148148
.interstitial {
149-
149+
display: flex;
150+
align-items: center;
150151
background-repeat: no-repeat !important;
151152
background-size: 36px 36px !important;
152153
background-position: 10px 10px !important;
153154

154155
&.note {
155156
background-image: url("../images/icon_task-list-pin.svg") !important;
156157
}
157-
158+
158159
&.work-in-progress,
159160
&.todo {
160161
background-image: url("../images/icon_construction-sign.svg") !important;
161162
}
162-
163+
163164
&.info {
164165
background-image: url("../images/icon_bulb-1.svg") !important;
165166
}
166-
167+
167168
&.warning {
168169
background-image: url("../images/icon_hand-stop.svg") !important;
169170
}
170-
171+
171172
&.question {
172173
background-image: url("../images/icon_question-bubble.svg") !important;
173174
}
@@ -181,7 +182,7 @@
181182
border: none;
182183
font-size: 9.5pt !important;
183184
}
184-
185+
185186
button {
186187
display: none;
187188
}

0 commit comments

Comments
 (0)