Skip to content

Commit 7c20e29

Browse files
committed
improve floating-mobile-toolbar
1 parent 39f1434 commit 7c20e29

File tree

3 files changed

+33
-11
lines changed

3 files changed

+33
-11
lines changed

mobile-floating-toolbar.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.is-mobile .mobile-toolbar {
2+
position: absolute;
3+
left: 0;
4+
right: 0;
5+
margin-left: auto;
6+
margin-right: auto;
7+
8+
display: flex;
9+
width: fit-content;
10+
max-width: 90%;
11+
overflow: scroll;
12+
13+
border: 1px solid var(--background-modifier-border);
14+
border-radius: 1rem;
15+
margin-bottom: 2rem;
16+
margin-top: 1rem;
17+
}
18+
19+
@media only screen and (max-height: 740px) {
20+
.is-mobile .mobile-toolbar {
21+
margin-bottom: 1rem;
22+
}
23+
}
24+
25+
/* for workspace content to go underneath toolbar */
26+
.is-mobile .workspace-leaf-content > .view-content > .markdown-source-view {
27+
height: 100%;
28+
}

mobile-toolbar.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

theme-minimal.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,8 @@ body.minimal-rel-preview .markdown-preview-view ul ul::before {
7575
.markdown-embed-link, .file-embed-link {
7676
top: 1rem;
7777
}
78+
79+
.mobile-toolbar {
80+
/* halfish of the box shadow used elsewhere in theme */
81+
box-shadow: 0 2.5px 15px rgb(0 0 0 / 15%);
82+
}

0 commit comments

Comments
 (0)