_header.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. @import "globals";
  2. /* HEADER */
  3. #branding {
  4. display: none;
  5. background-color: $sidebar-contrast-background-color;
  6. color: $sidebar-contrast-text-color;
  7. padding: 14px;
  8. text-align: center;
  9. &.initialized {
  10. display: block;
  11. }
  12. h1, h2 {
  13. padding: 0;
  14. margin: 0;
  15. text-transform: uppercase;
  16. font-size: 11px;
  17. }
  18. a, a:visited, a:hover {
  19. color: $sidebar-contrast-text-color;
  20. }
  21. a:hover {
  22. color: $sidebar-hover-action-color;
  23. }
  24. }
  25. #user-tools {
  26. display: none;
  27. &.initialized {
  28. display: block;
  29. @include for-mobile {
  30. display: none;
  31. }
  32. }
  33. }
  34. .user-tools {
  35. position: relative;
  36. ul {
  37. position: absolute;
  38. top: $top-height - 12px;
  39. right: 20px;
  40. border: 1px solid $top-border-color;
  41. border-radius: 4px;
  42. font-size: 12px;
  43. margin: 0;
  44. padding: 0;
  45. list-style: none;
  46. display: inline-block;
  47. width: 175px;
  48. z-index: 1;
  49. &.opened {
  50. background-color: $top-dropdown-background-color;
  51. border-color: transparent;
  52. color: $top-dropdown-text-color;
  53. }
  54. li {
  55. display: block;
  56. list-style-type: none;
  57. margin: 0;
  58. line-height: 30px;
  59. padding: 0 10px 0 14px;
  60. overflow: hidden;
  61. text-overflow: ellipsis;
  62. white-space: nowrap;
  63. }
  64. li.user-tools-welcome-msg {
  65. font-weight: bold;
  66. &:after {
  67. @include font-icon;
  68. content: $icon-arrow-down;
  69. font-weight: normal;
  70. float: right;
  71. color: #47bac1;
  72. font-size: 24px;
  73. vertical-align: middle;
  74. line-height: 30px;
  75. transition: color $transitions-duration;
  76. }
  77. }
  78. &.opened .user-tools-welcome-msg {
  79. border-bottom: 1px solid $top-dropdown-border-color;
  80. &:after {
  81. color: $top-dropdown-icon-color;
  82. transform: rotate(180deg);
  83. }
  84. }
  85. li.user-tools-link {
  86. display: none;
  87. a, a:visited, a:hover {
  88. color: $top-dropdown-link-color;
  89. text-decoration: none;
  90. }
  91. a:hover {
  92. color: $top-dropdown-hover-link-color;
  93. text-decoration: underline;
  94. }
  95. }
  96. &.opened li.user-tools-link {
  97. display: block;
  98. }
  99. }
  100. }