2024-08-22 18:02:18 +02:00

546 lines
11 KiB
CSS

body {
margin: 0;
background-color: #121212;
color: rgba(255, 255, 255, 0.87);
}
.content {
padding: 16px;
}
.mdc-text-field {
width: 100%;
margin-bottom: 16px;
}
.search-results {
margin-bottom: 16px;
}
.screenshot-card {
background-color: #1e1e1e;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.screenshot-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.screenshot-image {
background-size: cover;
background-position: center;
position: relative;
cursor: pointer;
}
.screenshot-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.screenshot-image:hover .screenshot-overlay {
opacity: 1;
}
.screenshot-overlay .material-icons {
color: white;
font-size: 48px;
pointer-events: none;
}
.screenshot-timestamp {
padding: 16px;
margin: 0;
}
#screenshot-dialog-image {
max-width: 100%;
height: auto;
}
.mdc-dialog .mdc-dialog__surface {
background-color: #1e1e1e;
max-width: 90vw;
max-height: 90vh;
transition: opacity 0.3s ease-out, transform 0.3s ease-out;
opacity: 0;
transform: scale(0.8);
}
.mdc-dialog--opening .mdc-dialog__surface {
opacity: 1;
transform: scale(1);
}
.mdc-dialog--closing .mdc-dialog__surface {
opacity: 0;
transform: scale(0.8);
}
.mdc-dialog .mdc-dialog__title {
color: rgba(255, 255, 255, 0.87);
}
.mdc-top-app-bar {
background-color: #1e1e1e;
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing {
border-color: rgba(255, 255, 255, 0.38);
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,
.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,
.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing {
border-color: rgba(255, 255, 255, 0.87);
}
.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label {
color: rgba(255, 255, 255, 0.6);
}
.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
color: #bb86fc;
}
.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input {
color: rgba(255, 255, 255, 0.87);
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing {
border-color: #bb86fc;
}
.mdc-text-field .mdc-text-field__icon--trailing {
color: white !important;
pointer-events: auto;
cursor: pointer;
}
.mdc-circular-progress__determinate-circle,
.mdc-circular-progress__indeterminate-circle-graphic {
stroke: #bb86fc;
}
.mdc-dialog__content {
display: flex;
justify-content: center;
align-items: center;
}
#config-button {
position: fixed;
bottom: 16px;
right: 16px;
}
#config-dialog .mdc-dialog__content {
display: flex;
flex-direction: column;
gap: 16px;
}
.mdc-text-field__icon--trailing {
color: white !important;
cursor: pointer;
}
.section-divider {
margin: 24px 0;
text-align: center;
position: relative;
}
.section-divider hr {
border: none;
border-top: 1px solid rgba(255, 255, 255, 0.12);
margin: 0;
}
.section-divider h2 {
background-color: #121212;
display: inline-block;
padding: 0 16px;
position: relative;
top: -12px;
margin: 0;
}
.status-not-analyzed::before,
.status-analyzing::before,
.status-analyzed::before {
content: '';
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
.status-not-analyzed::before {
background-color: #f44336;
}
.status-analyzing::before {
background-color: #ffc107;
}
.status-analyzed::before {
background-color: #4caf50;
}
#delete-all-and-db-button {
background-color: #f44336;
color: white;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.9);
}
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
}
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
cursor: pointer;
}
#screenshot-modal-image {
max-width: 100%;
height: auto;
}
#config-modal .modal-content {
display: flex;
flex-direction: column;
gap: 16px;
}
#config-modal .mdc-button {
align-self: flex-start;
}
.screenshot-timeline {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
padding: 20px 0;
position: relative;
}
.timeline-item {
flex: 0 0 auto;
width: 300px;
margin-right: 20px;
position: relative;
padding-bottom: 20px;
}
.mdc-card__media.screenshot-image {
height: 0;
padding-top: 56.25%; /* 16:9 aspect ratio */
background-size: cover;
background-position: center;
position: relative;
}
.mdc-card__media.screenshot-image::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
}
.mdc-card__content {
padding: 16px;
}
.screenshot-timestamp {
margin: 0;
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.87);
}
.screenshot-status {
margin: 8px 0;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.6);
}
.status-analyzed::before {
background-color: #4caf50;
}
.status-not-analyzed::before {
background-color: #f44336;
}
/* Scrollbar styling */
.screenshot-timeline::-webkit-scrollbar {
height: 8px;
}
.screenshot-timeline::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
.screenshot-timeline::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
.screenshot-timeline::-webkit-scrollbar-thumb:hover {
background: #555;
}
.tag {
display: inline-block;
background-color: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.87);
padding: 2px 8px;
border-radius: 12px;
font-size: 0.75rem;
}
.screenshot-tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-top: 8px;
}
.search-and-filter {
display: flex;
align-items: stretch;
margin-bottom: 20px;
}
.search-and-filter .mdc-layout-grid__cell {
display: flex;
}
#search-field {
width: 100%;
}
#tag-filter-select {
width: 100%;
}
/* Ensure the height of the select matches the search field */
.mdc-select--outlined {
height: 56px;
}
.mdc-select__anchor {
height: 56px !important;
}
/* Style for dark theme */
.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text {
color: rgba(255, 255, 255, 0.87);
}
.mdc-select:not(.mdc-select--disabled) .mdc-floating-label {
color: rgba(255, 255, 255, 0.6);
}
.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label {
color: #bb86fc;
}
.mdc-select:not(.mdc-select--disabled) .mdc-select__dropdown-icon {
fill: rgba(255, 255, 255, 0.5);
}
.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon {
fill: #bb86fc;
}
.mdc-select:not(.mdc-select--disabled) .mdc-select__anchor {
background-color: transparent;
}
.mdc-select:not(.mdc-select--disabled) .mdc-notched-outline__leading,
.mdc-select:not(.mdc-select--disabled) .mdc-notched-outline__notch,
.mdc-select:not(.mdc-select--disabled) .mdc-notched-outline__trailing {
border-color: rgba(255, 255, 255, 0.38);
}
.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,
.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,
.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing {
border-color: #bb86fc;
}
.mdc-select__menu .mdc-list {
color: rgba(255, 255, 255, 0.87);
background-color: #1e1e1e;
}
.mdc-select__menu .mdc-list-item--selected {
color: #bb86fc;
}
.mdc-select__menu .mdc-list-item--selected::before,
.mdc-select__menu .mdc-list-item--selected::after {
background-color: #bb86fc;
}
/* Adjust the layout grid to take full width */
.mdc-layout-grid {
padding: 0;
width: 100%;
}
/* Adjust the top app bar for the tag filter */
.mdc-top-app-bar__section--align-end {
padding-right: 20px;
}
#tag-filter-select {
width: 200px;
margin-left: 16px;
}
/* Ensure the height of the select matches the app bar */
.mdc-select--outlined {
height: 48px;
}
.mdc-select__anchor {
height: 48px !important;
}
/* Style for the search field */
#search-field {
width: 100%;
margin-bottom: 20px;
}
/* Modal styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.9);
}
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
}
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
cursor: pointer;
}
#screenshot-modal-image {
max-width: 100%;
height: auto;
}
#config-modal .modal-content {
display: flex;
flex-direction: column;
gap: 16px;
}
#config-modal .mdc-button {
align-self: flex-start;
}
#tags-input {
width: 100%;
padding: 10px;
margin: 10px 0;
background-color: #2e2e2e;
color: white;
border: 1px solid #444;
border-radius: 4px;
}
#save-tags-button {
margin-top: 10px;
}
.edit-tags-button {
margin-top: 10px;
}
.tag-filter-container {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.tag-filter-label {
margin-right: 10px;
color: rgba(255, 255, 255, 0.87);
font-size: 1rem;
white-space: nowrap;
}
#tag-filter-select {
width: 200px;
}
.mdc-select__selected-text {
color: rgba(255, 255, 255, 0.87);
}