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";
|
||||
|
||||
.user {
|
||||
&:not(.icon) {
|
||||
padding-top: 15px;
|
||||
|
@ -51,18 +53,18 @@
|
|||
img {
|
||||
width: 100%;
|
||||
}
|
||||
@media only screen and (max-width: 768px) {
|
||||
@media @mediaSm {
|
||||
height: 250px;
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
max-height: 768px;
|
||||
max-width: 768px;
|
||||
max-height: 767px;
|
||||
max-width: 767px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
@media @mediaSm {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue