tazihad_obsidian-easy-keep-.../styles.css
2025-04-11 00:39:09 +06:00

194 lines
4.5 KiB
CSS

/* Container for all cards */
.easy-keep-cards-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
gap: 16px;
padding: 12px;
box-sizing: border-box;
}
/* Individual note card */
.easy-keep-card {
width: 100%;
min-height: 160px; /* Adjusted card size */
padding: 8px;
border: 1px solid var(--border-color, #ddd);
border-radius: 12px;
background-color: var(--bg-color, #f9f9f9);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
cursor: pointer;
color: var(--text-color, #333);
display: flex;
flex-direction: column;
justify-content: flex-start;
box-sizing: border-box;
}
/* Hover effects for the cards */
.easy-keep-card:hover {
transform: scale(1.05);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
/* Title of each card: max 3 lines */
.easy-keep-card h3 {
font-size: 14px; /* Reduced font size */
font-weight: 700;
margin-bottom: 6px; /* Smaller margin */
color: var(--heading-color, #333);
line-height: 1.2;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
/* Thumbnail image styling: smaller size */
.easy-keep-thumbnail {
max-width: 100%;
max-height: 80px; /* Reduced thumbnail size */
object-fit: cover;
border-radius: 6px;
margin-top: 8px; /* Small gap between title and thumbnail */
display: block;
}
/* Content of the card: max 5 lines, ellipsis at the end */
.easy-keep-card p {
font-size: 12px; /* Smaller font size */
color: var(--text-color, #555);
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5; /* Increased content line limit */
-webkit-box-orient: vertical;
margin-top: 6px; /* Small gap between title and content */
}
/* Styling for the "new note" card */
/* New note card */
.new-note-card {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
border: 2px dashed var(--border-color, #ddd);
padding: 8px;
background-color: var(--new-note-bg, #f3f3f3);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
color: var(--new-note-text-color, #555);
cursor: pointer;
}
.new-note-card h3 {
font-size: 18px; /* Smaller font size */
margin-bottom: 6px;
color: var(--new-note-text-color, #555);
}
.new-note-card p {
font-size: 12px;
text-align: center;
font-weight: 500;
}
/* No notes available message */
.no-history-message {
font-size: 14px; /* Smaller font size */
color: var(--text-color, #555);
text-align: center;
padding: 10px;
width: 100%;
}
.thumbnail-image {
width: 100%;
height: 100%;
object-fit: cover; /* Ensures the image covers the space while maintaining aspect ratio */
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.easy-keep-cards-container {
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Reduced column size */
gap: 12px;
}
.easy-keep-card {
padding: 6px;
min-height: 140px;
}
.easy-keep-card h3 {
font-size: 12px;
}
.easy-keep-card p {
font-size: 11px;
}
.easy-keep-thumbnail {
max-height: 60px; /* Adjust thumbnail size for smaller screens */
}
.new-note-card {
padding: 6px;
}
}
@media (max-width: 480px) {
.easy-keep-cards-container {
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Reduced column size for smaller screens */
gap: 8px;
padding: 6px;
}
.easy-keep-card {
padding: 6px;
min-height: 120px;
}
.easy-keep-card h3 {
font-size: 10px;
}
.easy-keep-card p {
font-size: 10px;
}
.easy-keep-thumbnail {
max-height: 50px; /* Adjust thumbnail size for very small screens */
}
.new-note-card {
padding: 6px;
}
}
/* Dark theme mode */
@media (prefers-color-scheme: dark) {
.easy-keep-card {
background-color: var(--bg-dark, #2c2c2c);
border-color: var(--border-dark, #444);
color: var(--text-dark, #ccc);
}
.easy-keep-card h3 {
color: var(--heading-dark, #fff);
}
.easy-keep-card p {
color: var(--text-dark, #ccc);
}
.new-note-card {
background-color: var(--new-note-dark-bg, #333);
border-color: var(--border-dark, #444);
}
.no-history-message {
color: var(--text-dark, #ccc);
}
}