Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions assets/css/meta-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,62 @@
* Styles for the NPR Story API meta box
*/
#ds_npr_document_meta ul ul {
margin-top: 6px;
argin-top: 6px;
}
#ds_npr_document_meta ul ul ul {
padding-left: 24px;
padding-left: 24px;
}
#nprone-expiry {
border-top: 1px solid #eee;
padding-top: 6px;
border-top: 1px solid #eee;
padding-top: 6px;
}
#nprone-expiry-form,
#nprone-expiry-form select,
#nprone-expiry-form input {
font-size: 12px;
padding-left: 0;
padding-right: 0;
font-size: 12px;
padding-left: 0;
padding-right: 0;
}
#nprone-expiry-form .row {
clear: both;
margin-top: 6px;
line-height: 28px;
clear: both;
margin-top: 6px;
line-height: 28px;
}
button.link-effect {
border: none;
color: #0073aa;
text-decoration: underline;
border: none;
color: #0073aa;
text-decoration: underline;
}
#nprone-expiry-month {
vertical-align: baseline;
margin: 0;
vertical-align: baseline;
margin: 0;
}

/*
* Minimal Datepicker styles
*/
#ui-datepicker-div {
background: #fff;
border: 1px solid #e5e5e5;
padding: 6px;
box-shadow: 0 3px 5px rgba(0,0,0,.2);
background: #fff;
border: 1px solid #e5e5e5;
padding: 6px;
box-shadow: 0 3px 5px rgba(0,0,0,.2);
}
.ui-datepicker .ui-datepicker-header {
border: none;
order: none;
}
.ui-datepicker-calendar .ui-state-default {
text-decoration: none;
background-color: transparent;
text-decoration: none;
background-color: transparent;
}
.ui-datepicker .ui-datepicker-current-day a {
border-color: #0073aa #006799 #006799;
background: #0085ba;
color: #fff;
font-weight: bold;
border-color: #0073aa #006799 #006799;
background: #0085ba;
color: #fff;
font-weight: bold;
}
.ui-datepicker .ui-datepicker-today a {
background: #fff;
border: 1px solid #c5c5c5;
font-weight: bold;
color: #000;
background: #fff;
border: 1px solid #c5c5c5;
font-weight: bold;
color: #000;
}
16 changes: 8 additions & 8 deletions assets/js/meta-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ document.addEventListener('DOMContentLoaded', () => {
d.setMinutes(timeinput[1]);

var string = d.toLocaleString("en-us", { month: "short" })
+ " "
+ d.getDate()
+ ", "
+ d.getFullYear()
+ " @ "
+ d.getHours()
+ ":"
+ (d.getMinutes() < 10? '0' : '') + d.getMinutes();
+ " "
+ d.getDate()
+ ", "
+ d.getFullYear()
+ " @ "
+ d.getHours()
+ ":"
+ (d.getMinutes() < 10? '0' : '') + d.getMinutes();

$( '#nprone-expiry-display time' ).text( string );
});
Expand Down
Loading