From fe3d983c466e4b261178dbfc12624c209aed72c8 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sun, 10 Apr 2022 17:12:21 +0800 Subject: [PATCH] :sparkles: Style: add some common CSS styles Class (#101) --- CHANGELOG.md | 1 + assets/css/_common.scss | 22 ++++++++++++++++++++++ assets/css/style.scss | 1 + 3 files changed, 24 insertions(+) create mode 100644 assets/css/_common.scss diff --git a/CHANGELOG.md b/CHANGELOG.md index 00fcd2ec..7ed7bc12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. - :sparkles: Feat: modified language selector to submenu (@pandaoh[`eced169`](https://github.com/Lruihao/FixIt/commit/eced169713ce4a0208ce70ab556824e47eb671d5), @Lruihao[#31](https://github.com/Lruihao/FixIt/issues/31)) - :bug: Fix: add "no more translations" judgment logic ([#100](https://github.com/Lruihao/FixIt/issues/100)) - :bug: Fix: fix some header css bug ([#31](https://github.com/Lruihao/FixIt/issues/31)) +- :sparkles: Style: add some common CSS styles Class ([#101](https://github.com/Lruihao/FixIt/issues/101)) - :memo: Docs: revised theme documentation - :zap: Perf: remove third-party library clipboard.js ([#84](https://github.com/Lruihao/FixIt/issues/84)) - :pencil2: Docs: fix highlight url typo in `theme-documentation-built-in-shortcodes` (@d-baer[#85](https://github.com/Lruihao/FixIt/pull/85)) diff --git a/assets/css/_common.scss b/assets/css/_common.scss new file mode 100644 index 00000000..6e2f0902 --- /dev/null +++ b/assets/css/_common.scss @@ -0,0 +1,22 @@ +// ============================== +// Common Styles +// 常用样式 +// ============================== + +.text-truncate { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.text-start { + text-align: left !important; +} + +.text-end { + text-align: right !important; +} + +.text-center { + text-align: center !important; +} diff --git a/assets/css/style.scss b/assets/css/style.scss index cd685a8a..25e70eba 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -16,4 +16,5 @@ @import "_core/media"; +@import "_common"; @import "_custom";