Skip to content

Commit 4873c67

Browse files
committed
chore: Add color switcher style & i18n
1 parent 9505288 commit 4873c67

4 files changed

Lines changed: 81 additions & 0 deletions

File tree

src/c2dl/lang/de/colorset.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Colorset Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
*/
11+
12+
'system' => 'System-Farbset',
13+
'light' => 'Helles Farbset',
14+
'dark' => 'Dunkles Farbset',
15+
16+
];

src/c2dl/lang/en/colorset.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Colorset Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
*/
11+
12+
'system' => 'System colorset',
13+
'light' => 'Light colorset',
14+
'dark' => 'Dark colorset',
15+
16+
];

src/c2dl/resources/sass/elements/entryList.scss

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,45 @@ gitlab-icon
6868
content: "\ea08";
6969
}
7070

71+
/*
72+
moon-icon
73+
*/
74+
75+
.c2dl-moon-icon {
76+
font-family: 'c2dl-iconic' !important;
77+
font-size:20px;
78+
}
79+
80+
.c2dl-moon-icon:before {
81+
content: "\ea04";
82+
}
83+
84+
/*
85+
sun-icon
86+
*/
87+
88+
.c2dl-sun-icon {
89+
font-family: 'c2dl-iconic' !important;
90+
font-size:20px;
91+
}
92+
93+
.c2dl-sun-icon:before {
94+
content: "\ea05";
95+
}
96+
97+
/*
98+
system-icon
99+
*/
100+
101+
.c2dl-system-icon {
102+
font-family: 'c2dl-iconic' !important;
103+
font-size:20px;
104+
}
105+
106+
.c2dl-system-icon:before {
107+
content: "\ea06";
108+
}
109+
71110
/*
72111
links
73112
*/

src/c2dl/resources/sass/elements/menu/header.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@
9999
text-decoration: underline;
100100
}
101101

102+
.c2dl-menu-bar-nav .c2dl-menu-link:has(.c2dl-link-icon) {
103+
padding-left: 0.5em;
104+
padding-right: 0.5em;
105+
text-decoration: none;
106+
}
107+
108+
.c2dl-menu-link .c2dl-link-icon {
109+
height: 100%;
110+
}
111+
102112
.c2dl-menu-bar-nav .c2dl-menu-entry {
103113
padding: 0;
104114
margin: 0;

0 commit comments

Comments
 (0)