239 lines
5.1 KiB
CSS
239 lines
5.1 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: Arial, sans-serif;
|
|
background-color: #F4D793;
|
|
color: #FFF6DA;
|
|
}
|
|
|
|
.overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 999;
|
|
}
|
|
|
|
/* The floating window */
|
|
.floating-window {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
min-width: 50%;
|
|
max-width: 80%;
|
|
max-height: 90vh;
|
|
background: #fff;
|
|
border: 1px solid #ccc;
|
|
border-radius: 5px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
z-index: 1000;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.floating-window header {
|
|
font-weight: bold;
|
|
max-width: 80%;
|
|
border-bottom: 1px solid #ddd;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.floating-window .close-btn {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
width: 20px;
|
|
height: 20px;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
|
|
.dialog {
|
|
top: 50%;
|
|
left: 50%;
|
|
-webkit-transform: translateX(-50%) translateY(-50%);
|
|
-moz-transform: translateX(-50%) translateY(-50%);
|
|
-ms-transform: translateX(-50%) translateY(-50%);
|
|
transform: translateX(-50%) translateY(-50%);
|
|
}
|
|
|
|
/* Style the dropdown container */
|
|
.dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Style the dropdown button */
|
|
.dropbtn {
|
|
background-color: #4caf50;
|
|
color: white;
|
|
padding: 16px;
|
|
font-size: 16px;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Style the dropdown content (hidden by default) */
|
|
.dropdown-content {
|
|
display: block;
|
|
position: absolute;
|
|
border-radius: 12px;
|
|
background-color: #f9f9f9;
|
|
min-width: 160px;
|
|
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Style the links inside the dropdown */
|
|
.dropdown-content a {
|
|
color: black;
|
|
padding: 12px 16px;
|
|
text-decoration: none;
|
|
display: block;
|
|
}
|
|
|
|
/* Change color of links when hovered */
|
|
.dropdown-content a:hover {
|
|
background-color: #f1f1f1;
|
|
}
|
|
|
|
/* Show the dropdown menu when hovering over the dropdown button */
|
|
|
|
/* Change the button color when hovering */
|
|
.dropdown:hover .dropbtn {
|
|
background-color: #3e8e41;
|
|
}
|
|
/*////////////////////////////////////////////////////////////////////////////*/
|
|
|
|
/* TABLE */
|
|
/* .table {
|
|
display: table;
|
|
width: auto;
|
|
border-collapse: collapse;
|
|
max-width: 100%;
|
|
grid-gap:;
|
|
table-layout: auto;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.table-row {
|
|
display: table-row;
|
|
}
|
|
|
|
.table-head,
|
|
.table-cell {
|
|
display: table-cell;
|
|
margin: 4;
|
|
padding: 1em 1.5em;
|
|
text-align: center;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 12px;
|
|
width: auto;
|
|
}
|
|
|
|
.table-head {
|
|
background-color: #f5f5f5;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.table-cell {
|
|
background-color: #fff;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.table-row:nth-child(even) .table-cell {
|
|
background-color: #fafafa;
|
|
}
|
|
|
|
.table-row:hover .table-cell {
|
|
background-color: #f0f0f0;
|
|
} */
|
|
|
|
.background-div {
|
|
/* background-color: rgba(235, 67, 0, 50); */
|
|
background: #f343048a;
|
|
}
|
|
|
|
/* Container as a grid instead of table */
|
|
.table {
|
|
display: grid;
|
|
/* If you know you have exactly 3 columns, specify them: */
|
|
/* grid-template-columns: repeat(3, 1fr); */
|
|
/* or, for a variable number of columns: */
|
|
/* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
|
|
max-width: 100%;
|
|
margin: 20px 0;
|
|
|
|
/* Rounded corners and shadow */
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
|
|
/* Optional gap between cells */
|
|
}
|
|
|
|
/* Each "row" is just a grouping for hover/striped logic */
|
|
.table-row {
|
|
/* We use 'display: contents' so the child .table-head / .table-cell
|
|
items will flow into the parent grid columns. */
|
|
display: contents;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Common cell styles */
|
|
.table-head,
|
|
.table-cell {
|
|
/* You can remove margin if you prefer the cells to touch */
|
|
display: flex;
|
|
/* margin: 4px; */
|
|
padding: 0.25em 0.25em;
|
|
text-align: center;
|
|
font-size: 12;
|
|
text-wrap: wrap;
|
|
font-weight: 500;
|
|
/* Keep the borders for a cell-like feel */
|
|
border: 1px solid #a0a0a0;
|
|
/* border-radius: 12px; */
|
|
place-items: center;
|
|
|
|
/* Smooth text wrapping in columns */
|
|
/* width: auto; */
|
|
}
|
|
|
|
/* Header cell styling - Autumn accent */
|
|
.table-head {
|
|
background-color: #f9dec9; /* light warm-orange shade */
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Body cell styling - Autumn base color */
|
|
.table-cell {
|
|
overflow: hidden;
|
|
background-color: #fdf3ee; /* subtle near-white peach */
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
/* Striped rows: every even 'table-row' uses a different shade */
|
|
.table-row:nth-of-type(even) .table-cell {
|
|
background-color: #fce8d8; /* pale orange-brown */
|
|
}
|
|
|
|
/* Row hover effect - a slightly darker shade */
|
|
.table-row:hover .table-cell {
|
|
background-color: #f8dcc2; /* warm peach on hover */
|
|
}
|
|
/* Pointer effect for interactive cells */
|
|
.point {
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.point:hover {
|
|
background-color: #e9e9e9;
|
|
}
|