315 lines
5.2 KiB
Plaintext
315 lines
5.2 KiB
Plaintext
/* subpackage/train/bluetooth/search/search.wxss */
|
|
.container {
|
|
padding: 20rpx;
|
|
text-align: center;
|
|
}
|
|
page{
|
|
background-color: rgb(247, 247, 247);
|
|
}
|
|
|
|
.page-content{
|
|
background-color: rgb(247, 247, 247);
|
|
/* background: linear-gradient(190deg, #6bb6fc 0%, #f7f7f7 800rpx, #f7f7f7 100%); */
|
|
padding: 0 30rpx;
|
|
box-sizing: border-box;
|
|
padding-bottom: 300rpx;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.yellow {
|
|
position: absolute;
|
|
width: 250rpx;
|
|
height: 130rpx;
|
|
top: 140rpx;
|
|
left: 0%;
|
|
}
|
|
|
|
.anim{
|
|
animation: rotate 3s linear infinite;
|
|
transform-origin:100% 110rpx !important;
|
|
}
|
|
|
|
.text{
|
|
color: rgb(102, 102, 102);
|
|
font-size: 24rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
.now{
|
|
font-weight: bold;
|
|
font-size: 36rpx;
|
|
}
|
|
|
|
@keyframes rotate {
|
|
from {
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
}
|
|
|
|
.search-box-1{
|
|
margin: 0 auto;
|
|
margin-top: 60rpx;
|
|
margin-bottom: 40rpx;
|
|
width: 500rpx;
|
|
height: 500rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
border-radius: 50%;
|
|
position: relative;
|
|
}
|
|
|
|
.search-box-2{
|
|
width: 360rpx;
|
|
height: 360rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
.search-box-3{
|
|
width: 220rpx;
|
|
height: 220rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: rgba(255, 255, 255, 0.4);
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
.title {
|
|
font-size: 40rpx;
|
|
font-weight: bold;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
button {
|
|
margin: 10rpx 0;
|
|
padding: 20rpx;
|
|
background-color: #007aff;
|
|
color: white;
|
|
border-radius: 10rpx;
|
|
}
|
|
|
|
.device-list {
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.titlee{
|
|
font-weight: bold;
|
|
font-size: 32rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
/* justify-content: center; */
|
|
margin-top: 66rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.titlee-before{
|
|
height: 24rpx;
|
|
border-radius: 6rpx;
|
|
width: 6rpx;
|
|
margin-right: 20rpx;
|
|
background:linear-gradient(180.00deg, rgb(38, 165, 246),rgba(38, 165, 246, 0) 100%)
|
|
}
|
|
|
|
.device-item {
|
|
margin: 0 30rpx;
|
|
box-sizing: border-box;
|
|
box-shadow: 0 10rpx 10rpx rgba(0, 0, 0, 0.06);
|
|
border-radius: 20rpx;
|
|
height: 140rpx;
|
|
padding: 0 20rpx 0 30rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: #fff;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
.device-item image{
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.left{
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.right{
|
|
width: 110rpx;
|
|
height: 50rpx;
|
|
border: 2rpx solid #007aff;
|
|
background-color: rgba(38, 165, 246, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20rpx;
|
|
color: #007aff;
|
|
border-radius: 50rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.status, .data {
|
|
margin-top: 20rpx;
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
/* 电量区域 */
|
|
.battery-section {
|
|
margin-top: 10rpx;
|
|
}
|
|
|
|
.battery-card {
|
|
margin: 0 30rpx;
|
|
background-color: #fff;
|
|
border-radius: 20rpx;
|
|
box-shadow: 0 10rpx 10rpx rgba(0, 0, 0, 0.06);
|
|
padding: 40rpx 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.battery-display {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.battery-placeholder {
|
|
font-size: 60rpx;
|
|
color: #ccc;
|
|
font-weight: bold;
|
|
line-height: 1;
|
|
}
|
|
|
|
.battery-icon-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.battery-icon {
|
|
width: 80rpx;
|
|
height: 40rpx;
|
|
border: 4rpx solid #333;
|
|
border-radius: 6rpx;
|
|
padding: 4rpx;
|
|
box-sizing: border-box;
|
|
background-color: #f5f5f5;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.battery-level {
|
|
height: 100%;
|
|
border-radius: 3rpx;
|
|
background: linear-gradient(90deg, #4cd964, #26a5f6);
|
|
transition: width 0.4s ease;
|
|
}
|
|
|
|
.battery-cap {
|
|
width: 8rpx;
|
|
height: 18rpx;
|
|
background-color: #333;
|
|
border-radius: 0 3rpx 3rpx 0;
|
|
margin-left: 2rpx;
|
|
}
|
|
|
|
.battery-percent {
|
|
font-size: 48rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.battery-btn {
|
|
margin: 0 !important;
|
|
padding: 0 30rpx !important;
|
|
height: 70rpx;
|
|
line-height: 70rpx;
|
|
font-size: 26rpx;
|
|
background-color: #007aff;
|
|
color: white;
|
|
border-radius: 50rpx;
|
|
min-width: 160rpx;
|
|
}
|
|
|
|
/* 名称管理区域 */
|
|
.name-section {
|
|
margin-top: 10rpx;
|
|
}
|
|
|
|
.name-card {
|
|
margin: 0 30rpx;
|
|
background-color: #fff;
|
|
border-radius: 20rpx;
|
|
box-shadow: 0 10rpx 10rpx rgba(0, 0, 0, 0.06);
|
|
padding: 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.name-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8rpx;
|
|
}
|
|
|
|
.name-label {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.name-value {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.name-action-btn {
|
|
margin: 0 !important;
|
|
padding: 0 30rpx !important;
|
|
height: 70rpx;
|
|
line-height: 70rpx;
|
|
font-size: 26rpx;
|
|
background-color: #007aff;
|
|
color: white;
|
|
border-radius: 50rpx;
|
|
min-width: 160rpx;
|
|
}
|
|
|
|
.name-edit-card {
|
|
margin: 0 30rpx;
|
|
background-color: #fff;
|
|
border-radius: 20rpx;
|
|
box-shadow: 0 10rpx 10rpx rgba(0, 0, 0, 0.06);
|
|
padding: 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.name-input {
|
|
flex: 1;
|
|
height: 70rpx;
|
|
border: 2rpx solid #e0e0e0;
|
|
border-radius: 12rpx;
|
|
padding: 0 20rpx;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
box-sizing: border-box;
|
|
}
|