Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronon committed Dec 5, 2023
1 parent a4ea4ab commit 19ac095
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/Mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ html, body {
.mobile {
width: 100vw;
height: 100vh;
background: $dark-main-bg;
background: var(--color-background);
overflow: hidden;
canvas {
Expand Down
17 changes: 4 additions & 13 deletions src/assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,6 @@ html.dark {
transition: background var(--anim-time), color var(--anim-time), border var(--anim-time);
}

.word-font-family {
font-family: var(--word-font-family);
//font-family: source-serif-pro, Georgia, Cambria, "Times New Roman", Times, serif; //medium
//font-family: Optimistic Text,-apple-system,ui-sans-serif,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji; // react
//font-family: Google Sans Text,Noto Sans,Noto Sans JP,Noto Sans KR,Noto Naskh Arabic,Noto Sans Thai,Noto Sans Hebrew,Noto Sans Bengali,sans-serif; //android-dev
line-height: 30rem;
}

html, body {
font-size: 1px;
Expand All @@ -150,30 +143,27 @@ html, body {
width: 100vw;
height: 100vh;
overflow: hidden;
color: $font-color;
color: rgb(187, 187, 187);
//color: var(--color-font-1);
//font-family: var(--font-family);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.en-word {
font-family: var(--word-font-family);
}

#app {
width: 100%;
height: 100%;
}

a {
$main: rgb(64,158,255);
color: $main;
text-decoration: none;
}

.base-textarea {
flex: 1;
font-family: $font-family;
font-family: var(--font-family);
font-size: 18rem;
outline: none;
border: 1px solid transparent;
Expand Down Expand Up @@ -220,6 +210,7 @@ a {
}

footer {
$footer-height: 60rem;
box-sizing: content-box;
height: $footer-height;
display: flex;
Expand Down
16 changes: 0 additions & 16 deletions src/assets/css/variable.scss
Original file line number Diff line number Diff line change
@@ -1,16 +0,0 @@
//$dark-main-bg: rgb(46, 46, 46);
$dark-main-bg: rgba(0, 5, 24, 1);
$dark-second-bg: rgb(60, 63, 65);

$font-color: rgb(187, 187, 187);

$main: rgb(64,158,255);
//$main: rgb(121,187,255);
//$second: rgb(75, 110, 175);
$second: rgb(59, 87, 138);
$item-hover: rgb(75, 75, 75);
$footer-height: 40rem;
$card-radius: 8rem;

$font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
$word-font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
1 change: 1 addition & 0 deletions src/components/DictListPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ const groupedByCategoryAndTag = $computed(() => {
gap: 6rem;
&.active {
$main: rgb(64,158,255);
border-bottom: 2px solid $main;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ useDisableEventListener(() => focus)
}
input {
font-family: $font-family;
font-family: var(--font-family);
font-size: 18rem;
outline: none;
min-height: 20rem;
Expand Down
1 change: 1 addition & 0 deletions src/components/Ring.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ $w2: calc($w / 2);
position: absolute;
.circle-full {
$item-hover: rgb(75, 75, 75);
stroke: $item-hover;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/dialog/ArticleContentDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ onUnmounted(() => {
:header="false"
v-model="show">
<div class="content">
<div class="article-content word-font-family">
<div class="article-content">
<div class="title">
<div>{{ article.title }}</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dict/components/ArticleDictDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ defineExpose({getDictDetail, add, editDict})
<Empty v-else/>
</div>
</div>
<div class="article-content word-font-family">
<div class="article-content">
<div class="title">
<div>{{ article.title }}</div>
<BaseIcon
Expand Down
5 changes: 5 additions & 0 deletions src/pages/practice/Statistics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ const isEnd = $computed(() => {
<style scoped lang="scss">
@import "@/assets/css/style";
$card-radius: 8rem;
$dark-second-bg: rgb(60, 63, 65);
$item-hover: rgb(75, 75, 75);
.statistics {
width: 800rem;
padding: var(--space);
Expand Down Expand Up @@ -184,6 +188,7 @@ const isEnd = $computed(() => {
}
.notice {
$main: rgb(64,158,255);
background: $main;
height: 40rem;
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/practice/practice-word/Typing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ defineExpose({del, showWord, hideWord, play})
.phonetic {
margin-top: 5rem;
font-family: $word-font-family;
font-family: var(--word-font-family);
}
.translate {
Expand Down Expand Up @@ -259,7 +259,7 @@ defineExpose({del, showWord, hideWord, play})
.word {
font-size: 48rem;
line-height: 1;
font-family: $word-font-family;
font-family: var(--word-font-family);
letter-spacing: 5rem;
.input {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/practice/practice-word/TypingWord.vue
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ onUnmounted(() => {
.word {
font-size: 24rem;
margin-bottom: 4rem;
font-family: $word-font-family;
font-family: var(--word-font-family);
}
.prev {
Expand Down

0 comments on commit 19ac095

Please sign in to comment.