_media.scss
2.89 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/* ****************************************************************************
* MEDIA AREA SCSS FILE
*/
@import "~@wpmudev/shared-ui/scss/functions";
@import "~@wpmudev/shared-ui/scss/colors";
@import "~@wpmudev/shared-ui/scss/variables";
// Override body class
$sui-version: 'smush-media';
$sui-wrap-class: false;
@import "~@wpmudev/shared-ui/scss/mixins";
@import "~@wpmudev/shared-ui/scss/tooltips";
/* ****************************************************************************
* MEDIA AREA STYLES
*/
// Set column width.
.manage-column.column-smushit {
width: 260px;
}
// Margin for buttons.
.sui-smush-media {
.button {
margin-right: 5px;
&:last-of-type {
margin-right: 0;
}
}
}
// Smush button loading icon.
#ngg-listimages,
.column-smushit {
.spinner {
float: none;
&.visible {
visibility: visible;
}
}
}
// Stats table.
.sui-smush-media {
table.wp-smush-stats-holder {
width: 100%;
border: 1px solid #E6E6E6;
border-radius: 4px;
margin-top: 6px;
border-collapse: collapse;
border-spacing: 0;
thead {
th.smush-stats-header {
padding: 8px 10px;
border-bottom: 1px solid #E6E6E6 !important;
color: #32373D;
font-size: 12px;
font-weight: bold;
letter-spacing: -0.23px;
line-height: 16px;
text-align: left;
}
}
tr {
border: 1px solid #E6E6E6;
}
td {
overflow-wrap: break-word;
vertical-align: middle;
padding: 8px 10px;
color: #555555;
font-size: 11px;
letter-spacing: -0.21px;
line-height: 16px;
border-bottom: 1px solid #E6E6E6;
&:first-of-type {
max-width: 110px;
font-weight: 500;
}
}
}
}
// Override !important set from WordPress.
#the-list {
.sui-smush-media {
thead {
th.smush-stats-header {
border-bottom: 1px solid #E6E6E6 !important;
}
}
}
}
// Responsive table for list mode.
@media screen and (max-width: 1024px) {
.wp-list-table .smushit {
table.wp-smush-stats-holder {
th {
display: table-cell;
box-sizing: border-box;
}
tr td {
word-wrap: break-word;
display: table-cell !important;
&:first-child {
border-right: none;
box-sizing: border-box;
}
&:last-child {
box-sizing: border-box;
float: none;
overflow: visible;
}
}
}
}
}
// NextGen Integration.
.iedit .wp-smush-action,
.iedit .smush-stats-details {
font-size: 11px;
}
/*NextGen Gallery stats*/
#ngg-listimages {
table.wp-smush-stats-holder {
table-layout: fixed;
border: 1px solid lightgray;
border-collapse: collapse;
width: 100%;
td,
th {
border: 1px solid #CECECE;
}
}
.column-7 {
width: 300px;
}
.spinner {
width: auto;
padding-left: 30px;
}
}
/** NextGen Gallery tr height, to show the progress bar properly for alternate rows **/
.alternate.iedit {
height: 120px;
}
/** Allows to click on button, otherwise row-actions from NextGen interferes **/
.wp-smush-nextgen-send {
position: relative;
z-index: 2;
}