html-chat.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. body {
  2. font-family: Arial, sans-serif;
  3. background-color: #f4f4f4;
  4. margin: 0;
  5. padding-top: 20px;
  6. color: #333;
  7. }
  8. .container {
  9. box-sizing: border-box;
  10. overflow: hidden;
  11. width: 100%;
  12. max-width: 600px;
  13. margin: 0 auto;
  14. padding: 20px;
  15. background-color: #fff;
  16. border: 1px solid #ccc;
  17. box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  18. border-radius: 5px;
  19. }
  20. fieldset {
  21. border: 1px solid #ddd;
  22. padding: 10px;
  23. margin-bottom: 5px;
  24. }
  25. legend {
  26. font-weight: bold;
  27. padding: 0 10px;
  28. }
  29. label {
  30. display: block;
  31. margin-bottom: 5px;
  32. }
  33. input[type="text"],
  34. iframe,
  35. .content {
  36. box-sizing: border-box;
  37. max-width: 100%;
  38. width: 100%;
  39. padding: 8px;
  40. margin-bottom: 10px;
  41. border: 1px solid #ddd;
  42. border-radius: 3px;
  43. }
  44. a,
  45. a:visited,
  46. button {
  47. align-items: center;
  48. text-decoration: none;
  49. padding: 8px 15px;
  50. margin-right: 5px;
  51. background-color: #007BFF;
  52. color: #fff;
  53. border: none;
  54. border-radius: 3px;
  55. cursor: pointer;
  56. }
  57. a:hover,
  58. a:visited:hover,
  59. button:hover {
  60. background-color: #0056b3;
  61. }
  62. button:active {
  63. background-color: #0067b8;
  64. }
  65. @media (max-width: 600px) {
  66. .container {
  67. width: 100%;
  68. height: 100%;
  69. border: none;
  70. border-radius: 0;
  71. box-shadow: none;
  72. }
  73. }
  74. /* 加载进度条 */
  75. .loading-bar {
  76. position: fixed;
  77. top: 0;
  78. left: 0;
  79. z-index: 99999;
  80. opacity: 0;
  81. transition: opacity .4s linear;
  82. .progress {
  83. position: fixed;
  84. top: 0;
  85. left: 0;
  86. width: 0;
  87. height: 4px;
  88. background-color: #007bff;
  89. box-shadow: 0 0 10px rgba(119, 182, 255, .7);
  90. }
  91. &.loading {
  92. opacity: 1;
  93. transition: none;
  94. .progress {
  95. transition: width .4s ease;
  96. }
  97. }
  98. }
  99. /* 加载进度条结束 */