Advertisement
Guest User

pr1

a guest
Aug 24th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.88 KB | None | 0 0
  1. *{
  2.     margin: 0;
  3.     padding: 0;
  4.     text-decoration: none;
  5.     font-family: "montserrat";
  6. }
  7. body{
  8.     background: #333;
  9. }
  10. .card-middle{
  11.     position: absolute;
  12.     top: 50%;
  13.     left: 50%;
  14.     transform: translate(-50%, -50%);
  15. }
  16. .card-middle{
  17.     cursor: pointer;
  18.     width: 340px;
  19.     height: 480px;
  20. }
  21. .front,.back{
  22.     width: 100%;
  23.     height: 100%;
  24.     overflow: hidden;
  25.     backface-visibility: hidden;
  26.     position: absolute;
  27.     transition: transform .6s linear;
  28. }
  29. .front img{
  30.     height: 100%;
  31. }
  32. .back{
  33.     background: #f1f1f1;
  34.     transform: perspective(600px) rotateY(180deg);
  35. }
  36. .back-content{
  37.     color: #2c3e50;
  38.     text-align: center;
  39.     width: 100%;
  40. }
  41. .back-content h2{
  42.     margin-top: 30px;
  43. }
  44. .front{
  45.     transform: perspective(600px) rotateY(0deg);
  46. }
  47. .form{
  48.     margin-top: 20px;
  49. }
  50. input[type = "text"], input[type = "password"]{
  51.     display: block;
  52.     margin-top: 20px;
  53.     border: 0;
  54.     background: none;
  55.     border: 1.5px solid #333;
  56.     text-align: center;
  57.     margin: 20px auto;
  58.     padding: 7px 10px;
  59.     border-radius: 8px;
  60. }
  61. input[type = "submit"]{
  62.     display: block;
  63.     margin-top: 20px;
  64.     border: 0;
  65.     background: none;
  66.     border: 1.5px solid #333;
  67.     text-align: center;
  68.     margin: 20px auto;
  69.     padding: 7px 25px;
  70.     border-radius: 8px;
  71.     cursor: pointer;
  72. }
  73. .extra{
  74.     margin-top: 37px;
  75. }
  76. .extra p a{
  77.     color: #333;
  78. }
  79. .sm a{
  80.     color: #333;
  81.     display: inline-flex;
  82.     margin-top: 30px;
  83.     font-size: 23px;
  84.     width: 40px;
  85.     height: 40px;
  86.     justify-content: center;
  87.     align-items: center;
  88.     transition: 0.3s;
  89. }
  90. .sm a:hover{
  91.     background-color: #333;
  92.     color: #f1f1f1;
  93.     border-radius: 20px;
  94. }
  95. .card-middle:hover > .front{
  96.     transform: perspective(600px) rotateY(-180deg);
  97. }
  98. .card-middle:hover > .back{
  99.     transform: perspective(600px) rotateY(0deg);
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement