File tree 2 files changed +29
-1
lines changed 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 10
10
box-shadow : 1px 1px 10px black;
11
11
}
12
12
13
+ .page-guide__header {
14
+ display : flex;
15
+ }
16
+
17
+ .page-guide__close-button {
18
+ align-self : flex-start;
19
+ background : none;
20
+ border : 1px solid transparent;
21
+ border-radius : 0.5rem ;
22
+ cursor : pointer;
23
+ font-size : 1.5rem ;
24
+ margin-left : auto; /* Push the button to the right end */
25
+ }
26
+
27
+ .page-guide__close-button : hover {
28
+ background-color : # fff ;
29
+ border-color : black;
30
+ }
31
+
13
32
.page-guide__author {
14
33
font-style : italic;
15
34
font-weight : bold;
Original file line number Diff line number Diff line change @@ -26,7 +26,16 @@ <h1 class="logo">RiftGuide</h1>
26
26
27
27
< template id ="template-page-guide ">
28
28
< div class ="page-guide ">
29
- < h2 class ="page-guide__title "> {{guide.title}}</ h2 >
29
+ < header class ="page-guide__header ">
30
+ < h2 class ="page-guide__title "> {{guide.title}}</ h2 >
31
+ < button
32
+ class ="page-guide__close-button "
33
+ title ="Close guide "
34
+ @click ="$emit('guide-close') "
35
+ >
36
+ < i class ="fas fa-arrow-circle-left "> </ i >
37
+ </ button >
38
+ </ header >
30
39
< address class ="page-guide__author "> Author: {{guide.author}}</ address >
31
40
< div class ="page-guide__body ">
32
41
< section
You can’t perform that action at this time.
0 commit comments