-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathtrans.css
More file actions
109 lines (97 loc) · 3.79 KB
/
trans.css
File metadata and controls
109 lines (97 loc) · 3.79 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
/* Trans theme */
[data-color-theme="trans"] {
--theme-primary: #5bcefa;
--theme-secondary: #f5a9b8;
--theme-accent: #ffffff;
}
:not(.dark)[data-color-theme="trans"] .gradient-hero {
background-image: linear-gradient(to bottom right,
#5BCEFA 0%, #5BCEFA 20%,
#F5A9B8 20%, #F5A9B8 40%,
#FFFFFF 40%, #FFFFFF 60%,
#F5A9B8 60%, #F5A9B8 80%,
#5BCEFA 80%, #5BCEFA 100%) !important;
}
.dark[data-color-theme="trans"] .gradient-hero {
background-image: linear-gradient(to bottom right,
#5BCEFA 0%, #5BCEFA 20%,
#F5A9B8 20%, #F5A9B8 40%,
var(--ipython-dark) 40%, var(--ipython-dark) 60%,
#F5A9B8 60%, #F5A9B8 80%,
#5BCEFA 80%, #5BCEFA 100%) !important;
}
:not(.dark)[data-color-theme="trans"] .gradient-header {
background-image: linear-gradient(to right,
#5BCEFA 0%, #5BCEFA 33%,
#F5A9B8 33%, #F5A9B8 66%,
#FFFFFF 66%, #FFFFFF 100%);
}
.dark[data-color-theme="trans"] .gradient-header {
background-image: linear-gradient(to right,
#5BCEFA 0%, #5BCEFA 33%,
#F5A9B8 33%, #F5A9B8 66%,
#0f172a 66%, #0f172a 100%) !important;
}
[data-color-theme="trans"] .gradient-text {
background: linear-gradient(
to right,
#5bcefa 0%,
#5bcefa 25%,
#f5a9b8 25%,
#f5a9b8 75%,
#5bcefa 75%,
#5bcefa 100%
);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
}
/* Add backdrop blur to gradient sections */
[data-color-theme="trans"] section.gradient-hero .max-w-7xl.py-20,
[data-color-theme="trans"] section.gradient-header .max-w-7xl.py-20,
[data-color-theme="trans"] section.gradient-hero .max-w-7xl.py-8.text-center,
[data-color-theme="trans"] section.gradient-header .max-w-7xl.py-8.text-center,
[data-color-theme="trans"] section.gradient-hero .max-w-7xl.text-center,
[data-color-theme="trans"] section.gradient-header .max-w-7xl.text-center,
[data-color-theme="trans"] section.gradient-hero .max-w-7xl:has(h1.gradient-text-hero),
[data-color-theme="trans"] section.gradient-header .max-w-7xl:has(h1.gradient-text-hero) {
background: rgba(0, 0, 0, 0.2);
border-radius: 16px;
backdrop-filter: blur(4px);
}
.dark[data-color-theme="trans"] section.gradient-hero .max-w-7xl.py-20,
.dark[data-color-theme="trans"] section.gradient-header .max-w-7xl.py-20,
.dark[data-color-theme="trans"] section.gradient-hero .max-w-7xl.py-8.text-center,
.dark[data-color-theme="trans"] section.gradient-header .max-w-7xl.py-8.text-center,
.dark[data-color-theme="trans"] section.gradient-hero .max-w-7xl.text-center,
.dark[data-color-theme="trans"] section.gradient-header .max-w-7xl.text-center,
.dark[data-color-theme="trans"] section.gradient-hero .max-w-7xl:has(h1.gradient-text-hero),
.dark[data-color-theme="trans"] section.gradient-header .max-w-7xl:has(h1.gradient-text-hero) {
background: rgba(255, 255, 255, 0.1);
border-radius: 16px;
backdrop-filter: blur(4px);
}
/* Ensure white sections are fully opaque on Trans theme - light mode only */
:not(.dark)[data-color-theme="trans"] .bg-white,
:not(.dark)[data-color-theme="trans"] section.bg-white {
background: #ffffff !important;
}
/* Override for dark mode - must come after light mode rules */
.dark[data-color-theme="trans"] .bg-white,
.dark[data-color-theme="trans"] section.bg-white,
.dark[data-color-theme="trans"] .bg-white.dark\:bg-ipython-dark,
.dark[data-color-theme="trans"] nav.bg-white {
background: #0f172a !important;
}
/* Ensure gray sections are fully opaque white on Trans theme - light mode only */
:not(.dark)[data-color-theme="trans"] section.bg-gray-50 {
background: #ffffff !important;
}
.dark[data-color-theme="trans"] section.bg-gray-50 {
background: #0f172a !important;
}
/* Ensure icon containers have visible backgrounds on Trans theme */
[data-color-theme="trans"] .bg-theme-secondary {
background: #5bcefa !important;
}