JS Lab 2
This commit is contained in:
@@ -0,0 +1,130 @@
|
||||
/* Full disclosure, I am really bad at styling. Just not the creative type... */
|
||||
/* Body and other basic elements styling */
|
||||
body {
|
||||
background-color: gray;
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Nav styling */
|
||||
nav ul {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
justify-content: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
nav a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Inputs styling */
|
||||
fieldset input {
|
||||
max-width: 120px;
|
||||
padding: 3px 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/* Button styling */
|
||||
button {
|
||||
background-color: lime;
|
||||
font-weight: bold;
|
||||
padding: 5px 10px;
|
||||
cursor: pointer;
|
||||
border: 1px solid black;
|
||||
transition: background-color 0.2;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #a6ff00;
|
||||
}
|
||||
|
||||
#resetFilterBtn {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
#resetFilterBtn:hover {
|
||||
background-color: #ff5555;
|
||||
}
|
||||
|
||||
#downloadBtn{
|
||||
display: block;
|
||||
margin: 10px auto;
|
||||
}
|
||||
|
||||
/* Fieldset legend and table captions */
|
||||
legend, caption {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Table Styling */
|
||||
table {
|
||||
border: 2px solid black;
|
||||
background-color: white;
|
||||
margin: 0px auto;
|
||||
border-collapse: collapse;
|
||||
width: 90%;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
table td, table th {
|
||||
border: 2px solid black;
|
||||
padding: 6px 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table th {
|
||||
background-color: #f0f0f0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
table tr:nth-child(even) { /* Make every even row a different colour */
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
table tr:hover {
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
|
||||
/* Map Styling */
|
||||
#map {
|
||||
border: 2px solid black;
|
||||
height: 700px;
|
||||
width: 90%;
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
/* Arrow Styling */
|
||||
.arrow {
|
||||
margin-left: 4px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* Small mobile responsiveness changes */
|
||||
@media (max-width: 625px) {
|
||||
fieldset {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
/* Make inputs full width on mobile */
|
||||
fieldset input {
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Buttons stack nicely on mobile */
|
||||
fieldset button {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user