summaryrefslogtreecommitdiffstats
path: root/public/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
parent69e00f99483a4ebbbf88abb164c1f136aa9b3dd4 (diff)
downloadgitea-ce36fd7a4924f8031aa44fbbb45effd3000f3ac8.tar.gz
gitea-ce36fd7a4924f8031aa44fbbb45effd3000f3ac8.zip
Fixed #2909 (#2979)
Diffstat (limited to 'public/less')
-rw-r--r--public/less/_base.less17
-rw-r--r--public/less/_repository.less5
2 files changed, 20 insertions, 2 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;
diff --git a/public/less/_repository.less b/public/less/_repository.less
index 66c3543214..95cbb80e7e 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -1206,6 +1206,9 @@
width: 20px;
text-align: center;
}
+ a {
+ .dont-break-out;
+ }
}
}
.hook.history.list {
@@ -1321,5 +1324,3 @@
width: 100%!important;
}
}
-
-