forked from aaronds/bristol-hackspace-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
executable file
·60 lines (52 loc) · 1.27 KB
/
style.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
/*
Theme Name: Hack Hitchin
Theme URI: http://hackhitchin.org.uk
Version: 2.1.3
Author: Rob Berwick
Author URI: http://hackhitchin.org.uk
Maintainer: Mark Thompson
Update URI: https://github.com/hackhitchin/hitchin-hackspace-wordpress
*/
@import "style/css/typography.css";
@import "style/css/layout.css";
@import "style/css/mailchimp.css";
/** pseudo-lightbox */
figure.wp-block-image:focus-within, .has-lightbox:focus-within .lightbox-container {
position: fixed;
z-index: 10;
inset: 0;
background: black;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0;
padding: 4em;
gap: 2em;
background: #000000f0;
backdrop-filter: blur(10px);
}
.has-lightbox .lightbox-container {
display: none;
}
figure.wp-block-image:focus-within figcaption {
color: white;
}
figure.wp-block-image:focus-within img, .has-lightbox:focus-within .lightbox-container img {
display: block;
flex: 0 1 auto;
overflow: hidden;
max-width: 100%;
width: auto;
}
figure.wp-block-image:focus-within img, .has-lightbox:focus-within .lightbox-container img {
scale: 0.8;
opacity: 0;
animation: intro 0.3s forwards;
}
@keyframes intro {
to {
scale: 1;
opacity: 1;
}
}