summaryrefslogtreecommitdiffstats
path: root/web_src/less/_base.less
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2020-11-17 05:33:19 +0000
committerGitHub <noreply@github.com>2020-11-17 00:33:19 -0500
commit75ebf7c5bd48e64d58aef9892ce6b6fbf69e5f1a (patch)
tree8d56d011c31e7b544476365d3410ff94a9a735e6 /web_src/less/_base.less
parentb83825253ed803221b3f78162a638d392534cd47 (diff)
downloadgitea-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/_base.less')
-rw-r--r--web_src/less/_base.less14
1 files changed, 7 insertions, 7 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 293c460fd9..b313e21637 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -334,7 +334,7 @@ a:hover,
margin-right: 0 !important;
}
- @media only screen and (max-width: 767px) {
+ @media @mediaSm {
#navbar:not(.shown) > *:not(:first-child) {
display: none;
}
@@ -774,7 +774,7 @@ a:hover,
}
&.pagination.menu {
- @media only screen and (max-width: 767px) {
+ @media @mediaSm {
.item:not(.active):not(.navigation),
.item.navigation span.navigation_label {
display: none;
@@ -900,7 +900,7 @@ footer {
}
// Conditional display
-@media only screen and (min-width: 768px) {
+@media @mediaMdAndUp {
.mobile-only,
.ui.button.mobile-only {
display: none;
@@ -913,7 +913,7 @@ footer {
}
}
-@media only screen and (max-width: 767px) {
+@media @mediaSm {
.not-mobile {
display: none;
}
@@ -941,7 +941,7 @@ footer {
clip: auto;
}
-@media only screen and (max-width: 991px) and (min-width: 768px) {
+@media @mediaMd {
.ui.container {
width: 95%;
}
@@ -956,7 +956,7 @@ footer {
border-width: 1px !important;
}
-@media only screen and (max-width: 1200px) {
+@media @mediaLgAndDown {
.ui.menu.new-menu {
overflow-x: auto !important;
justify-content: left !important;
@@ -1398,7 +1398,7 @@ table th[data-sortt-desc] {
}
.dropdown:not(.selection) > .menu.review-box > * {
- @media only screen and (max-height: 700px) {
+ @media (max-height: 700px) {
.CodeMirror,
.CodeMirror-scroll {
min-height: 100px;