mirror of
https://github.com/danbee/danbarber.me
synced 2025-03-04 08:59:10 +00:00
Add CSS for photo blog images
This commit is contained in:
parent
ea2c819192
commit
490c12de55
22
_assets/stylesheets/parts/photos.css.scss
Normal file
22
_assets/stylesheets/parts/photos.css.scss
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
$photo-wide-max-width: 1024px;
|
||||||
|
|
||||||
|
figure.photo-wide {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 1048px) {
|
||||||
|
figure.photo-wide {
|
||||||
|
max-width: 100%;
|
||||||
|
img {
|
||||||
|
margin: -0.5em 0;
|
||||||
|
padding: 0.5em 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1049px) {
|
||||||
|
figure.photo-wide {
|
||||||
|
max-width: $photo-wide-max-width;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -9,6 +9,7 @@
|
|||||||
@import "includes/video.css.scss";
|
@import "includes/video.css.scss";
|
||||||
@import "lib/solarized-dark.css.scss";
|
@import "lib/solarized-dark.css.scss";
|
||||||
|
|
||||||
|
@import "parts/photos.css.scss";
|
||||||
@import "parts/post.css.scss";
|
@import "parts/post.css.scss";
|
||||||
@import "parts/archive.css.scss";
|
@import "parts/archive.css.scss";
|
||||||
@import "parts/footer.css.scss";
|
@import "parts/footer.css.scss";
|
||||||
|
|||||||
30
_config.yml
30
_config.yml
@ -74,5 +74,35 @@ picture:
|
|||||||
width: '640'
|
width: '640'
|
||||||
source_default:
|
source_default:
|
||||||
width: '400'
|
width: '400'
|
||||||
|
photo-square:
|
||||||
|
ppi:
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
attr:
|
||||||
|
class: "photo-square"
|
||||||
|
itemprop: image
|
||||||
|
source_large:
|
||||||
|
media: "(min-width: 769px)"
|
||||||
|
width: '800'
|
||||||
|
source_medium:
|
||||||
|
media: "(min-width: 480px)"
|
||||||
|
width: '640'
|
||||||
|
source_default:
|
||||||
|
width: '400'
|
||||||
|
photo-wide:
|
||||||
|
ppi:
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
attr:
|
||||||
|
class: "photo-square"
|
||||||
|
itemprop: image
|
||||||
|
source_large:
|
||||||
|
media: "(min-width: 769px)"
|
||||||
|
width: '1024'
|
||||||
|
source_medium:
|
||||||
|
media: "(min-width: 480px)"
|
||||||
|
width: '780'
|
||||||
|
source_default:
|
||||||
|
width: '490'
|
||||||
kramdown:
|
kramdown:
|
||||||
input: GFM
|
input: GFM
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user