Advertisement
RyanJEarnshaw

Untitled

Sep 29th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. #content {
  2. width: 90%;
  3. }
  4.  
  5. hr {
  6. margin: 10px auto;
  7. width: 80%;
  8. float: middle;
  9. }
  10.  
  11.  
  12. /*Building content*/
  13.  
  14. .teamscontainer {
  15. position: relative;
  16. margin: auto;
  17. float: left;
  18. width: 100%;
  19. margin-bottom: 20%;
  20. }
  21. .teams {
  22. display: flex;
  23. position: relative;
  24. margin: auto;
  25. width: 90%;
  26. justify-content: center;
  27. }
  28. .team {
  29. float: left;
  30. width: 15%;
  31. }
  32. .team .image {
  33. background-color: white;
  34. display: inline-block;
  35. position: relative;
  36. border: 4px solid purple;
  37. width: 8vw;
  38. height: 8vw;
  39. overflow: hidden;
  40. border-radius: 50%;
  41. }
  42. .memberscontainer {
  43. position: relative;
  44. transition: 1s ease;
  45. float: left;
  46. height: 0%;
  47. background-color: black;
  48. width: 100%;
  49. }
  50. .memberscontainer .mc2, .memberscontainer .mc3, .memberscontainer .mc4, .memberscontainer .mc5, .memberscontainer .mc6 {
  51. -webkit-transition: 1s;
  52. -moz-transition: 1s;
  53. -ms-transition: 1s;
  54. transition: 1s;
  55. margin-left: 0;
  56. z-index: 1;
  57. }
  58. .mc1 { background-color: PALEGREEN; }
  59. .mc1.expandedheight { height: 30vmax; }
  60. .mc1.expandedwidth{ width: 600%; z-index: 10; }
  61.  
  62.  
  63. .mc2 { background-color: purple; }
  64. .mc2.expandedheight { height: 30vmax; }
  65. .mc2.expandedwidth{ width: 600%; margin-left:-100%; z-index: 10;}
  66.  
  67.  
  68. .mc3 { background-color: grey; }
  69. .mc3.expandedheight { height: 30vmax; }
  70. .mc3.expandedwidth{ width: 600%; margin-left:-200%; z-index: 10;}
  71.  
  72.  
  73. .mc4 { background-color: plum; }
  74. .mc4.expandedheight { height: 30vmax; }
  75. .mc4.expandedwidth{ width: 600%; margin-left:-300%; z-index: 10;}
  76.  
  77.  
  78. .mc5 { background-color: lightsalmon; }
  79. .mc5.expandedheight { height: 30vmax; }
  80. .mc5.expandedwidth{ width: 600%; margin-left:-400%; z-index: 10;}
  81.  
  82.  
  83. .mc6 { background-color: indianred; }
  84. .mc6.expandedheight { height: 30vmax; }
  85. .mc6.expandedwidth{ width: 600%; margin-left:-500%; z-index: 10;}
  86.  
  87. /*
  88. .team1 .image { border: 4px solid purple; }
  89. .team2 .image { border: 4px solid blue; }
  90. .team3 .image { border: 4px solid grey; }
  91. .team4 .image { border: 4px solid yellow; }
  92. .team5 .image { border: 4px solid red; }
  93. .team6 .image { border: 4px solid orange; }
  94. */
  95.  
  96. .team .image img {
  97. margin-left: -17%; /*delete me for default*/
  98. width: auto;
  99. height: 90%; /*100*/
  100. }
  101.  
  102. .mc1.expandedwidth .captains,
  103. .mc2.expandedwidth .captains,
  104. .mc2.expandedwidth .captains,
  105. .mc3.expandedwidth .captains,
  106. .mc4.expandedwidth .captains,
  107. .mc5.expandedwidth .captains,
  108. .mc6.expandedwidth .captains,
  109. .mc1.expandedwidth .children,
  110. .mc2.expandedwidth .children,
  111. .mc2.expandedwidth .children,
  112. .mc3.expandedwidth .children,
  113. .mc4.expandedwidth .children,
  114. .mc5.expandedwidth .children,
  115. .mc6.expandedwidth .children {
  116. position: relative;
  117. transition: 2s 1s ease;
  118. opacity: 1;
  119. }
  120.  
  121.  
  122. .memberscontainer .header {
  123. width: 100%;
  124. border-bottom: 1px solid black;
  125. }
  126. .captains, .children {
  127. position: absolute;
  128. opacity: 0;
  129. }
  130. .memberscontainer .member {
  131. margin: .3vmax;
  132. float: middle;
  133. display: inline-block;
  134. vertical-align: center;
  135. }
  136. .memberscontainer .captains {
  137. display: inline-block;
  138. float: left;
  139. width: 20%;
  140. }
  141. .memberscontainer .children {
  142. display: inline-block;
  143. float: left;
  144. width: 80%;
  145. }
  146. .member .memberimage {
  147. width: 8vmax;
  148. height: 8vmax;
  149. border-radius: 50%;
  150. color: #fff;
  151. text-align: center;
  152. background-color: #989a8f;;
  153. overflow: hidden;
  154. }
  155. .member .memberimage img {
  156. width: auto;
  157. height: inherit;
  158. color: #fff;
  159. text-align: center;
  160. }
  161. .member .membername h3 {
  162. font-size: 1.1vmax;
  163. }
  164. .member .membername {
  165. width: 100%;
  166. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement