page { background: #f0f0f0; color: #333; --safe-bottom: env(safe-area-inset-bottom); } view, cover-view, scroll-view, swiper, swiper-item, movable-area, movable-view, button, input, textarea, label, navigator { box-sizing: border-box; } .container{ position: relative; display: flex; flex-direction: column; align-items: center; width: 100vw; height: 100vh; padding-bottom: 200rpx; } .header{ width: 100%; } .container button{ padding-top: 0; padding-bottom: 0; border: 1px solid #ddd; } .devices_summary { width: 100%; line-height: 70rpx; padding: 0 30rpx; margin-top: 30rpx; font-size: 32rpx; } .device_list { flex: 1; width: 100%; height: calc(100vh - 600rpx); margin-top: 0; border: 1px solid #fff; border-radius: 5px; background: #fff; } .device_item { line-height: 1.5; padding: 10rpx 30rpx; border-bottom: 1px solid #EEE; } .device_item_hover { background-color: rgba(0, 0, 0, .1); } .connected_info { position: fixed; bottom: 0; width: 100%; height: 200rpx; padding: 10px; border-top: 1px solid #ddd; background-color: #fff; font-size: 14px; box-shadow: 0px -4rpx 4rpx 0px rgba(0,0,0,.05); } .connected_info .operation { position: absolute; display: inline-block; right: 30rpx; } .writeInputViewBg{ position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; background-color: rgba(0,0,0,0.5); } .writeInputView{ position: fixed; bottom: 200rpx; left: 0; z-index: 1001; display: flex; flex-direction: column; align-items: center; width: 100%; height: calc(100vh - 500rpx); background-color: #fff; border-top: 1px solid #ddd; } .history{ position: relative; flex: 1; width: 690rpx; padding-top: 60rpx; border: 1px solid #ddd; margin: 30rpx; } .history_title{ position: absolute; top: 0; left: 0; padding: 0 30rpx; line-height: 60rpx; font-size: 30rpx; } .history_wrap{ width: 100%; height: 100%; } .history_item{ display: flex; align-items: center; justify-content: space-between; width: 100%; height: 72rpx; padding: 0 30rpx; border-top: 1px solid #ddd; } .history_cmd{ flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 24rpx; } .history_btns{ height: 60rpx; overflow: hidden; } .writeInput{ margin-top: 30rpx; width: 690rpx; height: 80rpx; border: 1rpx solid #ccc; } .writeInput input{ width: 100%; height: 100%; padding: 10rpx; font-size: 32rpx; } .hint{ padding-top: 10rpx; font-size: 24rpx; color: #999; } .btns{ display: flex; align-items: center; justify-content: space-between; width: 60%; padding-bottom: 30rpx; margin-top: 30rpx; }