index.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. /* styles.css */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. #login-page {
  8. font-family: Arial, sans-serif;
  9. background-color: #f4f4f4;
  10. display: flex;
  11. justify-content: center;
  12. align-items: center;
  13. height: 100vh;
  14. }
  15. #login-page .login-container {
  16. background-color: white;
  17. padding: 20px;
  18. border-radius: 8px;
  19. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  20. width: 300px;
  21. }
  22. #login-page h2 {
  23. text-align: center;
  24. margin-bottom: 20px;
  25. font-size: 24px;
  26. }
  27. #login-page .form-group {
  28. margin-bottom: 15px;
  29. }
  30. #login-page label {
  31. display: block;
  32. font-size: 14px;
  33. margin-bottom: 5px;
  34. }
  35. #login-page input[type="text"],
  36. #login-page input[type="password"] {
  37. width: 100%;
  38. padding: 10px;
  39. border: 1px solid #ccc;
  40. border-radius: 4px;
  41. font-size: 14px;
  42. }
  43. #login-page button {
  44. width: 100%;
  45. padding: 10px;
  46. background-color: #4CAF50;
  47. color: white;
  48. border: none;
  49. border-radius: 4px;
  50. font-size: 16px;
  51. cursor: pointer;
  52. }
  53. #login-page button:hover {
  54. background-color: #45a049;
  55. }
  56. #login-page .error-message {
  57. color: red;
  58. text-align: center;
  59. font-size: 14px;
  60. margin-top: 10px;
  61. }
  62. #content-page {
  63. font-family: Arial, sans-serif;
  64. background-color: #f4f4f4;
  65. display: flex;
  66. flex-direction: column;
  67. justify-content: space-between;
  68. height: 100vh;
  69. }
  70. #content-page .nav-bar {
  71. background-color: #333;
  72. width: 100VW;
  73. /*height: 2.7vw;*/
  74. min-height: 50px;
  75. display: flex;
  76. justify-content: space-between;
  77. line-height: 50px;
  78. }
  79. #content-page .nav-bar .nav-logo {
  80. display: flex;
  81. width: 100px;
  82. margin-right: 20px;
  83. background-color: rgba(255, 255, 255, 0.07);
  84. }
  85. #content-page .nav-bar .nav-menu {
  86. display: flex;
  87. }
  88. #content-page .nav-bar .nav-menu .nav-menu-item{
  89. margin-left: 5px;
  90. color: #dddddd;
  91. font-size: 17px;
  92. font-weight: bold;
  93. border-bottom: 5px solid rgba(255,255,255,0.6);
  94. padding: 0 10px;
  95. cursor: pointer;
  96. user-select: none;
  97. min-width: 95px;
  98. text-align: center;
  99. }
  100. #content-page .nav-bar .nav-menu .nav-menu-item:hover{
  101. color: #f4f4f4;
  102. background-color: rgba(255,255,255,0.07);
  103. }
  104. #content-page .nav-bar .nav-user {
  105. margin-left: auto;
  106. width: 80px;
  107. background-color: rgba(255, 255, 255, 0.07);
  108. }
  109. #content-page .content-body {
  110. height: calc(100VH - 2.70vw);
  111. }
  112. #content-page #drop-zone {
  113. cursor: pointer;
  114. width: 400px;
  115. height: 200px;
  116. border: 2px dashed #ccc;
  117. text-align: center;
  118. line-height: 200px;
  119. color: #666;
  120. font-size: 16px;
  121. margin: 20px auto;
  122. background-color: #f9f9f9;
  123. transition: border 0.2s ease-in-out;
  124. user-select: none;
  125. }
  126. #content-page #drop-zone:hover {
  127. border: 2px dashed #3089ff;
  128. }
  129. #content-page #drop-zone.dragover {
  130. background-color: #e0e0e0;
  131. border: 2px dashed #3089ff;
  132. }