Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. html,
  2. body {
  3. height: 100%;
  4. }
  5.  
  6. body {
  7. display: -ms-flexbox;
  8. display: flex;
  9. -ms-flex-align: center;
  10. align-items: center;
  11. padding-top: 40px;
  12. padding-bottom: 40px;
  13. background-color: #f5f5f5;
  14. }
  15.  
  16. .form-signin {
  17. width: 100%;
  18. max-width: 420px;
  19. padding: 15px;
  20. margin: auto;
  21. }
  22.  
  23. .form-label-group {
  24. position: relative;
  25. margin-bottom: 1rem;
  26. }
  27.  
  28. .form-label-group > input,
  29. .form-label-group > label {
  30. height: 3.125rem;
  31. padding: .75rem;
  32. }
  33.  
  34. .form-label-group > label {
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. display: block;
  39. width: 100%;
  40. margin-bottom: 0; /* Override default `<label>` margin */
  41. line-height: 1.5;
  42. color: #495057;
  43. pointer-events: none;
  44. cursor: text; /* Match the input under the label */
  45. border: 1px solid transparent;
  46. border-radius: .25rem;
  47. transition: all .1s ease-in-out;
  48. }
  49.  
  50. .form-label-group input::-webkit-input-placeholder {
  51. color: transparent;
  52. }
  53.  
  54. .form-label-group input:-ms-input-placeholder {
  55. color: transparent;
  56. }
  57.  
  58. .form-label-group input::-ms-input-placeholder {
  59. color: transparent;
  60. }
  61.  
  62. .form-label-group input::-moz-placeholder {
  63. color: transparent;
  64. }
  65.  
  66. .form-label-group input::placeholder {
  67. color: transparent;
  68. }
  69.  
  70. .form-label-group input:not(:placeholder-shown) {
  71. padding-top: 1.25rem;
  72. padding-bottom: .25rem;
  73. }
  74.  
  75. .form-label-group input:not(:placeholder-shown) ~ label {
  76. padding-top: .25rem;
  77. padding-bottom: .25rem;
  78. font-size: 12px;
  79. color: #777;
  80. }
  81.  
  82. /* Fallback for Edge
  83. -------------------------------------------------- */
  84. @supports (-ms-ime-align: auto) {
  85. .form-label-group > label {
  86. display: none;
  87. }
  88. .form-label-group input::-ms-input-placeholder {
  89. color: #777;
  90. }
  91. }
  92.  
  93. /* Fallback for IE
  94. -------------------------------------------------- */
  95. @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  96. .form-label-group > label {
  97. display: none;
  98. }
  99. .form-label-group input:-ms-input-placeholder {
  100. color: #777;
  101. }
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement