File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ export default defineConfig({
101
101
{
102
102
text : `
103
103
<span style="white-space: nowrap; display: flex; align-items: center; gap: 6px;">
104
- <img alt="Serverless Life logo" style="height: 27px" src="https://www.serverlesslife.com/img/logo_light.svg">
104
+ <img alt="Serverless Life logo" style="height: 27px" src="https://www.serverlesslife.com/img/logo_light.svg" class="light-mode">
105
+ <img alt="Serverless Life logo" style="height: 27px" src="https://www.serverlesslife.com/img/logo_dark.svg" class="dark-mode">
105
106
www.serverlesslife.com
106
107
</span>
107
108
` ,
@@ -112,7 +113,10 @@ export default defineConfig({
112
113
socialLinks : [
113
114
{
114
115
icon : {
115
- svg : '<img alt="Serverless Life logo" style="height: 26px" src="https://www.serverlesslife.com/img/logo_light.svg">' ,
116
+ svg : `
117
+ <img alt="Serverless Life logo" style="height: 26px" src="https://www.serverlesslife.com/img/logo_light.svg" class="light-mode">
118
+ <img alt="Serverless Life logo" style="height: 26px" src="https://www.serverlesslife.com/img/logo_dark.svg" class="dark-mode">
119
+ ` ,
116
120
} ,
117
121
118
122
link : 'https://www.serverlesslife.com' ,
Original file line number Diff line number Diff line change 42
42
width : 100% ;
43
43
height : 100% ;
44
44
}
45
+
46
+ : root : not (.dark ) .dark-mode {
47
+ display : none;
48
+ }
49
+
50
+ : root : is (.dark ) .light-mode {
51
+ display : none;
52
+ }
You can’t perform that action at this time.
0 commit comments