summaryrefslogtreecommitdiffstats
path: root/public/less/_base.less
diff options
context:
space:
mode:
authorKim Carlbäcker <kim.carlbacker@gmail.com>2016-04-19 22:35:36 +0200
committerUnknwon <u@gogs.io>2016-04-19 16:35:36 -0400
commitce36fd7a4924f8031aa44fbbb45effd3000f3ac8 (patch)
tree8bb9d225f3da88c839413a5e6e6fc03bc1b77ef0 /public/less/_base.less
parent69e00f99483a4ebbbf88abb164c1f136aa9b3dd4 (diff)
downloadgitea-ce36fd7a4924f8031aa44fbbb45effd3000f3ac8.tar.gz
gitea-ce36fd7a4924f8031aa44fbbb45effd3000f3ac8.zip
Fixed #2909 (#2979)
Diffstat (limited to 'public/less/_base.less')
-rw-r--r--public/less/_base.less17
1 files changed, 17 insertions, 0 deletions
diff --git a/public/less/_base.less b/public/less/_base.less
index d260df4df9..4042b375da 100644
--- a/public/less/_base.less
+++ b/public/less/_base.less
@@ -28,6 +28,23 @@ pre, code {
word-break: break-word;
}
}
+.dont-break-out {
+ /* These are technically the same, but use both */
+ overflow-wrap: break-word;
+ word-wrap: break-word;
+
+ -ms-word-break: break-all;
+ /* This is the dangerous one in WebKit, as it breaks things wherever */
+ word-break: break-all;
+ /* Instead use this non-standard one: */
+ word-break: break-word;
+
+ /* Adds a hyphen where the word breaks, if supported (No Blink) */
+ -ms-hyphens: auto;
+ -moz-hyphens: auto;
+ -webkit-hyphens: auto;
+ hyphens: auto;
+}
.full.height {
padding: 0;
margin: 0 0 -@footer-margin*2 0;