@@ -112,8 +112,6 @@ kbd {
112
112
/* APP-NAVIGATION ------------------------------------------------------------ */
113
113
/* Navigation: folder like structure */
114
114
#app-navigation :not (.vue ) {
115
- // We use fixed variable for the pill style as we have larger containers around nested list entries
116
- --border-radius-pill : calc (var (--default-clickable-area ) / 2 );
117
115
// Ensure the maxcontrast color is set for the background
118
116
--color-text-maxcontrast : var (--color-text-maxcontrast-background-blur , var (--color-main-text ));
119
117
@@ -136,8 +134,8 @@ kbd {
136
134
137
135
.app-navigation-caption {
138
136
font-weight : bold ;
139
- line-height : 44 px ;
140
- padding : 10px 44 px 0 44 px ;
137
+ line-height : var ( --default-clickable-area ) ;
138
+ padding : 10px var ( --default-clickable-area ) 0 var ( --default-clickable-area ) ;
141
139
white-space : nowrap ;
142
140
text-overflow : ellipsis ;
143
141
box-shadow : none !important ;
@@ -192,7 +190,7 @@ kbd {
192
190
margin : 0 ;
193
191
margin-bottom : 3px ;
194
192
width : 100% ;
195
- border-radius : var (--border-radius-pill );
193
+ border-radius : var (--border-radius-element );
196
194
197
195
/* Pinned-to-bottom entries */
198
196
& .pinned {
@@ -204,13 +202,13 @@ kbd {
204
202
205
203
> .app-navigation-entry-deleted {
206
204
/* Ugly hack for overriding the main entry link */
207
- padding-left : 44 px !important ;
205
+ padding-left : var ( --default-clickable-area ) !important ;
208
206
}
209
207
> .app-navigation-entry-edit {
210
208
/* Ugly hack for overriding the main entry link */
211
209
/* align the input correctly with the link text
212
210
44px-6px padding for the input */
213
- padding-left : 38 px !important ;
211
+ padding-left : calc ( var ( --default-clickable-area ) - 6 px ) !important ;
214
212
}
215
213
216
214
a :hover ,
@@ -262,23 +260,23 @@ kbd {
262
260
> li {
263
261
display : inline-flex ;
264
262
flex-wrap : wrap ;
265
- padding-left : 44 px ;
263
+ padding-left : var ( --default-clickable-area ) ;
266
264
width : 100% ;
267
265
margin-bottom : 3px ;
268
266
269
267
& :hover ,
270
268
& :focus {
271
269
& ,
272
270
> a {
273
- border-radius : var (--border-radius-pill );
271
+ border-radius : var (--border-radius-element );
274
272
background-color : var (--color-background-hover );
275
273
}
276
274
}
277
275
& .active ,
278
276
a .selected {
279
277
& ,
280
278
> a {
281
- border-radius : var (--border-radius-pill );
279
+ border-radius : var (--border-radius-element );
282
280
background-color : var (--color-primary-element-light );
283
281
& :first-child > img {
284
282
filter : var (--primary-invert-if-dark );
@@ -288,7 +286,7 @@ kbd {
288
286
289
287
/* align loader */
290
288
& .icon-loading-small :after {
291
- left : 22 px ; /* 44px / 2 */
289
+ left : calc ( var ( --default-clickable-area ) / 2 );
292
290
}
293
291
294
292
> .app-navigation-entry-deleted {
@@ -302,7 +300,7 @@ kbd {
302
300
margin-left : 4px ;
303
301
/* align the input correctly with the link text
304
302
44px+44px-4px-6px padding for the input */
305
- padding-left : 78 px !important ;
303
+ padding-left : calc ( 2 * var ( --default-clickable-area ) - 10 px ) !important ;
306
304
}
307
305
}
308
306
}
@@ -327,23 +325,23 @@ kbd {
327
325
background-repeat : no-repeat ;
328
326
display : block ;
329
327
justify-content : space-between ;
330
- line-height : 44 px ;
331
- min-height : 44 px ;
328
+ line-height : var ( --default-clickable-area ) ;
329
+ min-height : var ( --default-clickable-area ) ;
332
330
padding : 0 12px 0 14px ;
333
331
overflow : hidden ;
334
332
box-sizing : border-box ;
335
333
white-space : nowrap ;
336
334
text-overflow : ellipsis ;
337
- border-radius : var (--border-radius-pill );
335
+ border-radius : var (--border-radius-element );
338
336
color : var (--color-main-text );
339
337
flex : 1 1 0px ;
340
338
z-index : 100 ; /* above the bullet to allow click*/
341
339
/* TODO: forbid using img as icon in menu? */
342
340
343
341
& .svg {
344
- padding : 0 12px 0 44 px ;
342
+ padding : 0 12px 0 var ( --default-clickable-area ) ;
345
343
:focus-visible {
346
- padding : 0 8px 0 42 px ;
344
+ padding : 0 8px 0 calc ( var ( --default-clickable-area ) - 2 px ) ;
347
345
}
348
346
}
349
347
& :first-child img {
@@ -383,7 +381,7 @@ kbd {
383
381
384
382
/* popover fix the flex positionning of the li parent */
385
383
> .app-navigation-entry-menu {
386
- top : 44 px ;
384
+ top : var ( --default-clickable-area ) ;
387
385
}
388
386
389
387
/* show edit/undo field if editing/deleted */
@@ -427,8 +425,8 @@ kbd {
427
425
.collapse {
428
426
opacity : 0 ;
429
427
position : absolute ;
430
- width : 44 px ;
431
- height : 44 px ;
428
+ width : var ( --default-clickable-area ) ;
429
+ height : var ( --default-clickable-area ) ;
432
430
margin : 0 ;
433
431
z-index : 110 ;
434
432
@@ -445,8 +443,8 @@ kbd {
445
443
}
446
444
& :before {
447
445
position : absolute ;
448
- height : 44 px ;
449
- width : 44 px ;
446
+ height : var ( --default-clickable-area ) ;
447
+ width : var ( --default-clickable-area ) ;
450
448
margin : 0 ;
451
449
padding : 0 ;
452
450
background : none ;
@@ -472,7 +470,7 @@ kbd {
472
470
473
471
/* force padding on link no matter if 'a' has an icon class */
474
472
> a :first-child {
475
- padding-left : 44 px ;
473
+ padding-left : var ( --default-clickable-area ) ;
476
474
}
477
475
& :hover ,
478
476
& :focus {
@@ -506,8 +504,8 @@ kbd {
506
504
justify-content : flex-end ;
507
505
}
508
506
li {
509
- width : 44 px !important ;
510
- height : 44 px ;
507
+ width : var ( --default-clickable-area ) !important ;
508
+ height : var ( --default-clickable-area ) ;
511
509
}
512
510
button {
513
511
height : 100% ;
@@ -530,7 +528,7 @@ kbd {
530
528
overflow : hidden ;
531
529
text-align : right ;
532
530
font-size : 9pt ;
533
- line-height : 44 px ;
531
+ line-height : var ( --default-clickable-area ) ;
534
532
padding : 0 12px ; /* Same padding as all li > a in the app-navigation */
535
533
536
534
& .highlighted {
@@ -605,21 +603,21 @@ kbd {
605
603
*/
606
604
.app-navigation-entry-deleted {
607
605
display : inline-flex ;
608
- padding-left : 44 px ;
606
+ padding-left : var ( --default-clickable-area ) ;
609
607
transform : translateX (#{variables .$navigation-width } );
610
608
.app-navigation-entry-deleted-description {
611
609
position : relative ;
612
610
white-space : nowrap ;
613
611
text-overflow : ellipsis ;
614
612
overflow : hidden ;
615
613
flex : 1 1 0px ;
616
- line-height : 44 px ;
614
+ line-height : var ( --default-clickable-area ) ;
617
615
}
618
616
.app-navigation-entry-deleted-button {
619
617
margin : 0 ;
620
- height : 44 px ;
621
- width : 44 px ;
622
- line-height : 44 px ;
618
+ height : var ( --default-clickable-area ) ;
619
+ width : var ( --default-clickable-area ) ;
620
+ line-height : var ( --default-clickable-area ) ;
623
621
& :hover ,
624
622
& :focus {
625
623
opacity : 1 ;
@@ -827,7 +825,7 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width -
827
825
.settings-button {
828
826
display : flex ;
829
827
align-items : center ;
830
- height : 44 px ;
828
+ height : var ( --default-clickable-area ) ;
831
829
width : 100% ;
832
830
padding : 0 ;
833
831
margin : 0 ;
@@ -858,8 +856,8 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width -
858
856
background-position : 14px center ;
859
857
background-repeat : no-repeat ;
860
858
content : ' ' ;
861
- width : 44 px ;
862
- height : 44 px ;
859
+ width : var ( --default-clickable-area ) ;
860
+ height : var ( --default-clickable-area ) ;
863
861
top : 0 ;
864
862
left : 0 ;
865
863
display : block ;
@@ -976,7 +974,7 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width -
976
974
}
977
975
978
976
/* POPOVER MENU ------------------------------------------------------------ */
979
- $popoveritem-height : 44 px ;
977
+ $popoveritem-height : 34 px ;
980
978
$popovericon-size : 16px ;
981
979
$outter-margin : math .div ($popoveritem-height - $popovericon-size , 2 );
982
980
@@ -1125,7 +1123,7 @@ $outter-margin: math.div($popoveritem-height - $popovericon-size, 2);
1125
1123
box-shadow : 0 0 0 2px var (--color-primary-element );
1126
1124
}
1127
1125
& .active {
1128
- border-radius : var (--border-radius-pill );
1126
+ border-radius : var (--border-radius-element );
1129
1127
background-color : var (--color-primary-element-light );
1130
1128
}
1131
1129
/* prevent .action class to break the design */
@@ -1405,7 +1403,7 @@ $outter-margin: math.div($popoveritem-height - $popovericon-size, 2);
1405
1403
opacity : .5 ;
1406
1404
order : 3 ;
1407
1405
flex : 1 0 ;
1408
- flex-basis : calc (100% - 44 px );
1406
+ flex-basis : calc (100% - var ( --default-clickable-area ) );
1409
1407
}
1410
1408
1411
1409
.app-content-list-item-details {
0 commit comments