diff --git a/core/modules/node/node.admin.css b/core/modules/node/node.admin.css index 5777b1f..c96e6fb 100644 --- a/core/modules/node/node.admin.css +++ b/core/modules/node/node.admin.css @@ -10,3 +10,279 @@ .revision-current { background: #ffc; } + +/** + * Styles for the new node add/edit form. + */ +#edit-primary { + float: left; + width: 66%; + margin-top: 3em; +} + +.overlay { + background: #f00; +} + +#edit-secondary { + float: left; + width: 33%; + min-height: 1000px; + position: relative; + background-color: #FAFAFA; + top: 0; + right: -20px; + margin-left: 1%; + padding-top: 0; + background: -webkit-gradient(linear, left top, right top, from(#ebebeb), to(#fafafa)); + background: -webkit-linear-gradient(left, #ebebeb, #fafafa); + background: -moz-linear-gradient(left, #ebebeb, #fafafa); + background: -ms-linear-gradient(left, #ebebeb, #fafafa); + background: -o-linear-gradient(left, #ebebeb, #fafafa); +} + +#edit-secondary fieldset .fieldset-legend { + margin-top: 0.9em; +} + +#edit-secondary .node-summary { + margin: 15px; +} + +#edit-secondary .button-duplicate { + margin-left: 10px; +} + +.form-actions { + clear: both; +} + +.description { + font-style: italic; + font-family: serif; +} + +#edit-title { + width: 100%; +} + +fieldset#edit-additional-settings { + padding: 0; + margin: 0; + /* border-top:1px solid #dedede; */ + border-bottom:1px solid #fdfdfd; + border-left:0px; + border-right:0px; + text-shadow: 0px 1px 0px rgba(255, 255, 255, .75); +} + +#edit-additional-settings fieldset.collapsed { + border-top:1px solid #fdfdfd; + border-bottom:1px solid #dedede; + border-left:0px; + border-right:0px; + background-color: transparent; + -moz-box-shadow: inset 0 0 0px #000000; + -webkit-box-shadow: inset 0 0 0px #000000; + box-shadow: inset 0 0 0px #000000; +} + +#edit-additional-settings fieldset { + padding: 3em 0 0 0; + background-color: #e2e2e2; + -moz-box-shadow: inset 0 0 10px #ccc; + -webkit-box-shadow: inset 0 0 10px #ccc; + box-shadow: inset 0 0 10px #ccc; +} + +.fieldset-legend .summary { + display: none; +} + +.js fieldset.collapsible > legend .fieldset-legend { + background: url(../../misc/menu-expanded.png) 90% 65% no-repeat; /* LTR */ + padding-left: 15px; /* LTR */ + display: block; + width: 100%; +} +.js fieldset.collapsed > legend .fieldset-legend { + background-image: url(../../misc/menu-collapsed.png); /* LTR */ + background-position: 90% 65%; /* LTR */ + display: block; + width: 100%; +} + +.js fieldset.collapsed > legend .fieldset-legend a, +.js fieldset.collapsible > legend .fieldset-legend a { + display: block; + text-transform: none; + font-weight: bold; + width: 95%; +} + +.js fieldset.collapsed > legend .fieldset-legend a { + font-weight: normal; +} + +fieldset .form-wrapper { + margin: 0; +} + +#edit-additional-settings, #edit-additional-settings > div.fieldset-wrapper { + padding: 0; +} + +.node-form { + color: #464646; +} + +ul.tips, div.description, .form-item div.description { + color: #464646; +} + +.page-node-add #overlay-content, +.page-node-edit #overlay-content { + padding: 0; +} + +.page-node-add #branding, +.page-node-edit #branding { + position: absolute; +} + +.page-node-edit #help { + margin-top: 0; +} + +.overlay #page { + padding: 0 ; + background: none; +} + +#edit-path-alias { + width: 90%; +} + +.node-summary { + margin-top: 0; + padding-top: 0; + margin-bottom: 10px; +} + +.node-summary p { + margin-top: -10px; + padding-top: 0; + font-size: 90%; +} + +.node-summary ul, .node-summary li { + list-style: none; + margin-left: -20px; +} + +.node-form .node-actions { + margin: 20px 0; + padding: 10px; +} + +.node-form .node-actions input.form-submit { + min-width: 135px; + margin: 0 10px 0 0; + padding: 6px 0; + border: 1px solid #c8c8c8; + -moz-border-radius: 3px; + border-radius: 3px; + background: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#e0e0e0)); + background: -webkit-linear-gradient(top, #fefefe, #e0e0e0); + background: -moz-linear-gradient(top, #fefefe, #e0e0e0); + background: -ms-linear-gradient(top, #fefefe, #e0e0e0); + background: -o-linear-gradient(top, #fefefe, #e0e0e0); +} + +.node-form .node-actions input#edit-submit { + color: white; + border-color: #3974ae; + background: -webkit-gradient(linear, left top, left bottom, from(#4fa0ea), to(#3974ae)); + background: -webkit-linear-gradient(top, #4fa0ea, #3974ae); + background: -moz-linear-gradient(top, #4fa0ea, #3974ae); + background: -ms-linear-gradient(top, #4fa0ea, #3974ae); + background: -o-linear-gradient(top, #4fa0ea, #3974ae); + text-shadow: 0px 1px 0px rgba(0, 0, 0, .25); +} + +.node-form input.form-autocomplete, +.node-form input.form-text, +.node-form input.form-tel, +.node-form input.form-email, +.node-form input.form-url, +.node-form input.form-search, +.node-form textarea.form-textarea, +.node-form select.form-select { + padding: 10px; + font-size: 1.1em; + color: #424242; + border: 1px solid #c8c8c8; + font-family: serif; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + background: -webkit-gradient(linear, left top, left bottom, from(#ececec), to(#fafafa)); + background: -webkit-linear-gradient(top, #ececec, #fafafa); + background: -moz-linear-gradient(top, #ececec, #fafafa); + background: -ms-linear-gradient(top, #ececec, #fafafa); + background: -o-linear-gradient(top, #ececec, #fafafa); +} + +.js .node-form input.form-autocomplete { + background-position: 100% 0; +} +.js .node-form input.throbbing { + background-position: 100% 0; +} + +.node-form input.form-autocomplete:focus, +.node-form input.form-text:focus, +.node-form input.form-tel:focus, +.node-form input.form-email:focus, +.node-form input.form-url:focus, +.node-form input.form-search:focus, +.node-form textarea.form-textarea:focus, +.node-form select.form-select:focus { + padding: 9px; + border-width: 2px; + border-color: #c8c8c8; + outline: none; + -webkit-transition: none; + -moz-transition: none; + transition: none; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} + +.node-form .form-item label { + margin-bottom: 10px; + font-size: 1.2em; +} + +#edit-revision-information { + border: none; + background: -webkit-gradient(linear, left top, right top, from(#ebebeb), to(#fafafa)); + background: -webkit-linear-gradient(left, #ebebeb, #fafafa); + background: -moz-linear-gradient(left, #ebebeb, #fafafa); + background: -ms-linear-gradient(left, #ebebeb, #fafafa); + background: -o-linear-gradient(left, #ebebeb, #fafafa); + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} + +fieldset#edit-revision-information { + padding: 0 0 0 0; + margin-top: -10px; + background-color: #e2e2e2; + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; + border: none; +} \ No newline at end of file diff --git a/core/modules/node/node.pages.inc b/core/modules/node/node.pages.inc index 4e94b26..17fcb38 100644 --- a/core/modules/node/node.pages.inc +++ b/core/modules/node/node.pages.inc @@ -32,6 +32,7 @@ function node_add_page() { // Bypass the node/add listing if only one content type is available. if (count($content) == 1) { $item = array_shift($content); + drupal_goto($item['href']); } return theme('node_add_list', array('content' => $content)); @@ -118,6 +119,15 @@ function node_form_validate($form, &$form_state) { function node_form($form, &$form_state, $node) { global $user; + // Wrap main form components in a div + $form['edit_primary'] = array( + '#type' => 'markup', + '#prefix' => '
Last saved ' . format_date($node->changed) . '
'; + $node_summary .= '