Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
103 lines (98 loc) · 4.32 KB
/
Copy pathstyles.css
File metadata and controls
103 lines (98 loc) · 4.32 KB
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
.markdown-rendered .csb-wrap,
.markdown-preview-view .csb-wrap,
.markdown-source-view.mod-cm6 .csb-wrap {
margin: 1rem 0;
}
.markdown-rendered .csb-wrap > button.csb-button,
.markdown-preview-view .csb-wrap > button.csb-button,
.markdown-source-view.mod-cm6 .csb-wrap > button.csb-button {
--csb-bg: #7c3aed; --csb-color: #fff; --csb-border: #7c3aed;
display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
min-width: 150px; min-height: 56px; box-sizing: border-box;
margin: 0; padding: 0.8rem 1.35rem;
appearance: none; -webkit-appearance: none;
background-color: var(--csb-bg); background-image: none; color: var(--csb-color);
border: 2px solid var(--csb-border); border-radius: var(--csb-radius);
font-family: var(--font-interface); font-size: max(var(--csb-size), 16px);
font-style: normal; font-weight: 700; line-height: 1.15; letter-spacing: normal;
text-decoration: none; text-shadow: none; cursor: pointer;
box-shadow: 0 3px 0 color-mix(in srgb, var(--csb-border), #000 35%);
transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}
.markdown-rendered .csb-wrap > button.csb-button:hover,
.markdown-preview-view .csb-wrap > button.csb-button:hover,
.markdown-source-view.mod-cm6 .csb-wrap > button.csb-button:hover {
filter: brightness(1.1); transform: translateY(-1px);
}
.markdown-rendered .csb-wrap > button.csb-button:active,
.markdown-preview-view .csb-wrap > button.csb-button:active,
.markdown-source-view.mod-cm6 .csb-wrap > button.csb-button:active {
transform: translateY(2px);
box-shadow: 0 1px 0 color-mix(in srgb, var(--csb-border), #000 35%);
}
/* Deliberately outranks theme rules for ordinary note images. */
.markdown-rendered .csb-wrap > button.csb-button > img.csb-icon,
.markdown-preview-view .csb-wrap > button.csb-button > img.csb-icon,
.markdown-source-view.mod-cm6 .csb-wrap > button.csb-button > img.csb-icon {
display: block !important;
flex: 0 0 auto !important;
min-width: 36px !important;
min-height: 36px !important;
max-width: 80px !important;
max-height: 80px !important;
box-sizing: border-box !important;
margin: 0 !important;
padding: 0 !important;
object-fit: contain !important;
object-position: center !important;
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
outline: 0 !important;
box-shadow: none !important;
filter: none !important;
opacity: 1 !important;
transform: none;
}
.csb-error { color: var(--text-error); font-weight: 600; }
.csb-icon-list { margin-top: 1rem; }
.csb-icon-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--background-modifier-border); }
.csb-icon-row img { width: 36px; height: 36px; object-fit: contain; }
.csb-icon-row span { flex: 1; }
@keyframes csb-pulse { 50% { transform: scale(1.07); } }
@keyframes csb-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes csb-wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes csb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes csb-glow { 50% { filter: brightness(1.25); box-shadow: 0 0 18px var(--csb-border); } }
.csb-pulse { animation: csb-pulse 1.5s ease-in-out infinite; }
.csb-bounce { animation: csb-bounce 1.2s ease-in-out infinite; }
.csb-wiggle { animation: csb-wiggle 0.7s ease-in-out infinite; }
.csb-float { animation: csb-float 1.8s ease-in-out infinite; }
.csb-glow { animation: csb-glow 1.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .csb-button { animation: none !important; } }
/* Built-in button rows. Wrap two or more styled-button blocks in a
[!button-row] callout to render them horizontally. */
.callout[data-callout="button-row"] {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
}
.callout[data-callout="button-row"] > .callout-title {
display: none;
}
.callout[data-callout="button-row"] > .callout-content {
display: flex;
flex-flow: row wrap;
align-items: center;
gap: 10px;
padding: 0;
border: none !important;
box-shadow: none !important;
}
.callout[data-callout="button-row"] > .callout-content > * {
flex: 0 0 auto;
width: auto;
margin: 0;
}