-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathscreen.less
97 lines (80 loc) · 1.9 KB
/
screen.less
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
@import "simple-lightbox/simple-lightbox.less";
/** Simple Lightbox Adjustments */
.sl-overlay {
background-color: #000;
}
.sl-wrapper {
.sl-counter,
.sl-close,
.sl-navigation button {
color: #fff;
&:hover {
color: #000;
}
}
}
/** Gallery Styles */
div.plugin-gallery {
max-width: 100%;
box-sizing: border-box;
margin-bottom: 1.4em;
div.gallery-page {
display: grid;
// column setup happens in Formatter::formatPage()
gap: 1em;
width: auto;
max-width: 100%;
figure {
text-align: center;
border: 1px solid @ini_border;
margin: 0;
padding: 0.4em;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: hidden;
img {
max-width: 100%;
height: auto;
}
figcaption {
margin-top: 0.4em;
a {
display: block;
&.gallery-title {
font-weight: bold;
}
}
}
}
}
&.align-full {
width: 100%;
}
&.align-left {
float: left;
margin-right: 1em;
}
&.align-right {
float: right;
margin-left: 1em;
}
&.align-center {
display: flex;
justify-content: center;
flex-wrap: wrap; // wrap page selector on new line
}
.gallery-page-selector {
padding-top: 0.4em;
display: none; // hidden by default, shown by JS
a {
display: inline-block;
padding: 0.2em 0.4em;
border: 1px solid transparent;
&.active {
border: 1px solid @ini_border;
border-radius: 0.4em;
}
}
}
}