Advertisement
blackimpala

Code CSS

Oct 12th, 2023
956
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.71 KB | Software | 0 0
  1. /** Modelos **/
  2. .modelos {
  3.     padding: var(--separacion) 0;
  4. }
  5.  
  6. .header-modelos {
  7.     font-size: 6rem;
  8.     margin-bottom: var(--separacion);
  9. }
  10.  
  11.  
  12. .listado-modelos {
  13.     display: flex;
  14.     flex-direction: column-reverse;
  15. }
  16.  
  17. @media (min-width: 992px) {
  18.     .listado-modelos {
  19.         display: grid;
  20.         grid-template-columns: repeat(2, 1fr);
  21.         grid-template-rows: repeat(2, 20rem);
  22.         gap: 4rem;
  23.     }
  24. }
  25.  
  26. .modelo {
  27.     background-color: var(--grisClaro);
  28.     margin-bottom: 2rem;
  29.     padding-left: 4rem;
  30.     color: var(--primario);
  31.     border-radius: 2rem;
  32.     min-height: 20rem;
  33.     background-repeat: no-repeat;
  34.     background-position: 90% center;
  35.     background-size: 15rem;
  36.     display: flex;
  37.     flex-direction: column;
  38.     justify-content: center;
  39.     transition-property: transform background-size;
  40.     transition-duration: .3s;
  41. }
  42. .modelo:hover {
  43.     transform: scale(1.1);
  44.     background-size: 30rem;
  45. }
  46.  
  47.  
  48. @media (min-width: 992px) {
  49.     .modelo {
  50.         margin-bottom: 0;
  51.     }
  52. }
  53.  
  54. .modelo h3 {
  55.     font-size: 2.4rem;
  56. }
  57.  
  58. .modelo .precio {
  59.     font-size: 4rem;
  60.     font-weight: 900;
  61.     line-height: 0;
  62. }
  63.  
  64. .modelo:first-of-type {
  65.     margin-bottom: 0;
  66. }
  67.  
  68. .modelo-x {
  69.     background-image: url(../img/modelo-x.svg);
  70. }
  71. .modelo-y {
  72.     background-image: url(../img/modelo-y.svg);
  73. }
  74.  
  75. .modelo-z {
  76.     background-image: url(../img/modelo-z.svg);
  77.     background-color: var(--primario);
  78.     color: var(--blanco);
  79. }
  80. @media (min-width: 992px) {
  81.     .modelo-z {
  82.         grid-column: 2 / 3;
  83.         grid-row: 1 / 3;
  84.         background-size: 25rem;
  85.     }
  86.     .modelo-z h3 {
  87.         font-size: 4rem;
  88.     }
  89. }
  90. .modelo-z .precio {
  91.     font-size: 6rem;
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement