156 lines
2.6 KiB
Plaintext
156 lines
2.6 KiB
Plaintext
page {
|
|
background-color: #f6f7f9;
|
|
height: 100%;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.header-tip {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
color: #666;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.input-area {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
background: #fff;
|
|
border-radius: 50px;
|
|
padding: 5px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.input {
|
|
flex: 1;
|
|
height: 40px;
|
|
padding: 0 20px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.btn-add {
|
|
width: 80px;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
background: #9c27b0;
|
|
color: #fff;
|
|
border-radius: 40px;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.list-area {
|
|
flex: 1;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 10px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.name-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.name-item {
|
|
background: #f3e5f5;
|
|
color: #4a148c;
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
|
|
.name-text {
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.btn-delete {
|
|
width: 20px;
|
|
height: 20px;
|
|
line-height: 18px;
|
|
text-align: center;
|
|
border-radius: 50%;
|
|
background: rgba(0,0,0,0.1);
|
|
color: #4a148c;
|
|
font-size: 16px;
|
|
position: absolute;
|
|
right: 5px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.empty-tip {
|
|
width: 100%;
|
|
text-align: center;
|
|
color: #999;
|
|
padding-top: 50px;
|
|
}
|
|
|
|
.result-area {
|
|
height: 200px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.result-box {
|
|
width: 120px;
|
|
height: 120px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
border: 5px solid #e1bee7;
|
|
box-shadow: 0 4px 15px rgba(156, 39, 176, 0.2);
|
|
transition: all 0.1s;
|
|
}
|
|
|
|
.result-box.rolling {
|
|
transform: scale(1.1);
|
|
border-color: #9c27b0;
|
|
}
|
|
|
|
.result-text {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
/* Prevent long names from overflowing */
|
|
max-width: 90%;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.btn-start {
|
|
width: 80% !important;
|
|
background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
|
|
color: #fff;
|
|
border-radius: 30px;
|
|
padding: 12px 0;
|
|
font-size: 18px;
|
|
box-shadow: 0 4px 15px rgba(142, 36, 170, 0.4);
|
|
}
|
|
|
|
.btn-start[disabled] {
|
|
opacity: 0.7;
|
|
background: #ccc;
|
|
box-shadow: none;
|
|
}
|