qubed/webapp/styles.css
2024-10-08 12:13:10 +01:00

153 lines
2.8 KiB
CSS

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
#viewer {
display: flex;
flex-direction: row;
height: 100vh;
}
#catalog-list {
width: 30%;
padding: 10px;
overflow-y: scroll;
background-color: #f4f4f4;
border-right: 1px solid #ddd;
}
#catalog-list h2 {
margin-top: 0;
}
#details {
width: 70%;
padding: 10px;
}
.sidebar-header {
display: flex;
justify-content: space-between; /* Center buttons horizontally */
margin-bottom: 10px; /* Space below header */
height: 3em;
}
.sidebar-header button {
width: 10em;
}
canvas {
width: 100%;
height: 300px;
border: 1px solid #ccc;
margin-top: 20px;
}
/* Updated CSS for the item elements in the catalog list */
.item {
background-color: white;
border: 1px solid #ddd;
padding: 10px;
margin-bottom: 10px;
border-radius: 5px;
transition: background-color 0.2s ease;
}
.item-title {
font-size: 18px;
margin: 0;
color: #333;
}
.item-type {
font-size: 14px;
margin: 5px 0;
color: #666;
}
.item-id, .item-key-type {
font-size: 12px;
color: #999;
}
.item-description {
font-size: 13px;
margin: 5px 0;
color: #444;
font-style: italic;
}
#items {
padding: 10px;
}
.item.selected {
background-color: #d4e9ff; /* Lighter blue for selection */
border-color: #003399; /* Keep the original ECMWF blue for the border */
}
#item-details {
white-space: pre-wrap;
background-color: #f9f9f9;
padding: 10px;
border: 1px solid #ccc;
}
/* Button styles */
button {
height: 3em;
padding: 10px 20px; /* Padding around button text */
margin: 0 5px; /* Margin between buttons */
background-color: #003399; /* ECMWF blue */
color: white; /* White text color */
border: none; /* Remove default button border */
cursor: pointer; /* Pointer cursor on hover */
border-radius: 5px; /* Rounded corners */
transition: background-color 0.3s ease; /* Smooth background color transition */
}
button:hover {
background-color: #001f66; /* Darker shade of ECMWF blue on hover */
}
.item-list-container {
margin-top: 20px;
margin-bottom: 20px;
}
.scrollable-list {
max-height: 200px;
overflow-y: auto;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.checkbox-container {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.item-checkbox {
margin-right: 10px;
cursor: pointer;
}
.checkbox-label {
font-size: 16px;
color: #333;
}
.checkbox-container:hover .checkbox-label {
color: #003399;
}
.list-label {
font-weight: bold;
margin-bottom: 5px;
display: block;
color: #003399;
}