Skip to content

Commit 47ffaf9

Browse files
Stephan AngoStephan Ango
authored andcommitted
Small tweaks for in file search and prompts
1 parent 8ea8a62 commit 47ffaf9

File tree

1 file changed

+75
-10
lines changed

1 file changed

+75
-10
lines changed

obsidian.css

Lines changed: 75 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
3-
Minimal Obsidian 3.0.3 by @kepano
3+
Minimal Obsidian 3.0.4 by @kepano
44
55
This theme is designed to be used with the Minimal Theme Settings
66
plugin and the Hider plugin.
@@ -187,7 +187,7 @@ body {
187187
--font-adaptive-normal:var(--font-normal);
188188
--font-adaptive-small:var(--font-small);
189189
--font-adaptive-smaller:var(--font-smaller);
190-
--font-adaptive-smallest: var(--font-smallest);
190+
--font-adaptive-smallest:var(--font-smallest);
191191
--line-width-adaptive:var(--line-width);
192192
}
193193

@@ -1466,6 +1466,7 @@ input.prompt-input:hover {
14661466

14671467
.empty-state {
14681468
background-color:var(--background-primary);
1469+
text-align:center;
14691470
}
14701471
.workspace-split.mod-vertical > .workspace-split {
14711472
padding:0;
@@ -3465,13 +3466,21 @@ body.minimal-folding.is-mobile .view-header-title,
34653466
.is-mobile .search-result-container {
34663467
padding-bottom:20px;
34673468
}
3469+
.is-mobile .search-result-file-match-replace-button {
3470+
background-color:var(--background-tertiary);
3471+
color:var(--text-normal);
3472+
}
34683473
.is-mobile .search-result-file-matches,
34693474
.is-mobile .search-result-file-title {
34703475
font-size:var(--font-adaptive-small);
34713476
}
34723477
.is-mobile .cm-s-obsidian .cm-gutters {
34733478
display:none;
34743479
}
3480+
.is-mobile .empty-state-action {
3481+
border-radius:6px;
3482+
font-size:var(--font-adaptive-small);
3483+
}
34753484
.is-mobile .workspace-drawer-header {
34763485
padding:5px 10px 0 20px;
34773486
}
@@ -3564,13 +3573,19 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
35643573
.is-mobile .workspace-leaf-content:not([data-type='search']) .nav-buttons-container {
35653574
border-bottom:var(--border-width) solid var(--background-modifier-border);
35663575
}
3576+
.is-mobile input[type='text'] {
3577+
font-size:14px;
3578+
}
35673579
.is-mobile .search-input-container input[type='text'] {
35683580
-webkit-appearance:none;
35693581
border-radius:50px;
35703582
height:40px;
35713583
padding:10px 20px;
35723584
font-size:14px;
35733585
}
3586+
.is-mobile .search-input-clear-button {
3587+
right:15px;
3588+
}
35743589
.is-mobile .modal, .is-mobile .prompt, .is-mobile .suggestion-container {
35753590
width:100%;
35763591
max-width:100%;
@@ -3587,6 +3602,11 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
35873602
}
35883603
.is-mobile .suggestion-item {
35893604
font-size:var(--font-adaptive-normal);
3605+
padding-left:10px;
3606+
letter-spacing:0.001px;
3607+
}
3608+
.is-mobile .prompt-results .suggestion-flair {
3609+
display:none;
35903610
}
35913611
.is-mobile input[type='text'].prompt-input,
35923612
.is-mobile input[type='text'].prompt-input:hover {
@@ -3633,6 +3653,9 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
36333653
width:100%;
36343654
max-width:100%;
36353655
left:0 !important;
3656+
-webkit-touch-callout:none;
3657+
-webkit-user-select:none;
3658+
user-select:none;
36363659
}
36373660
.is-ios .is-pinned .workspace-drawer-ribbon {
36383661
padding:30px 0 20px 0;
@@ -3727,9 +3750,39 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
37273750
width:100%;
37283751
text-align:center;
37293752
display:flex;
3730-
overflow: scroll;
3731-
background-color: var(--background-primary);
3732-
border-top: 1px solid var(--background-modifier-border);
3753+
overflow:scroll;
3754+
background-color:var(--background-primary);
3755+
border-top:1px solid var(--background-modifier-border);
3756+
}
3757+
.is-mobile .modal.mod-settings .vertical-tab-content-container {
3758+
border:0;
3759+
}
3760+
3761+
.is-mobile .modal,
3762+
.is-mobile .modal-bg {
3763+
transition:none !important;
3764+
transform:none !important;
3765+
}
3766+
3767+
.is-mobile .document-search-container {
3768+
height:56px;
3769+
padding:10px 15px;
3770+
}
3771+
.is-mobile .document-search-container input[type='text'] {
3772+
width:auto;
3773+
margin:0 5px 0 0;
3774+
height:32px;
3775+
padding:5px 7px;
3776+
border-radius:6px;
3777+
border:1px solid var(--background-modifier-border);
3778+
background-color:var(--background-primary);
3779+
}
3780+
.is-mobile .document-search-container button {
3781+
width:auto;
3782+
margin:0px;
3783+
background:transparent;
3784+
font-size:14px;
3785+
height:32px;
37333786
}
37343787

37353788
/* --------------- */
@@ -3740,11 +3793,27 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
37403793
.view-header-icon {
37413794
display:none;
37423795
}
3796+
.is-mobile .suggestion-hotkey {
3797+
display:none;
3798+
}
3799+
3800+
.is-mobile .modal,
3801+
.is-mobile .menu,
3802+
.is-mobile .prompt {
3803+
border-radius:0;
3804+
}
3805+
3806+
.is-mobile .suggestion-flair {
3807+
right:0;
3808+
left:auto;
3809+
position:absolute;
3810+
padding:5px 5px 0 0;
3811+
}
37433812
.is-mobile .prompt {
37443813
border-radius:0;
37453814
padding-top:5px;
37463815
padding-bottom:0;
3747-
max-height:500px;
3816+
max-height:calc(100vh - 120px);
37483817
top:120px;
37493818
}
37503819
.is-mobile .suggestion-container {
@@ -3838,9 +3907,6 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
38383907
.is-mobile .modal-container .modal.mod-settings .vertical-tabs-container {
38393908
transform:translateZ(0);
38403909
}
3841-
.is-mobile .modal.mod-settings .vertical-tab-content-container {
3842-
border:0;
3843-
}
38443910
.is-mobile .view-action {
38453911
padding:5px 5px 4px;
38463912
border-radius:8px;
@@ -3883,7 +3949,6 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
38833949
box-shadow:0 0 100vh 100vh rgba(0,0,0,0.5);
38843950
}
38853951
/* Animations */
3886-
.is-mobile .modal-bg,
38873952
.is-mobile .menu,
38883953
.is-mobile .prompt {
38893954
transition:none !important;

0 commit comments

Comments
 (0)