{"id":4999,"date":"2017-01-31T16:17:51","date_gmt":"2017-01-31T16:17:51","guid":{"rendered":"http:\/\/tommustester.wpengine.com\/?page_id=106"},"modified":"2017-01-31T16:17:51","modified_gmt":"2017-01-31T16:17:51","slug":"dropdowns","status":"publish","type":"page","link":"https:\/\/psdev2.com\/blog\/elements\/dropdowns","title":{"rendered":"Elements &#8211; Dropdowns"},"content":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero image=&#8221;38&#8243;][vc_column_text]<\/p>\n<h1>Dropdowns<\/h1>\n<p class=\"lead\">These modular elements can be readily used and customized across pages and in different blocks.<\/p>\n<hr class=\"short\" \/>\n<p>Explore all of Stack&#8217;s modular elements<br \/>\nat the\u00a0<a href=\"\/elements\/\">Element Index Page \u2192<\/a>[\/vc_column_text][\/stack_hero][\/vc_column][\/vc_row][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;1\/2&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Basic Dropdown<\/h4>\n<p>Stack&#8217;s dropdowns can serve a number of purposes, from navigation menu to multi-choice button. There are a number of ways to present a dropdown, but all follow the same markup pattern of a parent <strong>.dropdown<\/strong> element with a <strong>.dropdown__trigger<\/strong> which when clicked, will display the dropdown housed inside the <strong>.dropdown__container<\/strong> element.<\/p>\n<p>The width of the dropdowns are controlled using the Bootstrap column classes.[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;1\/2&#8243;][stack_dropdown title=&#8221;Trigger Dropdown&#8221;][vc_column_text]I&#8217;m the content inside the <strong>.dropdown__content<\/strong>\u00a0element. My width is controlled using the Bootstrap column classes. You can read more about those\u00a0<a href=\"\/elements\/grid-system\/\">here<\/a>[\/vc_column_text][\/stack_dropdown][\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;1\/2&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Menu Dropdown<\/h4>\n<p>Easily create dropdown menus by nesting <strong>.menu-vertical<\/strong> elements inside the dropdowns.[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;1\/2&#8243;][stack_dropdown column_width=&#8221;2&#8243; title=&#8221;Trigger Dropdown&#8221;][vc_column_text]<\/p>\n<h5>Select an option<\/h5>\n<ul class=\"menu-vertical\">\n<li><a href=\"#\">Create<\/a><\/li>\n<li><a href=\"#\">Manage<\/a><\/li>\n<li><a href=\"#\">Share<\/a><\/li>\n<li><a href=\"#\">Logout<\/a><\/li>\n<\/ul>\n<p>[\/vc_column_text][\/stack_dropdown][\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;1\/2&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Hover Dropdown<\/h4>\n<p>By default, dropdowns are triggered by clicking the <strong>.dropdown__trigger<\/strong> element. If you would prefer the hover to react upon hovering, you can add the class <strong>.dropdown&#8211;hover<\/strong> to the <strong>.dropdown<\/strong> element.<\/p>\n<p>If you would prefer <em>all<\/em> dropdowns to react to hover instead of click, add the class <strong>.dropdowns&#8211;hover<\/strong> to the <strong>&lt;body&gt;<\/strong> element.[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;1\/2&#8243;][stack_dropdown column_width=&#8221;2&#8243; title=&#8221;Dropdown Menu&#8221; custom_css_class=&#8221;dropdown&#8211;hover&#8221;][vc_column_text]<\/p>\n<h5>Select an option<\/h5>\n<ul class=\"menu-vertical\">\n<li><a href=\"#\">Create<\/a><\/li>\n<li><a href=\"#\">Manage<\/a><\/li>\n<li><a href=\"#\">Share<\/a><\/li>\n<li><a href=\"#\">Logout<\/a><\/li>\n<\/ul>\n<p>[\/vc_column_text][\/stack_dropdown][\/vc_column][\/vc_row][\/vc_section][vc_row][vc_column][vc_column_text]<\/p>\n<h2 style=\"text-align: center;\">See dropdown elements in action<\/h2>\n<p style=\"text-align: center;\"><a class=\"btn btn--primary type--uppercase\" href=\"#\">VIEW NAVIGATION SECTIONS<\/a><\/p>\n<p class=\"type--fine-print\" style=\"text-align: center;\">or try the\u00a0<a href=\"http:\/\/tommusrhodus.theme-demo.net\/stackwordpresstheme\" target=\"_blank\">admin demo \u2197<\/a><\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero image=&#8221;38&#8243;][vc_column_text] Dropdowns These modular elements can be readily used and customized across pages and in different blocks. Explore all of Stack&#8217;s modular elements at the\u00a0Element Index Page \u2192[\/vc_column_text][\/stack_hero][\/vc_column][\/vc_row][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;1\/2&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text] Basic Dropdown Stack&#8217;s dropdowns can serve a number of purposes, from navigation menu to multi-choice button. There are a [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":33,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages\/4999"}],"collection":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/comments?post=4999"}],"version-history":[{"count":0,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages\/4999\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages\/33"}],"wp:attachment":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/media?parent=4999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}