App.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. .App {
  2. text-align: center;
  3. }
  4. .App-logo {
  5. height: 40vmin;
  6. pointer-events: none;
  7. }
  8. @media (prefers-reduced-motion: no-preference) {
  9. .App-logo {
  10. animation: App-logo-spin infinite 20s linear;
  11. }
  12. }
  13. .App div {
  14. display: flex;
  15. }
  16. .App input {
  17. margin: 0 10px;
  18. }
  19. .timer-control {
  20. height: 22px;
  21. /* display: flex; */
  22. /* flex-direction: column; */
  23. }
  24. #pause {
  25. margin-left: 10px;
  26. width: 28px;
  27. height: 25px;
  28. z-index: 2;
  29. }
  30. .App .login {
  31. display: block;
  32. }
  33. .App div {
  34. margin: 20px;
  35. }
  36. .timer-control div {
  37. height: 22px;
  38. margin-top: 0;
  39. }
  40. .login input,
  41. .login button {
  42. margin: 0 10px 10px 5px;
  43. }
  44. .Aside {
  45. width: 30%;
  46. }
  47. .Main {
  48. width: 70%;
  49. }
  50. .App-header {
  51. background-color: #282c34;
  52. min-height: 100vh;
  53. display: flex;
  54. flex-direction: column;
  55. align-items: center;
  56. justify-content: center;
  57. font-size: calc(10px + 2vmin);
  58. color: white;
  59. }
  60. .App-link {
  61. color: #61dafb;
  62. }
  63. @keyframes App-logo-spin {
  64. from {
  65. transform: rotate(0deg);
  66. }
  67. to {
  68. transform: rotate(360deg);
  69. }
  70. }
  71. /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LCD ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  72. @import url(https://fonts.googleapis.com/css?family=VT323:400,600);
  73. .digital-clock {
  74. background: #144;
  75. padding-left: 5px;
  76. }
  77. .digital-clock .clock-time {
  78. width: 100%;
  79. font-size: 6rem;
  80. color: greenyellow;
  81. font-weight: 600;
  82. font-family: VT323, monospace;
  83. line-height: 1.2;
  84. text-align: center;
  85. text-shadow: 0 0 10px #afa;
  86. }
  87. .lcd-frame {
  88. box-shadow: inset 0 0 10px 1px #000;
  89. }
  90. .lcd-frame div {
  91. margin: 0 auto;
  92. }
  93. .lcd-frame div button {
  94. top: 40%;
  95. position: absolute;
  96. right: 10%;
  97. }
  98. .lcd {
  99. position: relative;
  100. }
  101. .lcd:after {
  102. content: "";
  103. position: absolute;
  104. top: 0;
  105. right: 0;
  106. bottom: 0;
  107. left: 0;
  108. background-image:
  109. -webkit-linear-gradient(bottom, rgba(255, 255, 255, 0.2) 33.3%, rgba(255, 255, 255, 0.4) 33.3%, rgba(255, 255, 255, 0.4) 66.7%, rgba(255, 255, 255, 0.6) 66.7%),
  110. -webkit-linear-gradient(left, rgba(255, 0, 0, 0.7) 33.3%, rgba(0, 255, 0, 0.7) 33.3%, rgba(0, 255, 0, 0.6) 66.7%, rgba(0, 0, 255, 0.6) 66.7%);
  111. background-image:
  112. -moz-linear-gradient(bottom, rgba(255, 255, 255, 0.2) 33.3%, rgba(255, 255, 255, 0.4) 33.3%, rgba(255, 255, 255, 0.4) 66.7%, rgba(255, 255, 255, 0.6) 66.7%),
  113. -moz-linear-gradient(left, rgba(255, 0, 0, 0.7) 33.3%, rgba(0, 255, 0, 0.7) 33.3%, rgba(0, 255, 0, 0.6) 66.7%, rgba(0, 0, 255, 0.6) 66.7%);
  114. background-image:
  115. linear-gradient(to top, rgba(255, 255, 255, 0.2) 33.3%, rgba(255, 255, 255, 0.4) 33.3%, rgba(255, 255, 255, 0.4) 66.7%, rgba(255, 255, 255, 0.6) 66.7%),
  116. linear-gradient(to right, rgba(255, 0, 0, 0.7) 33.3%, rgba(0, 255, 0, 0.7) 33.3%, rgba(0, 255, 0, 0.6) 66.7%, rgba(0, 0, 255, 0.6) 66.7%);
  117. background-size: 4px 4px;
  118. mix-blend-mode: multiply;
  119. }
  120. .digital-clock .clock-separator-blink {
  121. position: relative;
  122. -moz-animation: clock-separator-blink 1s ease infinite;
  123. -webkit-animation: clock-separator-blink 1s ease infinite;
  124. animation: clock-separator-blink 1s ease infinite;
  125. animation-delay: 2ms;
  126. padding-left: 5px;
  127. padding-right: 5px;
  128. }
  129. @-webkit-keyframes clock-separator-blink {
  130. 0% {
  131. opacity: 1.0;
  132. }
  133. 100% {
  134. opacity: 0;
  135. }
  136. }
  137. @-moz-keyframes clock-separator-blink {
  138. 0% {
  139. opacity: 1.0;
  140. }
  141. 100% {
  142. opacity: 0;
  143. }
  144. }
  145. @keyframes clock-separator-blink {
  146. 0% {
  147. opacity: 1.0;
  148. }
  149. 100% {
  150. opacity: 0;
  151. }
  152. }