question.css 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. input[type=text], select {
  2. width: 100%;
  3. padding: 12px 20px;
  4. margin: 8px 0;
  5. display: inline-block;
  6. border: 1px solid #ccc;
  7. border-radius: 4px;
  8. box-sizing: border-box;
  9. }
  10. input[type=submit] {
  11. width: 100%;
  12. background-color: #4CAF50;
  13. color: white;
  14. padding: 14px 20px;
  15. margin: 8px 0;
  16. border: none;
  17. border-radius: 4px;
  18. cursor: pointer;
  19. }
  20. input[type=submit]:hover {
  21. background-color: #45a049;
  22. }
  23. form {
  24. border-radius: 5px;
  25. background-color: #f2f2f2;
  26. padding: 20px;
  27. }
  28. .switch {
  29. position: relative;
  30. display: inline-block;
  31. width: 30px;
  32. height: 17px;
  33. }
  34. .switch input {
  35. opacity: 0;
  36. width: 0;
  37. height: 0;
  38. }
  39. .slider {
  40. position: absolute;
  41. cursor: pointer;
  42. top: 0;
  43. left: 0;
  44. right: 0;
  45. bottom: 0;
  46. background-color: #ccc;
  47. -webkit-transition: .4s;
  48. transition: .4s;
  49. }
  50. .slider:before {
  51. position: absolute;
  52. content: "";
  53. height: 13px;
  54. width: 13px;
  55. left: 2px;
  56. bottom: 2px;
  57. background-color: white;
  58. -webkit-transition: .4s;
  59. transition: .4s;
  60. }
  61. input:checked + .slider {
  62. background-color: #2196F3;
  63. }
  64. input:focus + .slider {
  65. box-shadow: 0 0 1px #2196F3;
  66. }
  67. input:checked + .slider:before {
  68. -webkit-transform: translateX(13px);
  69. -ms-transform: translateX(13px);
  70. transform: translateX(13px);
  71. }
  72. /* Rounded sliders */
  73. .slider.round {
  74. border-radius: 17px;
  75. }
  76. .slider.round:before {
  77. border-radius: 50%;
  78. }