2
2
<div >
3
3
<h1 class =' title' ><el-button plain @click =" open" >Бункер</el-button ><el-button plain @click =" refreshData" >Обновить данные</el-button ></h1 >
4
4
<client-only >
5
- <el-carousel ref =" carusel" type = " card " height =" 80vh" :autoplay =" false" @change =" changeRoute" >
5
+ <el-carousel ref =" carusel" height =" 80vh" :autoplay =" false" @change =" changeRoute" >
6
6
<el-carousel-item v-for =" item in sections" :key =" item" >
7
7
<div class =" card" >
8
+ <el-button style =" position : absolute ;right : 30px ;top : 5px ;" >
9
+ x
10
+ </el-button >
8
11
<h3 >Игрок: {{ item.player }} <strong ><span v-if =" item.player === lastSegment || item.profession.visible " >{{ item.profession.name }}</span >
9
12
<el-button
10
13
v-if =" item.player === lastSegment && !item.profession.visible"
250
253
Заменить
251
254
</el-button >
252
255
</li >
253
- <li ><strong >Здорровье :</strong > <span v-if =" item.player === lastSegment || item.health.visible" >{{ item.health.name }}</span >
256
+ <li ><strong >Здоровье :</strong > <span v-if =" item.player === lastSegment || item.health.visible" >{{ item.health.name }}</span >
254
257
<el-button
255
258
v-if =" item.player === lastSegment && !item.health.visible"
256
259
@click =" changeVisible('health', item)"
@@ -1239,19 +1242,22 @@ const open = () => {
1239
1242
.el - container {
1240
1243
background: #07184F ;
1241
1244
}
1242
- < / style>
1243
- < style scoped>
1245
+
1244
1246
.title {
1245
1247
text- align: center;
1246
1248
color: #8092CE ;
1249
+ font- size: 20px ;
1250
+ padding: 10px ;
1247
1251
}
1252
+
1248
1253
.el - carousel__item h3 {
1249
1254
color: #475669 ;
1250
1255
opacity: 0.75 ;
1251
1256
font- size: 20px ;
1252
1257
margin: 0 ;
1253
1258
text- align: center;
1254
1259
}
1260
+
1255
1261
.el - carousel__item: nth- child (2n ) {
1256
1262
background- color: #99a9bf ;
1257
1263
border- radius: 8px ;
@@ -1263,6 +1269,7 @@ const open = () => {
1263
1269
border- radius: 8px ;
1264
1270
min- width: 230px ;
1265
1271
}
1272
+
1266
1273
.card {
1267
1274
border- radius: 8px ;
1268
1275
padding: 20px ;
@@ -1291,4 +1298,45 @@ const open = () => {
1291
1298
.card li strong {
1292
1299
color: #2f3e70 ;
1293
1300
}
1301
+
1302
+ /* Медиазапросы для мобильных устройств */
1303
+ @media (max - width : 768px ) {
1304
+ .title {
1305
+ font- size: 18px ;
1306
+ padding: 5px ;
1307
+ }
1308
+
1309
+ .el - carousel__item {
1310
+ min- width: 100 % ; /* Для слайдов на мобильных */
1311
+ }
1312
+
1313
+ .card {
1314
+ padding: 15px ;
1315
+ }
1316
+
1317
+ .card h3 {
1318
+ font- size: 16px ;
1319
+ }
1320
+
1321
+ .card li {
1322
+ font- size: 14px ;
1323
+ }
1324
+
1325
+ .card .el - button {
1326
+ font- size: 12px ; /* Уменьшаем размер кнопок для мобильных */
1327
+ padding: 6px 12px ;
1328
+ }
1329
+
1330
+ .card .el - button + .el - button {
1331
+ margin- top: 5px ;
1332
+ }
1333
+
1334
+ .el - carousel__item h3 {
1335
+ font- size: 18px ;
1336
+ }
1337
+
1338
+ .el - carousel {
1339
+ height: 90vh ; /* Уменьшаем высоту карусели */
1340
+ }
1341
+ }
1294
1342
< / style>
0 commit comments