/
GridFieldGalleryTheme.scss
90 lines (76 loc) · 1.74 KB
/
GridFieldGalleryTheme.scss
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
/*! Author : colymba / colymba.com / Thierry Francois
*/
.cms .cms-edit-form table.ss-gridfield-table.galleryTheme
{
background-color: #fff;
tbody.ss-gridfield-items
{
float: left;
width: 100%;
background: none;
tr.ss-gridfield-item
{
position: relative;
float: left;
display: inline-block;
width: 150px;
height: 150px;
margin: 5px;
border: none;
background-color: #fff;
&:even { background-color: #fff; }
td
{
display: none;
padding: 0;
&.galleryThumbnail
{
float: left;
display: block;
width: 140px;
height: 140px;
line-height: 140px;
text-align: center;
padding: 5px;
border: 1px solid #ccc;
img
{
float: left;
max-width: 100%;
height: auto;
}
&.icon
{
img
{
display: block;
float: none;
margin: 0 auto;
}
}
}/* &.galleryThumbnail */
&.col-buttons
{
float: left;
position: absolute;
display: none;
top: 0;
left: 0;
width: 150px;
height: 150px;
text-align: center;
line-height: 150px;
border: none;
background-color: #fff;
border: 1px solid #ccc;
}/* &.col-buttons */
}/* td */
}/* tr.ss-gridfield-item */
}/* tbody.ss-gridfield-items */
&.dragSorting
{
td.col-buttons {
display: none !important;
}
}
}/* .cms table.ss-gridfield-table */