Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.71 KB | None | 0 0
  1. body {
  2.   margin: 0;
  3.   background: #000;
  4. }
  5. video {
  6.     position: fixed;
  7.     top: 50%;
  8.     left: 50%;
  9.     min-width: 100%;
  10.     min-height: 100%;
  11.     width: auto;
  12.     height: auto;
  13.     z-index: -100;
  14.     -webkit-transform: translateX(-50%) translateY(-50%);
  15.             transform: translateX(-50%) translateY(-50%);
  16.  background: url('//demosthenes.info/assets/images/polina.jpg') no-repeat;
  17.   background-size: cover;
  18.   -webkit-transition: 1s opacity;
  19.   transition: 1s opacity;
  20. }
  21. .stopfade {
  22.    opacity: .5;
  23. }
  24.  
  25. #polina {
  26.   font-family: Agenda-Light, Agenda Light, Agenda, Arial Narrow, sans-serif;
  27.   font-weight:100;
  28.   background: rgba(0,0,0,0.3);
  29.   color: white;
  30.   padding: 2rem;
  31.   width: 33%;
  32.   margin:2rem;
  33.   float: right;
  34.   font-size: 1.2rem;
  35. }
  36. h1 {
  37.   font-size: 3rem;
  38.   text-transform: uppercase;
  39.   margin-top: 0;
  40.   letter-spacing: .3rem;
  41. }
  42. #polina button {
  43.   display: block;
  44.   width: 80%;
  45.   padding: .4rem;
  46.   border: none;
  47.   margin: 1rem auto;
  48.   font-size: 1.3rem;
  49.   background: rgba(255,255,255,0.23);
  50.   color: #fff;
  51.   border-radius: 3px;
  52.   cursor: pointer;
  53.   -webkit-transition: .3s background;
  54.   transition: .3s background;
  55. }
  56. #polina button:hover {
  57.    background: rgba(0,0,0,0.5);
  58. }
  59.  
  60. a {
  61.   display: inline-block;
  62.   color: #fff;
  63.   text-decoration: none;
  64.   background:rgba(0,0,0,0.5);
  65.   padding: .5rem;
  66.   -webkit-transition: .6s background;
  67.   transition: .6s background;
  68. }
  69. a:hover{
  70.   background:rgba(0,0,0,0.9);
  71. }
  72. @media screen and (max-width: 500px) {
  73.   div{width:70%;}
  74. }
  75. @media screen and (max-device-width: 800px) {
  76.   html { background: url(//demosthenes.info/assets/images/polina.jpg) #000 no-repeat center center fixed; }
  77.   #bgvid { display: none; }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement