暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_header.scss 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. .header {
  2. padding : 20px 0px;
  3. position : fixed;
  4. top : 0;
  5. left : $sidebar-width;
  6. right : 0;
  7. z-index : 02;
  8. // transition: all 0.3s ease-in;
  9. background : $body-bg;
  10. &.bg-primary {
  11. border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  12. }
  13. @include respond("tab-port") {
  14. // left : 100px;
  15. // margin: 0px;
  16. }
  17. @include respond("phone-land") {
  18. left : 0;
  19. padding : 10px 0px;
  20. background: $white;
  21. }
  22. .brand-logo {
  23. display: none;
  24. @include respond("tab-port") {
  25. display: none;
  26. margin : 0px 20px 0px 0px;
  27. }
  28. @include respond("phone-land") {
  29. display: block;
  30. img {
  31. // max-width: 35px;
  32. filter: none;
  33. }
  34. span {
  35. display: none;
  36. }
  37. }
  38. }
  39. &.landing {
  40. padding : 20px 0px;
  41. left : 0px;
  42. // border-bottom: 1px solid $border-color;
  43. // position: relative;
  44. a {
  45. display : flex;
  46. align-items : center;
  47. justify-content: center;
  48. }
  49. .brand-logo {
  50. display : block;
  51. margin-top : 0px;
  52. margin-left: 0px;
  53. img {
  54. filter : none;
  55. margin-right: 10px;
  56. }
  57. span {
  58. display: block;
  59. top : 0;
  60. }
  61. }
  62. }
  63. }
  64. .header-content,
  65. .header-left,
  66. .header-right {
  67. display : flex;
  68. justify-content: space-between;
  69. align-items : center;
  70. }
  71. .notification {
  72. cursor: pointer;
  73. .notify-bell {
  74. margin-right: 15px;
  75. @include respond("phone-land") {
  76. margin-right : 15px;
  77. // margin-left : 15px;
  78. }
  79. }
  80. .dropdown-menu {
  81. border : 0px;
  82. padding : 15px 20px 10px;
  83. margin : 0px;
  84. top : 25px !important;
  85. width : 330px;
  86. box-shadow : 0 36px 48px rgba($color: #1b1994, $alpha: 0.08);
  87. border-radius : 5px;
  88. // background-color: #423A6F;
  89. h4 {
  90. border-bottom : 1px solid $border-color;
  91. padding-bottom: 15px;
  92. font-size : 16px;
  93. }
  94. a {
  95. display : block;
  96. border-bottom: 1px solid $border-color;
  97. padding : 10px 0px;
  98. &:last-child {
  99. border : 0px;
  100. display : flex;
  101. justify-content: flex-end;
  102. align-items : center;
  103. color : $dark;
  104. i {
  105. margin-left: 5px;
  106. font-size : 18px;
  107. }
  108. }
  109. p {
  110. margin-bottom: 0px;
  111. color : $headings-color;
  112. font-weight : $headings-font-weight;
  113. font-size : 14px;
  114. }
  115. span {
  116. font-size: 13px;
  117. color : $body-color;
  118. }
  119. span {
  120. &.icon {
  121. height : 40px;
  122. width : 40px;
  123. color : $white;
  124. display : flex;
  125. align-items : center;
  126. justify-content: center;
  127. border-radius : 50px;
  128. i {
  129. font-size: 20px;
  130. }
  131. }
  132. &.success {
  133. background: $success;
  134. }
  135. &.fail {
  136. background: $danger;
  137. }
  138. &.pending {
  139. background: $warning;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. .dropdown-toggle::after {
  146. border-top : 0px;
  147. margin-left : 10.2px;
  148. display : inline-block;
  149. font-style : normal;
  150. font-variant : normal;
  151. text-rendering : auto;
  152. -webkit-font-smoothing: antialiased;
  153. font-family : "Font Awesome 5 Pro", "Font Awesome 5 Free";
  154. font-weight : 700;
  155. content : "\f107";
  156. }
  157. .profile_log {
  158. cursor: pointer;
  159. .user {
  160. display : flex;
  161. align-items: center;
  162. .thumb {
  163. height : 35px;
  164. width : 35px;
  165. border-radius: 50px;
  166. color : #fff;
  167. text-align : center;
  168. img {
  169. max-width: 35px;
  170. }
  171. }
  172. // .arrow {
  173. // // color: $white;
  174. // i {
  175. // font-weight: bold;
  176. // font-size : 14px;
  177. // line-height: 16px;
  178. // margin-top : 6px;
  179. // display : inline-block;
  180. // }
  181. // @include respond("tab-land") {
  182. // display: none;
  183. // }
  184. // }
  185. }
  186. .dropdown-menu {
  187. border : 0px;
  188. padding : 0px;
  189. margin : 0px;
  190. top : 25px !important;
  191. box-shadow : 0 1.5rem 4rem rgba(22, 28, 45, 0.15);
  192. border-radius : 5px;
  193. background-color: $white;
  194. min-width : 240px;
  195. .user-email {
  196. padding: 10px 20px 10px;
  197. .thumb {
  198. margin-right: 10px;
  199. }
  200. .user-info {
  201. margin: 0px;
  202. }
  203. h5 {
  204. margin-bottom: 0px;
  205. }
  206. span {
  207. font-size: 14px;
  208. i {
  209. font-size: 22px;
  210. color : $dark;
  211. }
  212. }
  213. }
  214. .user-balance {
  215. display : flex;
  216. justify-content: space-around;
  217. margin-bottom : 15px;
  218. p {
  219. margin-bottom: 0px;
  220. font-weight : 500;
  221. color : $headings-color;
  222. }
  223. }
  224. .dropdown-item {
  225. padding : 10px 20px;
  226. border-top : 1px solid $border-color;
  227. // font-size : 14px;
  228. // color : $body-color;
  229. font-weight : 400;
  230. display : flex;
  231. align-items : center;
  232. &:first-child {
  233. border: 0px;
  234. }
  235. &.logout {
  236. color: $danger;
  237. i {
  238. color: $danger;
  239. }
  240. }
  241. i {
  242. margin-right: 10px;
  243. font-size : 18px;
  244. color : $primary;
  245. font-weight : bold;
  246. }
  247. &:hover,
  248. &:focus,
  249. &.active {
  250. background-color: $primary;
  251. color : $white;
  252. i {
  253. color: $white;
  254. }
  255. }
  256. }
  257. }
  258. }
  259. .dark-light-toggle {
  260. margin-right: 20px;
  261. cursor : pointer;
  262. display : none;
  263. @include respond("phone-land") {
  264. margin-right: 0px;
  265. margin-left : 15px;
  266. }
  267. i {
  268. font-size: 20px;
  269. }
  270. .light {
  271. display: none;
  272. }
  273. }
  274. .dark-theme {
  275. .dark {
  276. display: none;
  277. }
  278. .light {
  279. display: block;
  280. color : $warning;
  281. }
  282. }
  283. // Landing page
  284. .navigation {
  285. .navbar {
  286. background-color: transparent !important;
  287. padding : 0px;
  288. ul {
  289. align-items: center;
  290. margin-left: auto;
  291. @include respond("tab-port") {
  292. margin-top: 15px;
  293. }
  294. &>li {
  295. display : inline-block;
  296. padding : 0px 7px;
  297. // margin-left: 15px;
  298. width : 100%;
  299. @include respond("tab-port") {
  300. border-bottom: 1px solid $border-color;
  301. margin : 0 15px;
  302. padding : 7px 15px;
  303. // background: $primary;
  304. }
  305. &>a {
  306. font-size : 16px;
  307. font-weight: $headings-font-weight;
  308. color : $dark;
  309. @include respond("tab-port") {
  310. &::after {
  311. position: absolute;
  312. right : 15px;
  313. top : 25px;
  314. }
  315. }
  316. }
  317. }
  318. @media only screen and (min-width: 991px) {
  319. .dropdown {
  320. &>a {
  321. position : relative;
  322. transition: all 0.2s ease-in-out;
  323. }
  324. }
  325. .dropdown-menu {
  326. background: $white;
  327. padding : 15px 0;
  328. display : block;
  329. opacity : 0;
  330. visibility: hidden;
  331. z-index : 1030;
  332. transition: all 0.2s ease-in-out;
  333. box-shadow: 0 1.5rem 4rem rgba(22, 28, 45, 0.15);
  334. border : 0px;
  335. margin-top: 10px;
  336. z-index : 998;
  337. min-width : 10rem;
  338. a {
  339. display: inline-block;
  340. color : $body-color;
  341. &:hover,
  342. &:focus,
  343. &:active,
  344. &.active {
  345. color : $primary;
  346. background: transparent;
  347. }
  348. }
  349. }
  350. li.dropdown {
  351. &:hover {
  352. a {
  353. &::before {
  354. opacity: 1;
  355. bottom : -9px;
  356. }
  357. }
  358. .dropdown-menu {
  359. // display: block;
  360. opacity : 1;
  361. visibility : visible;
  362. // transform: translate3d(-50%,0,0);
  363. margin-top : 0px;
  364. }
  365. }
  366. }
  367. }
  368. @include respond("tab-port") {
  369. .dropdown-menu {
  370. border : 0px;
  371. padding: 0px;
  372. a {
  373. border-bottom: 1px solid $border-color;
  374. padding : 15px;
  375. color : $body-color;
  376. // background: #323232;
  377. &:last-child {
  378. border: 0px;
  379. }
  380. i,
  381. h6 {
  382. color: $primary;
  383. }
  384. p {
  385. color : $body-color;
  386. margin-bottom: 0;
  387. }
  388. }
  389. }
  390. }
  391. }
  392. }
  393. }
  394. .signin-btn {
  395. min-width: 100px;
  396. // .btn-primary {
  397. // border-radius: 100px;
  398. // }
  399. }
  400. .logo-white {
  401. display: none;
  402. }
  403. .light {
  404. .logo-primary {
  405. display: none;
  406. }
  407. .logo-white {
  408. display: block;
  409. }
  410. .navigation {
  411. .navbar {
  412. ul {
  413. &>li {
  414. &>a {
  415. color: rgba(255, 255, 255, 0.85);
  416. &:hover,
  417. &:focus,
  418. &.active,
  419. &:active {
  420. color: rgba(255, 255, 255, 1);
  421. }
  422. }
  423. }
  424. }
  425. }
  426. }
  427. .signin-btn {
  428. .btn-primary {
  429. background: $white;
  430. color : $dark;
  431. }
  432. }
  433. }
  434. .search {
  435. min-width: 450px;
  436. @include respond("phone-land") {
  437. min-width : auto;
  438. margin-right: 15px;
  439. }
  440. .form-control {
  441. border-bottom-left-radius: $radius;
  442. border-top-left-radius : $radius;
  443. }
  444. .input-group-text {
  445. border-top-right-radius : $radius;
  446. border-bottom-right-radius: $radius;
  447. background : $primary;
  448. i {
  449. color: $white;
  450. }
  451. }
  452. }
  453. .icon-menu {
  454. height : 40px;
  455. width : 40px;
  456. display : flex;
  457. justify-content: center;
  458. align-items : center;
  459. border-radius : 50%;
  460. background : #fff;
  461. &:hover,
  462. &:focus,
  463. &:active,
  464. &.active {
  465. background: $primary;
  466. box-shadow: $shadow;
  467. i {
  468. color: $white;
  469. }
  470. }
  471. span {
  472. i {
  473. font-size: 20px;
  474. color : $body-color;
  475. }
  476. }
  477. }