Advertisement
kevjonesin

jsbin.com 'Welcome' CSS

May 18th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.39 KB | None | 0 0
  1. body {
  2.   padding: 0;
  3.   margin: 0;
  4.  
  5.   background: #3FA8C6;
  6.   background-image: -moz-linear-gradient(top, #3fa8c6 0%, #3fa8c6 0%, #399ab2 100%);
  7.   background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3fa8c6), color-stop(0%,#3fa8c6), color-stop(100%,#399ab2));
  8.   background-image: -webkit-linear-gradient(top, #3fa8c6 0%,#3fa8c6 0%,#399ab2 100%);
  9.   background-image: -o-linear-gradient(top, #3fa8c6 0%,#3fa8c6 0%,#399ab2 100%);
  10.   background-image: -ms-linear-gradient(top, #3fa8c6 0%,#3fa8c6 0%,#399ab2 100%);
  11.   background-image: linear-gradient(to bottom, #3fa8c6 0%,#3fa8c6 0%,#399ab2 100%);
  12.   color: #fff;
  13.  
  14.   font-family: 'Doppio One', sans-serif;
  15.   text-shadow: 0 1px 0 rgba(0,0,0,.3);
  16.   line-height: 1.5;
  17.   -webkit-font-smoothing: antialiased;
  18. }
  19.  
  20. .wrapper {
  21.   width: 50%;
  22.   margin: 0 auto;
  23. }
  24.  
  25. h1, h2, h3, h4, h5, h6 {
  26.   letter-spacing: -0.03em;
  27.   font-size: 2em;
  28. }
  29.  
  30. a {
  31.   border-bottom: 1px solid #fff;
  32.   border-bottom: 1px solid rgba(255,255,255,0.7);
  33.   padding-bottom: 0.15em;
  34.   position: relative;
  35.  
  36.   color: white;
  37.   text-decoration: none;
  38. }
  39.  
  40. a:after {
  41.   content: '';
  42.   position: absolute;
  43.   height: 1px;
  44.   left: 0;
  45.   right: 0;
  46.   bottom: -2px;
  47.   background: rgba(0,0,0,.1);
  48. }
  49.  
  50. a:hover {
  51.   color: #C0E3EC;
  52. }
  53.  
  54. h1 {
  55.   margin: 0.667em 0 0;
  56.   padding-left: 0.5em;
  57.   text-align: left;
  58. }
  59.  
  60. h2 {
  61.   font-size: 1.5em;
  62. }
  63.  
  64. small {
  65.   margin-top: 1em;
  66.   display: block;
  67.   font-style: italic;
  68.   font-size: 0.667em;
  69. }
  70.  
  71. p em {
  72.   font-style: none;
  73. }
  74.  
  75. #welcome {
  76.   position: relative;
  77.   overflow: hidden;
  78.   padding-bottom: 1em;
  79.   padding-left: 20px;
  80. }
  81.  
  82. #welcome > div {
  83.   padding-top: 1px;
  84. }
  85.  
  86. #dave {
  87.   float: left;
  88.   margin-top: 3em
  89. }
  90.  
  91. #welcome > h2 {
  92.   margin-top: 0.5em;
  93.   padding-left: 0.5em;
  94.   margin-bottom: 0;
  95. }
  96.  
  97. .bubble p {
  98.   line-height: 22px;
  99. }
  100.  
  101. .bubble {
  102.   background: rgba(255, 255, 255, 0.1);
  103.   border-color: rgba(255, 255, 255, 0.1);
  104.  
  105.   padding: 0.667em 1em;
  106.   position: relative;
  107. }
  108.  
  109. .bubble:after {
  110.   content: "";
  111.   position: absolute;
  112.  
  113.   width: 0;
  114.   height: 0;
  115.   border-top: 20px solid transparent;
  116.   border-bottom: 20px solid transparent;
  117.   border-right: 20px solid white;
  118.   border-right-color: inherit;
  119.   top: 50px;
  120.   left: -20px;
  121. }
  122.  
  123. #features {
  124.   margin: 0.444em 0 0;
  125.   clear: both;
  126. }
  127.  
  128. #features > h2 {
  129.   margin: 0;
  130. }
  131.  
  132. #features ol {
  133.   position: relative;
  134.   padding: 1em 0 1.5em;
  135.   background: rgba(0,0,0,.1);
  136.   border-color: rgba(0,0,0,.1);
  137.   margin: 0;
  138.   overflow: hidden;
  139.   list-style: none;
  140.   counter-reset: item;
  141. }
  142.  
  143. #features li {
  144.   width: 30%;
  145.   padding: 0 1.5%;
  146.   float: left;
  147.   text-align: center;
  148.   margin-bottom: 1em;
  149. }
  150.  
  151. #features li h2 {
  152.   display: block;
  153.   padding: 1em;
  154.   margin: 0.667em auto 1em;
  155.   font-size: 1em;
  156.  
  157.   line-height: 1em;
  158.   text-align: center;
  159.  
  160.   background: rgba(0,0,0,.1);
  161.   border-radius: 2em;
  162.   box-shadow: inset 0 0 1em rgba(0,0,0,.1), 0 2px 2px rgba(255,255,255,.1);
  163. }
  164.  
  165. #next > div {
  166.   width: 45%;
  167.   float: left;
  168.   padding: 0 2.5%;
  169. }
  170.  
  171. img {
  172.   z-index: 1;
  173.   -webkit-transition: -webkit-transform 2s ease-in-out;
  174.  -moz-transition: -moz-transform 2s ease-in-out;
  175.  -o-transition: -o-transform 2s ease-in-out;
  176.  -ms-transition: -ms-transform 2s ease-in-out;
  177.  transition: transform 2s ease-in-out;
  178.  position: relative;
  179. }
  180.  
  181. img:active {
  182.   -webkit-transform: rotate(1440deg) scale(1.2);
  183.   -moz-transform: rotate(1440deg) scale(1.2);
  184.   -o-transform: rotate(1440deg) scale(1.2);
  185.   -ms-transform: rotate(1440deg) scale(1.2);
  186.   transform: rotate(1440deg) scale(1.2);
  187. }
  188.  
  189. @media screen and (max-width: 1200px) {
  190.   .wrapper {
  191.     width: 80%;
  192.   }
  193. }
  194.  
  195. @media screen and (max-width: 768px) {
  196.   .wrapper {
  197.     width: auto;
  198.     margin: 0;
  199.   }
  200.   #welcome {
  201.     margin-right: 2.5%;
  202.   }
  203. }
  204.  
  205. @media screen and (max-width: 500px) {
  206.   .wrapper {
  207.     text-align: center;
  208.   }
  209.   #dave {
  210.     float: none;
  211.   }
  212.  
  213.   #welcome {
  214.     padding: 0 1.5em;
  215.     margin: 0;
  216.   }
  217.  
  218.   h1 {
  219.     text-align: center;
  220.     margin-bottom: 0;
  221.     padding-left: 0;
  222.     font-size: 1.8em;
  223.   }
  224.   #welcome > h2 {
  225.     margin-bottom: 0.667em;
  226.   }
  227.   .bubble {
  228.     text-align: center;
  229.   }
  230.   .bubble:after {
  231.     display: none;
  232.   }
  233.   #features li {
  234.     width: 47%;
  235.   }
  236.   #features li:last-child {
  237.     float: none;
  238.     clear: both;
  239.     margin: 0 auto;
  240.   }
  241.  
  242.   #next > div {
  243.     float none;
  244.     width: auto;
  245.   }
  246. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement