style.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. body {
  2. font-family: 'Courier New', Courier, monospace;
  3. background: url(./blackboard.jpg);
  4. background-size: cover;
  5. }
  6. small {
  7. color: red;
  8. display: block;
  9. margin-top: 10px;
  10. }
  11. .container{
  12. display: grid;
  13. grid-template-columns: 1fr fit-content 1fr;
  14. grid-template-rows: repeat(1, 1fr);
  15. grid-auto-rows: minmax(fit-content, auto);
  16. grid-gap: 1em;
  17. align-items: center;
  18. grid-template-areas:
  19. "reader reader reader"
  20. "pound arrs kilo"
  21. "miles arrs kilometers"
  22. "inches arrs cmeters"
  23. ;
  24. }
  25. header {
  26. text-align: center;
  27. font-size: 2.5vh;
  28. padding: 10px;
  29. margin: 0 auto;
  30. margin-bottom: 10px;
  31. background-color: black;
  32. color: white;
  33. }
  34. .reader {
  35. grid-area: reader;
  36. }
  37. .reader__wrapper {
  38. display: flex;
  39. margin: 0 auto;
  40. justify-content: center;
  41. }
  42. .reader__wrapper article {
  43. width: 60%;
  44. font-size: 2vh;
  45. text-align: justify;
  46. padding: 0.2em 1em;
  47. color: white;
  48. background-color: black;
  49. }
  50. .reader__wrapper article > h2 {
  51. text-align: center;
  52. }
  53. .reader__wrapper div{
  54. display: flex;
  55. font-size: 2em;
  56. padding: 0.5%;
  57. align-items: center;
  58. background-color: black;
  59. color: white;
  60. }
  61. #goleft {
  62. border-radius: 15px 0px 0px 15px;
  63. font-size: 4vh;
  64. transition: 0.3s;
  65. }
  66. #goleft:hover, #goright:hover {
  67. background-color: white;
  68. color: black;
  69. }
  70. #goleft:active, #goright:active {
  71. background-color: black;
  72. color: gold;
  73. text-shadow: 0px 0px 5px white;
  74. transition: 0.1s;
  75. }
  76. #goright {
  77. border-radius: 0px 15px 15px 0px;
  78. font-size: 4vh;
  79. transition: 0.6s;
  80. }
  81. .arrs {
  82. font-size: 4vh;
  83. text-align: center;
  84. color: white;
  85. }
  86. .pound {
  87. grid-area: pound;
  88. }
  89. .kilo {
  90. grid-area: kilo;
  91. }
  92. .miles {
  93. grid-area: miles;
  94. }
  95. .kilometers {
  96. grid-area: kilometers;
  97. }
  98. .inches {
  99. grid-area: inches;
  100. }
  101. .cmeters {
  102. grid-area: cmeters;
  103. }
  104. .pound, .kilo, .miles, .kilometers, .inches, .cmeters {
  105. text-align: center;
  106. font-size: 3vh;
  107. padding: 15px;
  108. color: white;
  109. text-shadow: 1px 1px 3px black;
  110. }
  111. .pound, .miles, .inches {
  112. border-radius: 15px 0px 0px 15px;
  113. background: linear-gradient(to right, black, rgba(0, 0, 0, 0.233));
  114. }
  115. .kilo, .kilometers, .cmeters {
  116. border-radius: 0px 15px 15px 0px;
  117. background: linear-gradient(to left, black, rgba(0, 0, 0, 0.233));
  118. }
  119. #pnd, #kg, #mil, #km, #inch, #cm {
  120. font-size: 3.2vh;
  121. }
  122. @media (max-width:550px) {
  123. .container {
  124. grid-gap: 0;
  125. }
  126. #pnd, #kg, #mil, #km, #inch, #cm {
  127. font-size: 1.7vh;
  128. }
  129. }