generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
143 lines (128 loc) · 3.74 KB
/
styles.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* @settings
name: Local Quotes
id: local-quotes-styles
settings:
-
id: local-quotes-h
title: Refresh button
type: heading
level: 2
collapsed: true
-
id: local-quotes-button-size
title: Size
description: Size of the button in pixels
type: variable-number
default: 16
format: px
-
id: local-quotes-button-corner
title: Corner position
description: Just choose a corner of the refresh button
type: class-select
allowEmpty: false
default: lq-btn-top-right
options:
-
label: Top right
value: lq-btn-top-right
-
label: Top left
value: lq-btn-top-left
-
label: Bottom right
value: lq-btn-bottom-right
-
label: Bottom left
value: lq-btn-bottom-left
-
id: local-quotes-button-indent-v
title: Vertical indent from corners
description: How far from corner button should be (from top or bottom)
type: variable-number
default: 10
format: px
-
id: local-quotes-button-indent-h
title: Horizontal indent from corners
description: How far from corner button should be (from left or right)
type: variable-number
default: 10
format: px
*/
/*noinspection CssUnresolvedCustomProperty*/
.block-language-localquote a.reset-icon svg {
transition: all 0.6s ease !important;
display: inline;
position: absolute;
top: var(--local-quotes-button-indent-v, 10px);
bottom: unset;
right: var(--local-quotes-button-indent-h, 10px);
left: unset;
opacity: 0;
min-width: var(--local-quotes-button-size, 16px);
min-height: var(--local-quotes-button-size, 16px);
}
.block-language-localquote:hover a.reset-icon svg {
transition: all 0.6s ease !important;
opacity: 1;
cursor: pointer;
}
/*noinspection CssUnresolvedCustomProperty*/
.block-language-localquote a.reset-icon svg:active {
transition: all 0.6s ease;
color: var(--md-color-text-muted, var(--text-muted), gray);
}
/*noinspection CssUnresolvedCustomProperty*/
.lq-btn-top-right .block-language-localquote a.reset-icon svg {
top: var(--local-quotes-button-indent-v, 10px) !important;
bottom: unset !important;
right: var(--local-quotes-button-indent-h, 10px) !important;
left: unset !important;
}
/*noinspection CssUnresolvedCustomProperty*/
.lq-btn-top-left .block-language-localquote a.reset-icon svg {
top: var(--local-quotes-button-indent-v, 10px) !important;
bottom: unset !important;
right: unset !important;
left: var(--local-quotes-button-indent-h, 10px) !important;
}
/*noinspection CssUnresolvedCustomProperty*/
.lq-btn-bottom-right .block-language-localquote a.reset-icon svg {
top: unset !important;
bottom: var(--local-quotes-button-indent-v, 10px) !important;
right: var(--local-quotes-button-indent-h, 10px) !important;
left: unset !important;
}
/*noinspection CssUnresolvedCustomProperty*/
.lq-btn-bottom-left .block-language-localquote a.reset-icon svg {
top: unset !important;
bottom: var(--local-quotes-button-indent-v, 10px) !important;
right: unset !important;
left: var(--local-quotes-button-indent-h, 10px) !important;
}
.block-language-localquote {
position: relative;
}
.local-quotes-modal-button-container {
text-align: center;
margin-top: 20px;
}
.local-quotes-modal-button-container > .setting-item {
display: inline-block;
border: none;
}
.local-quotes-modal-button-container > .setting-item:first-child {
margin-right: 10px;
}
/*noinspection CssUnresolvedCustomProperty*/
p.local-quotes-heading-desc {
font-size: var(--font-settings-small, 10px);
color: var(--text-muted, gray);
font-style: italic;
margin-top: -10px;
margin-bottom: 15px;
}
p.local-quotes-statistics-p {
margin: 0 0 2px 10px;
}