From c973095a4b98e8fcfb2d9ca2509186c23ea3812b Mon Sep 17 00:00:00 2001 From: Jiang Li <115767656+dellixx@users.noreply.github.com> Date: Mon, 29 Apr 2024 00:20:18 +0800 Subject: [PATCH 1/2] Update main.scss Add a custom color badge --- assets/css/main.scss | 57 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index b48c010bb4a..2424ec4a035 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -106,4 +106,59 @@ h1:before, .anchor:before { color: white; background-color: #00369f; font-size: .8em; -} \ No newline at end of file +} + +.red-badge { + padding-left: 1rem; + padding-right: 1rem; + position: absolute; + margin-top: .5em; + margin-left: -.5em; + color: white; + background-color: #DC3545; + font-size: .8em; +} + +.green-badge { + padding-left: 1rem; + padding-right: 1rem; + position: absolute; + margin-top: .5em; + margin-left: -.5em; + color: white; + background-color: #28A745; + font-size: .8em; +} + +.orange-badge { + padding-left: 1rem; + padding-right: 1rem; + position: absolute; + margin-top: .5em; + margin-left: -.5em; + color: white; + background-color: #FFC107; + font-size: .8em; +} + +.purple-badge { + padding-left: 1rem; + padding-right: 1rem; + position: absolute; + margin-top: .5em; + margin-left: -.5em; + color: white; + background-color: #9254de; + font-size: .8em; +} + +.cyan-badge { + padding-left: 1rem; + padding-right: 1rem; + position: absolute; + margin-top: .5em; + margin-left: -.5em; + color: white; + background-color: #36cfc9; + font-size: .8em; +} From da932b619d3caed4344917e1e44dd3124a80faae Mon Sep 17 00:00:00 2001 From: Jiang Li <115767656+dellixx@users.noreply.github.com> Date: Mon, 29 Apr 2024 00:27:37 +0800 Subject: [PATCH 2/2] Update about.md Add instructions for selecting badges in other colors --- _pages/about.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/_pages/about.md b/_pages/about.md index 1e8935ec9ca..d343dc2e66d 100644 --- a/_pages/about.md +++ b/_pages/about.md @@ -40,6 +40,20 @@ My research interest includes neural machine translation and computer vision. I + +
