github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/assets/scss/_nav.scss (about) 1 // 2 // Main navbar 3 // 4 5 .td-navbar-cover { 6 background: $primary; 7 8 @include media-breakpoint-up(md) { 9 background: transparent !important; 10 11 .nav-link { 12 text-shadow: 1px 1px 2px $dark; 13 } 14 15 } 16 17 &.navbar-bg-onscroll .nav-link { 18 text-shadow: none; 19 } 20 } 21 22 .navbar-bg-onscroll { 23 background: $primary !important; 24 opacity: inherit; 25 } 26 27 .td-navbar { 28 background: $primary; 29 min-height: 4rem; 30 margin: 0; 31 z-index: 32; 32 33 @include media-breakpoint-up(md) { 34 position: fixed; 35 top: 0; 36 width: 100%; 37 } 38 39 40 .navbar-brand { 41 text-transform: none; 42 text-align: middle; 43 44 .nav-link { 45 display: inline-block; 46 margin-right: -30px; 47 } 48 49 svg { 50 display: inline-block; 51 margin: 0 10px; 52 height: 30px; 53 } 54 } 55 56 .nav-link { 57 text-transform: none; 58 font-weight: $font-weight-bold; 59 } 60 61 .td-search-input { 62 border: none; 63 64 @include placeholder { 65 color: $navbar-dark-color; 66 } 67 } 68 69 .dropdown { 70 min-width: 100px; 71 } 72 73 @include media-breakpoint-down(md) { 74 padding-right: .5rem; 75 padding-left: .75rem; 76 77 .td-navbar-nav-scroll { 78 max-width: 100%; 79 height: 2.5rem; 80 margin-top: .25rem; 81 overflow: hidden; 82 font-size: .875rem; 83 84 .nav-link { 85 padding-right: .25rem; 86 padding-left: 0; 87 } 88 89 .navbar-nav { 90 padding-bottom: 2rem; 91 overflow-x: auto; 92 white-space: nowrap; 93 -webkit-overflow-scrolling: touch; 94 95 } 96 } 97 } 98 } 99 100 // Icons 101 #main_navbar { 102 li i { 103 padding-right: 0.5em; 104 105 &:before { 106 display: inline-block; 107 text-align: center; 108 min-width: 1em; 109 } 110 } 111 .alert { 112 background-color: inherit; 113 padding:0; 114 color: $secondary; 115 border: 0; 116 font-weight: inherit; 117 118 &:before { 119 display: inline-block; 120 font-style: normal; 121 font-variant: normal; 122 text-rendering: auto; 123 -webkit-font-smoothing: antialiased; 124 font-family: "Font Awesome 5 Free"; 125 font-weight: 900; 126 content: "\f0d9"; 127 padding-left: 0.5em; 128 padding-right: 0.5em; 129 } 130 } 131 } 132 133 // Foldable sidebar menu 134 nav.foldable-nav { 135 136 &#td-section-nav { 137 position: relative; 138 } 139 140 &#td-section-nav label { 141 margin-bottom: 0; 142 width: 100%; 143 } 144 145 .td-sidebar-nav__section, .with-child ul { 146 list-style: none; 147 padding: 0; 148 margin: 0; 149 } 150 151 .ul-1 > li { 152 padding-left: 1.5em; 153 } 154 155 ul.foldable { 156 max-height: 0; 157 overflow: hidden; 158 transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); 159 } 160 161 input:checked ~ ul.foldable { 162 max-height: 100000vmax; 163 transition: max-height 1s ease-in-out; 164 } 165 166 input[type=checkbox] { display: none; } 167 168 .with-child, .without-child { 169 position: relative; 170 padding-left: 1.5em; 171 } 172 173 .ul-1 .with-child > label:before { 174 display: inline-block; 175 font-style: normal; 176 font-variant: normal; 177 text-rendering: auto; 178 -webkit-font-smoothing: antialiased; 179 font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f0da"; 180 position: absolute; 181 left: 0.1em; 182 padding-left: 0.4em; 183 padding-right: 0.4em; 184 font-size: 1em; 185 color: $gray-900; 186 transition: all 0.5s; 187 &:hover{ 188 transform: rotate(90deg); 189 } 190 } 191 192 .ul-1 .with-child > input:checked ~ label:before { 193 color: $primary; 194 transform: rotate(90deg); 195 transition: transform 0.5s; 196 } 197 198 .with-child ul { margin-top: 0.1em; } 199 200 } 201 202 @media (hover: hover) and (pointer: fine) { 203 204 nav.foldable-nav { 205 206 .ul-1 .with-child > label:hover:before { 207 color: $primary; 208 transform: rotate(30deg); 209 transition: transform 0.5s; 210 } 211 212 .ul-1 .with-child > input:checked ~ label:hover:before { 213 color: $primary; 214 transform: rotate(60deg) !important; 215 transition: transform 0.5s; 216 } 217 } 218 }