-
Notifications
You must be signed in to change notification settings - Fork 23
/
[ui] Compact Tabs.css
117 lines (101 loc) · 3.43 KB
/
[ui] Compact Tabs.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
/*
Commpact Tabs
Cleaner, smaller tabs with hidden buttons
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
.workspace .mod-root .workspace-tab-header-container {
/* border-bottom:0 */
}
.workspace .mod-root .workspace-tab-header-container-inner {
padding: 0;
margin: 5px 0 2px -2px;
}
.workspace .mod-root .workspace-tab-header.is-active {
background: none;
box-shadow: none;
}
.workspace .mod-root .workspace-tab-header.is-active::before,
.workspace .mod-root .workspace-tab-header.is-active::after {
display:none;
}
.workspace .mod-root .workspace-tab-header.is-active .workspace-tab-header-inner {
background: var(--background-modifier-hover);
}
/* Theme-specific colour tweaks */
/* .theme-light.minimal-atom-light .workspace .mod-root .is-active .workspace-tab-header-inner,
.theme-light.minimal-catppuccin-light .workspace .mod-root .is-active .workspace-tab-header-inner {
background: hsl(var(--base-h), var(--base-s), calc(var(--base-l) - 6%))
} */
.workspace .mod-root .workspace-tab-header {
padding-left:2px;
padding-right:2px;
&:first-of-type {
padding-left:0;
}
}
.workspace .mod-root .workspace-tab-header .workspace-tab-header-inner {
gap:0 !important;
}
/* Hide tab separator bar */
.workspace .mod-root .workspace-tab-header-inner::after {
display:none;
}
/* Hover tab styles */
.workspace .mod-root .workspace-tab-header:not(.is-active):hover .workspace-tab-header-inner {
background: var(--bg2);
}
/* Hide buttons until hover */
.workspace .mod-root .workspace-tab-header:not(.is-active) .workspace-tab-header-inner-close-button,
.workspace .mod-root .workspace-tab-header:not(.is-active) .workspace-tab-header-status-icon {
opacity:0;
}
.workspace .mod-root .workspace-tab-header:not(.is-active):hover .workspace-tab-header-inner-close-button,
.workspace .mod-root .workspace-tab-header:not(.is-active):hover .workspace-tab-header-status-icon {
opacity:1;
}
/* Less prominent pinned icon */
.workspace .mod-root .workspace-tab-header.is-active .workspace-tab-header-status-icon {
opacity:0.6 !important;
}
.workspace .mod-root .workspace-tab-header:not(.is-active) .workspace-tab-header-inner-close-button {
position:absolute;
right:6px;
margin-top:0px;
}
.workspace .mod-root .workspace-tab-header:not(.is-active):hover .workspace-tab-header-inner-close-button {
background:var(--bg2);
}
/* Fade graphic to make hover close button look less harsh */
.workspace .mod-root .workspace-tab-header:not(.is-active):hover .workspace-tab-header-inner-close-button::before {
content:'';
display:block;
position:absolute;
background:linear-gradient(to right, transparent, var(--bg2)) !important;
right:100%;
height:1em;
width: 1em;
pointer-events:none;
}
/* Smaller buttons */
.workspace .mod-root .workspace-tab-header-inner-close-button,
.workspace .mod-root .workspace-tab-header-status-icon {
transform:scale(0.9) translate(2px,1px);
transform-origin:center;
}
/* Smaller new tab button */
.workspace .mod-root .workspace-tab-header-new-tab {
margin-left:4px;
}
.workspace .mod-root .workspace-tab-header-new-tab .clickable-icon {
transform:scale(0.8) translate(0,1px);
}
/* Variable width tabs WIP */
.workspace .mod-root .workspace-tab-header-inner {
/* width:auto; */
}
.workspace .mod-root .workspace-tab-header {
/* width:auto;
flex: none;
flex-shrink: 1;
max-width:25% */
}