#messages-compose-form { display: flex; flex-direction: column; height: auto; /* overrides building blocks */ min-height: 4rem; background-color: #fff; } /* Overwrite. No more fixed height */ form[role="search"] p input, form[role="search"] p textarea, form[role="search"] button[type="submit"] + p > textarea { height: auto; } /* * Input now are contentEditable containers. We define * placeholder management here as well. */ #messages-input { position: relative; /* to position its generated content */ overflow: auto; box-sizing: border-box; width: 100%; height: 100%; padding-inline-end: 0.5rem; color: #474747; border-inline-end: 0.1rem solid #ccc; font-size: 1.7rem; line-height: 2.1rem; unicode-bidi: -moz-plaintext; } #messages-input.placeholder { unicode-bidi: unset; } #messages-input:after { content: attr(title); position: absolute; top: 0; left: 0; right: 0; color: #9b9b9b; font-style: italic; white-space: nowrap; pointer-events: none; visibility: hidden; } #messages-input.placeholder:after { visibility: visible; } /* Overwrite BB because of the previous rule */ form[role="search"] button[type="submit"]:after { content: ""; background: none; } .mms-label-line { display: flex; justify-content: flex-end; align-items: flex-end; background-color: #e1f0ec; } .subject-composer { position: relative; flex-grow: 1; min-width: 0; padding: 1rem 0 0.3rem; } .mms-label { padding: 1rem 0 0.3rem; } .mms-label, .message-counter { display: none; flex: none; text-align: center; box-sizing: border-box; width: 6rem; color: #575757; font-size: 1.4rem; } .message-counter { padding-top: .7rem; } /** * 1. "MMS" label is displayed near the subject field when subject input is * visible and message type is MMS; * 2. Remaining characters counter is displayed in bottom section if character * count exceeds predefined threshold and message type is SMS. */ [data-message-type='mms'] .mms-label, [data-message-type='sms'] .message-counter:not(:empty) { display: block; } .content-composer { display: flex; flex-direction: row; min-height: 0; } .subject-composer-input { position: relative; box-sizing: border-box; min-height: 2.2rem; padding: 0; padding-bottom: 0.1rem; padding-inline-start: 1.5rem; color: #008787; font-size: 1.7rem; } .subject-composer-placeholder { position: absolute; top: 1rem; /* adding both left/right so that it behaves correctly in RTL */ left: 1.5rem; right: 1.5rem; color: #00adad; font-size: 1.7rem; font-weight: normal; font-style: italic; pointer-events: none; } .composer-message-input-container { position: relative; flex: auto; box-sizing: border-box; min-width: 0; height: 100%; min-height: 4rem; padding: 1rem 0; } .composer-button-container { position: relative; display: flex; flex: none; flex-direction: row; justify-content: center; align-content: space-between; flex-wrap: wrap; width: 6rem; -moz-user-select: none; /* without this, tapping on the element selects its content */ } .messages-attach-container { display: flex; } #messages-send-button { height: 4rem; overflow: visible; background: #fff no-repeat center center / 3rem; align-self: flex-end; } html[dir="ltr"] #messages-send-button { background-image: image-set(url("images/icons/actionicon_sms_send_30x30.png") 1x, url("images/icons/actionicon_sms_send_30x30@1.5x.png") 1.5x, url("images/icons/actionicon_sms_send_30x30@2x.png") 2x, url("images/icons/actionicon_sms_send_30x30@2.25x.png") 2.25x); /* When we put the icon at the center, an optical illusion makes it look to be * slightly to the left, so we offset the button by 2px to the right to * counteract this illusion */ transform: translate(.2rem); } html[dir="rtl"] #messages-send-button { background-image: url(images/icons/actionicon_sms_send_30x30_rtl.png); transform: translate(-.2rem); } #messages-send-button:after { display: none } #messages-send-button[disabled] { background-blend-mode: luminosity; opacity: 0.625; } #messages-attach-button { align-self: flex-end; flex: none; box-sizing: content-box; width: 3rem; margin: 0; padding: 0; padding-inline-start: 0.5rem; padding-inline-end: 1rem; background: transparent image-set(url("images/icons/actionicon_sms_add_attachment_30x30.png") 1x, url("images/icons/actionicon_sms_add_attachment_30x30@1.5x.png") 1.5x, url("images/icons/actionicon_sms_add_attachment_30x30@2x.png") 2x, url("images/icons/actionicon_sms_add_attachment_30x30@2.25x.png") 2.25x) no-repeat center / 3rem; } #messages-attach-button[disabled] { background-blend-mode: luminosity; opacity: 0.3; } /* DSDS */ .sim-indication { position: absolute; offset-inline-end: 1.8rem; bottom: 0.4rem; display: none; line-height: 1; color: #5f5f5f; font-size: 1.4rem; font-style: normal; } .sim-indication:before { position: absolute; /* 2.6rem from the end; means .8rem from .sim-indication */ offset-inline-end: .8rem; bottom: -0.1rem; content: '...'; color: #b2b2b2; font-size: 1.6rem; } button[disabled] .sim-indication { color: inherit; } .has-preferred-sim .sim-indication { display: block; } /** * Override Building Block [Input areas] styles * We should get rid of all [role="search"] Messages rules in bug 1055357. */ form.bottom[role="search"] { z-index: 3; }