Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.46 KB | None | 0 0
  1. .cards-list{
  2.     display: flex;
  3.     flex-wrap: wrap;
  4.     width: calc(100% + 30px);
  5.     margin-left: -15px;
  6.     margin-right: -15px;
  7.     margin-bottom: -30px;
  8.  
  9.     > .item{
  10.         padding: 0 15px;
  11.         margin-bottom: 30px;
  12.     }
  13.  
  14.     &.columns-5{
  15.         > .item{
  16.             width: 20%;
  17.         }
  18.     }
  19.  
  20.     &.columns-4{
  21.         > .item{
  22.             width: 25%;
  23.  
  24.             &.wide{
  25.                 width: 50%;
  26.             }
  27.         }
  28.     }
  29.  
  30.     &.columns-3{
  31.         > .item{
  32.             width: 33.3333%;
  33.         }
  34.     }
  35.  
  36.     &.columns-2{
  37.         > .item{
  38.             width: 50%;
  39.         }
  40.     }
  41.  
  42.     @media screen and (max-width: 1199px){
  43.         &.lg-columns-3{
  44.             > .item{
  45.                 width: 33.333%;
  46.  
  47.                 &.wide{
  48.                     // width: 66.6667%;
  49.                     display: none;
  50.                 }
  51.             }
  52.         }
  53.  
  54.         &.lg-columns-2{
  55.             > .item{
  56.                 width: 50%;
  57.             }
  58.         }
  59.  
  60.         &.lg-columns-1{
  61.             > .item{
  62.                 width: 100%;
  63.             }
  64.         }
  65.     }
  66.  
  67.     @media screen and (max-width: 991px){
  68.         &.md-columns-3{
  69.             > .item{
  70.                 width: 33.333%;
  71.  
  72.                 &.wide{
  73.                     width: 66.6667%;
  74.                     display: none;
  75.                 }
  76.             }
  77.         }
  78.  
  79.         &.md-columns-2{
  80.             > .item{
  81.                 width: 50%;
  82.             }
  83.         }
  84.  
  85.         &.md-columns-1{
  86.             > .item{
  87.                 width: 100%;
  88.             }
  89.         }
  90.     }
  91.  
  92.     @media screen and (max-width: 767px){
  93.         &.sm-columns-2{
  94.             > .item{
  95.                 width: 50%;
  96.  
  97.                 &.wide{
  98.                     width: 100%;
  99.                 }
  100.             }
  101.         }
  102.  
  103.         &.sm-columns-1{
  104.             > .item{
  105.                 width: 100%;
  106.             }
  107.         }
  108.     }
  109.  
  110.     @media screen and (max-width: 575px){
  111.         &.xs-columns-2{
  112.             > .item{
  113.                 width: 50%;
  114.             }
  115.         }
  116.  
  117.         &.xs-columns-1{
  118.             > .item{
  119.                 width: 100%;
  120.  
  121.                 &.wide{
  122.                     display: none;
  123.                 }
  124.             }
  125.         }
  126.     }
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement