| 1 |
/** |
| 2 |
* WP-Members Admin Styles CSS |
| 3 |
* |
| 4 |
* CSS for the WP-Members admin panels |
| 5 |
* |
| 6 |
* This file is part of the WP-Members plugin by Chad Butler |
| 7 |
* You can find out more about this plugin at https://rocketgeek.com |
| 8 |
* Copyright (c) 2006-2026 Chad Butler |
| 9 |
* WP-Members(tm) is a trademark of butlerblog.com |
| 10 |
* |
| 11 |
* @package WP-Members |
| 12 |
* @author Chad Butler |
| 13 |
* @copyright 2006-2026 |
| 14 |
*/ |
| 15 |
|
| 16 |
|
| 17 |
.wpmem_tbl_drag { |
| 18 |
background:#fffbcc; |
| 19 |
font-weight: bold; |
| 20 |
border: 1px solid #990000; |
| 21 |
} |
| 22 |
|
| 23 |
.column-wpmem_block { |
| 24 |
width: 80px; |
| 25 |
} |
| 26 |
|
| 27 |
#addfieldform li, |
| 28 |
#editfieldform li, |
| 29 |
#updatesettings li { |
| 30 |
padding: 5px 0; |
| 31 |
} |
| 32 |
|
| 33 |
#addfieldform label, |
| 34 |
#editfieldform label, |
| 35 |
#updatesettings label { |
| 36 |
float:left; |
| 37 |
width: 166px; |
| 38 |
clear: both; |
| 39 |
display: block; |
| 40 |
} |
| 41 |
|
| 42 |
#addfieldform .add-field-indent, |
| 43 |
#editfieldform .add-field-indent { |
| 44 |
margin-left: 165px; |
| 45 |
} |
| 46 |
|
| 47 |
#fields_postbox, |
| 48 |
#add_field_postbox { |
| 49 |
min-width:950px; |
| 50 |
} |
| 51 |
|
| 52 |
.req { |
| 53 |
color: #f00; |
| 54 |
} |
| 55 |
|
| 56 |
.settings_page_wpmem-settings #the-list { |
| 57 |
cursor: move; |
| 58 |
} |
| 59 |
#sort, #edit { |
| 60 |
width: 30px; |
| 61 |
} |
| 62 |
|
| 63 |
#wpmem_block input { |
| 64 |
vertical-align: -webkit-baseline-middle; |
| 65 |
margin: 0 0 8px 0; |
| 66 |
} |
| 67 |
#wpmem_block label { |
| 68 |
margin: 0 0 0 8px; |
| 69 |
} |
| 70 |
#wpmem_ok_block_status { |
| 71 |
margin: 5px 0 0 0; |
| 72 |
} |
| 73 |
#wpmem_post_block_status { |
| 74 |
font-weight: 600; |
| 75 |
} |
| 76 |
#wpmem_post_icon_0 { |
| 77 |
color: red; |
| 78 |
} |
| 79 |
#wpmem_post_icon_1 { |
| 80 |
color: green; |
| 81 |
} |
| 82 |
#wpmem_post_icon_2 { |
| 83 |
color: black; |
| 84 |
} |
| 85 |
#wpmem_product_enabled { |
| 86 |
color: green; |
| 87 |
} |
| 88 |
#s2id__wpmem_products, |
| 89 |
.select2-search-field, |
| 90 |
#_wpmem_products { |
| 91 |
width: 100%; |
| 92 |
} |
| 93 |
|
| 94 |
/** User Profile Tabs **/ |
| 95 |
#wpmem_user_profile_tabs { |
| 96 |
padding: 0px; |
| 97 |
background: none; |
| 98 |
border-width: 0px; |
| 99 |
} |
| 100 |
#wpmem_user_profile_tabs .ui-tabs-nav { |
| 101 |
padding-left: 0px; |
| 102 |
background: transparent; |
| 103 |
border-width: 0px 0px 1px 0px; |
| 104 |
-moz-border-radius: 0px; |
| 105 |
-webkit-border-radius: 0px; |
| 106 |
border-radius: 0px; |
| 107 |
} |
| 108 |
#wpmem_user_profile_tabs .ui-tabs-panel { |
| 109 |
background: #fff; |
| 110 |
border-width: 0px 1px 1px 1px; |
| 111 |
} |
| 112 |
#wpmem_user_profile_tabs .ui-state-active { |
| 113 |
border: transparent; |
| 114 |
background: var(--wp-admin-theme-color); |
| 115 |
} |
| 116 |
#wpmem_user_profile_tabs .ui-state-active a { |
| 117 |
color: #fff; |
| 118 |
} |
| 119 |
|
| 120 |
#wpmem_product_fixed_period_select label, |
| 121 |
#wpmem_product_fixed_period_select input, |
| 122 |
#wpmem_product_no_gap, |
| 123 |
#wpmem_product_fixed_period { |
| 124 |
margin-top: 10px; |
| 125 |
margin-left: 24px; |
| 126 |
} |
| 127 |
|
| 128 |
#updatesettings a { |
| 129 |
text-decoration:none; |
| 130 |
} |
| 131 |
#updatesettings a:hover { |
| 132 |
color: black; |
| 133 |
} |
| 134 |
|
| 135 |
#adduser .form-field input[type="checkbox"], |
| 136 |
#createuser .form-field input[type="checkbox"] { |
| 137 |
width: initial; |
| 138 |
} |
| 139 |
|
| 140 |
.wpmem-user-table-membership { |
| 141 |
border-bottom:1px solid #999; |
| 142 |
} |
| 143 |
|
| 144 |
#wpmem-fields .column-wcchkout, |
| 145 |
#wpmem-fields .column-wcaccount, |
| 146 |
#wpmem-fields .column-wcupdate, |
| 147 |
#wpmem-fields .column-display { |
| 148 |
width: 96px; |
| 149 |
padding-left: 0px; |
| 150 |
} |
| 151 |
#wpmem-fields .column-req { |
| 152 |
width: 78px; |
| 153 |
padding-left: 0px; |
| 154 |
} |
| 155 |
#wpmem-fields .column-profile, |
| 156 |
#wpmem-fields .column-userscrn, |
| 157 |
#wpmem-fields .column-usearch, |
| 158 |
#wpmem-fields .column-usersort { |
| 159 |
width: 62px; |
| 160 |
padding-left: 0px; |
| 161 |
} |
| 162 |
#wpmem-fields .column-edit { |
| 163 |
width: 20px; |
| 164 |
} |
| 165 |
#wpmem-fields .column-display input, |
| 166 |
#wpmem-fields .column-req input, |
| 167 |
#wpmem-fields .column-profile input, |
| 168 |
#wpmem-fields .column-wcaccount input, |
| 169 |
#wpmem-fields .column-wcupdate input, |
| 170 |
#wpmem-fields .column-wcchkout input, |
| 171 |
#wpmem-fields .column-userscrn input, |
| 172 |
#wpmem-fields .column-usearch input { |
| 173 |
margin-left: 0px; |
| 174 |
} |
| 175 |
|
| 176 |
/** For membership column */ |
| 177 |
.column-wpmem_product{ |
| 178 |
min-width:140px; |
| 179 |
width: 12%; |
| 180 |
} |
| 181 |
|
| 182 |
.column-dropin_version, |
| 183 |
.column-dropin_enabled { |
| 184 |
width: 60px; |
| 185 |
} |
| 186 |
|
| 187 |
/** tooltip styles **/ |
| 188 |
|
| 189 |
/* Add this attribute to the element that needs a tooltip */ |
| 190 |
[data-tooltip] { |
| 191 |
position: relative; |
| 192 |
z-index: 2; |
| 193 |
cursor: pointer; |
| 194 |
} |
| 195 |
|
| 196 |
/* Hide the tooltip content by default */ |
| 197 |
[data-tooltip]:before, |
| 198 |
[data-tooltip]:after { |
| 199 |
visibility: hidden; |
| 200 |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; |
| 201 |
filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0); |
| 202 |
opacity: 0; |
| 203 |
pointer-events: none; |
| 204 |
} |
| 205 |
|
| 206 |
/* Position tooltip above the element */ |
| 207 |
[data-tooltip]:before { |
| 208 |
position: absolute; |
| 209 |
bottom: 150%; |
| 210 |
left: 50%; |
| 211 |
margin-bottom: 5px; |
| 212 |
margin-left: -80px; |
| 213 |
padding: 7px; |
| 214 |
width: 160px; |
| 215 |
-webkit-border-radius: 3px; |
| 216 |
-moz-border-radius: 3px; |
| 217 |
border-radius: 3px; |
| 218 |
background-color: #000; |
| 219 |
background-color: hsla(0, 0%, 20%, 0.9); |
| 220 |
color: #fff; |
| 221 |
content: attr(data-tooltip); |
| 222 |
text-align: center; |
| 223 |
font-size: 14px; |
| 224 |
line-height: 1.2; |
| 225 |
} |
| 226 |
|
| 227 |
/* Triangle hack to make tooltip look like a speech bubble */ |
| 228 |
[data-tooltip]:after { |
| 229 |
position: absolute; |
| 230 |
bottom: 150%; |
| 231 |
left: 50%; |
| 232 |
margin-left: -5px; |
| 233 |
width: 0; |
| 234 |
border-top: 5px solid #000; |
| 235 |
border-top: 5px solid hsla(0, 0%, 20%, 0.9); |
| 236 |
border-right: 5px solid transparent; |
| 237 |
border-left: 5px solid transparent; |
| 238 |
content: " "; |
| 239 |
font-size: 0; |
| 240 |
line-height: 0; |
| 241 |
} |
| 242 |
|
| 243 |
/* Show tooltip content on hover */ |
| 244 |
[data-tooltip]:hover:before, |
| 245 |
[data-tooltip]:hover:after { |
| 246 |
visibility: visible; |
| 247 |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; |
| 248 |
filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100); |
| 249 |
opacity: 1; |
| 250 |
} |