Metziop

Untitled

Feb 2nd, 2023
1,011
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.82 KB | None | 0 0
  1. /*tablet*/
  2. @media(max-width:730px)and (min-width:431px){
  3.     .container {  display: grid;
  4.         grid-template-columns: repeat(2, 1fr);
  5.         grid-template-rows: repeat(5, 1fr);
  6.         gap: 0px 0px;
  7.         grid-auto-flow: row;
  8.         grid-template-areas:
  9.           "menu menu"
  10.           "content content"
  11.           "content content"
  12.           "content content"
  13.           "footer footer";
  14.       }
  15.       .menu {  display: grid;
  16.         grid-template-columns: 0.5fr 1.5fr;
  17.         grid-template-rows: 1fr;
  18.         gap: 0px 0px;
  19.         grid-auto-flow: row;
  20.         grid-template-areas:
  21.           "logo nav";
  22.         grid-area: menu;
  23.       }
  24.       .logo { grid-area: logo; }
  25.       .nav { grid-area: nav;
  26.         display: flex;
  27.         justify-content: center;
  28.         vertical-align: middle;
  29.         padding-top: 50px;
  30.  
  31.     }
  32.      
  33.       .content {  display: grid;
  34.         grid-template-columns: repeat(2, 1fr);
  35.         grid-template-rows: repeat(3, 1fr);
  36.         gap: 0px 0px;
  37.         grid-auto-flow: row;
  38.         grid-template-areas:
  39.           "item-1 item-1"
  40.           "item-2 item-2"
  41.           "item-3 item-3";
  42.         grid-area: content;
  43.       }
  44.       .content img{
  45.         width: 90%;
  46.         display: flex;
  47.         align-items: center;
  48.         justify-content: center;
  49.       }
  50.       .item-1 { grid-area: item-1;  
  51.       }
  52.       .item-2 { grid-area: item-2; }
  53.       .item-3 { grid-area: item-3; }
  54.       .footer {  display: grid;
  55.         grid-template-columns: repeat(3, 1fr);
  56.         grid-template-rows: 1fr;
  57.         gap: 0px 0px;
  58.         grid-auto-flow: row;
  59.         grid-template-areas:
  60.           "info copy social";
  61.         grid-area: footer;
  62.       }      
  63.       .info { grid-area: info; }
  64.       .copy { grid-area: copy; }
  65.       .social { grid-area: social; }
  66.      
  67.      
  68. }
  69.  
Advertisement
Add Comment
Please, Sign In to add comment