diff options
author | Aleksander Machniak <alec@alec.pl> | 2019-06-16 10:38:54 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2019-06-16 10:38:54 +0300 |
commit | 89a342a03a346056276174262ea28a9ea2c33399 (patch) | |
tree | 4887ffed7758288e5593df2e9fa1430643cb3a3a /skins/elastic/styles/widgets | |
parent | 037bc3c94f0b0ff41dfafd63bcc4cb1373b9c6d1 (diff) |
Elastic: Fix visual issue with long buttons in .boxwarning (#6797)
Diffstat (limited to 'skins/elastic/styles/widgets')
-rw-r--r-- | skins/elastic/styles/widgets/messages.less | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/skins/elastic/styles/widgets/messages.less b/skins/elastic/styles/widgets/messages.less index f1e6d8d9c..fa0f662d9 100644 --- a/skins/elastic/styles/widgets/messages.less +++ b/skins/elastic/styles/widgets/messages.less @@ -92,6 +92,29 @@ content: @fa-var-comment; } + // #6797: Fix for long buttons issue + .boxbuttons { + white-space: nowrap; + + .btn { + .overflow-ellipsis; + max-width: 220px; + } + + @media screen and (max-width: @screen-width-xs) { + display: flex; + flex-direction: column; + + .btn { + max-width: 160px; + + &:not(:first-child) { + margin-top: .25rem; + } + } + } + } + // This works with following structure: <i> <span> [button]. // <span> here is a one-line text, and button can be anything but <span>. &.aligned-buttons { |