RyanEarnshaw

Untitled

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