UNPKG

framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

94 lines (93 loc) 2.5 kB
.ios { .messagebar { *:is(a, button):is(.icon-only, :has(i:only-child), :has(svg:only-child)) { min-height: var(--f7-messagebar-textarea-height); min-width: var(--f7-messagebar-textarea-height); } textarea { box-shadow: var(--f7-glass-shadow); backdrop-filter: var(--f7-glass-backdrop); min-height: var(--f7-messagebar-textarea-height); } } .messagebar-attachments { padding: 5px; border-radius: var(--f7-messagebar-textarea-border-radius) var(--f7-messagebar-textarea-border-radius) 0 0; border: 1px solid var(--f7-messagebar-attachments-border-color); border-bottom: none; } .messagebar-area { border-radius: var(--f7-messagebar-textarea-border-radius); } .messagebar-attachments-visible { .messagebar-area { background: var(--f7-messagebar-textarea-bg-color); box-shadow: var(--f7-glass-shadow); border-radius: var(--f7-messagebar-textarea-border-radius); .ios-glass-backdrop(); } .messagebar-attachments + textarea { background: transparent; box-shadow: none; backdrop-filter: none; border-radius: 0 0 var(--f7-messagebar-textarea-border-radius) var(--f7-messagebar-textarea-border-radius); } } .messagebar-attachment { font-size: 14px; + .messagebar-attachment { .ltr({ margin-left: 8px; }); .rtl({ margin-right: 8px; }); } } .messagebar-attachment-delete { right: 5px; top: 5px; width: 20px; height: 20px; background: #7d7e80; border: 2px solid #fff; box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); &:after, &:before { width: 10px; height: 2px; background: #fff; margin-left: -5px; margin-top: -1px; } } .messagebar-sheet-image, .messagebar-sheet-item { box-sizing: border-box; flex-shrink: 0; margin-top: 1px; position: relative; overflow: hidden; height: calc((var(--f7-messagebar-sheet-height) - 2px) / 2); width: calc((var(--f7-messagebar-sheet-height) - 2px) / 2); .ltr({ margin-left: 1px; }); .rtl({ margin-right: 1px; }); @media (orientation: landscape) { width: calc((var(--f7-messagebar-sheet-landscape-height) - 2px) / 2); height: calc((var(--f7-messagebar-sheet-landscape-height) - 2px) / 2); } .icon-checkbox, .icon-radio { position: absolute; right: 8px; bottom: 8px; z-index: 1; } } }