Skip to content

Commit ad36781

Browse files
Stephan AngoStephan Ango
authored andcommitted
Small fixes for style settings and textareas
1 parent c4999a7 commit ad36781

File tree

1 file changed

+58
-31
lines changed

1 file changed

+58
-31
lines changed

obsidian.css

Lines changed: 58 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
3-
Minimal Obsidian 3.3.1 by @kepano
3+
Minimal Obsidian 3.3.2 by @kepano
44
55
This theme is designed to be used with the Minimal Theme Settings
66
plugin and the Hider plugin.
@@ -413,8 +413,8 @@ Frameless mode on macOS only */
413413
.modal.mod-settings .setting-item .pickr button.pcr-button {
414414
box-shadow:none;
415415
border-radius:40px;
416-
height: 24px;
417-
width: 24px;
416+
height:24px;
417+
width:24px;
418418
}
419419
.setting-item .pickr .pcr-button:after,
420420
.setting-item .pickr .pcr-button:before {
@@ -779,7 +779,7 @@ body:not(.is-mobile) .view-content .markdown-preview-view .image-embed:active im
779779
}
780780
.markdown-preview-view .table-view-table > thead > tr > th {
781781
font-weight:600;
782-
font-size:vcalc(var(--font-adaptive-normal) - 1px);
782+
font-size:calc(var(--font-adaptive-normal) - 1px);
783783
color:var(--text-normal);
784784
border-bottom:1px solid var(--text-faint);
785785
cursor:var(--cursor);
@@ -791,6 +791,10 @@ body:not(.is-mobile) .view-content .markdown-preview-view .image-embed:active im
791791
/* --------------- */
792792
/* Kanban Plugin */
793793

794+
body .kanban-plugin__markdown-preview-view {
795+
font-family:var(----text);
796+
}
797+
794798
body .workspace-leaf-content[data-type=kanban] .view-header-title-container {
795799
text-align:center;
796800
}
@@ -866,6 +870,10 @@ body .kanban-plugin__new-lane-button-wrapper {
866870
position:fixed;
867871
bottom:30px;
868872
}
873+
body .kanban-plugin button {
874+
box-shadow:none;
875+
cursor:var(--cursor);
876+
}
869877
body .kanban-plugin__item-button-wrapper > button {
870878
font-size:var(--font-adaptive-small);
871879
color:var(--text-muted);
@@ -911,6 +919,17 @@ body button.kanban-plugin__new-lane-button {
911919
color:var(--text-faint);
912920
}
913921

922+
@media (max-width:400pt) {
923+
.kanban-plugin__board {
924+
flex-direction:column !important;
925+
}
926+
927+
.kanban-plugin__lane {
928+
width:100% !important;
929+
margin-bottom:1rem !important;
930+
}
931+
}
932+
914933
/* --------------- */
915934
/* Checklist Plugin */
916935

@@ -2035,6 +2054,24 @@ input.document-replace-input:focus {
20352054
/* --------------- */
20362055
/* Form inputs */
20372056

2057+
textarea,
2058+
input[type='text'],
2059+
input[type='search'],
2060+
input[type='email'],
2061+
input[type='password'],
2062+
input[type='number'],
2063+
button,
2064+
.dropdown,
2065+
.setting-item-control button {
2066+
font-family:var(--font-ui);
2067+
font-size:13px;
2068+
}
2069+
textarea {
2070+
padding:5px 10px;
2071+
transition:all 0.1s linear;
2072+
-webkit-appearance:none;
2073+
line-height:1.3;
2074+
}
20382075
input[type='text'],
20392076
input[type='search'],
20402077
input[type='email'],
@@ -2043,25 +2080,16 @@ input[type='number'] {
20432080
padding:5px 10px;
20442081
-webkit-appearance:none;
20452082
transition:all 0.1s linear;
2046-
height:var(--input-height);
2083+
height:var(--input-height);
20472084
}
2085+
textarea:hover,
20482086
select:hover,
20492087
input:hover {
20502088
border-color:var(--background-modifier-border-hover);
20512089
transition:all 0.1s linear;
20522090
}
2053-
input[type='text'],
2054-
input[type='search'],
2055-
input[type='email'],
2056-
input[type='password'],
2057-
input[type='number'],
2058-
button,
2059-
.dropdown,
2060-
.setting-item-control button {
2061-
font-family:var(--font-ui);
2062-
font-size:13px;
2063-
}
2064-
2091+
textarea:active,
2092+
textarea:focus,
20652093
button:active,
20662094
button:focus,
20672095
.dropdown:focus,
@@ -2080,16 +2108,17 @@ input[type='password']:focus,
20802108
input[type='number']:focus {
20812109
-webkit-appearance:none;
20822110
border-color:var(--background-modifier-border-hover);
2083-
box-shadow: 0 0 0px 2px var(--background-modifier-border-hover);
20842111
}
2112+
body:not(.is-mobile) textarea:active,
2113+
body:not(.is-mobile) textarea:focus,
20852114
body:not(.is-mobile) button:active,
20862115
body:not(.is-mobile) button:focus,
20872116
body:not(.is-mobile) .dropdown:focus,
20882117
body:not(.is-mobile) .dropdown:active,
20892118
body:not(.is-mobile) select:focus,
20902119
body:not(.is-mobile) select:active,
20912120
body:not(.is-mobile) input:focus {
2092-
box-shadow: 0 0 0px 2px var(--background-modifier-border-hover);
2121+
box-shadow:0 0 0px 2px var(--background-modifier-border-hover);
20932122
}
20942123
.modal.mod-settings button:not(.mod-cta):not(.mod-warning),
20952124
.modal button:not(.mod-warning),
@@ -2101,7 +2130,7 @@ body:not(.is-mobile) input:focus {
21012130
cursor:var(--cursor);
21022131
height:var(--input-height);
21032132
line-height:0;
2104-
white-space: nowrap;
2133+
white-space:nowrap;
21052134
}
21062135
button:hover,
21072136
.modal button:not(.mod-warning):hover,
@@ -3496,7 +3525,7 @@ input[type=range]::-webkit-slider-thumb:active {
34963525
/* Publish */
34973526

34983527
.modal.mod-publish {
3499-
max-width: 600px;
3528+
max-width:600px;
35003529
padding-left:0;
35013530
padding-right:0;
35023531
padding-bottom:0;
@@ -3519,8 +3548,8 @@ input[type=range]::-webkit-slider-thumb:active {
35193548
border-top:1px solid var(--background-modifier-border);
35203549
bottom:0px;
35213550
background-color:var(--background-primary);
3522-
position: absolute;
3523-
width: 100%;
3551+
position:absolute;
3552+
width:100%;
35243553
margin-left:-20px;
35253554
text-align:center;
35263555
}
@@ -3545,7 +3574,7 @@ input[type=range]::-webkit-slider-thumb:active {
35453574
overflow-x:hidden;
35463575
}
35473576
.publish-section-header {
3548-
padding-bottom: 15px;
3577+
padding-bottom:15px;
35493578
border-width:1px;
35503579
}
35513580
.password-item {
@@ -3585,7 +3614,7 @@ input[type=range]::-webkit-slider-thumb:active {
35853614
font-size:var(--font-small);
35863615
}
35873616
.mod-publish .file-tree-item-checkbox {
3588-
filter: hue-rotate(0);
3617+
filter:hue-rotate(0);
35893618
}
35903619
.mod-publish .file-tree-item.mod-deleted .flair,
35913620
.mod-publish .file-tree-item.mod-to-delete .flair {
@@ -3764,7 +3793,7 @@ body.minimal-folding.is-mobile .view-header-title,
37643793
/* Folding on mobile */
37653794

37663795
.ͼ1 .cm-foldGutter .cm-gutterElement {
3767-
cursor: var(--cursor);
3796+
cursor:var(--cursor);
37683797
}
37693798

37703799
.ͼ1 .cm-foldPlaceholder {
@@ -4304,15 +4333,15 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
43044333
}
43054334
.is-mobile .publish-section-header,
43064335
.is-mobile .publish-changes-info {
4307-
flex-wrap: wrap;
4336+
flex-wrap:wrap;
43084337
border:none;
43094338
}
43104339
.is-mobile .publish-changes-info .publish-changes-add-linked-btn {
4311-
flex-basis: 100%;
4340+
flex-basis:100%;
43124341
margin-top:10px;
43134342
}
43144343
.is-mobile .publish-section-header-text {
4315-
flex-basis: 100%;
4344+
flex-basis:100%;
43164345
margin-bottom:10px;
43174346
margin-left:20px;
43184347
margin-top:-8px;
@@ -4455,7 +4484,6 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
44554484
/* Style Settings */
44564485

44574486
/* @settings
4458-
44594487
name: Minimal Theme
44604488
id: minimal-style
44614489
settings:
@@ -4826,6 +4854,5 @@ settings:
48264854
description: Made with ❤︎ by @kepano. Support my work at buymeacoffee.com/kepano
48274855
level: 2
48284856
collapsed: true
4829-
-
48304857
48314858
*/

0 commit comments

Comments
 (0)