-
Notifications
You must be signed in to change notification settings - Fork 23
/
MetaBind Compact.css
108 lines (98 loc) · 3.21 KB
/
MetaBind Compact.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*
Metabind compact editor styles
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
/* Inline controls styles */
/* .cm-line {
background:rgba(0,255,0,0.1);
box-shadow: inset 0 -2px 3px rgba(255,255,255,.2);
} */
.markdown-source-view.is-live-preview .cm-editor {
/* Only apply to live preview view editor */
/* inline styling */
.mb-input-inline {
.mb-input-type-inlineSelect {
.dropdown {
height:calc(1rem + 6px);
vertical-align: bottom;
padding-left:6px;
padding-right:18px;
font-family:var(--font-interface) !important;
background-position-x: calc(100% - 6px);
}
}
.mb-input-type-number {
[type=number] {
height:calc(1rem + 6px);
font-family:var(--font-interface) !important;
padding-left:6px;
padding-right:6px;
}
}
.mb-input-type-time {
:is([type=time]) {
height:calc(1rem + 6px);
vertical-align: bottom;
padding-left:6px;
padding-right:0px;
font-family:var(--font-interface) !important;
background-image:none;
box-shadow: var(--input-shadow);
border-radius: var(--input-radius);
background-color: var(--interactive-normal);
}
/* meta-bind updated recently and now uses a real 'time' input type, so this is deprecated: */
/* .mb-input-element-group {
position:relative;
&::after {
content: ':';
display:block;
position:absolute;
left:50%;
width:1rem;
text-align:center;
margin-left:-.5rem;
color: var(--tx2);
user-select:none;
}
}
.dropdown {
height:calc(1rem + 6px);
vertical-align: bottom;
padding-left:6px;
padding-right:6px;
font-family:var(--font-interface) !important;
background-image:none;
&:nth-of-type(1) {
padding-right:4px;
}
&:nth-of-type(2) {
padding-left:4px;
}
}
*/
}
.mb-input-type-toggle {
.checkbox-container {
transform: scale(0.8) translateY(2px) !important;
transform-origin:left center;
}
}
.mb-slider-input {
transform:translate(-4px, -5px) !important;
&::-webkit-slider-thumb {
transform:scale(0.75);
background: var(--tx1)
}
}
.em2 > * {width: 2rem}
.em3 > * {width: 3rem}
.em4 > * {width: 4rem}
.em5 > * {width: 5rem}
.em6 > * {width: 6rem}
.em7 > * {width: 7rem}
.em8 > * {width: 8rem}
.em9 > * {width: 9rem}
.em10 > * {width: 10rem}
}
}