_header.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. // HEADER
  2. // -----------------------------------------------------------------------------
  3. /* Header */
  4. .header {
  5. @include linear-gradient(#F6F6F6 0%, #FFFFFF 45%);
  6. border: {
  7. bottom: 1px solid #E9E9E6;
  8. top: 3px solid #EDEDED;
  9. }
  10. z-index: $header-z-index;
  11. .logo {
  12. float: left;
  13. margin: 10px 0 0 15px;
  14. img {
  15. color: transparent;
  16. }
  17. }
  18. .separator {
  19. @include linear-gradient(#F6F6F6 60%, #EDEDED);
  20. display: inline-block;
  21. height: 100%;
  22. margin: 0 25px 0;
  23. width: 2px;
  24. vertical-align: middle;
  25. }
  26. .search {
  27. width: 170px;
  28. display: inline-block;
  29. vertical-align: middle;
  30. }
  31. .toggle-sidebar-left {
  32. background: $color-primary;
  33. border-radius: 100px;
  34. color: $color-primary-inverse;
  35. height: 30px;
  36. line-height: 30px;
  37. position: absolute;
  38. right: 15px;
  39. text-align: center;
  40. top: 14px;
  41. width: 30px;
  42. }
  43. }
  44. .header-right {
  45. float: right;
  46. height: $header-height - 4px;
  47. }
  48. // HEADER MOBILE
  49. // -----------------------------------------------------------------------------
  50. /* Header Mobile */
  51. @media only screen and (max-width: 767px) {
  52. .header {
  53. .logo-container {
  54. @include linear-gradient(#F6F6F6 0%, #FFFFFF 45%);
  55. border: {
  56. bottom: 1px solid #E9E9E6;
  57. top: 3px solid #EDEDED;
  58. }
  59. .logo {
  60. float: none;
  61. display: inline-block;
  62. line-height: $header-height - 3;
  63. margin-top: 0;
  64. }
  65. }
  66. .search,
  67. .separator {
  68. display: none;
  69. }
  70. }
  71. }
  72. // HEADER DARK AND DARK VERSION
  73. // -----------------------------------------------------------------------------
  74. /* Header Dark */
  75. html.dark,
  76. html.header-dark {
  77. .header {
  78. background: $sidebar-background;
  79. border-bottom-color: darken( $sidebar-background, 3% );
  80. border-top-color: $sidebar-background;
  81. @media only screen and (max-width: 767px) {
  82. .logo-container {
  83. background: $sidebar-background;
  84. border-bottom-color: darken( $sidebar-background, 3% );
  85. border-top-color: $sidebar-background;
  86. }
  87. .header-right {
  88. background: $sidebar-background;
  89. }
  90. }
  91. .separator {
  92. @include linear-gradient($sidebar-background 10%, darken( $sidebar-background, 5% ));
  93. }
  94. .input-search {
  95. input {
  96. &,
  97. &:focus {
  98. background: lighten( $sidebar-background, 5% );
  99. border-color: darken( $sidebar-background, 3% );
  100. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.40) inset;
  101. color: #FFF;
  102. }
  103. }
  104. .input-group-btn .btn-default {
  105. background: transparent;
  106. color: $page-header-color;
  107. }
  108. }
  109. }
  110. }