File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,12 @@ object mine:
39
39
c.destUserId.map { destId =>
40
40
div(cls := " waiting" )(
41
41
userIdLink(destId.some, cssClass = " target" .some),
42
- spinner,
42
+ if c.unlimited || c.daysPerTurn != none then
43
+ div(cls := " correspondence-waiting" )(
44
+ p(cls := " challenge-successful" )(" Challenge sent" ),
45
+ p(" Challenge can be canceled in the sword menu" )
46
+ )
47
+ else spinner,
43
48
p(trans.waitingForOpponent())
44
49
)
45
50
} getOrElse {
Original file line number Diff line number Diff line change 27
27
@include breakpoint ($mq-x-small ) {
28
28
grid-area : 1 / 2 / 3 / 2 ;
29
29
}
30
+
30
31
& __recent {
31
32
@extend %flex-center ;
32
33
margin-top : 1em ;
33
34
gap : 0.5em ;
35
+
34
36
.button {
35
37
background : none ;
36
38
border : $border ;
37
39
text-align : $start-direction ;
38
40
text-transform : none ;
39
41
}
40
42
}
43
+
41
44
.error {
42
45
color : $c-bad ;
43
46
margin-top : 1em ;
57
60
height : 13em ;
58
61
margin : 2em auto ;
59
62
}
63
+
64
+ .correspondence-waiting {
65
+ padding : 15px ;
66
+ border-radius : 8px ;
67
+ position : relative ;
68
+ }
69
+
70
+ .challenge-successful ::before {
71
+ content : ' \2714 ' ;
72
+ font-size : 1.2em ;
73
+ color : green ;
74
+ }
75
+
76
+ .correspondence-waiting > p {
77
+ margin-bottom : 0.5em ;
78
+ }
60
79
}
61
80
62
81
.cancel {
74
93
padding : $block-gap 4vw ;
75
94
margin-bottom : 4rem ;
76
95
font-size : 1.5em ;
96
+
77
97
@include breakpoint ($mq-xx-small ) {
78
98
font-size : 2em ;
79
99
}
100
+
80
101
background : var (--c-bg );
81
102
border : 1px solid var (--c-font );
82
103
88
109
color : var (--c-font );
89
110
font-size : 6rem ;
90
111
margin- #{$end-direction } : 0.2em ;
112
+
91
113
@include breakpoint ($mq-not-xx-small ) {
92
114
display : none ;
93
115
}
You can’t perform that action at this time.
0 commit comments