Skip to content

Commit ebf6e03

Browse files
committed
change keybind test
1 parent 0b077a9 commit ebf6e03

8 files changed

Lines changed: 777 additions & 528 deletions

File tree

app.vue

Lines changed: 59 additions & 449 deletions
Large diffs are not rendered by default.
Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6,56 +6,6 @@ $text: #E5DFD5;
66
$text2: #ADA9A1;
77
$mutedtext: #78756F;
88

9-
@font-face {
10-
font-family: SFRoundedRegular;
11-
font-display: swap;
12-
src: url("~/assets/fonts/SFRoundedRegular.otf") format("opentype");
13-
}
14-
15-
@font-face {
16-
font-family: SFRoundedMedium;
17-
font-display: swap;
18-
src: url("~/assets/fonts/SFRoundedMedium.otf") format("opentype");
19-
}
20-
21-
@font-face {
22-
font-family: SFRoundedSemiBold;
23-
font-display: swap;
24-
src: url("~/assets/fonts/SFRoundedSemiBold.otf") format("opentype");
25-
}
26-
27-
@font-face {
28-
font-family: CommitMono;
29-
font-display: swap;
30-
src: url("~/assets/fonts/CommitMono.woff2") format("woff2");
31-
}
32-
33-
* {
34-
margin: 0;
35-
padding: 0;
36-
box-sizing: border-box;
37-
color: $text;
38-
text-decoration: none;
39-
font-family: SFRoundedRegular;
40-
scroll-behavior: smooth;
41-
scrollbar-width: thin;
42-
user-select: none;
43-
44-
--os-handle-bg: #ADA9A1;
45-
--os-handle-bg-hover: #78756F;
46-
--os-handle-bg-active: #78756F;
47-
}
48-
49-
html,
50-
body,
51-
#__nuxt {
52-
background-color: transparent;
53-
}
54-
55-
.os-scrollbar-horizontal {
56-
display: none;
57-
}
58-
599
.bg {
6010
width: 750px;
6111
height: 474px;

assets/css/keybind.scss

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
$primary: #2E2D2B;
2+
$accent: #FEB453;
3+
$divider: #ffffff0d;
4+
5+
$text: #E5DFD5;
6+
$text2: #ADA9A1;
7+
$mutedtext: #78756F;
8+
9+
.bg {
10+
width: 750px;
11+
height: 474px;
12+
background-color: $primary;
13+
border: 1px solid $divider;
14+
border-radius: 12px;
15+
z-index: -1;
16+
position: fixed;
17+
outline: none;
18+
}
19+
20+
.keybind-container {
21+
display: flex;
22+
flex-direction: column;
23+
align-items: center;
24+
justify-content: center;
25+
height: 100%;
26+
padding: 20px;
27+
}
28+
29+
h2 {
30+
margin-bottom: 20px;
31+
}
32+
33+
.keybind-input {
34+
width: 300px;
35+
height: 50px;
36+
border: 2px solid $accent;
37+
border-radius: 5px;
38+
display: flex;
39+
align-items: center;
40+
justify-content: center;
41+
font-size: 18px;
42+
cursor: pointer;
43+
margin-bottom: 20px;
44+
background-color: rgba($accent, 0.1);
45+
user-select: none;
46+
}
47+
48+
.keybind-input:focus {
49+
outline: none;
50+
box-shadow: 0 0 0 2px rgba($accent, 0.5);
51+
}
52+
53+
button {
54+
padding: 10px 20px;
55+
background-color: $accent;
56+
color: $primary;
57+
border: none;
58+
border-radius: 5px;
59+
font-size: 16px;
60+
cursor: pointer;
61+
}
62+
63+
button:disabled {
64+
opacity: 0.5;
65+
cursor: not-allowed;
66+
}

0 commit comments

Comments
 (0)