File tree Expand file tree Collapse file tree 2 files changed +16
-24
lines changed Expand file tree Collapse file tree 2 files changed +16
-24
lines changed Original file line number Diff line number Diff line change 17
17
< body x-data ="state " class ="flex flex-col p-16 pt-8 ">
18
18
<!-- navigation -->
19
19
< div
20
- class ="no-print pb-2 self-center "
20
+ class ="no-print pb-2 self-center flex gap-2 "
21
21
x-init ="$watch('mode', value => $dispatch('mode-was-changed', value)) "
22
22
>
23
23
24
- < label class ="menu-item " :class ="{ 'active': mode === 'editor' } ">
25
- < input type ="radio " value ="editor " x-model ="mode " /> Editor
24
+ < label
25
+ class ="hover:cursor-pointer "
26
+ :class ="{ 'text-orange-400 underline': mode === 'editor' } "
27
+ >
28
+ < input
29
+ type ="radio "
30
+ class ="appearance-none "
31
+ value ="editor "
32
+ x-model ="mode "
33
+ /> Editor
26
34
</ label >
27
35
28
36
< label
29
- class ="menu-item "
30
- :class ="{ 'active ': mode === 'view' } "
37
+ class ="hover:cursor-pointer "
38
+ :class ="{ 'text-orange-400 underline ': mode === 'view' } "
31
39
x-show ="!editorHasError " x-transition
32
40
>
33
41
< input
34
42
type ="radio "
35
43
value ="view "
36
44
x-model ="mode "
45
+ class ="appearance-none "
37
46
/> View
38
47
</ label >
39
48
52
61
>
53
62
< div class ="self-start ">
54
63
< button
55
- class ="btn bg-sky-500 hover:bg-sky-700 "
64
+ class ="btn bg-sky-500 hover:bg-sky-700 text-sm "
56
65
x-on:click ="$dispatch('resize') "
57
66
> Save as</ button >
58
67
< button
Original file line number Diff line number Diff line change 6
6
}
7
7
8
8
.btn {
9
- @apply text-sm rounded-full py-2 px-4 text-white font-bold hover:cursor-pointer;
9
+ @apply text-sm rounded py-1 px-2 text-white font-bold hover:cursor-pointer;
10
10
}
11
11
12
12
.btn-orange {
@@ -98,20 +98,3 @@ div#location {
98
98
text-transform : uppercase;
99
99
font-size : smaller;
100
100
}
101
-
102
- .menu-item {
103
- cursor : pointer;
104
- padding : 8px 16px ;
105
- margin-right : 10px ;
106
- border-radius : 4px ;
107
- transition : background-color 0.3s ;
108
- }
109
-
110
- .menu-item .active {
111
- background-color : # 007bff ;
112
- color : # fff ;
113
- }
114
-
115
- .menu-item input {
116
- display : none;
117
- }
You can’t perform that action at this time.
0 commit comments