mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +00:00
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:
parent
b83825253e
commit
75ebf7c5bd
12 changed files with 72 additions and 51 deletions
|
@ -1,3 +1,5 @@
|
|||
@import "variables.less";
|
||||
|
||||
.ui.button.add-code-comment {
|
||||
padding: 2px;
|
||||
position: absolute;
|
||||
|
@ -146,7 +148,7 @@ a.blob-excerpt:hover {
|
|||
margin-left: .5rem;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
@media @mediaSm {
|
||||
#review-box > .menu {
|
||||
> .ui.segment {
|
||||
width: 94vw;
|
||||
|
@ -161,19 +163,19 @@ a.blob-excerpt:hover {
|
|||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) and (max-width: 992px) {
|
||||
@media @mediaMd {
|
||||
#review-box .CodeMirror-scroll {
|
||||
max-width: 700px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 992px) and (max-width: 1200px) {
|
||||
@media @mediaLg {
|
||||
#review-box .CodeMirror-scroll {
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1200px) {
|
||||
@media @mediaXl {
|
||||
#review-box .CodeMirror-scroll {
|
||||
max-width: 900px;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue