You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

512 lines
10 KiB

3 years ago
:root {
--font-normal:16px;
--font-small:13px;
--font-smaller:12px;
--normal-weight:400; /* Switch to 300 if you want thinner default text */
--bold-weight:600; /* Switch to 700 if you want thicker bold text */
--border-width:1px;
--text-title-h1: var(--text-normal);
}
.card-board {
height: 100%;
background-color: var(--background-primary);
}
ul.card-board-tab-list {
display: flex;
list-style-type: none;
margin: 0;
padding: 0;
}
ul.card-board-tab-list > li::before {
content: "";
}
ul.card-board-column-list > li.card-board-card::before {
content: "";
}
li.card-board-pre-tabs, li.card-board-post-tabs {
background-color: var(--background-secondary-alt);
}
li.card-board-pre-tabs .card-board-tabs-inner, li.card-board-post-tabs .card-board-tabs-inner {
width: 20px;
height:100%
}
li.card-board-pre-tabs .card-board-tabs-inner,
li.card-board-post-tabs .card-board-tabs-inner,
li.card-board-tab-title .card-board-tabs-inner {
background-color: var(--background-primary);
}
li.card-board-pre-tabs .card-board-tabs-inner {
padding: 3px 7px;
width: 30px;
}
.card-board-tabs-inner {
padding: 3px 1em;
}
li.is-before-active .card-board-tabs-inner {
border-bottom-right-radius: 10px;
}
li.is-after-active .card-board-tabs-inner {
border-bottom-left-radius: 10px;
}
.card-board-tab-title {
background-color: var(--background-secondary-alt);
border-radius: 5px 5px 0 0 ;
color: var(--text-muted);
cursor: pointer;
}
.card-board-tab-icon {
cursor: pointer;
}
.card-board-tab-title.is-active .card-board-tabs-inner {
background-color: var(--background-secondary-alt);
border-radius: 5px 5px 0 0 ;
color: var(--text-normal);
}
.card-board-boards {
display: grid;
padding: 1em;
padding-bottom: 0.5em;
background-color: var(--background-secondary-alt);
border-radius: 5px;
overflow-x: auto;
}
.card-board-board {
grid-column-start: 1;
grid-row-start: 1;
}
.card-board-columns {
display: grid;
grid-auto-columns: minmax(272px, 1fr);
grid-auto-flow: column;
grid-gap: 1em;
margin-right: 1em;
}
.card-board-column {
padding: 1em;
background-color: var(--background-secondary);
border-radius: 3px;
border: var(--border-width) solid var(--background-modifier-border);
}
.card-board-column-header {
font-weight: var(--bold-weight);
font-size: var(--font-normal);
margin-bottom: 1em;
}
ul.card-board-column-list {
display: grid;
grid-gap: 0.5em;
max-height: calc(100vh - 16em);
list-style-type: none;
margin: 0;
padding: 0;
overflow-y: auto;
}
ul.card-board-column-list > li.card-board-card::before {
content: "";
}
.card-board-card.markdown-preview-view {
border-radius: 3px;
border: var(--border-width) solid var(--background-modifier-border);
background-color: var(--background-primary);
padding: 0;
grid-column-gap: 0.25em;
display: grid;
grid: "mark contents"
/ 5px auto;
}
.card-board-card-highlight-area {
grid-area: mark;
}
.card-board-card-highlight-area.critical {
background-color: var(--text-error);
}
.card-board-card-highlight-area.good {
background-color: var(--interactive-success);
}
.card-board-card-highlight-area.important {
background-color: var(--text-accent);
}
.card-board-card-content-area {
grid-area: contents;
display: grid;
padding: 0.5em;
grid: "tags tags"
"checkbox title"
"subtasks subtasks"
"notes notes"
"footer footer"
/ auto minmax(0, 1fr);
}
.card-board-card-tag-area {
grid-area: tags;
font-size: var(--font-small);
margin-bottom: 0.5em;
}
.card-board-card-tag {
display: inline-block;
margin-right: 0.3em;
}
.cm-s-obsidian div.card-board-card-tag > span.cm-hashtag {
background-color: var(--background-secondary-alt);
border: 1px solid var(--background-modifier-border);
color: var(--text-muted);
font-size: var(--font-adaptive-small);
font-family: var(--font-ui);
text-align: center;
text-decoration: none;
line-height: 1.5em;
display: inline-block;
margin: 2px 0;
vertical-align: middle;
padding-top: 1px;
border-left: none;
border-right: none;
padding-bottom: 2px;
cursor: text;
}
div.card-board-card-tag > span.cm-hashtag.cm-hashtag-begin {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
padding-left: 6px;
border-right: none;
border-left: 1px solid var(--background-modifier-border);
}
div.card-board-card-tag > span.cm-hashtag.cm-hashtag-end {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-left: none;
padding-right: 6px;
border-right: 1px solid var(--background-modifier-border);
}
.card-board-card.markdown-preview-view .task-list-item-checkbox {
grid-area: checkbox;
position: static;
margin: 0;
margin-right: 0.5em;
margin-top: 0.25em;
height: 1em;
width: 1em;
}
/* fixes alignment of checkbox ticks on california coast theme */
.card-board-card-content-area > input[type="checkbox"]:checked:before {
position:static;
}
.card-board-card-title {
grid-area: title;
font-weight: var(--bold-weight);
font-size: var(--font-normal);
display: -webkit-box;
color: var(--text-title-h1);
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.card-board-card-title p {
display: inline;
}
.card-board-card-subtasks-area {
grid-area: subtasks;
font-size: var(--font-small);
margin-top: 0.5em;
}
/* fixes an issue with themes showing border on the left of lists */
.card-board-card-subtasks-area > ul::before {
border-style: none;
}
.card-board-card-subtask {
display: grid;
grid: "checkbox title"
/ auto minmax(0, 1fr);
}
.card-board-card-subtask .task-list-item-checkbox {
font-size: var(--font-small);
}
.card-board-card-subtask .card-board-card-title {
font-weight: var(--normal-weight);
font-size: var(--font-small);
}
.card-board-card-notes-area {
grid-area: notes;
font-size: var(--font-small);
}
.card-board-card-notes-area > ul::before {
border-style: none;
}
.card-board-card-footer-area {
grid-area: footer;
display: grid;
grid: "due actions"
/ minmax(0, 1fr) auto;
font-size: var(--font-small);
margin-top: 0.5em;
}
.card-board-card-action-area-due {
grid-area: due;
color: var(--text-faint);
}
.card-board-card-action-area-buttons {
grid-area: actions;
display: grid;
grid-auto-flow: column;
grid-gap: 0.5em;
}
.card-board-card-action-area-button {
cursor: pointer;
}
.card-board .modal-content {
display: grid;
grid: "select form"
/ 200px auto;
overflow: hidden;
margin-top: 0;
}
.settings-menu .vertical-tab-header-group-title {
display: grid;
grid-auto-flow: column;
}
.vertical-tab-header-group-title-icon {
justify-self: end;
cursor: pointer;
}
.modal.mod-settings {
width: 80%;
}
.modal.mod-settings .settings-menu.vertical-tab-header {
grid-area: select;
padding-top: 1.5em;
}
.card-board .vertical-tab-nav-item {
padding-right: 1.5em;
}
.modal-form {
display: grid;
grid-gap: 1.5em;
padding-top: 1.3em;
}
.form-item {
display: grid;
grid: "words control";
}
.form-item-name {
grid-area: words;
}
.form-item-control {
grid-area: control;
justify-self: end;
}
.settings-form-container {
grid-area: form;
padding: 2em 0 0.5em 0;
overflow: hidden;
height: 70vh;
}
.settings-form {
padding: 0 2.5em 0 2em;
overflow-y: auto;
height: 100%;
}
.dialog-buttons {
display: grid;
grid-auto-flow: column;
justify-content: center;
padding-top: 2em;
}
.modal-form .dialog-buttons {
border-top: 1px solid var(--background-modifier-border);
}
.card-board .setting-item:first-child {
padding-top: 0;
border-top: none;
}
.card-board .setting-item {
padding: 18px 0 18px 0;
border-top: 1px solid var(--background-modifier-border);
}
.setting-item-control textarea {
min-height: 10em;
min-width: 22em;
}
.multiselect-items {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
background: var(--background-modifier-form-field);
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
color: var(--text-normal);
padding: 4px 5px;
font-size: var(--font-small);
min-width: 217px;
max-width: 417px;
overflow-x: auto;
gap: 3px;
}
.multiselect-items input.multiselect-input {
border: 0;
min-width: 100px;
font-size: var(--font-small);
}
.multiselect-items input.multiselect-input:focus {
border: 0;
box-shadow: none;
}
.multiselect-item {
white-space: nowrap;
}
.multiselect-item.selected {
cursor: pointer;
vertical-align: middle;
}
.multiselect-item-key {
background-color: var(--background-secondary-alt);
border: 1px solid var(--background-modifier-border);
border-right: 0px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
padding-left: 4px;
padding-right: 4px;
padding-bottom: 2px;
line-height: 1.5em;
vertical-align: middle;
}
.multiselect-item.selected .multiselect-item-key {
background-color: var(--text-muted);
color: var(--text-on-accent);
border-right: 0.5px solid var(--text-on-accent);
}
.multiselect-item.selected .multiselect-item-value {
background-color: var(--text-muted);
color: var(--text-on-accent);
}
.multiselect-items input.multiselect-input {
padding: 2px;
}
.multiselect-item-value {
background-color: var(--background-primary-alt);
border: 1px solid var(--background-modifier-border);
border-left: 0px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
padding-left: 4px;
padding-right: 4px;
padding-bottom: 2px;
line-height: 1.5em;
vertical-align: middle;
}
.card-board .suggestion-container {
display: grid;
grid-auto-flow: row;
grid-gap: 0.5em;
position: relative;
padding: 5px 8px;
font-size: var(--font-small);
text-align: left;
line-height: 1em;
}
.card-board .suggestion-section {
border-top: 1px solid var(--background-modifier-border);
padding-top: 0.5em;
}
.card-board .suggestion-section:first-child {
border-top: none;
}
.card-board .suggestion-section-heading {
color: var(--text-faint);
font-size: var(--font-smaller);
font-weight: var(--bold-weight);
margin-bottom: 3px;
}
.card-board .suggestion-item {
padding-left: 5px;
font-size: var(--font-small);
line-height: 1.3em;
}
.setting-item-control .suggestion-item:hover {
background-color: var(--background-secondary);
}