Skip to content

Commit 810045b

Browse files
committed
Página responsiva
1 parent 4c17119 commit 810045b

2 files changed

Lines changed: 146 additions & 88 deletions

File tree

css/style.css

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -413,29 +413,29 @@ body {
413413
transition: 0.5s;
414414
color: var(--bs-dark);
415415
display: block;
416-
margin: auto; /* Centers the element horizontally */
417-
width: 100%; /* Occupy full width of its container */
418-
height: auto; /* Maintain the natural height */
419-
max-width: 1200px; /* Maximum width to prevent it from spanning the entire screen */
416+
margin: auto;
417+
width: 100%;
418+
height: auto;
419+
max-width: 1200px;
420+
background: url('../img/papel_blanco.jpg') no-repeat center center;
421+
background-size: cover;
420422
}
421423

422-
423424
.testimonial-carousel .testimonial-item {
424-
padding: 10%;
425+
padding: 10% 10% 5%; /* Reduced bottom padding */
425426
}
426427

427428
.testimonial-center {
428429
display: block;
429430
width: 100%;
430431
height: auto;
431-
/* margin-left: calc(15%); */
432432
}
433433

434-
/* Boton izquierda */
435-
.testimonial-carousel .owl-nav .owl-prev {
434+
/* Navigation arrows - default state (desktop) */
435+
.testimonial-carousel .owl-nav .owl-prev,
436+
.testimonial-carousel .owl-nav .owl-next {
436437
position: absolute;
437438
top: 50%;
438-
left: 0;
439439
transform: translateY(-50%);
440440
width: 60px;
441441
height: 60px;
@@ -447,23 +447,15 @@ body {
447447
transition: 0.5s;
448448
}
449449

450-
/* Boton derecha */
450+
.testimonial-carousel .owl-nav .owl-prev {
451+
left: 0;
452+
}
453+
451454
.testimonial-carousel .owl-nav .owl-next {
452-
position: absolute;
453-
top: 50%;
454455
right: 0;
455-
transform: translateY(-50%);
456-
width: 60px;
457-
height: 60px;
458-
display: flex;
459-
align-items: center;
460-
justify-content: center;
461-
background: var(--bs-white);
462-
color: var(--bs-primary);
463-
transition: 0.5s;
464456
}
465457

466-
/* Botones hover */
458+
/* Navigation arrows hover */
467459
.testimonial-carousel .owl-nav .owl-prev:hover,
468460
.testimonial-carousel .owl-nav .owl-next:hover {
469461
background: var(--bs-primary);
@@ -480,16 +472,39 @@ body {
480472
transition: 0.5s;
481473
}
482474

475+
/* Mobile adjustments */
483476
@media (max-width: 576px) {
477+
.testimonial-carousel .testimonial-item {
478+
padding: 10% 5% 5%; /* Reduced side padding on mobile */
479+
}
480+
484481
.testimonial-carousel .owl-dots {
485482
justify-content: start;
486483
}
484+
485+
/* Smaller navigation arrows on mobile */
486+
.testimonial-carousel .owl-nav .owl-prev,
487+
.testimonial-carousel .owl-nav .owl-next {
488+
width: 40px; /* Reduced from 60px */
489+
height: 40px; /* Reduced from 60px */
490+
opacity: 0.7; /* Make them slightly transparent */
491+
}
492+
493+
/* Optional: you can also adjust the position to prevent overlap */
494+
.testimonial-carousel .owl-nav .owl-prev {
495+
left: 0%;
496+
}
497+
498+
.testimonial-carousel .owl-nav .owl-next {
499+
right: 0%;
500+
}
487501
}
488502

489-
.testimonial-carousel {
490-
background: url('../img/papel_blanco.jpg') no-repeat center center;
491-
background-size: cover;
492-
503+
/* Optional: Hide navigation arrows on very small screens */
504+
@media (max-width: 380px) {
505+
.testimonial-carousel .owl-nav {
506+
display: none;
507+
}
493508
}
494509

495510
/* Texto */
@@ -511,6 +526,7 @@ body {
511526
/* Imagen grande de arriba */
512527
.testimonial-carousel .border-primary {
513528
border-color: var(--bs-primary) !important;
529+
justify-content: center;
514530
}
515531

516532
/* Imágenes pequeñas de abajo */

0 commit comments

Comments
 (0)