style.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. body {
  2. font-family: sans-serif;
  3. margin: auto;
  4. max-width: 1320px;
  5. padding-left: 50px;
  6. padding-right: 50px
  7. }
  8. #First_run, #Last_run {
  9. width: 7em;
  10. }
  11. /* Add a black background color to the top navigation */
  12. .topnav {
  13. background-color: #1761B2;
  14. overflow: hidden;
  15. width:130%;
  16. padding: 100px 300px 0px 300px;
  17. margin: -90px -300px 0px -300px;
  18. border-bottom: solid 4px #1F7DE6;
  19. }
  20. /* Style the links inside the navigation bar */
  21. .topnav a {
  22. float: left;
  23. display: block;
  24. color: #f2f2f2;
  25. text-align: center;
  26. padding: 20px 16px;
  27. text-decoration: none;
  28. font-size: 14px;
  29. }
  30. /* Add an active class to highlight the current page */
  31. .active {
  32. background-color: #1761B2;
  33. font-weight: bold;
  34. color: white;
  35. }
  36. /* Hide the link that should open and close the topnav on small screens */
  37. .topnav .icon {
  38. display: none;
  39. }
  40. /* Dropdown container - needed to position the dropdown content */
  41. .dropdown {
  42. float: left;
  43. overflow: hidden;
  44. }
  45. /* Style the dropdown button to fit inside the topnav */
  46. .dropdown .dropbtn {
  47. font-size: 14px;
  48. border: none;
  49. outline: none;
  50. color: white;
  51. padding: 20px 16px;
  52. background-color: inherit;
  53. font-family: inherit;
  54. margin: 0;
  55. }
  56. /* Style the dropdown content (hidden by default) */
  57. .dropdown-content {
  58. display: none;
  59. position: absolute;
  60. background-color: #f9f9f9;
  61. min-width: 160px;
  62. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  63. z-index: 1;
  64. }
  65. /* Style the links inside the dropdown */
  66. .dropdown-content a {
  67. float: none;
  68. color: black;
  69. padding: 12px 16px;
  70. text-decoration: none;
  71. display: block;
  72. text-align: left;
  73. }
  74. /* Add a dark background on topnav links and the dropdown button on hover */
  75. .topnav a:hover, .dropdown:hover .dropbtn {
  76. background-color: #03a1fc;
  77. color: white;
  78. }
  79. /* Add a grey background to dropdown links on hover */
  80. .dropdown-content a:hover {
  81. background-color: #ddd;
  82. color: black;
  83. }
  84. /* Show the dropdown menu when the user moves the mouse over the dropdown button */
  85. .dropdown:hover .dropdown-content {
  86. display: block;
  87. }
  88. /* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
  89. @media screen and (max-width: 600px) {
  90. .topnav a:not(:first-child), .dropdown .dropbtn {
  91. display: none;
  92. }
  93. .topnav a.icon {
  94. float: right;
  95. display: block;
  96. }
  97. }
  98. /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
  99. @media screen and (max-width: 600px) {
  100. .topnav.responsive {position: relative;}
  101. .topnav.responsive a.icon {
  102. position: absolute;
  103. right: 0;
  104. top: 0;
  105. }
  106. .topnav.responsive a {
  107. float: none;
  108. display: block;
  109. text-align: left;
  110. }
  111. .topnav.responsive .dropdown {float: none;}
  112. .topnav.responsive .dropdown-content {position: relative;}
  113. .topnav.responsive .dropdown .dropbtn {
  114. display: block;
  115. width: 100%;
  116. text-align: left;
  117. }
  118. }
  119. .switch {
  120. position: relative;
  121. display: inline-block;
  122. width: 60px;
  123. height: 34px;
  124. }
  125. .switch input {
  126. opacity: 0;
  127. width: 0;
  128. height: 0;
  129. }
  130. .slider {
  131. position: absolute;
  132. cursor: pointer;
  133. top: 0;
  134. left: 0;
  135. right: 0;
  136. bottom: 0;
  137. background-color: red;
  138. -webkit-transition: .4s;
  139. transition: .4s;
  140. }
  141. .slider:before {
  142. position: absolute;
  143. content: "";
  144. height: 26px;
  145. width: 26px;
  146. left: 4px;
  147. bottom: 4px;
  148. background-color: white;
  149. -webkit-transition: .4s;
  150. transition: .4s;
  151. }
  152. th, td, table{
  153. }
  154. div.vertical{
  155. margin-left: -85px;
  156. position: absolute;
  157. width: 210px;
  158. transform: rotate(-90deg);
  159. -webkit-transform: rotate(-90deg); /* Safari/Chrome */
  160. -moz-transform: rotate(-90deg); /* Firefox */
  161. -o-transform: rotate(-90deg); /* Opera */
  162. -ms-transform: rotate(-90deg); /* IE 9 */
  163. }
  164. th.vertical{
  165. height: 160px;
  166. line-height: 14px;
  167. padding-bottom: 10px;
  168. /*text-align: inherit;*/
  169. }
  170. input:checked + .slider {
  171. background-color: green;
  172. }
  173. input:focus + .slider {
  174. box-shadow: 0 0 1px #2196F3;
  175. }
  176. input:checked + .slider:before {
  177. -webkit-transform: translateX(26px);
  178. -ms-transform: translateX(26px);
  179. transform: translateX(26px);
  180. }
  181. /* Rounded sliders */
  182. .slider.round {
  183. border-radius: 34px;
  184. }
  185. .slider.round:before {
  186. border-radius: 50%;
  187. }
  188. pre {
  189. font-family: sans-serif;
  190. font-size: 16px;
  191. }
  192. input {
  193. font-size: 16px;
  194. }
  195. textarea {
  196. font-size: 16px;
  197. resize: none;
  198. border-radius: 5px;
  199. }
  200. select{
  201. font-size: 16px;
  202. }
  203. button{
  204. font-size: 16px;
  205. }
  206. tbody td{
  207. padding: 30px;
  208. }
  209. tbody tr:nth-child(odd){
  210. background-color: #F4F4F4;
  211. color: black;
  212. }
  213. img{
  214. display: none
  215. }
  216. span:hover + img{
  217. display: block;
  218. }