-
Notifications
You must be signed in to change notification settings - Fork 0
/
column-callout.css
89 lines (66 loc) · 2.7 KB
/
column-callout.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
/*2 columns ratior 3-1 */
.callout[data-callout="cols"][data-callout-metadata~="31"] > .callout-content {
display: grid;
grid-template-columns: 3fr 1.2fr;
gap: 0 !important;
}
/** ============ callout [!cols] ============ **/
.callout[data-callout="cols"] {
background-color: transparent;
--callout-icon: lucide-scroll !important;
}
.callout[data-callout="cols"] .callout-title {
background-color: rgba(var(--callout-color), 0.01) !important;
}
.callout[data-callout="cols"].is-collapsible.is-collapsed .callout-title {
clear: both !important;
background-color: transparent !important;
border-left: none !important;
}
@media (max-width: 400pt) {
.callout[data-callout="cols"].is-collapsible.is-collapsed .callout-title {
width: 100% !important;
}}
.callout[data-callout="cols"] .callout-icon { display: none !important;}
.callout[data-callout="cols"] .callout-title-inner {
font-weight: 300 !important;
flex: auto !important;
}
.callout[data-callout="cols"] blockquote { border: none; }
/*** 2 columns that each take up the same amount of available free space ***/
.callout[data-callout="cols"] > .callout-content {
display: grid;
grid-template-columns: repeat( auto-fit, minmax(1em, 1fr) );
gap: 0 !important;
}
@media (max-width: 400pt) {
.callout[data-callout="cols"] > .callout-content {
grid-template-columns: 1fr !important;}
}
.callout[data-callout="cols"] .callout[data-callout="notecol"] .callout-content .dataview.table-view-table > tbody > tr > td iframe{
width: 100% !important;
height: auto !important;
background-color: transparent !important;
}
/* [!cols] > [!note] nested callout */
.callout[data-callout="cols"] .callout[data-callout="note"] .callout-title-inner {
display: initial !important; }
.callout[data-callout="cols"] .callout[data-callout="note"] .callout-content h2 {
margin: 0 !important;
}
/* [!cols] > [!notecol] > [!note] when title collapsed */
.callout[data-callout="cols"] .callout[data-callout="notecol"] .callout[data-callout="note"].is-collapsible.is-collapsed .callout-title {
width: 100% !important;
display: flex !important;
border-left: none !important;
}
/* [!cols] > [!notecol] > [!note] when title un-collapsed */
.callout[data-callout="cols"] .callout[data-callout="notecol"] .callout[data-callout="note"] .callout-title {
display: initial !important;
width: 100% !important;
display: flex !important;
}
/* [!cols] > [!notecol] > [!note] content when title collapsed */
.callout[data-callout="cols"] .callout[data-callout="notecol"] .callout[data-callout="note"] .callout-content {
border: .5px dashed rgba(var(--callout-color), 0.2) !important;
}