RyanEarnshaw

Untitled

Apr 20th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1.  
  2. .newsletter {
  3. position: fixed;
  4. display: inline-block;
  5. top: -100px;
  6. left: 50%;
  7. transform: translate(-50%, -50%);
  8. width: 100%;
  9. max-width: 600px;
  10. box-sizing: border-box;
  11. z-index: 9999;
  12. transition: top 1s ease;
  13. background-color: #ffffff;
  14. text-align: center;
  15. padding: 10px 5px;
  16. border: 2px solid #d0d0d0;
  17. }
  18. .newsletter .title {
  19. position: relative;
  20. display: inline-block;
  21. font-family: sans-serif;
  22. font-weight: bold;
  23. font-size: 32px;
  24. color: #646464;
  25. margin: 20px;
  26. width: 100%;
  27. text-align: center;
  28. }
  29. .newsletter .description {
  30. position: relative;
  31. display: inline-block;
  32. font-family: sans-serif;
  33. font-weight: 100;
  34. font-size: 24px;
  35. color: #646464;
  36. margin: 10px 0 20px;
  37. width: 100%;
  38. text-align: center;
  39. }
  40. .newsletter .input-email {
  41. position: relative;
  42. display: inline-block;
  43. color: #8ec640;
  44. background-color: transparent;
  45. border: 2px solid #bbbbbb;
  46. border-radius: 5px;
  47. padding: 10px;
  48. font-family: sans-serif;
  49. font-weight: 100;
  50. font-size: 16px;
  51. width: 70%;
  52. box-sizing: border-box;
  53. }
  54. .newsletter .input-submit {
  55. position: relative;
  56. display: inline-block;
  57. color: #ffffff;
  58. font-family: sans-serif;
  59. font-weight: 100;
  60. font-size: 20px;
  61. text-align: center;
  62. background-color: #8ec640;
  63. padding: 10px;
  64. width: 70%;
  65. box-sizing: border-box;
  66. border: 0;
  67. box-shadow: none;
  68. outline: none;
  69. background-position: 0 0;
  70. border-radius: 5px;
  71. margin: 10px 0 20px;
  72. }
  73. .newsletter input:focus,
  74. .newsletter input:valid {
  75. box-shadow: none;
  76. outline: none;
  77. background-position: 0 0;
  78. }
  79. .newsletter.show {
  80. top: 50vh;
  81. }
Advertisement
Add Comment
Please, Sign In to add comment