Skip to content

Commit

Permalink
[BUGFIX] never upscaling smaller background images in bg image and co…
Browse files Browse the repository at this point in the history
…ntact cards elem. (#412)

* [FIX] changed file.width to file.maxW to avoid upscaling.

* [FIX] removed measurement unit for consistency
  • Loading branch information
pxamike authored and dmh committed May 23, 2018
1 parent db9b569 commit 0864a20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ page.cssInline {
file {
import.data = file:current:uid
treatIdAsReference = 1
width = 767
maxW = 767
}
}

Expand All @@ -70,32 +70,32 @@ page.cssInline {
20 = TEXT
20.cObject < .10
20 {
cObject.cObject.file.width = 992px
cObject.cObject.file.maxW = 992
noTrimWrap = | @media (min-width: 768px) { | } |
}

30 = TEXT
30.cObject < .10
30 {
cObject.cObject.file.width = 1920
cObject.cObject.file.maxW = 1920
noTrimWrap = | @media (min-width: 992px) { | } |
}
60 = TEXT
60.cObject < .10
60 {
cObject.cObject.file.width = 1000
cObject.cObject.file.maxW = 1000
noTrimWrap = | @media (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2), (max-width: 767px) and (min-resolution: 2dppx) { | } |
}
70 = TEXT
70.cObject < .10
70 {
cObject.cObject.file.width = 1536
cObject.cObject.file.maxW = 1536
noTrimWrap = | @media (min-width: 768px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 768px) and (min-resolution: 2dppx) { | } |
}
80 = TEXT
80.cObject < .10
80 {
cObject.cObject.file.width = 2400
cObject.cObject.file.maxW = 2400
noTrimWrap = | @media (min-width: 992px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 992px) and (min-resolution: 2dppx) { | } |
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ page.cssInline {
file {
import.data = file:current:uid
treatIdAsReference = 1
width = 212
maxW = 212
}
}

Expand All @@ -70,31 +70,31 @@ page.cssInline {
20 = TEXT
20.cObject < .10
20 {
cObject.cObject.file.width = 256
cObject.cObject.file.maxW = 256
noTrimWrap = | @media (max-width: 767px) { | } |
}
30 = TEXT
30.cObject < .10
30 {
cObject.cObject.file.width = 384
cObject.cObject.file.maxW = 384
noTrimWrap = | @media (min-width: 992px) { | } |
}
60 = TEXT
60.cObject < .10
60 {
cObject.cObject.file.width = 414
cObject.cObject.file.maxW = 414
noTrimWrap = | @media (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2), (max-width: 767px) and (min-resolution: 2dppx) { | } |
}
70 = TEXT
70.cObject < .10
70 {
cObject.cObject.file.width = 512
cObject.cObject.file.maxW = 512
noTrimWrap = | @media (min-width: 768px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 768px) and (min-resolution: 2dppx) { | } |
}
80 = TEXT
80.cObject < .10
80 {
cObject.cObject.file.width = 768
cObject.cObject.file.maxW = 768
noTrimWrap = | @media (min-width: 992px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 992px) and (min-resolution: 2dppx) { | } |
}
}
Expand Down

0 comments on commit 0864a20

Please sign in to comment.