DrawImg.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /* 头部分 */
  2. body {
  3. font-family: "Segoe UI", Arial, "Microsoft Yahei", sans-serif;
  4. font-size: 75%;
  5. }
  6. #head {
  7. position: fixed;
  8. top: 0;
  9. left: 0;
  10. width: 100%;
  11. height: 4rem;
  12. display: flex;
  13. align-items: center;
  14. justify-content: space-between;
  15. backdrop-filter: blur(10px);
  16. background-color: #ffffff78;
  17. z-index: 99;
  18. }
  19. #head-img-div {
  20. height: 100%;
  21. display: flex;
  22. justify-content: flex-start;
  23. align-items: center;
  24. }
  25. #head-img-div>img {
  26. height: 100%;
  27. }
  28. #head-img-div-h2-img>* {
  29. margin: 0;
  30. }
  31. #head-li-div {
  32. display: flex;
  33. flex-direction: row;
  34. align-items: center;
  35. }
  36. #head-li-div>li {
  37. list-style: none;
  38. margin-right: 1rem;
  39. font-size: 1rem;
  40. }
  41. #head-li-div>a {
  42. display: inline-block;
  43. list-style: none;
  44. margin-right: 1rem;
  45. font-size: 1rem;
  46. color: inherit;
  47. text-decoration: inherit;
  48. }
  49. #head-li-div>a:hover{
  50. color: #ff8300;
  51. }
  52. /* 背景*/
  53. #background {
  54. position: fixed;
  55. top: 0;
  56. left: 0;
  57. width: 100%;
  58. height: 100%;
  59. z-index: -1;
  60. background: repeating-linear-gradient(359deg, rgb(182 196 255) 0%, rgb(207 225 255 / 78%) 100%);
  61. }
  62. body.a #background,
  63. body.a .ThemeColors {
  64. transition: filter 1s;
  65. filter: hue-rotate(10deg);
  66. }
  67. body.b #background,
  68. body.b .ThemeColors {
  69. transition: filter 1s;
  70. filter: hue-rotate(-15deg);
  71. }
  72. body.c #background,
  73. body.c .ThemeColors {
  74. transition: filter 1s;
  75. filter: hue-rotate(-40deg);
  76. }
  77. #body{
  78. margin-top: 4rem;
  79. overflow: hidden;
  80. }
  81. #DrawDiv{
  82. background-color: #ffffff70;
  83. min-height: 30rem;
  84. max-width: 45rem;
  85. margin: 1rem auto auto;
  86. border-radius: 1.5rem;
  87. overflow: hidden;
  88. display: flex;
  89. flex-direction: column;
  90. flex-wrap: nowrap;
  91. align-items: stretch;
  92. }
  93. #inputDraw{
  94. resize: none;
  95. background-color: #ffffff00;
  96. flex: 1;
  97. margin-left: 1rem;
  98. height: 2rem;
  99. font-size: 1rem;
  100. border: none;
  101. outline:none;
  102. line-height: 2rem;
  103. }
  104. #DrawInputDiv{
  105. background-color: #ffffff;
  106. margin-left: 1rem;
  107. margin-right: 1rem;
  108. margin-top: 1rem;
  109. border-radius: 0.5rem;
  110. display: flex;
  111. flex-direction: row;
  112. flex-wrap: nowrap;
  113. align-items: stretch;
  114. }
  115. #startDraw{
  116. background-color: #0e00ff36;
  117. border-radius: 0 0.5rem 0.5rem 0;
  118. display: flex;
  119. padding: 0.5rem;
  120. align-items: center;
  121. cursor: pointer;
  122. font-size: 1rem;
  123. }
  124. #startDraw:hover{
  125. background-color: rgba(14, 0, 255, 0.56);
  126. }
  127. #DrawInputDiv{
  128. border: 1px solid rgba(0, 0, 0, 0.21);
  129. }
  130. #DrawInputDiv:has(#inputDraw:focus-visible){
  131. border: 1px solid #0e00ff36;
  132. }
  133. #imgs{
  134. margin-top: 1rem;
  135. background-color: #c2b4ff29;
  136. flex: 1;
  137. border: 0.2rem solid #ffffff70;
  138. border-top: none;
  139. border-radius: 0 0 1.5rem 1.5rem;
  140. display: flex;
  141. flex-direction: row;
  142. flex-wrap: wrap;
  143. align-items: stretch;
  144. justify-content: space-around;
  145. align-content: space-around;
  146. color: #ff8300;
  147. font-size: 1rem;
  148. font-weight: bolder;
  149. }
  150. #imgs>img{
  151. width: 49%;
  152. margin: 0.5%;
  153. transition: all 0.5s;
  154. cursor: pointer;
  155. }
  156. #imgs>img:hover{
  157. transform:translate(-0.5%, -0.5%);
  158. }
  159. @media screen and (max-width:500px) {
  160. :root {
  161. font-size: 3.5vmin;
  162. }
  163. #imgs>img{
  164. width: 99%;
  165. }
  166. }
  167. @media screen and (orientation:portrait) and (max-device-width:800px) and (max-device-height:1000px) {
  168. :root {
  169. font-size: 3.5vmin;
  170. }
  171. #imgs>img{
  172. width: 99%;
  173. }
  174. }