diff options
author | Norwin <noerw@users.noreply.github.com> | 2020-11-17 05:33:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 00:33:19 -0500 |
commit | 75ebf7c5bd48e64d58aef9892ce6b6fbf69e5f1a (patch) | |
tree | 8d56d011c31e7b544476365d3410ff94a9a735e6 /web_src/less/themes | |
parent | b83825253ed803221b3f78162a638d392534cd47 (diff) | |
download | gitea-75ebf7c5bd48e64d58aef9892ce6b6fbf69e5f1a.tar.gz gitea-75ebf7c5bd48e64d58aef9892ce6b6fbf69e5f1a.zip |
fix media query edge case (#13546)
* fix media query edge case
was failing for 768px width before
* code review
* define responsive breakpoints as less variables
* add missing variables.less
* rename variables, drop screen constraints
* fix less import
* Apply suggestions from code review
Co-authored-by: silverwind <me@silverwind.io>
* code review
altough it doesnt matter, LESS lazy evals variables
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src/less/themes')
-rw-r--r-- | web_src/less/themes/theme-arc-green.less | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less index a4412145a9..ad3d491942 100644 --- a/web_src/less/themes/theme-arc-green.less +++ b/web_src/less/themes/theme-arc-green.less @@ -1,3 +1,5 @@ +@import "../variables.less"; + :root { --color-primary: #87ab63; --color-primary-dark-1: #93b373; @@ -1222,7 +1224,7 @@ td.blob-hunk { background: #2a2e3a; border-color: transparent !important; - @media only screen and (max-width: 1200px) { + @media @mediaLgAndDown { &::after { background: linear-gradient(to right, transparent 0%, #2a2e3a 100%); } |