Skip to content

Commit 3d18c9d

Browse files
committed
move inline styles to less file
1 parent 82edcd6 commit 3d18c9d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

openlibrary/templates/covers/external_image.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<div class="label">
55
<label>$_("Or, use a cover from %s", source_name)</label>
66
</div>
7-
<div style="display: flex; flex-direction: row; gap: 5px;">
7+
<div class="input-container">
88
$for url in [img_url_cover, img_url_title]:
99
$if url:
10-
<div class="input" style="align-items: center;">
11-
<a href="$url" target="_blank" style="flex-direction: column;">
10+
<div class="input">
11+
<a href="$url" target="_blank">
1212
<img class="ol-cover-form--external_image" src="$url" style="height: 200px" alt="" />
1313
</a>
14-
<button type="submit" class="cta-btn cta-btn--vanilla" name="url" style="flex-direction: column;" value="$url">$_("Upload Image")</button>
14+
<button type="submit" class="cta-btn cta-btn--vanilla" name="url" value="$url">$_("Upload Image")</button>
1515
</div>
1616
</div>
1717
</form>

static/css/components/cbox.less

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,12 @@ div.floater {
278278

279279
.input {
280280
flex-direction: column;
281-
align-items: flex-start;
281+
}
282+
283+
.input-container {
284+
display: flex;
285+
flex-direction: row;
286+
gap: 5px;
282287
}
283288

284289
button[type="submit"] {

0 commit comments

Comments
 (0)