lostpaul_obsidian-folder-notes/styles.css

350 lines
7.3 KiB
CSS
Raw Normal View History

2023-03-31 07:19:32 +00:00
.fn-whitespace-stop-collapsing .nav-folder-title-content {
2023-07-06 11:50:28 +00:00
flex-grow: 1 !important;
2024-08-14 11:28:46 +00:00
display: flex;
2023-07-06 11:50:28 +00:00
padding-bottom: 4px !important;
padding-top: 4px !important;
2023-03-12 16:11:05 +00:00
}
2023-03-20 21:41:24 +00:00
2024-10-03 15:34:38 +00:00
.version-1-7-2.fn-whitespace-stop-collapsing .nav-files-container .collapse-icon {
padding-top: 4px !important;
}
2024-08-14 11:28:46 +00:00
.mod-rtl .fn-whitespace-stop-collapsing .nav-folder-title-content {
padding-left: 8px !important;
}
2023-05-11 16:57:59 +00:00
.fn-whitespace-stop-collapsing .nav-folder-title {
2023-07-06 11:50:28 +00:00
padding-bottom: 0 !important;
padding-top: 0 !important;
2024-08-14 11:28:46 +00:00
}
body:not(.mod-rtl).fn-whitespace-stop-collapsing .nav-folder-title {
2023-07-06 11:50:28 +00:00
padding-right: 0 !important;
2023-05-11 16:57:59 +00:00
}
2024-08-14 11:28:46 +00:00
.mod-rtl.fn-whitespace-stop-collapsing .nav-folder-title {
padding-left: 0 !important;
}
2023-05-22 08:14:37 +00:00
.fn-whitespace-stop-collapsing .nav-folder-collapse-indicator {
2023-07-06 11:50:28 +00:00
margin-top: 4px !important;
2023-04-09 15:07:37 +00:00
}
body:not(.is-grabbing) .tree-item-self.fn-is-active:hover,
2024-06-02 12:36:07 +00:00
body:not(.disable-folder-highlight) .tree-item-self.fn-is-active {
2024-01-13 20:59:05 +00:00
color: var(--nav-item-color-active);
background-color: var(--nav-item-background-active);
font-weight: var(--nav-item-weight-active);
}
2023-05-11 16:57:59 +00:00
2023-04-22 10:44:59 +00:00
.has-folder-note .nav-folder-title-content:hover,
.has-folder-note.view-header-breadcrumb:hover {
2023-04-09 15:07:37 +00:00
cursor: pointer;
}
.hide {
display: none;
}
2023-03-12 16:11:05 +00:00
.hide-folder-note .is-folder-note {
display: none;
2023-03-19 20:05:16 +00:00
}
2023-06-28 21:01:13 +00:00
.hide-folder .folder-name {
display: none;
}
2023-03-19 20:05:16 +00:00
.nav-folder-collapse-indicator:hover {
cursor: pointer;
}
2023-07-26 20:16:54 +00:00
.fn-excluded-folder-heading {
margin-top: 0 !important;
border-top: 1px solid var(--background-modifier-border);
}
.add-exclude-folder-item {
padding-bottom: 0 !important;
2023-03-18 21:56:11 +00:00
}
.fn-exclude-folder-list {
padding-bottom: 0 !important;
2023-03-17 21:58:27 +00:00
}
.fn-exclude-folder-list.setting-item {
border-top: 0 !important;
border-bottom: 0 !important;
}
.fn-exclude-folder-list .setting-item-control {
2023-03-18 21:56:11 +00:00
display: flex;
justify-content: flex-start !important;
2023-03-17 21:58:27 +00:00
}
.fn-exclude-folder-list .setting-item-info {
display: none !important;
2023-03-19 12:35:04 +00:00
}
.fn-exclude-folder-list .search-input-container {
width: 100%;
}
2025-01-25 20:26:03 +00:00
/* Modal styles */
.fn-backup-warning-modal .fn-modal-button-container {
display: flex;
gap: 0.5rem;
justify-content: flex-end;
}
2023-03-19 12:35:04 +00:00
.fn-confirmation-modal {
padding-bottom: 0;
}
:not(.is-phone) .fn-confirmation-modal-button {
2023-03-19 12:35:04 +00:00
margin-right: 0.7rem;
2023-03-20 21:41:24 +00:00
}
:not(.is-phone) .fn-delete-confirmation-modal-buttons {
2023-03-20 21:41:24 +00:00
display: flex;
align-items: center;
margin-top: 10px;
}
.fn-delete-confirmation-modal-buttons span:hover,
.fn-delete-confirmation-modal-buttons input:hover {
cursor: pointer;
}
:not(.is-phone) .fn-delete-confirmation-modal-buttons .fn-confirmation-modal-button {
2023-03-20 21:41:24 +00:00
margin-left: auto;
}
2023-03-20 21:41:24 +00:00
:not(.is-phone) .fn-delete-confirmation-modal-buttons input[type="checkbox"] {
2023-03-20 21:41:24 +00:00
margin-right: 5px;
2023-03-23 07:56:11 +00:00
}
.is-phone .fn-delete-confirmation-modal-buttons {
display: flex;
flex-direction: column;
align-items: center;
}
2023-03-23 07:56:11 +00:00
.is-phone .fn-delete-confirmation-modal-buttons .fn-confirmation-modal-button {
margin-top: 10px;
2023-06-26 11:14:31 +00:00
}
2023-12-28 17:33:12 +00:00
/* Folder overview */
.fn-folder-overview-collapse-icon {
display: block !important;
}
2023-12-28 17:33:12 +00:00
.fn-has-no-files .collapse-icon {
display: none !important;
}
2023-06-26 11:14:31 +00:00
.folder-overview-list {
2023-07-26 14:11:37 +00:00
margin-top: 0 !important;
2023-06-28 21:01:13 +00:00
margin-bottom: 0 !important;
padding-bottom: 1.200 !important;
2023-07-26 14:11:37 +00:00
padding-top: 1.200 !important;
2023-06-26 11:14:31 +00:00
}
2023-06-28 21:01:13 +00:00
.folder-overview-list-item {
display: flex;
}
2023-06-26 11:14:31 +00:00
.folder-overview-list::marker {
color: var(--text-faint);
}
.folder-list::marker {
color: var(--text-normal) !important;
}
2023-07-04 20:03:39 +00:00
.folder-overview-grid {
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(3, 1fr);
}
.folder-overview-grid-item-article article {
padding: 15px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
2023-07-26 14:11:37 +00:00
2023-07-04 20:03:39 +00:00
.folder-overview-grid-item-article a {
text-decoration: none !important;
}
2023-07-26 14:11:37 +00:00
2023-07-04 20:03:39 +00:00
.folder-overview-grid-item-article h1 {
font-size: 1.2rem;
}
.overview-setting-item-fv {
border-top: 1px solid var(--background-modifier-border);
padding: 0.75em 0;
align-items: center;
}
.overview-setting-item-fv .setting-item {
padding: 0;
}
2023-07-04 20:03:39 +00:00
.folder-overview-grid-item {
flex: 1 1 auto;
margin-right: 1.200rem;
margin-bottom: 1.200rem;
}
.fn-confirmation-modal .setting-item {
border-top: 0 !important;
padding-top: 0 !important;
}
.pointer-cursor {
cursor: pointer !important;
2023-09-19 19:31:58 +00:00
}
/* Setting tab style */
.fn-settings-tab-bar {
2024-01-13 20:59:05 +00:00
display: flex;
flex-direction: row;
2024-01-27 16:32:15 +00:00
padding-bottom: 1rem;
2023-09-19 19:31:58 +00:00
}
.fn-settings-tab {
2024-01-13 20:59:05 +00:00
display: flex;
flex-direction: row;
align-items: center;
gap: var(--size-4-2);
padding: 10px;
border: 1px solid var(--background-modifier-border)
2023-09-19 19:31:58 +00:00
}
.fn-settings-tab-active {
2024-01-13 20:59:05 +00:00
background-color: var(--color-accent);
color: var(--text-on-accent);
2023-09-19 19:31:58 +00:00
}
.fn-settings-tab-name {
2024-01-13 20:59:05 +00:00
font-weight: bold;
2023-09-19 19:31:58 +00:00
}
.fn-settings-tab-icon {
2024-01-13 20:59:05 +00:00
display: flex;
2023-10-28 15:46:06 +00:00
}
/* File explorer & path styles */
.folder-note-underline .has-folder-note .nav-folder-title-content {
text-decoration-line: underline;
text-decoration-color: var(--text-faint);
text-decoration-thickness: 2px;
text-underline-offset: 1px;
}
.folder-note-underline-path .has-folder-note.view-header-breadcrumb {
text-decoration-line: underline;
text-decoration-color: var(--text-faint);
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
2024-01-13 20:59:05 +00:00
.folder-note-bold .has-folder-note .nav-folder-title-content,
2023-10-28 15:46:06 +00:00
.folder-note-bold-path .has-folder-note.view-header-breadcrumb {
font-weight: bold;
}
.folder-note-cursive .has-folder-note .nav-folder-title-content,
2023-10-28 15:46:06 +00:00
.folder-note-cursive-path .has-folder-note.view-header-breadcrumb {
font-style: italic;
2024-01-13 20:59:05 +00:00
}
2024-01-21 21:08:16 +00:00
.fn-hide-collapse-icon .has-folder-note.only-has-folder-note .tree-item-icon {
2024-01-13 20:59:05 +00:00
display: none;
}
.fn-hide-empty-collapse-icon .fn-empty-folder .tree-item-icon {
display: none;
}
2024-01-13 20:59:05 +00:00
2024-05-19 14:48:13 +00:00
.fn-suggestion-container {
position: absolute;
overflow: hidden;
display: flex;
flex-direction: column;
background-color: var(--background-primary);
max-width: 500px;
max-height: 300px;
border-radius: var(--radius-m);
border: 1px solid var(--background-modifier-border);
box-shadow: var(--shadow-s);
z-index: var(--layer-notice);
}
/* Mobile style overrides */
.is-phone .fn-overview-folder-path .setting-item-control{
display: block;
}
/* Default desktop layout */
.fn-whitelist-folder-input-container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
margin: 0;
}
.fn-whitelist-folder-input-container input {
flex-grow: 1;
width: auto;
box-sizing: border-box;
margin-right: 8px;
height: 40px; /* Ensure consistent height */
}
.fn-whitelist-folder-buttons {
display: flex;
gap: 8px;
justify-content: flex-end;
align-items: center;
flex-grow: 0;
flex-shrink: 0;
}
/* Mobile-specific layout */
@media (max-width: 768px) {
.fn-whitelist-folder-input-container {
display: block;
width: 100%;
text-align: center; /* Center elements vertically when stacked */
}
.fn-whitelist-folder-input-container input {
width: 100%;
margin-right: 0;
}
.fn-whitelist-folder-buttons {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
width: 100%;
}
}