1
0

html-chat.css 1.6 KB

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