Advertisement
andreadc

gallery.component.css

Feb 19th, 2020
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.97 KB | None | 0 0
  1. *{
  2.     box-sizing:border-box;
  3. }
  4.  
  5. body{
  6.     background-color: cornflowerblue;
  7. }
  8.  
  9. h2{
  10.     text-align:center;
  11. }
  12.  
  13. .container{
  14.     background-color: chartreuse;
  15.     border: 2px solid black;
  16.     /*width: 1200px;*/
  17.     display: flex;
  18.     justify-content: start;
  19. }
  20. .filterBox{
  21.     text-align: left;
  22.     background-color: blueviolet;
  23.     width: 200px;
  24.     max-width: 200px;
  25. }
  26.  
  27. .gallery{
  28.     vertical-align: top;
  29.     text-align: center;
  30.     display: -webkit-box;
  31.     display: -moz-box;
  32.     display: -ms-flexbox;
  33.     display: -webkit-flex;
  34.     display: flex;
  35.     justify-content: space-around;
  36.     flex-wrap: wrap;
  37. }
  38.  
  39. .card{
  40.     width: 100%;
  41.     background-color: rgb(78, 77, 148);
  42.     margin: 10px;
  43.     width: 200px !important;
  44.     max-width: 200px !important;
  45.     height: fit-content;
  46. }
  47.  
  48. .card:hover{
  49.     transition:all ease-in-out 0.2s;
  50.     transform: scale(1.05, 1.05);
  51. }
  52.  
  53. img{
  54.     width: 100%;
  55.     height: 100%;
  56. }
  57.  
  58. .description{
  59.     text-align:left;
  60.     font-size:0.65em;
  61.     padding:0;
  62.     word-break: break-all;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement