forked from npf-images-v3/npf-images-v3.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecon.css
103 lines (86 loc) · 1.94 KB
/
recon.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
.npf_row {
margin-left:0!important;
margin-right:0!important;
display:flex!important;
align-items:stretch!important;
gap:var(--NPF-Image-Spacing)!important;
}
/* i dont even know what crt-video is but it's apparently in the default t*mblr stylesheet so I will go ahead and unpoop that */
.crt-video + .npf_row,
.npf_row + .crt-video,
.npf_row + p,
p + .npf_row {
margin-top:var(--NPF-Caption-Spacing)!important;
}
/* stray single npf not wrapped in a .npf_row */
.tmblr-full + .npf_row {
margin-top:var(--NPF-Image-Spacing)!important;
}
.npf_row + .npf_row,
.npf_row + .tmblr-full {
margin-top:var(--NPF-Image-Spacing)!important;
}
.npf_col {
padding:0!important;
flex:1;
}
/* maximize height of .npf_col images */
[post-type="text"] .npf_col img {
height:100%!important;
}
.tmblr-full {
margin:0!important;
padding-bottom:0!important;
}
*:not(.npf_row) > .tmblr-full + .tmblr-full {
margin-top:var(--NPF-Image-Spacing)!important;
}
.post_media_photo, .tmblr-full img {
position:initial!important;
text-decoration:none;
}
.post_media_photo_anchor {
padding:0;
border:none;
height:auto!important;
width:inherit;
}
.post_media_photo_anchor, .tmblr-full img,
.tmblr-full video, .tmblr-full audio[controls]{
line-height:0;
}
.tmblr-full img {
position:initial!important;
cursor:pointer;
vertical-align:middle;
max-width:100%;
height:auto;
object-fit:cover;
}
/*
.photo-origin .tmblr-full img {
width:100%;
}
*/
.npf_inst > * {
margin-top:0!important;
margin-bottom:var(--NPF-Image-Spacing)!important;
}
.npf_inst > *:last-child {
margin-bottom:0!important;
}
[post-type='text'] .npf_inst > .tmblr-full img {
width:100%;
height:auto;
}
.lb-cont {
top:50%!important;
left:50%!important;
transform:translate(-50%,-50%);
}
.lb-img {
width:initial!important;
height:initial!important;
max-width:80vw;
max-height:80vh;
}