No Description

_navbar.scss 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. .navbar {
  2. padding: 10px 30px 10px 15px;
  3. width: 100%;
  4. z-index: 1050;
  5. background: $navbar-color;
  6. .photo {
  7. display: inline-block;
  8. height: 30px;
  9. width: 30px;
  10. border-radius: 50%;
  11. vertical-align: middle;
  12. overflow: hidden;
  13. img{
  14. width: 100%;
  15. }
  16. }
  17. .navbar-wrapper {
  18. display: flex;
  19. align-items: center;
  20. }
  21. .navbar-text {
  22. color: $white;
  23. }
  24. .btn{
  25. margin: 0 5px 0 10px;
  26. }
  27. &.navbar-absolute{
  28. position: absolute;
  29. z-index: 1050;
  30. }
  31. &.navbar-transparent{
  32. background: transparent !important;
  33. }
  34. &.bg-white{
  35. .navbar-nav{
  36. .search-bar.input-group{
  37. i{
  38. color: $black;
  39. }
  40. }
  41. .search-bar.input-group .form-control{
  42. background: rgba($black,0.1);
  43. border-radius: 4px;
  44. }
  45. a.nav-link{
  46. color: $black !important;
  47. p{
  48. color: $black;
  49. }
  50. }
  51. }
  52. .navbar-text, .navbar-brand{
  53. color: $black;
  54. }
  55. .form-control {
  56. color: $black !important;
  57. }
  58. .form-control::placeholder {
  59. color: $dark-gray !important;
  60. }
  61. }
  62. &.bg-dark {
  63. background: $black !important;
  64. }
  65. &.bg-primary {
  66. background-color: $primary !important;
  67. }
  68. &.bg-warning {
  69. background-color: $warning !important;
  70. }
  71. &.bg-info {
  72. background-color: $info !important;
  73. }
  74. &.bg-success {
  75. background-color: darken($success, 10%) !important;
  76. }
  77. &.bg-danger {
  78. background-color: $danger !important;
  79. }
  80. .navbar-brand {
  81. position: fixed;
  82. padding-top: .3125rem;
  83. padding-bottom: .3125rem;
  84. color: $white;
  85. margin-left: 17px;
  86. margin-top: 3px;
  87. text-transform: uppercase;
  88. font-size: $font-paragraph;
  89. }
  90. .navbar-toggle button:focus, .navbar-toggler{
  91. outline: none;
  92. }
  93. }
  94. .navbar-minimize-fixed {
  95. position: fixed;
  96. margin-left: 40px;
  97. margin-top: 14px;
  98. transition: 0.3s ease;
  99. color: white;
  100. z-index: 20;
  101. opacity: 0;
  102. transition: 0.2s ease;
  103. button{
  104. i {
  105. font-size: 20px;
  106. }
  107. }
  108. }
  109. .notification {
  110. background: $danger;
  111. color: $white;
  112. border-radius: $border-radius-xl;
  113. height: 6px;
  114. width: 6px;
  115. position: absolute;
  116. text-align: center;
  117. font-size: 12px;
  118. font-weight: 800;
  119. top: 10px;
  120. right: 10px;
  121. border: 1px solid $danger;
  122. }
  123. .navbar-nav li{
  124. padding: 0 10px;
  125. a{
  126. color: $white;
  127. }
  128. i{
  129. vertical-align: middle;
  130. font-size: 20px;
  131. }
  132. }
  133. @media screen and (max-width: 991px){
  134. .navbar{
  135. .container-fluid{
  136. padding-right: 15px;
  137. padding-left: 15px;
  138. }
  139. .navbar-collapse{
  140. .input-group{
  141. margin: 0;
  142. margin-top: 5px;
  143. }
  144. }
  145. .navbar-nav{
  146. .btn{
  147. margin-left: -3px;
  148. display: flex;
  149. i {
  150. margin-right: 12px;
  151. }
  152. span {
  153. margin: 0;
  154. text-transform: uppercase;
  155. font-weight: 300;
  156. &,
  157. &:hover,
  158. &:focus,
  159. &:active,
  160. &:active:focus {
  161. color: $black !important;
  162. }
  163. }
  164. }
  165. a.nav-link{
  166. i{
  167. opacity: 1;
  168. margin-left: 4px;
  169. margin-right: 5px;
  170. }
  171. p{
  172. display: inline-block;
  173. text-transform: uppercase;
  174. margin-left: 7px;
  175. }
  176. }
  177. .modal-search .modal-dialog{
  178. padding: 0 40px;
  179. }
  180. .dropdown{
  181. margin: 5px 0;
  182. .nav-link{
  183. padding-bottom: 0;
  184. }
  185. .dropdown-menu{
  186. .dropdown-item{
  187. margin-top: 0;
  188. padding-left: 24px;
  189. }
  190. }
  191. }
  192. }
  193. .dropdown.show .dropdown-menu{
  194. display: block;
  195. }
  196. .dropdown .dropdown-menu{
  197. display: none;
  198. li a{
  199. color: $black;
  200. }
  201. }
  202. .dropdown.show .dropdown-menu,
  203. .dropdown .dropdown-menu{
  204. background-color: transparent;
  205. border: 0;
  206. transition: none;
  207. -webkit-box-shadow: none;
  208. box-shadow: none;
  209. width: auto;
  210. margin: 0px 1rem;
  211. margin-top: 0px;
  212. &:before{
  213. display: none;
  214. }
  215. }
  216. .dropdown-menu .dropdown-item:focus,
  217. .dropdown-menu .dropdown-item:hover{
  218. color: $white;
  219. }
  220. &.bg-white .dropdown-menu .dropdown-item:focus,
  221. &.bg-white .dropdown-menu .dropdown-item:hover{
  222. color: $default;
  223. }
  224. button.navbar-toggler[data-target="#navigation"]{
  225. padding-top: 0;
  226. }
  227. .navbar-toggler-bar{
  228. display: block;
  229. position: relative;
  230. width: 22px;
  231. height: 1px;
  232. border-radius: 1px;
  233. background: $white;
  234. &.navbar-kebab{
  235. height: 4px;
  236. width: 4px;
  237. margin-bottom: 3px;
  238. border-radius: 50%;
  239. }
  240. & + .navbar-toggler-bar{
  241. margin-top: 7px;
  242. }
  243. & + .navbar-toggler-bar.navbar-kebab{
  244. margin-top: 0px;
  245. }
  246. &.bar2{
  247. width: 17px;
  248. transition: width .2s linear;
  249. }
  250. }
  251. &.bg-white:not(.navbar-transparent) .navbar-toggler-bar{
  252. background-color: $default;
  253. }
  254. & .toggled .navbar-toggler-bar{
  255. width: 24px;
  256. & + .navbar-toggler-bar{
  257. margin-top: 5px;
  258. }
  259. }
  260. .navbar-brand{
  261. margin-left: 20px;
  262. position: relative;
  263. }
  264. }
  265. .navbar-nav{
  266. .nav-link{
  267. i.fa,
  268. i.tim-icons{
  269. opacity: .5;
  270. }
  271. }
  272. }
  273. .bar1,
  274. .bar2,
  275. .bar3 {
  276. outline: 1px solid transparent;
  277. }
  278. .bar1 {
  279. top: 0px;
  280. @include bar-animation($topbar-back);
  281. }
  282. .bar2 {
  283. opacity: 1;
  284. }
  285. .bar3 {
  286. bottom: 0px;
  287. @include bar-animation($bottombar-back);
  288. }
  289. .toggled .bar1 {
  290. top: 6px;
  291. @include bar-animation($topbar-x);
  292. }
  293. .toggled .bar2 {
  294. opacity: 0;
  295. }
  296. .toggled .bar3 {
  297. bottom: 6px;
  298. @include bar-animation($bottombar-x);
  299. }
  300. @include topbar-x-rotation();
  301. @include topbar-back-rotation();
  302. @include bottombar-x-rotation();
  303. @include bottombar-back-rotation();
  304. @-webkit-keyframes fadeIn {
  305. 0% {opacity: 0;}
  306. 100% {opacity: 1;}
  307. }
  308. @-moz-keyframes fadeIn {
  309. 0% {opacity: 0;}
  310. 100% {opacity: 1;}
  311. }
  312. @keyframes fadeIn {
  313. 0% {opacity: 0;}
  314. 100% {opacity: 1;}
  315. }
  316. }
  317. @media screen and (min-width: 992px) {
  318. .navbar-collapse {
  319. background: none !important;
  320. }
  321. .navbar .navbar-toggle {
  322. display: none;
  323. }
  324. .navbar-nav {
  325. .nav-link {
  326. &.profile-photo {
  327. padding: 0;
  328. margin: 7px $padding-base-horizontal;
  329. }
  330. }
  331. }
  332. .navbar {
  333. .caret {
  334. position: absolute;
  335. left: 80%;
  336. top: 55%;
  337. margin-left: 0;
  338. }
  339. }
  340. .navbar-expand-lg .navbar-nav .nav-link {
  341. padding-right: 0.5rem;
  342. padding-left: 0.5rem;
  343. }
  344. }
  345. @media screen and (max-width: 576px){
  346. .navbar[class*='navbar-toggleable-'] .container{
  347. margin-left: 0;
  348. margin-right: 0;
  349. }
  350. }