From dbed39ba05fd498dad6cd3bf127c1f68056bf2ab Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 11 Aug 2016 21:07:09 -0300 Subject: On showing diff/file, use the tab_width specified on .editorconfig, if any (#3241) Closes #3182 --- public/less/_repository.less | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'public/less/_repository.less') diff --git a/public/less/_repository.less b/public/less/_repository.less index 0fdc23df24..0eea2d778a 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -1360,3 +1360,13 @@ width: 100%!important; } } + +// generate .tab-size-{i} from 1 to 16 +.generate-tab-size(16); +.generate-tab-size(@n, @i: 1) when (@i =< @n) { + .tab-size-@{i} { + tab-size: @i !important; + -moz-tab-size: @i !important; + } + .generate-tab-size(@n, (@i + 1)); +} -- cgit v1.2.3