mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
UX: fix onebox styling in emails
This commit is contained in:
parent
bea0856f1c
commit
951ef0d949
1 changed files with 6 additions and 6 deletions
|
@ -114,12 +114,12 @@ module Email
|
||||||
style('blockquote > p', 'padding: 1em;')
|
style('blockquote > p', 'padding: 1em;')
|
||||||
|
|
||||||
# Oneboxes
|
# Oneboxes
|
||||||
style('aside.onebox', "padding: 12px 25px 2px 12px; border-left: 5px solid #bebebe; background: #eee; margin-bottom: 10px;")
|
style('aside.onebox', "border: 5px solid #e9e9e9; padding: 12px 25px 12px 12px;")
|
||||||
style('aside.onebox img', "max-height: 80%; max-width: 25%; height: auto; float: left; margin-right: 10px; margin-bottom: 10px")
|
style('aside.onebox header a[href]', "color: #222222; text-decoration: none;")
|
||||||
style('aside.onebox h3', "border-bottom: 0")
|
style('aside.onebox .onebox-body', "clear: both")
|
||||||
style('aside.onebox .source', "margin-bottom: 8px")
|
style('aside.onebox .onebox-body img', "max-height: 80%; max-width: 20%; height: auto; float: left; margin-right: 10px;")
|
||||||
style('aside.onebox .source a[href]', "color: #333; font-weight: normal")
|
style('aside.onebox .onebox-body h3, aside.onebox .onebox-body h4', "font-size: 1.17em; margin: 10px 0;")
|
||||||
style('aside.clearfix', "clear: both")
|
style('.onebox-metadata', "color: #919191")
|
||||||
|
|
||||||
# Finally, convert all `aside` tags to `div`s
|
# Finally, convert all `aside` tags to `div`s
|
||||||
@fragment.css('aside, article, header').each do |n|
|
@fragment.css('aside, article, header').each do |n|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue