File tree 1 file changed +40
-28
lines changed
assets/stylesheets/modules/ai-helper/common
1 file changed +40
-28
lines changed Original file line number Diff line number Diff line change 482
482
}
483
483
484
484
// AI Image Caption Feature:
485
- .image-wrapper .button-wrapper {
486
- .generate-caption {
487
- background : var ( --tertiary-low );
488
- color : var (--tertiary );
489
- box-shadow : var (--shadow-dropdown );
490
- position : absolute ;
491
- white-space : nowrap ;
492
- top : -3.15 rem ;
493
- left : 0.75 rem ;
494
- padding : 0.5 em 0.75 em ;
495
- transition : all 0.25 s ease ;
496
-
497
- .d-icon {
498
- margin-right : 0.25 rem ;
499
- }
485
+ .image-wrapper {
486
+ .button-wrapper {
487
+ .generate-caption {
488
+ background : var (--tertiary-low );
489
+ color : var (--tertiary );
490
+ box-shadow : var ( --shadow-dropdown ) ;
491
+ position : absolute ;
492
+ white-space : nowrap ;
493
+ top : -2 rem ;
494
+ left : 0.35 rem ;
495
+ padding : 0.33 em 0.75 em ;
496
+ transition : all 0.25 s ease ;
497
+ .discourse-no-touch & {
498
+ display : none ;
499
+ }
500
500
501
- & :active {
502
- box-shadow : none ;
503
- }
501
+ .d-icon {
502
+ margin-right : 0.25 rem ;
503
+ }
504
504
505
- & :hover ,
506
- & :focus {
507
- background : var (--tertiary-400 );
508
- color : var (--tertiary-hover );
509
- cursor : pointer ;
510
- }
505
+ & :active {
506
+ box-shadow : none ;
507
+ }
508
+
509
+ & :hover ,
510
+ & :focus {
511
+ background : var (--tertiary-400 );
512
+ color : var (--tertiary-hover );
513
+ cursor : pointer ;
514
+ }
511
515
512
- & .disabled {
513
- pointer-events : none ;
514
- cursor : not-allowed ;
515
- opacity : 0.7 ;
516
+ & .disabled {
517
+ pointer-events : none ;
518
+ cursor : not-allowed ;
519
+ opacity : 0.7 ;
520
+ }
521
+ }
522
+ }
523
+ .discourse-no-touch & {
524
+ & :hover {
525
+ .button-wrapper .generate-caption {
526
+ display : block ;
527
+ }
516
528
}
517
529
}
518
530
}
You can’t perform that action at this time.
0 commit comments