Advertisement
RyanJEarnshaw

Untitled

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