@@ -535,6 +535,27 @@ legend {
535535 }
536536}
537537
538+ @define-mixin mx_DialogButton {
539+ /* align images in buttons (eg spinners) */
540+ vertical-align : middle;
541+ border : 0 px ;
542+ border-radius : 8 px ;
543+ font-family : $font-family ;
544+ font-size : $font-14px ;
545+ color : $button-fg-color ;
546+ background-color : $accent ;
547+ width : auto;
548+ padding : 7 px ;
549+ padding-left : 1.5 em ;
550+ padding-right : 1.5 em ;
551+ cursor : pointer;
552+ display : inline-block;
553+
554+ &:not (.focus-visible ) {
555+ outline : none;
556+ }
557+ }
558+
538559/* XXX: Our button style are a mess: buttons that happen to appear in dialogs get special styles applied
539560 * to them that no button anywhere else in the app gets by default. In practice, buttons in other places
540561 * in the app look the same by being AccessibleButtons, or possibly by having explict button classes.
@@ -565,13 +586,6 @@ legend {
565586 margin-right : 0 px ;
566587}
567588
568- .mx_Dialog button:not (.mx_Dialog_nonDialogButton ):not ([class|="maplibregl" ] ):not (.mx_AccessibleButton ):hover ,
569- .mx_Dialog input [type="submit" ] :hover ,
570- .mx_Dialog_buttons button:not (.mx_Dialog_nonDialogButton ):not (.mx_AccessibleButton ):hover ,
571- .mx_Dialog_buttons input [type="submit" ] :hover {
572- @mixin mx_DialogButton_hover ;
573- }
574-
575589.mx_Dialog button:not (.mx_Dialog_nonDialogButton ):not ([class|="maplibregl" ] ):not (.mx_AccessibleButton ):focus ,
576590.mx_Dialog input [type="submit" ] :focus ,
577591.mx_Dialog_buttons button:not (.mx_Dialog_nonDialogButton ):not (.mx_AccessibleButton ):focus ,
@@ -643,10 +657,6 @@ legend {
643657 margin : auto;
644658}
645659
646- .mx_GeneralButton:hover {
647- @mixin mx_DialogButton_hover ;
648- }
649-
650660.mx_linkButton {
651661 cursor : pointer;
652662 color : $accent ;
@@ -666,12 +676,14 @@ legend {
666676 background-color : $background ;
667677}
668678
669- .mx_textButton {
670- @mixin mx_DialogButton_small ;
679+ @define-mixin mx_DialogButton_small {
680+ @mixin mx_DialogButton ;
681+ font-size : $font-15px ;
682+ padding : 0 px 1.5 em 0 px 1.5 em ;
671683}
672684
673- .mx_textButton:hover {
674- @mixin mx_DialogButton_hover ;
685+ .mx_textButton {
686+ @mixin mx_DialogButton_small ;
675687}
676688
677689.mx_button_row {
@@ -874,3 +886,8 @@ legend {
874886 }
875887 }
876888}
889+
890+ @define-mixin mx_Dialog_link {
891+ color : $accent ;
892+ text-decoration : none;
893+ }
0 commit comments