1
0
Fork 0
forked from forgejo/forgejo

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>
This commit is contained in:
Norwin 2020-11-17 05:33:19 +00:00 committed by GitHub
parent b83825253e
commit 75ebf7c5bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 72 additions and 51 deletions

View file

@ -122,7 +122,7 @@
text-overflow: ellipsis;
}
@media (max-width: 1200px) {
@media @mediaLgAndDown {
.title {
max-width: 150px;
}
@ -216,7 +216,7 @@
#clone-panel {
width: 350px;
@media only screen and (max-width: 768px) {
@media @mediaSm {
width: 100%;
}
@ -279,7 +279,7 @@
}
.ui.tiny.blue.buttons {
@media only screen and (max-width: 768px) {
@media @mediaSm {
width: 100%;
}
}
@ -629,7 +629,7 @@
width: 100%;
}
@media only screen and (max-width: 768px) {
@media @mediaSm {
flex-direction: column;
h1 {
@ -1025,7 +1025,7 @@
}
}
@media only screen and (max-width: 767px) {
@media @mediaSm {
.form .button {
width: 100%;
@ -1578,7 +1578,7 @@
background: #ffffff;
line-height: 30px;
@media only screen and (max-width: 992px) {
@media @mediaMdAndDown {
flex-direction: column;
align-items: flex-start;
}
@ -2019,13 +2019,13 @@
button,
input {
@media only screen and (max-width: 438px) {
@media (max-width: 438px) {
width: 100%;
}
}
button {
@media only screen and (max-width: 768px) {
@media @mediaSm {
margin-bottom: 1em;
}
}
@ -2110,7 +2110,7 @@
}
}
@media only screen and (max-width: 767px) {
@media @mediaSm {
.dividing.header .stackable.grid .button {
margin-top: 2px;
margin-bottom: 2px;
@ -3002,7 +3002,7 @@ tbody.commit-list {
vertical-align: middle;
}
@media only screen and (max-width: 767.98px) {
@media @mediaSm {
tr.commit-list {
width: 100%;
}
@ -3012,7 +3012,7 @@ tbody.commit-list {
}
}
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
@media @mediaMd {
tr.commit-list {
width: 723px;
}
@ -3021,7 +3021,7 @@ tbody.commit-list {
}
}
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
@media @mediaLg {
tr.commit-list {
width: 933px;
}
@ -3030,7 +3030,7 @@ tbody.commit-list {
}
}
@media only screen and (min-width: 1200px) {
@media @mediaXl {
tr.commit-list {
width: 1127px;
}
@ -3076,7 +3076,7 @@ tbody.commit-list {
}
}
@media only screen and (max-width: 767px) {
@media @mediaSm {
.ui.stackable.menu {
&.mobile--margin-between-items > .item {
margin-top: 5px;
@ -3336,7 +3336,7 @@ td.blob-excerpt {
.repository .ui.menu.new-menu {
background: none !important;
@media only screen and (max-width: 1200px) {
@media @mediaLgAndDown {
&::after {
background: none !important;
}