Spaces:
Sleeping
Sleeping
File size: 3,301 Bytes
3dde316 495de8c 3dde316 18fbed4 3dde316 495de8c 3dde316 18fbed4 3dde316 18fbed4 3dde316 18fbed4 3dde316 495de8c 3dde316 18fbed4 3dde316 18fbed4 3dde316 18fbed4 3dde316 495de8c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | .main-container {
display: flex;
justify-content: space-between;
padding: 20px;
gap: 20px;
}
.tables-section {
flex: 2;
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.registration-section {
flex: 1;
min-width: 300px;
max-width: 400px;
padding: 20px;
background-color: #f8f9fa;
border-radius: 8px;
position: sticky;
top: 20px;
height: fit-content;
}
.table-circle {
width: 280px;
height: auto;
border-radius: 8px;
border: 2px solid #ddd;
display: flex;
flex-direction: column;
align-items: stretch;
padding: 15px;
margin: 15px;
background-color: white;
transition: all 0.3s ease;
}
.table-circle:hover {
border-color: #007bff;
background-color: #f8f9fa;
}
.table-circle.selected {
border-color: #007bff;
background-color: #e7f1ff;
}
.table-circle.full {
opacity: 0.7;
}
.table-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
flex-wrap: wrap;
gap: 10px;
}
.table-name {
font-size: 1.2rem;
font-weight: bold;
margin: 0;
}
.select-seat-btn {
padding: 4px 8px;
font-size: 0.9rem;
}
.participants-list {
display: flex;
flex-direction: column;
gap: 5px;
}
.participant-item {
padding: 8px;
border-radius: 4px;
background-color: #f8f9fa;
cursor: pointer;
transition: all 0.2s ease;
}
.participant-item:hover {
background-color: #e9ecef;
}
.participant-item.table-leader {
background-color: #28a745;
color: white;
border-left: 4px solid #1e7e34;
}
.table-circle.full .select-seat-btn {
display: none;
}
.seats-info {
font-size: 1rem;
color: #666;
}
.table-container {
display: inline-block;
margin: 15px;
text-align: center;
}
/* 響應式設計 */
@media (max-width: 768px) {
.main-container {
flex-direction: column;
padding: 10px;
}
.registration-section {
position: static;
max-width: none;
min-width: auto;
order: -1; /* 在手機版中將註冊表單放在最上方 */
margin-bottom: 20px;
}
.tables-section {
flex: none;
width: 100%;
}
.table-circle {
width: 100%;
max-width: none;
margin: 10px 0;
}
.table-header {
flex-direction: column;
align-items: flex-start;
}
.select-seat-btn {
width: 100%;
margin-top: 10px;
}
h1 {
font-size: 1.5rem !important;
margin: 15px 0 !important;
}
.participant-item {
padding: 12px 8px; /* 增加點擊區域 */
}
}
/* 針對更小的手機螢幕 */
@media (max-width: 480px) {
.main-container {
padding: 5px;
}
.table-circle {
padding: 10px;
margin: 5px 0;
}
.registration-section {
padding: 15px;
}
}
/* 確保表單輸入在手機上更容易 */
@media (max-width: 768px) {
input, textarea, select, button {
font-size: 16px !important; /* 防止 iOS 自動縮放 */
padding: 8px !important;
}
.form-control {
margin-bottom: 15px;
}
}
|