common.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. @charset "UTF-8";
  2. @media all {
  3. html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img {
  4. margin: 0;
  5. padding: 0;
  6. font-family: sans-serif; }
  7. ul, ol, li {
  8. list-style: none; }
  9. a, u {
  10. text-decoration: none; }
  11. img {
  12. display: block;
  13. border: 0; }
  14. * {
  15. box-sizing: border-box; }
  16. :root {
  17. --c_mainBlue: #4cb4e7;
  18. --c_highlightBlue: #1cb8f6;
  19. --c_mainWhite: #fff;
  20. --c_mainGray: #666;
  21. --c_bg: midnightblue;
  22. --c_bg_chart: rgba(0, 138, 255, 0.1); }
  23. html, body {
  24. height: 100%;
  25. color: var(--c_mainWhite);
  26. background-color: var(--c_bg);
  27. overflow: hidden; }
  28. h3, h4, h5 {
  29. font-weight: normal; }
  30. button {
  31. outline: none; }
  32. input {
  33. height: 1.75rem;
  34. vertical-align: middle; }
  35. button {
  36. margin-left: 1rem;
  37. padding: .0625rem 1rem;
  38. font-size: 1rem;
  39. color: #fff;
  40. background: deepskyblue; }
  41. @keyframes linkTo {
  42. from, 80%, 90%, to {
  43. left: 0; }
  44. 85%, 95% {
  45. left: .5rem; } }
  46. #container {
  47. display: flex;
  48. flex-direction: column;
  49. margin: 0 auto; }
  50. #container nav {
  51. text-align: right;
  52. padding-right: 2rem; }
  53. #container nav a {
  54. padding-left: 1rem;
  55. color: lightskyblue;
  56. font-style: italic; }
  57. #container nav a:hover {
  58. text-decoration: underline; }
  59. #container nav a:before {
  60. content: '→ ';
  61. position: relative;
  62. left: 0;
  63. animation: linkTo 5s ease-out;
  64. animation-iteration-count: infinite; } }
  65. @font-face {
  66. font-family: digitalNumber;
  67. src: url("../assets/font/digitalNumber.TTF"); }
  68. .myBg {
  69. background-size: 100% 100%;
  70. background-origin: content-box;
  71. background-repeat: no-repeat; }
  72. strong {
  73. color: var(--c_mainBlue); }
  74. h3 {
  75. margin-bottom: 1rem;
  76. padding: .5rem 1rem;
  77. font-size: 1.5rem;
  78. letter-spacing: .0625rem;
  79. color: var(--c_mainWhite);
  80. background: linear-gradient(to right, var(--c_mainBlue), transparent);
  81. z-index: 1; }
  82. h3.en {
  83. margin-top: .3rem;
  84. color: #999;
  85. font-size: .75rem; }
  86. h4 {
  87. font-size: 1.25rem;
  88. letter-spacing: .125rem; }
  89. h5 {
  90. letter-spacing: .125rem; }
  91. #container {
  92. height: 100%; }
  93. @media all {
  94. i {
  95. display: inline-block;
  96. background-size: contain;
  97. background-repeat: no-repeat; }
  98. #container > header {
  99. position: relative;
  100. padding: 1.5rem 2rem 1rem;
  101. height: 6.25rem;
  102. }
  103. @media screen and (max-width: 760px) {
  104. #container > header.showGesture:after {
  105. content: " ← 左右滑动这里试试 →   点击可关闭";
  106. display: block;
  107. position: absolute;
  108. top: 0;
  109. left: 0;
  110. width: 100%;
  111. height: 100%;
  112. line-height: 2.5;
  113. font-size: 2.5rem;
  114. background: rgba(0, 0, 0, 0.8);
  115. border: .25rem solid #fff;
  116. border-radius: .5rem;
  117. box-shadow: 0 0 1.5rem inset; } }
  118. #container > header .logo {
  119. position: absolute;
  120. animation: 20s logoAnimation infinite ease; }
  121. #container > header .logo img {
  122. width: 8rem; }
  123. #container > header h1 {
  124. text-align: center;
  125. margin: 0 4.5rem .5rem;
  126. font-size: 2.5rem;
  127. font-weight: normal;
  128. color: var(--c_mainWhite); }
  129. #container > header #headerTime {
  130. position: absolute;
  131. right: 1rem;
  132. top: 2.5rem;
  133. font-size: 1.125rem;
  134. letter-spacing: .0625rem;
  135. margin-right: 1rem; }
  136. #container > header #headerTime > span {
  137. display: block; }
  138. #container > header #headerTime .digital-num {
  139. font-family: "digitalNumber", serif;
  140. font-size: 1.5rem;
  141. margin: 0 .125rem; }
  142. #container > header #headerTime .digital-num:last-child {
  143. margin-left: 1rem;
  144. margin-right: 0; }
  145. #container > header #headerTime .digital-num .colon {
  146. display: inline-block;
  147. font-family: sans-serif;
  148. width: 0.125rem; }
  149. #container > header .weatherBox {
  150. position: absolute;
  151. right: 11rem;
  152. top: 2.5rem; }
  153. #container > header .weatherBox #weatherIcon {
  154. vertical-align: top;
  155. width: 3rem;
  156. height: 3rem;
  157. filter: brightness(3);
  158. background-size: contain;
  159. }
  160. #container > header .weatherBox ul {
  161. font-size: 1.125rem;
  162. display: inline-block; }
  163. #container > header .weatherBox ul .temperature {
  164. margin-bottom: .25rem; }
  165. #container > main {
  166. flex: 1;
  167. display: flex;
  168. padding: 0 1rem 2rem; }
  169. body > aside {
  170. z-index: 1;
  171. position: absolute;
  172. bottom: 2rem;
  173. border: .5rem solid transparent;
  174. background: midnightblue;
  175. width: 26rem;
  176. border-radius: 0 1rem 1rem 0;
  177. box-shadow: 0 0 0.5rem 0.5rem deepskyblue;
  178. transform: translateX(-27rem);
  179. transition: all .3s ease; }
  180. body > aside:after {
  181. content: '';
  182. display: block;
  183. position: absolute;
  184. width: 1rem;
  185. height: 100%;
  186. top: 0;
  187. right: 0;
  188. transform: translateX(2rem); }
  189. body > aside:hover {
  190. transform: initial; }
  191. body > aside .input-group ~ .input-group {
  192. border-top: 0.0625rem solid rgba(135, 206, 235, 0.63); }
  193. body > aside .input-group {
  194. padding: 1rem .5rem; }
  195. body > aside .input-group:last-child {
  196. text-align: center; }
  197. body > aside .input-group h4 {
  198. margin-bottom: .5rem; }
  199. body > aside .input-group label {
  200. margin: 0 .5rem 0 1rem;
  201. white-space: nowrap; }
  202. body > aside .input-group.colors label {
  203. margin-left: 0; }
  204. body > aside .input-group.other label {
  205. line-height: 2.5rem; }
  206. body > aside .input-group input {
  207. padding: .125rem .25rem;
  208. width: 6rem;
  209. font-size: 1.125rem;
  210. color: #fff;
  211. border: 0.0625rem solid rgba(255, 255, 255, 0.5);
  212. background: transparent; }
  213. body > aside .input-group input[type=radio] {
  214. width: auto;
  215. height: 1rem;
  216. vertical-align: top; }
  217. body > aside .input-group input[type=checkbox] {
  218. margin-left: 0;
  219. width: auto;
  220. vertical-align: middle; }
  221. body > aside .input-group input button {
  222. margin-top: .5rem;
  223. padding: .25rem 1rem;
  224. font-size: 1.25rem;
  225. color: #fff;
  226. background: var(--c_mainBlue);
  227. border: none;
  228. border-radius: .25rem;
  229. cursor: pointer; }
  230. body > aside .input-group input button:hover {
  231. background: #4EA3D6; }
  232. body > aside .input-group input button:active {
  233. background: #4e93c6; }