215 lines
3.8 KiB
CSS
215 lines
3.8 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
.modal-box {
|
|
display: none; /* Hidden by default */
|
|
position: fixed; /* Stay in place */
|
|
z-index: 1; /* Sit on top */
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%; /* Full width */
|
|
height: 100%; /* Full height */
|
|
overflow: auto; /* Enable scroll if needed */
|
|
background-color: rgb(0,0,0); /* Fallback color */
|
|
background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
|
|
}
|
|
|
|
.modal-box[popup-display="false"] {
|
|
display: none; /* Hidden by default */
|
|
}
|
|
|
|
.modal-box[popup-display="true"] {
|
|
display: flex; /* Hidden by default */
|
|
}
|
|
/* Modal Content/Box */
|
|
.modal-content {
|
|
margin: 5% auto; /* 15% from the top and centered */
|
|
padding: 20px;
|
|
border: 1px solid #888;
|
|
width: 80%; /* Could be more or less, depending on screen size */
|
|
height: 90%;
|
|
overflow: auto; /* Enable scroll if needed */
|
|
background-color: rgb(0,0,0); /* Fallback color */
|
|
}
|
|
|
|
/* Float three header columns side by side */
|
|
.header {
|
|
position: fixed; /* Stay in place */
|
|
overflow: hidden;
|
|
z-index: 1; /* Sit on top */
|
|
width: 100%;
|
|
top: 0; /* Position the navbar at the top of the page */
|
|
padding: 0 10px;
|
|
background-color: #f1f1f1;
|
|
}
|
|
|
|
.main {
|
|
margin-top: 50px; /* Add a top margin to avoid content overlay */
|
|
}
|
|
|
|
/* Float three header columns side by side */
|
|
.header-column {
|
|
float: left;
|
|
width: 28%;
|
|
padding: 0 10px;
|
|
}
|
|
/* Float three header columns side by side */
|
|
.header-page-column {
|
|
float: left;
|
|
margin-top: 0px;
|
|
width: 15%;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
/* Float four columns side by side */
|
|
.column {
|
|
float: left;
|
|
width: 25%;
|
|
padding: 0 10px;
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* Remove extra left and right margins, due to padding in columns */
|
|
.row {margin: 0 -5px;}
|
|
|
|
/* Clear floats after the columns */
|
|
.row:after {
|
|
content: "";
|
|
display: table;
|
|
clear: both;
|
|
}
|
|
|
|
/* Style the counter cards */
|
|
.card {
|
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */
|
|
padding: 16px;
|
|
text-align: left;
|
|
height: 400px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
background-color: #f1f1f1;
|
|
}
|
|
|
|
/* Style the counter cards */
|
|
.card-openlibrary {
|
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */
|
|
padding: 16px;
|
|
text-align: left;
|
|
height: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
background-color: #f1f1f1;
|
|
}
|
|
|
|
.card img {
|
|
float: right;
|
|
width: 100px;
|
|
padding: 0 20px 20px 0;
|
|
}
|
|
|
|
.card-openlibrary img {
|
|
float: right;
|
|
width: 100px;
|
|
padding: 0 20px 20px 0;
|
|
}
|
|
|
|
|
|
.card-title {
|
|
padding: 16px;
|
|
text-align: left;
|
|
width: 60%;
|
|
font-weight: bold;
|
|
font-size: large;
|
|
}
|
|
|
|
.card-authors {
|
|
padding: 16px;
|
|
text-align: left;
|
|
width: 60%;
|
|
font-size: large;
|
|
}
|
|
|
|
.card-desc {
|
|
padding: 2px;
|
|
text-align: left;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.input-field {
|
|
padding: 4px;
|
|
float: left;
|
|
text-align: left;
|
|
width: 50%;
|
|
font-size: large;
|
|
}
|
|
.input-field label {
|
|
display: block;
|
|
vertical-align: middle;
|
|
min-width: 20%;
|
|
max-width: 20%;
|
|
width: 20%;
|
|
padding: 4px;
|
|
}
|
|
.input-field textarea {
|
|
vertical-align: middle;
|
|
width: 80%;
|
|
}
|
|
.input-buttons {
|
|
padding: 20px;
|
|
float: left;
|
|
text-align: left;
|
|
width: 100%;
|
|
}
|
|
|
|
.more-info {
|
|
width: 90%;
|
|
}
|
|
.more-info img {
|
|
float: right;
|
|
width: 200px;
|
|
padding: 0 20px 20px 0;
|
|
}
|
|
|
|
.more-info label {
|
|
display:inline-block;
|
|
text-align: left;
|
|
width: 20%;
|
|
font-weight: bold;
|
|
font-size: large;
|
|
}
|
|
|
|
.more-info-buttons {
|
|
padding: 20px;
|
|
text-align: left;
|
|
}
|
|
|
|
.page-input {
|
|
width: 40px;
|
|
}
|
|
|
|
/* Responsive columns - one column layout (vertical) on small screens */
|
|
@media screen and (max-width: 600px) {
|
|
.column {
|
|
width: 100%;
|
|
display: block;
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 800px) {
|
|
.main {
|
|
margin-top: 80px; /* Add a top margin to avoid content overlay */
|
|
}
|
|
|
|
.input-field {
|
|
width: 100%;
|
|
}
|
|
}
|