html, body { max-width: 100%; margin: 0; padding: 0; } * { box-sizing: border-box; } body { font-family: sans-serif; } /* --- Header --- */ header { margin: 1rem; padding: 0 1rem; display: flex; justify-content: space-between; align-content: center; align-items: center; } header h1 { margin: 1rem; } /* --- Navigation bar --- */ nav { } nav ul { display: flex; margin: -1px 0 0 0; padding: 0 1.5em; border: 0; border-bottom: 1px solid #000000; } nav ul li { margin: 0 0 -1px -1px; list-style: none; z-index: 1; } nav a { display: block; width: 100%; height: 100%; padding: 0.5em 1em; border: 1px solid #999999; border-bottom-color: #000000; } nav a:link, nav a:visited { background-color: #eeeeee; color: #ff00e6; text-decoration: none; } nav a:hover, nav a:focus { background-color: #ffffff; color: #0066ff; text-decoration: underline; } nav li.nav_current_page { z-index: 10; } nav li.nav_current_page a { background-color: #ffffff; border-color: #000000; border-bottom-color: #ffffff; } /* --- Main section --- */ main { margin: 2rem; } /* --- Login page --- */ main.login_page { margin: 2rem; padding: 1rem; border: 1px solid #666666; width: 40rem; } /* --- Text and other styling --- */ h2, h4 { margin: 0 0 0.5em 0; } a:link, a:visited { color: #ff00e6; text-decoration: none; } a:hover, a:focus { color: #0066ff; text-decoration: underline; } .error_box, .success_box { max-width: 50rem; margin: 1rem 0; padding: 1rem; } .error_box { background: #ff4444; } .success_box { background: #00cc00; } .gray { color: gray; } .green { color: green; } .red { color: red; } button { padding: 0.2em 1em; } .inactive { color: gray; } /* --- Tables --- */ table td, table th { padding: 0.25rem 0.5rem; } table.bordered_table, table.bordered_table tr, table.bordered_table td, table.bordered_table th { border: 1px solid #999999; border-collapse: collapse; padding: 0.25rem 0.5rem; } .vertical_table_headers th { text-align: left; } /* --- Boxes --- */ .filter_options, .edit_box, .confirmation_box { border: 1px solid #999999; padding: 1rem; margin: 1rem 0; } /* --- Detail columns --- */ input#show_details_checkbox { margin-bottom: 1rem; } input#show_details_checkbox:not(:checked) ~ table .detail_column { display: none; } /* --- Edit box --- */ .edit_box p:last-child { margin-bottom: 0; } /* --- Confirmation box --- */ .confirmation_box p:first-child { margin-top: 0; }