-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathstyles.css
More file actions
129 lines (111 loc) · 2.86 KB
/
Copy pathstyles.css
File metadata and controls
129 lines (111 loc) · 2.86 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
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
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
/* === Local Columns - Loads from Local Storage === */
/* Unchecked */
.markdown-columns-resizable {
display: flex;
gap: 0;
width: 100%;
overflow: hidden;
margin: 0.8em 0;
}
.markdown-columns-resizable .column {
padding: 0.8em;
overflow-wrap: break-word;
overflow: auto;
min-width: 5px;
}
/* Borders */
.markdown-columns-resizable {
border-style: var(--sc-border-shown);
border-width: var(--sc-border-width, 0);
border-color: var(--sc-border-color, transparent);
border-radius: var(--sc-border-radius, 0);
}
/* Text alignment utility classes */
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
/* Shared column style that applies dynamic values */
.column-style {
background-color: var(--sc-column-bg, var(--background-primary));
color: var(--sc-column-text-color, var(--text-normal));
flex: 1 0 var(--sc-column-width);
}
/* Resizer */
.column-resizer {
background-color: var(--sc-resizer-bg, transparent);
width: var(--sc-resizer-width, 4px);
cursor: col-resize;
}
.column-resizer:hover {
background-color: var(--sc-resizer-hover-bg, var(--sc-resizer-bg, transparent));
}
.resizer-visible {
display: block;
}
.cursor-col-resize {
cursor: col-resize;
}
/* === Customise Button in Code block === */
.markdown-source-view.mod-cm6 .customise-columns-button {
padding: var(--size-2-2) var(--size-2-3);
position: absolute;
top: var(--size-2-2);
inset-inline-end: calc(var(--size-2-2) + 35px);
display: flex;
opacity: 0;
color: var(--text-muted);
border-radius: var(--radius-s);
cursor: var(--cursor);
background-color: transparent;
transition: background-color 0.2s ease;
}
.markdown-source-view.mod-cm6 .cm-preview-code-block:hover .customise-columns-button {
opacity: 1;
}
.markdown-source-view.mod-cm6 .customise-columns-button:hover {
background-color: var(--background-modifier-hover);
}
/* === Custom Column Modal Styling === */
.alignment-button-group {
display: flex;
gap: 8px;
}
.alignment-button-group .button {
min-width: 36px;
min-height: 36px;
padding: 4px;
border-radius: 4px;
border: 1px solid var(--text-muted);
background: transparent;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.2s, border-color 0.2s;
}
.alignment-button-group .button:hover {
background-color: var(--background-modifier-hover);
}
.alignment-button-group .active {
background-color: var(--interactive-accent);
border-color: var(--interactive-accent);
color: var(--background-primary);
}
/* === Settings === */
.column-resizer-settings {
margin-top: 25px;
}
.column-advanced-settings{
margin-top: 25px;
}