CSS-only zebra-striping for media upload.
This will only work in modern browsers, but it's the only way to get zebra-striping for this because new elements will be inserted in the DOM using jQuery.
This commit is contained in:
parent
41c4c7ec37
commit
2f566a3c25
@ -12,7 +12,7 @@
|
||||
{$media.form_hidden}
|
||||
|
||||
<div id="uploads">
|
||||
<div id="upload_form_1">
|
||||
<div id="upload_form_1" class="upload_form">
|
||||
<div class="form_field clearfix">
|
||||
<label for="userfile_1" class="uploadform_userfile_label">{$CONST.ENTER_MEDIA_UPLOAD}</label>
|
||||
<input id="userfile_1" class="uploadform_userfile check_input" name="serendipity[userfile][1]" type="file">
|
||||
|
@ -1337,10 +1337,15 @@ fieldset p,
|
||||
|
||||
.comment_data,
|
||||
.configuration_group h3,
|
||||
form > .button_link:first-of-type {
|
||||
form > .button_link:first-of-type,
|
||||
.upload_form > .form_field:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.upload_form > .form_field:first-child {
|
||||
padding-top: .75em;
|
||||
}
|
||||
|
||||
.installer .configuration_group h3 {
|
||||
margin-top: 1.16667em;
|
||||
}
|
||||
@ -1430,6 +1435,7 @@ form > .button_link:first-of-type {
|
||||
|
||||
.zebra_list,
|
||||
.option_list,
|
||||
#uploads,
|
||||
.configure_plugin .odd:first-of-type,
|
||||
#categories .odd,
|
||||
#categories .even,
|
||||
@ -1446,7 +1452,8 @@ form > .button_link:first-of-type {
|
||||
.configure_plugin .odd,
|
||||
.configure_plugin .even,
|
||||
#categories,
|
||||
#serendipity_image_folders {
|
||||
#serendipity_image_folders,
|
||||
.upload_form {
|
||||
border-bottom: 1px solid #aaa;
|
||||
}
|
||||
|
||||
@ -1461,7 +1468,9 @@ form > .button_link:first-of-type {
|
||||
.theme_options .odd,
|
||||
.configure_plugin .odd,
|
||||
#categories .odd,
|
||||
#serendipity_image_folders .odd {
|
||||
#serendipity_image_folders .odd,
|
||||
.upload_form:nth-child(odd),
|
||||
.upload_form:nth-child(odd) input[type="file"] {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user