styles.css - complete generate_earthquakes.py - partially done geonet_earthquakes_list.html - dynamically generated by generate_earthquakes.py
110 lines
2.7 KiB
CSS
110 lines
2.7 KiB
CSS
/* import for google fonts */
|
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap'); /* Roboto */
|
|
@import url('https://fonts.googleapis.com/css2?familt=Source+Code+Pro&display=swap'); /* Monospace */
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* fallback if imports fail */
|
|
color: white;
|
|
background-color: transparent;
|
|
margin: 0;
|
|
padding: 5px;
|
|
overflow: hidden;
|
|
width: 125px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.earthquake-item {
|
|
display: grid;
|
|
grid-template-columns: 20px 1fr;
|
|
grid-template-rows: auto auto auto auto auto auto;
|
|
gap: 2px 5px;
|
|
width: 100%;
|
|
margin-bottom: 12px;
|
|
padding: 5px;
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
border-radius: 4px;
|
|
box-shaddow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
|
font-size: 0.85em;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.earthquake-item.deleted-item {
|
|
opacity: 0.5;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.earthquake-item.deleted-item .detail-label span{
|
|
text-decoration: line-through 2px red;
|
|
}
|
|
|
|
.earthquake-item.deleted-item .status-line,
|
|
.earhtquake-item.delted-item .status-line span{
|
|
text-decoration: none !important;
|
|
color: #bbb !important;
|
|
}
|
|
|
|
.earthquake-item.deleted-item .status-line span{
|
|
color: white !important;
|
|
}
|
|
|
|
.mmi-box {
|
|
grid-column: 1 / 2;
|
|
grid-row: 1 / span 4;
|
|
color: black;
|
|
font-family: 'Roboto', sans-serif;
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 3px;
|
|
width: 20px;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
padding: 2px;
|
|
}
|
|
|
|
.mmi-box.deleted-marker {
|
|
background-color: transparent;
|
|
color: red;
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
font-family: Arial, sans-serif;
|
|
text-shaddow: 1px 1px 2px rgba(192, 192, 192, 0.7);
|
|
}
|
|
|
|
/* geonet colors */
|
|
.mmi-1: {background-color: #fff7f3;} /* Unnoticable */
|
|
.mmi-2: {background-color: #feedde;} /* Unnoticable */
|
|
.mmi-3: {background-color: #fdd0a2;} /* weak */
|
|
.mmi-4: {background-color: #fdae6b;} /* Light */
|
|
.mmi-5: {background-color: #fd8d3c;} /* moderate */
|
|
.mmi-6: {background-color: #f16913;} /* strong */
|
|
.mmi-7: {background-color: #f03b20;} /* servere */
|
|
|
|
/* .mmi 8-11 mapped to the same color */
|
|
.mmi-8: {background-color: #bd0026;} /* Extreme */
|
|
|
|
.detail-label {
|
|
grid-column: 2 / 3;
|
|
font-weight: bold;
|
|
color: #bbb;
|
|
white-space: nowrap;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
.detail-label span{
|
|
font-family: 'Source Code Pro', monospace;
|
|
font-weight: normal;
|
|
color: white;
|
|
}
|
|
|
|
.status-line {grid-row: 1 / 2;}
|
|
.mag-depth {grid-row: 2 / 3; display: flex; justify-content: space-between;}
|
|
.location {grid-row: 3 / 4;}
|
|
.time {grid-row: 4 / 5;}
|
|
.id-line {grid-row: 5 / 6;}
|