Difference between revisions of "Template:ETH Zurich/sponsors css"

(Align images with text in widescreens.)
Line 24: Line 24:
 
         margin: 0 auto;
 
         margin: 0 auto;
 
     }
 
     }
 +
}
 +
 +
main img {
 +
    padding-right: 50px;
 
}
 
}

Revision as of 10:22, 29 October 2017

.sponsor {

   align-items: center;
   display: flex;
   flex-flow: column wrap;

}

.sponsor > a {

   display: block;
   flex: 1 1 0;
   margin: 10px auto 5px auto;
   max-width: 250px;

}

.sponsor > p {

   flex: 1 1 0;

}

@media screen and (min-width: 620px) {

   .sponsor {
       flex-flow: row nowrap;
   }

   .sponsor > a {
       margin: 0 auto;
   }

}

main img {

    padding-right: 50px;

}