Advertisement
RyanJEarnshaw

Untitled

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