Skip to content

Commit e81e6c8

Browse files
committed
small buttons
1 parent f41d571 commit e81e6c8

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

src/cv-maker/index.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,32 @@
1717
<body x-data="state" class="flex flex-col p-16 pt-8">
1818
<!-- navigation -->
1919
<div
20-
class="no-print pb-2 self-center"
20+
class="no-print pb-2 self-center flex gap-2"
2121
x-init="$watch('mode', value => $dispatch('mode-was-changed', value))"
2222
>
2323

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
2634
</label>
2735

2836
<label
29-
class="menu-item"
30-
:class="{ 'active': mode === 'view' }"
37+
class="hover:cursor-pointer"
38+
:class="{ 'text-orange-400 underline': mode === 'view' }"
3139
x-show="!editorHasError" x-transition
3240
>
3341
<input
3442
type="radio"
3543
value="view"
3644
x-model="mode"
45+
class="appearance-none"
3746
/> View
3847
</label>
3948

@@ -52,7 +61,7 @@
5261
>
5362
<div class="self-start">
5463
<button
55-
class="btn bg-sky-500 hover:bg-sky-700"
64+
class="btn bg-sky-500 hover:bg-sky-700 text-sm"
5665
x-on:click="$dispatch('resize')"
5766
>Save as</button>
5867
<button

src/cv-maker/style.css

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77

88
.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;
1010
}
1111

1212
.btn-orange {
@@ -98,20 +98,3 @@ div#location {
9898
text-transform: uppercase;
9999
font-size: smaller;
100100
}
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-
}

0 commit comments

Comments
 (0)