Skip to content

Commit a9e6959

Browse files
committed
client: css
1 parent 3af7326 commit a9e6959

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

chatClient/src/utils/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,4 +422,10 @@ export function colorRgb (str) {
422422
} else {
423423
return
424424
}
425-
};
425+
}
426+
427+
export function computedLevel(onlineTime) {
428+
const toHour = onlineTime / 1000 / 60 /60
429+
const res = Math.ceil(toHour)
430+
return res > 8 ? 8 : res
431+
}

chatClient/static/css/base.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ input {
8585
}
8686
}
8787

88+
.entry-link {
89+
text-decoration: none;
90+
color: inherit;
91+
}
92+
8893
.aside-menu-link {
8994
text-decoration: none;
9095
color: $color-grey8;

chatClient/static/css/markdown.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)