Difference between revisions of "Template:BNU-CHINA/CSS/style-team"

Line 18: Line 18:
 
}
 
}
  
.team-info:nth-child(even) {
+
.team-info:nth-child(even) .team-card {
 
   flex-direction: row-reverse;
 
   flex-direction: row-reverse;
 
}
 
}

Revision as of 17:58, 18 October 2016

.team-info {

 display: flex;

}

.team-info .team-card {

 padding: 0;
 margin: 0;
 display: flex;
 flex: 0 0 50%;
 width: 50%;
 max-width: 50%;

}

.team-card>* {

 flex: 0 0 50%;
 width: 50%;
 max-width: 50%;

}

.team-info:nth-child(even) .team-card {

 flex-direction: row-reverse;

}