Changeset 27510
- Timestamp:
- 03/12/2014 03:06:11 AM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r27494 r27510 1092 1092 <input type="submit" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit"> 1093 1093 </div> 1094 <div id="wp-link-cancel"> 1095 <a class="submitdelete deletion" href="#"><?php _e( 'Cancel' ); ?></a> 1096 </div> 1094 1097 </div> 1095 1098 </form> -
trunk/src/wp-includes/css/editor.css
r27496 r27510 1154 1154 } 1155 1155 1156 #wp-link-cancel { 1157 line-height: 25px; 1156 #wp-link-cancel { 1157 line-height: 25px; 1158 1158 } 1159 1159 … … 1168 1168 } 1169 1169 1170 @media screen and ( max-width: 782px ), ( max-height: 520px ) { 1171 1172 #wp-link-wrap, 1173 #wp-link-wrap.search-panel-visible { 1170 @media screen and ( max-width: 782px ) { 1171 #wp-link-wrap { 1172 height: 270px; 1173 margin-top: -135px; 1174 } 1175 1176 #wp-link-wrap.search-panel-visible .query-results { 1177 top: 235px; 1178 } 1179 } 1180 1181 @media screen and ( max-width: 620px ) { 1182 #wp-link-wrap { 1174 1183 width: auto; 1175 height: auto; 1176 margin: 0; 1177 top: 10px; 1184 margin-left: 0; 1178 1185 left: 10px; 1179 1186 right: 10px; 1187 max-width: 600px; 1188 } 1189 } 1190 1191 @media screen and ( max-height: 520px ) { 1192 #wp-link-wrap.search-panel-visible { 1193 height: auto; 1194 margin-top: 0; 1195 top: 10px; 1180 1196 bottom: 10px; 1181 max-width: 600px; 1182 margin: auto; 1197 } 1198 1199 .search-panel-visible #link-selector { 1200 overflow: auto; 1201 } 1202 1203 .search-panel-visible #search-panel .query-results { 1204 position: static; 1205 } 1206 } 1207 1208 @media screen and ( max-height: 290px ) { 1209 #wp-link-wrap { 1210 height: auto; 1211 margin-top: 0; 1212 top: 10px; 1213 bottom: 10px; 1183 1214 } 1184 1215 1185 1216 #link-selector { 1186 1217 overflow: auto; 1187 height: calc(100% - 88px); 1188 padding-bottom: 0; 1189 } 1190 1191 #wp-link #search-panel { 1192 display: block; 1193 } 1194 1195 #wp-link-search-toggle { 1196 display: none; 1218 height: calc(100% - 92px); 1219 padding-bottom: 10px; 1197 1220 } 1198 1221 … … 1200 1223 position: static; 1201 1224 } 1202 1203 1225 } 1204 1226 -
trunk/src/wp-includes/js/wplink.js
r27494 r27510 39 39 wpLink.update(); 40 40 }); 41 inputs.close.add( inputs.backdrop ). click( function( event ) {41 inputs.close.add( inputs.backdrop ).add( '#wp-link-cancel a' ).click( function( event ) { 42 42 event.preventDefault(); 43 43 wpLink.close();
Note: See TracChangeset
for help on using the changeset viewer.