{"id":46025,"date":"2023-01-07T15:49:12","date_gmt":"2023-01-07T15:49:12","guid":{"rendered":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/?p=46025"},"modified":"2023-01-07T15:50:07","modified_gmt":"2023-01-07T15:50:07","slug":"oxygen-menu-element-with-tailwind-css","status":"publish","type":"post","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/oxygen-menu-element-with-tailwind-css\/","title":{"rendered":"Oxygen Menu element with Tailwind CSS"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Style Oxygen Navigation Elements with Tailwind CSS\" width=\"500\" height=\"281\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/www.youtube.com\/embed\/09DhwQRvJcc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre title=\"Global CSS Tab\" class=\"wp-block-code\"><code lang=\"css\" class=\"language-css\">@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer components {\n\n    #menu-main{                 @apply hidden md:flex;    }\n    #menu-main .menu-item a{    @apply bg-slate-100 hover:bg-slate-200 mx-4 px-4 py-2;    }\n\n    \/* Menu toggle *******************************************************\/ \n    .oxy-menu-toggle{               @apply md:hidden;    }\n    .oxy-nav-menu-hamburger{        @apply w-10 h-8 flex justify-between flex-col;    }\n    .oxy-nav-menu-hamburger-line{   @apply h-1.5 bg-slate-600;    }\n    \/* End of Menu toggle *************************************************\/ \n\n\n    \/* Menu is open *******************************************************\/ \n    .oxy-nav-menu-open {                            @apply fixed bottom-0 left-0 right-0 top-0 flex flex-col bg-white z-50; }\n    .oxy-nav-menu-open #menu-main {                 @apply flex flex-col my-16 justify-items-center text-center; }\n    .oxy-nav-menu-open #menu-main li {              @apply my-2 flex; }\n    .oxy-nav-menu-open #menu-main li a {            @apply w-full; }\n    .oxy-nav-menu-open .oxy-nav-menu-hamburger {    @apply ml-auto; }\n    .oxy-nav-menu-open .oxy-menu-toggle {           @apply  p-8; }\n    \/* End of Menu is open *************************************************\/ \n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":46580,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Oxygen Menu element with Tailwind CSS - Code DPlugins","description":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/youtu.be\/09DhwQRvJcc"},"_slim_seo_primary_term_category":0,"_slim_seo_primary_term_post_tag":0,"footnotes":""},"categories":[7,78],"tags":[],"dpc_library":[],"class_list":["post-46025","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oxygen","category-tailwind"],"_links":{"self":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/46025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/comments?post=46025"}],"version-history":[{"count":0,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/46025\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media\/46580"}],"wp:attachment":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media?parent=46025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/categories?post=46025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/tags?post=46025"},{"taxonomy":"dpc_library","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/dpc_library?post=46025"}],"curies":[{"name":"wp","href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}