Files
youlegames/codes/minipro/calculation/miniprogram/pages/unit-converter/unit-converter.wxss

154 lines
2.7 KiB
Plaintext

page {
background-color: #EBF4F8; /* Color 03 */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.container {
padding: 20px;
max-width: 600px;
margin: 0 auto;
}
/* 顶部选择区 */
.header-section {
margin-bottom: 24px;
display: flex;
justify-content: center;
}
.category-picker {
background: #ffffff;
padding: 10px 24px;
border-radius: 50px;
box-shadow: 0 4px 12px rgba(17, 97, 107, 0.1);
display: flex;
align-items: center;
gap: 10px;
color: #11616B; /* Color 01 */
}
.category-picker .label {
font-size: 14px;
color: #7BBDB6; /* Color 02 */
}
.category-picker .value {
font-size: 18px;
font-weight: 600;
color: #11616B; /* Color 01 */
}
.category-picker .arrow {
font-size: 12px;
color: #7BBDB6; /* Color 02 */
}
/* 核心转换卡片 */
.converter-card {
background: #ffffff;
border-radius: 20px;
padding: 10px;
box-shadow: 0 8px 24px rgba(17, 97, 107, 0.08); /* Teal shadow */
display: flex;
flex-direction: column;
}
.conversion-row {
padding: 20px;
position: relative;
}
.input-row {
background-color: #fff;
border-radius: 16px 16px 4px 4px;
}
.output-row {
background-color: #EBF4F8; /* Color 03 */
border-radius: 4px 4px 16px 16px;
}
.row-label {
font-size: 12px;
color: #7BBDB6; /* Color 02 */
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 1px;
}
.row-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.value-input, .value-display {
flex: 1;
font-size: 32px;
font-weight: 500;
color: #11616B; /* Color 01 */
height: 48px;
line-height: 48px;
min-width: 0;
}
.value-display {
color: #DC8B70; /* Color 05 - Accent for Result */
}
/* 单位选择器 */
.unit-selector {
display: flex;
align-items: center;
}
.unit-text {
font-size: 16px;
color: #11616B; /* Color 01 */
font-weight: 500;
background-color: rgba(123, 189, 182, 0.2); /* Color 02 Low Opacity */
padding: 6px 12px;
border-radius: 8px;
display: flex;
align-items: center;
gap: 4px;
}
.unit-arrow {
font-size: 10px;
opacity: 0.6;
}
/* 分割线/转换图标 */
.divider {
position: relative;
height: 1px;
background-color: rgba(17, 97, 107, 0.1);
margin: 0 20px;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.icon-transfer {
width: 32px;
height: 32px;
background-color: #fff;
border-radius: 50%;
border: 1px solid rgba(17, 97, 107, 0.1);
color: #11616B; /* Color 01 */
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tips {
margin-top: 30px;
text-align: center;
font-size: 13px;
color: #999;
}