1
1
: root {
2
2
/* root variables */
3
- --notice-height : 0px ;
4
- --notice-join : transparent;
5
- --notice-welcome : url ("https://discord.com/assets/7f809e89e310c87b2e3f.svg" );
3
+ --notice-margin-top : 48px ;
4
+ --notice-margin-bottom : auto;
5
+ --notice-margin-left : 0px ;
6
+ --notice-margin-right : auto;
7
+
8
+ --notice-enable-height-adjust : true;
9
+ --notice-icon-join : transparent;
10
+ --notice-icon-welcome : url ("https://discord.com/assets/7f809e89e310c87b2e3f.svg" );
6
11
}
7
12
8
- .base_a4d4d9 : has ([ class *= "notice_" ] ) {
13
+ .base_a4d4d9 : has (. notice_be03aa ) {
9
14
10
15
& : has (.notice_dd5a33 ) {
11
16
--notice-height : 140px ;
17
22
--notice-icon : var (--notice-welcome );
18
23
}
19
24
20
- > div [ class *= "notice_" ] {
25
+ > div . notice_be03aa {
21
26
align-content : space-between;
22
27
background : var (--background-secondary );
23
28
border-bottom : 1px solid var (--background-secondary );
24
29
border-radius : 0 ;
30
+ bottom : var (--notice-margin-bottom );
25
31
box-shadow : none;
26
32
box-sizing : border-box;
27
33
display : grid;
28
34
gap : 12px 8px ;
29
35
grid-template-columns : 80px 1fr ;
30
36
grid-template-rows : auto 32px ;
31
37
height : var (--notice-height );
32
- left : 0 ;
38
+ left : var ( --notice-margin-left ) ;
33
39
overflow : hidden;
34
40
padding : 16px 0 ;
35
41
position : absolute;
36
- top : 48px ;
42
+ right : var (--notice-margin-right );
43
+ top : var (--notice-margin-top );
37
44
width : 240px ;
38
45
39
46
& : before {
189
196
}
190
197
}
191
198
192
- [ class = " header_fd6364" ] {
199
+ . header_fd6364 {
193
200
background : var (--background-secondary );
194
201
box-shadow : none;
195
202
}
202
209
width : 100% ;
203
210
}
204
211
205
- .thin_eed6a8 > ul {
206
- & : has (> div [style = "height: 16px;" ]) {
207
- margin-top : -17px ;
208
- }
212
+ @container (style (--notice-enable-height-adjust: true)) {
213
+ .thin_eed6a8 > ul {
214
+ & : has (> div [style = "height: 16px;" ]) {
215
+ margin-top : -17px ;
216
+ }
209
217
210
- & : has (> div [style = "height: 84px;" ]) {
211
- margin-top : -85px ;
218
+ & : has (> div [style = "height: 84px;" ]) {
219
+ margin-top : -85px ;
220
+ }
212
221
}
213
222
}
214
- }
223
+ }
0 commit comments