diff --git a/composer.json b/composer.json index 509d7b10..d3401c6c 100644 --- a/composer.json +++ b/composer.json @@ -110,9 +110,10 @@ "drupal/views_autosubmit": "^1.4", "drupal/views_data_export": "^1.0", "drupal/views_bulk_edit": "^2.6", - "su-soe/soe_basic": "dev-8.x-1.x", - "su-soe/soe_paragraphs": "dev-8.x-1.x", - "su-soe/soe_profile": "dev-8.x-2.x" + "su-sws/stanford_actions": "^8.2", + "su-soe/soe_basic": "^8.1", + "su-soe/soe_paragraphs": "^8.1", + "su-soe/soe_profile": "^8.2" }, "config": { "sort-packages": true, diff --git a/config/sync/block.block.engineering_pagetitle.yml b/config/sync/block.block.engineering_pagetitle.yml index 4610be01..967c57d3 100644 --- a/config/sync/block.block.engineering_pagetitle.yml +++ b/config/sync/block.block.engineering_pagetitle.yml @@ -21,14 +21,7 @@ settings: visibility: request_path: id: request_path - pages: |- - /node* - news* - /people* - /events* - /event-series* - /publications* - /spotlight* + pages: "/node*\r\nnews*\r\n/people*\r\n/events*\r\n/event-series*\r\n/publications*\r\n/spotlight*\r\n/magazine/issue*" negate: true context_mapping: { } response_code: diff --git a/config/sync/views.view.spotlights.yml b/config/sync/views.view.spotlights.yml index 181e2d9e..6445fae4 100644 --- a/config/sync/views.view.spotlights.yml +++ b/config/sync/views.view.spotlights.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.storage.node.su_people_spotlight_quote + - field.storage.node.su_soe_department - field.storage.node.su_spotlight_degrees - field.storage.node.su_spotlight_feature_image - field.storage.node.su_spotlight_person_title @@ -93,6 +94,7 @@ display: view_node: 0 nothing: 0 su_spotlight_degrees: 0 + su_soe_department: 0 separator: '' hide_empty: 0 pattern: card @@ -117,19 +119,24 @@ display: weight: 3 plugin: views_row source: su_spotlight_person_title + 'views_row:su_soe_department': + destination: card_super_headline + weight: 4 + plugin: views_row + source: su_soe_department 'views_row:su_people_spotlight_quote': destination: card_body - weight: 4 + weight: 5 plugin: views_row source: su_people_spotlight_quote 'views_row:view_node': destination: card_link - weight: 5 + weight: 6 plugin: views_row source: view_node 'views_row:nothing': destination: card_cta_label - weight: 6 + weight: 7 plugin: views_row source: nothing pattern_variant: default @@ -552,6 +559,69 @@ display: separator: ', ' field_api_classes: false plugin_id: field + su_soe_department: + id: su_soe_department + table: node__su_soe_department + field: su_soe_department + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: div + element_class: soe--person-title + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field filters: status: value: '1' @@ -620,6 +690,7 @@ display: - user.permissions tags: - 'config:field.storage.node.su_people_spotlight_quote' + - 'config:field.storage.node.su_soe_department' - 'config:field.storage.node.su_spotlight_degrees' - 'config:field.storage.node.su_spotlight_feature_image' - 'config:field.storage.node.su_spotlight_person_title' @@ -836,6 +907,7 @@ display: - user.permissions tags: - 'config:field.storage.node.su_people_spotlight_quote' + - 'config:field.storage.node.su_soe_department' - 'config:field.storage.node.su_spotlight_degrees' - 'config:field.storage.node.su_spotlight_feature_image' - 'config:field.storage.node.su_spotlight_person_title' @@ -1527,6 +1599,7 @@ display: view_node: 0 nothing: 0 su_spotlight_degrees: 0 + su_soe_department: 0 separator: '' hide_empty: 0 pattern: card @@ -1551,19 +1624,24 @@ display: weight: 3 plugin: views_row source: su_spotlight_person_title + 'views_row:su_soe_department': + destination: card_super_headline + weight: 4 + plugin: views_row + source: su_soe_department 'views_row:su_people_spotlight_quote': destination: card_body - weight: 4 + weight: 5 plugin: views_row source: su_people_spotlight_quote 'views_row:view_node': destination: card_link - weight: 5 + weight: 6 plugin: views_row source: view_node 'views_row:nothing': destination: card_cta_label - weight: 6 + weight: 7 plugin: views_row source: nothing pattern_variant: default @@ -1583,6 +1661,7 @@ display: - user.permissions tags: - 'config:field.storage.node.su_people_spotlight_quote' + - 'config:field.storage.node.su_soe_department' - 'config:field.storage.node.su_spotlight_degrees' - 'config:field.storage.node.su_spotlight_feature_image' - 'config:field.storage.node.su_spotlight_person_title' diff --git a/modules/custom/engineering_profile_helper/modules/engineering_magazine/dist/css/engineering_magazine.styles.css b/modules/custom/engineering_profile_helper/modules/engineering_magazine/dist/css/engineering_magazine.styles.css index 5338224f..6d2115f7 100644 --- a/modules/custom/engineering_profile_helper/modules/engineering_magazine/dist/css/engineering_magazine.styles.css +++ b/modules/custom/engineering_profile_helper/modules/engineering_magazine/dist/css/engineering_magazine.styles.css @@ -1 +1 @@ -.soe-magazine__navigation-rotate-down{-webkit-transform-origin:center center;transform-origin:center center;-webkit-transform:rotate(0);transform:rotate(0);-webkit-transition:all .5s linear;transition:all .5s linear}.soe-magazine__navigation-rotate-up{-webkit-transform-origin:center center;transform-origin:center center;-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:all .5s linear;transition:all .5s linear}.block--page-title{display:none}.section-bgcolor--title.section-editorial-content{background:initial;background-color:#00ece9;height:auto;padding:initial;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);width:100vw}.section-bgcolor--title.section-editorial-content .magazine-landing-navbar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.section-bgcolor--title.section-editorial-content .magazine-landing-nav{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100vw;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;background-color:#00ece9;padding:20px}.section-bgcolor--title.section-editorial-content .magazine-landing-nav a{color:#2e2d29;text-decoration:none}.section-bgcolor--title.section-editorial-content .magazine-landing-nav a:hover{font-weight:600;color:#2e2d29}.section-bgcolor--title.section-editorial-content .magazine-landing-nav h2{margin-bottom:0;margin-top:0}.section-bgcolor--title.section-editorial-content .magazine-landing-nav h2 :after{content:"|";font-size:1.3125em;font-weight:600;padding:0 30px;vertical-align:top}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item{font-size:2em;font-weight:600;line-height:1.55em;color:#333;margin-right:1em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item a:active,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item a:focus,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item a:hover{text-decoration:underline}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle{display:inline-block;position:relative;width:25px;height:25px;cursor:pointer;background-color:transparent;background-image:url(/profiles/custom/engineering_profile/themes/engineering/dist/img/caret-down-black.svg);background-position:50%;background-repeat:no-repeat;vertical-align:middle}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=true]:active,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=true]:focus,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=true]:hover{border-top:1px solid #2e2d29;-webkit-box-shadow:none;box-shadow:none}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=false]:active,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=false]:focus,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=false]:hover{border-bottom:1px solid #2e2d29;-webkit-box-shadow:none;box-shadow:none}@media (max-width:991px){.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item{font-size:1.5em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle{width:.5em;height:.5em;background-size:1em}}@media (max-width:767px){.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item{font-size:1em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle{width:.25em;height:.25em;background-size:.75em}}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel{display:none;clear:both;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);width:100vw;background-color:#575757;padding:2em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel .magazine-terms-list{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around;width:75%;margin-left:auto;margin-right:auto}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel .magazine-terms-list .magazine-term{-webkit-box-flex:1;-ms-flex:1 1 25%;flex:1 1 25%;display:inline-block;text-align:center;margin-top:.75em;margin-bottom:.75em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel .magazine-terms-list .magazine-term a{font-size:1em;font-weight:400;color:#fff;text-decoration:none}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel .magazine-terms-list .magazine-term a:hover{text-decoration:underline}.magazine-topics__term-name{width:100%;text-align:center}.magazine-topics__term-name h2{font-size:2.8em;font-weight:600;letter-spacing:0;margin:-9px 0 10px}.hero-curtain{position:relative;z-index:10;display:-webkit-box;display:-ms-flexbox;display:flex}.hero-curtain>*{z-index:10}.hero-curtain .curtain-image{z-index:10;position:absolute;height:100%;width:100%;background-size:cover}.hero-curtain .curtain-image img{-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center;width:100%;height:100vh}.hero-curtain .curtain-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:absolute;background-color:transparent;color:#fff;height:100%;width:100%;z-index:11;text-align:center}.hero-curtain .curtain-content a{text-decoration:none}.hero-curtain .curtain-content h1{display:block;padding:1em;margin:0;color:#2e2d29}.hero-curtain .curtain-content p{color:#fff}.hero-curtain .curtain-content .curtain-content__scroll-text{padding:1rem 2rem}.hero-curtain .curtain-content .scroll-down{color:#fff}.hero-curtain.below-hero{margin-bottom:0!important}.hero-curtain-reveal{position:fixed;top:0}.hero-curtain-reveal.below-hero{position:relative} \ No newline at end of file +.soe-magazine__navigation-rotate-down{-webkit-transform-origin:center center;transform-origin:center center;-webkit-transform:rotate(0);transform:rotate(0);-webkit-transition:all .5s linear;transition:all .5s linear}.soe-magazine__navigation-rotate-up{-webkit-transform-origin:center center;transform-origin:center center;-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:all .5s linear;transition:all .5s linear}.block--page-title{display:none}.section-bgcolor--title.section-editorial-content{background:initial;background-color:#00ece9;height:auto;padding:initial;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);width:100vw}.section-bgcolor--title.section-editorial-content .magazine-landing-navbar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.section-bgcolor--title.section-editorial-content .magazine-landing-nav{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100vw;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;background-color:#00ece9;padding:20px}.section-bgcolor--title.section-editorial-content .magazine-landing-nav a{color:#2e2d29;text-decoration:none}.section-bgcolor--title.section-editorial-content .magazine-landing-nav a:hover{font-weight:600;color:#2e2d29}.section-bgcolor--title.section-editorial-content .magazine-landing-nav h2{margin-bottom:0;margin-top:0}.section-bgcolor--title.section-editorial-content .magazine-landing-nav h2 :after{content:"|";font-size:1.3125em;font-weight:600;padding:0 30px;vertical-align:top}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item{font-size:2em;font-weight:600;line-height:1.55em;color:#333;margin-right:1em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item a:active,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item a:focus,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item a:hover{text-decoration:underline}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle{display:inline-block;position:relative;width:25px;height:25px;cursor:pointer;background-color:transparent;background-image:url(/profiles/custom/engineering_profile/themes/engineering/dist/img/caret-down-black.svg);background-position:50%;background-repeat:no-repeat;vertical-align:middle}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=true]:active,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=true]:focus,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=true]:hover{border-top:1px solid #2e2d29;-webkit-box-shadow:none;box-shadow:none}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=false]:active,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=false]:focus,.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle[aria-expanded=false]:hover{border-bottom:1px solid #2e2d29;-webkit-box-shadow:none;box-shadow:none}@media (max-width:991px){.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item{font-size:1.5em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle{width:.5em;height:.5em;background-size:1em}}@media (max-width:767px){.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item{font-size:1em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav .magazine-landing-nav__item #magazine-landing-nav__topics-toggle{width:.25em;height:.25em;background-size:.75em}}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel{display:none;clear:both;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);width:100vw;background-color:#575757;padding:2em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel .magazine-terms-list{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around;width:75%;margin-left:auto;margin-right:auto}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel .magazine-terms-list .magazine-term{-webkit-box-flex:1;-ms-flex:1 1 25%;flex:1 1 25%;display:inline-block;text-align:center;margin-top:.75em;margin-bottom:.75em}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel .magazine-terms-list .magazine-term a{font-size:1em;font-weight:400;color:#fff;text-decoration:none}.section-bgcolor--title.section-editorial-content .magazine-landing-nav__topics-panel .magazine-terms-list .magazine-term a:hover{text-decoration:underline}.magazine-topics__term-name{width:100%;text-align:center}.magazine-topics__term-name h2{font-size:2.8em;font-weight:600;letter-spacing:0;margin:-9px 0 10px}.hero-curtain{position:relative;z-index:10;display:-webkit-box;display:-ms-flexbox;display:flex}.hero-curtain>*{z-index:10}.hero-curtain .curtain-image{z-index:10;position:absolute;height:100%;width:100%;background-size:cover}.hero-curtain .curtain-image img{-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center;width:100%;height:100vh}.hero-curtain .curtain-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:absolute;background-color:transparent;color:#fff;height:100%;width:100%;z-index:11;text-align:center}.hero-curtain .curtain-content a{text-decoration:none}.hero-curtain .curtain-content h1{display:block;padding:1em;margin:0;color:#2e2d29}.hero-curtain .curtain-content p{color:#fff}.hero-curtain .curtain-content .curtain-content__scroll-text{padding:1rem 2rem}.hero-curtain .curtain-content .scroll-down{color:#fff}.hero-curtain .curtain-content .scroll-down:hover{text-decoration:underline}.hero-curtain.below-hero{margin-bottom:0!important}.hero-curtain-reveal{position:fixed;top:0}.hero-curtain-reveal.below-hero{position:relative} \ No newline at end of file diff --git a/modules/custom/engineering_profile_helper/modules/engineering_magazine/dist/js/engineering_magazine_curtain.script.js b/modules/custom/engineering_profile_helper/modules/engineering_magazine/dist/js/engineering_magazine_curtain.script.js index 6f15098b..228075cb 100644 --- a/modules/custom/engineering_profile_helper/modules/engineering_magazine/dist/js/engineering_magazine_curtain.script.js +++ b/modules/custom/engineering_profile_helper/modules/engineering_magazine/dist/js/engineering_magazine_curtain.script.js @@ -1,2 +1,2 @@ -!function(r){var t={};function n(e){if(t[e])return t[e].exports;var o=t[e]={i:e,l:!1,exports:{}};return r[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=r,n.c=t,n.d=function(e,o,r){n.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(o,e){if(1&e&&(o=n(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var t in o)n.d(r,t,function(e){return o[e]}.bind(null,t));return r},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,"a",o),o},n.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},n.p="",n(n.s=1)}([,function(e,o){var a,n;a=jQuery,(n=Drupal).behaviors.engineeringMagazineCurtain={attach:function(o,e){var t=["hero-curtain","hero-static"];function r(){var r=a(window).height();a.each(t,function(e,o){a(".hero-curtain").height(r).css("overflow","hidden")}),a(".hero-curtain").css("margin-bottom",r)}a(window).scroll(function(){var e=a(".hero-curtain");0-a(e).height()+a(window).scrollTop()<0?(a(".hero-curtain-reveal").removeClass("below-hero"),a(e).removeClass("below-hero")):(a(".hero-curtain-reveal").addClass("below-hero"),a(e).addClass("below-hero"),a(e).css("padding-bottom",0))}),a.each(t,function(e,i){a("."+i,o).each(function(e,o,r){var t=a(this).detach().prependTo("body"),n=a("