mirror of
https://github.com/tazihad/obsidian-easy-keep-view.git
synced 2026-07-22 05:49:04 +00:00
260 lines
5.7 KiB
CSS
260 lines
5.7 KiB
CSS
/* General Container for Cards */
|
||
.easy-keep-cards-container {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
|
||
gap: 16px;
|
||
padding: 12px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* Card Design */
|
||
.easy-keep-card {
|
||
width: 100%;
|
||
min-height: 160px;
|
||
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 */
|
||
.easy-keep-card:hover {
|
||
transform: scale(1.05);
|
||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
|
||
}
|
||
|
||
/* Card Title Styling */
|
||
.easy-keep-card h3 {
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
margin-bottom: 6px;
|
||
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 Styling */
|
||
.easy-keep-thumbnail {
|
||
max-width: 100%;
|
||
max-height: 80px;
|
||
object-fit: cover;
|
||
border-radius: 6px;
|
||
margin-top: 8px;
|
||
display: block;
|
||
}
|
||
|
||
/* Card Content Styling */
|
||
.easy-keep-card p {
|
||
font-size: 12px;
|
||
color: var(--text-color, #555);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 5;
|
||
-webkit-box-orient: vertical;
|
||
margin-top: 6px;
|
||
}
|
||
|
||
/* 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: 36px; /* Increased from 18px to 36px for a bigger "+" */
|
||
margin-bottom: 6px;
|
||
color: var(--new-note-text-color, #555);
|
||
line-height: 1; /* Ensures the larger icon doesn’t stretch the layout */
|
||
}
|
||
|
||
|
||
.new-note-card p {
|
||
font-size: 12px;
|
||
text-align: center;
|
||
font-weight: 700; /* Changed from 500 to 700 for bold */
|
||
color: var(--new-note-text-color, #555); /* Explicitly set to ensure consistency */
|
||
}
|
||
|
||
/* No Notes Available Message */
|
||
.no-history-message {
|
||
font-size: 14px;
|
||
color: var(--text-color, #555);
|
||
text-align: center;
|
||
padding: 10px;
|
||
width: 100%;
|
||
}
|
||
|
||
/* Thumbnail Image Styling */
|
||
.thumbnail-image {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
}
|
||
|
||
/* Light Theme */
|
||
.easy-keep-cards-container.theme-light {
|
||
background-color: white !important;
|
||
color: #333 !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-light .easy-keep-card {
|
||
background-color: #f9f9f9 !important;
|
||
border-color: #ddd !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-light .easy-keep-card h3 {
|
||
color: #333 !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-light .easy-keep-card p {
|
||
color: #555 !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-light .new-note-card {
|
||
background-color: #f3f3f3 !important;
|
||
border-color: #ddd !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-light .no-history-message {
|
||
color: #555 !important;
|
||
}
|
||
|
||
/* Dark Theme */
|
||
.easy-keep-cards-container.theme-dark {
|
||
background-color: #2c2c2c !important;
|
||
color: #f9f9f9 !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-dark .easy-keep-card {
|
||
background-color: #333 !important;
|
||
border-color: #444 !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-dark .easy-keep-card h3 {
|
||
color: #fff !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-dark .easy-keep-card p {
|
||
color: #ccc !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-dark .new-note-card {
|
||
background-color: #444 !important;
|
||
border-color: #555 !important;
|
||
}
|
||
|
||
.easy-keep-cards-container.theme-dark .no-history-message {
|
||
color: #ccc !important;
|
||
}
|
||
|
||
/* System Theme - Follows system's preference */
|
||
/* System Theme (optional fallback) */
|
||
[data-theme="system"] .easy-keep-cards-container,
|
||
.theme-system .easy-keep-cards-container {
|
||
background-color: var(--bg-system, #f9f9f9);
|
||
color: var(--text-system, #333);
|
||
}
|
||
|
||
/* Mobile Responsiveness */
|
||
@media (max-width: 768px) {
|
||
.easy-keep-cards-container {
|
||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||
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;
|
||
}
|
||
|
||
.new-note-card {
|
||
padding: 6px;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 480px) {
|
||
.easy-keep-cards-container {
|
||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||
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;
|
||
}
|
||
|
||
.new-note-card {
|
||
padding: 6px;
|
||
}
|
||
}
|
||
|
||
/* Dark Mode Theme Styling */
|
||
@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);
|
||
}
|
||
}
|