From 42df4afae3bc950b7d6a1c76ad2a7164a8a950c3 Mon Sep 17 00:00:00 2001 From: fenwick67 Date: Sat, 29 Sep 2018 23:14:46 -0500 Subject: [PATCH] fix text wrapping for CJK characters --- static/dark.css | 6 ++++-- static/light.css | 6 ++++-- stylesrc/base.scss | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/static/dark.css b/static/dark.css index 1dba568..8d456c7 100644 --- a/static/dark.css +++ b/static/dark.css @@ -5,7 +5,8 @@ body { color: #ffffff; font-weight: lighter; overflow-x: hidden; - font-size: 100%; } + font-size: 100%; + word-break: break-word; } * { margin: 0; @@ -127,7 +128,8 @@ a * { color: #ffffff; font-weight: 400; cursor: pointer; - text-transform: uppercase; } + text-transform: uppercase; + user-select: none; } label.button { padding: 0.25rem 0.5rem; diff --git a/static/light.css b/static/light.css index 9067190..0b22ea2 100644 --- a/static/light.css +++ b/static/light.css @@ -5,7 +5,8 @@ body { color: #282c37; font-weight: lighter; overflow-x: hidden; - font-size: 100%; } + font-size: 100%; + word-break: break-word; } * { margin: 0; @@ -127,7 +128,8 @@ a * { color: #282c37; font-weight: 400; cursor: pointer; - text-transform: uppercase; } + text-transform: uppercase; + user-select: none; } label.button { padding: 0.25rem 0.5rem; diff --git a/stylesrc/base.scss b/stylesrc/base.scss index c080dce..06114cc 100644 --- a/stylesrc/base.scss +++ b/stylesrc/base.scss @@ -13,6 +13,7 @@ body { font-weight: lighter; overflow-x:hidden; font-size:100%; + word-break: break-word; } * {