_brand.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. //
  2. // Component: Brand
  3. //
  4. .brand-link {
  5. $brand-link-padding-y: $navbar-brand-padding-y + $navbar-padding-y;
  6. display: block;
  7. font-size: $navbar-brand-font-size;
  8. line-height: $line-height-lg;
  9. padding: $brand-link-padding-y $sidebar-padding-x;
  10. transition: width $transition-speed $transition-fn;
  11. white-space: nowrap;
  12. &:hover {
  13. color: $white;
  14. text-decoration: none;
  15. }
  16. .text-sm & {
  17. font-size: inherit;
  18. }
  19. [class*="sidebar-dark"] & {
  20. border-bottom: 1px solid lighten($dark, 10%);
  21. &,
  22. .pushmenu {
  23. color: rgba($white, .8);
  24. &:hover {
  25. color: $white;
  26. }
  27. }
  28. }
  29. [class*="sidebar-light"] & {
  30. border-bottom: 1px solid $gray-300;
  31. &,
  32. .pushmenu {
  33. color: rgba($black, .8);
  34. &:hover {
  35. color: $black;
  36. }
  37. }
  38. }
  39. .pushmenu {
  40. margin-right: $sidebar-padding-x;
  41. font-size: $font-size-base;
  42. }
  43. .brand-link {
  44. padding: 0;
  45. border-bottom: none;
  46. }
  47. .brand-image {
  48. float: left;
  49. line-height: .8;
  50. margin-left: .8rem;
  51. margin-right: .5rem;
  52. margin-top: -3px;
  53. max-height: 33px;
  54. width: auto;
  55. }
  56. .brand-image-xs {
  57. float: left;
  58. line-height: .8;
  59. margin-top: -.1rem;
  60. max-height: 33px;
  61. width: auto;
  62. }
  63. .brand-image-xl {
  64. line-height: .8;
  65. max-height: 40px;
  66. width: auto;
  67. &.single {
  68. margin-top: -.3rem;
  69. }
  70. }
  71. &.text-sm,
  72. .text-sm & {
  73. .brand-image {
  74. height: 29px;
  75. margin-bottom: -.25rem;
  76. margin-left: .95rem;
  77. margin-top: -.25rem;
  78. }
  79. .brand-image-xs {
  80. margin-top: -.2rem;
  81. max-height: 29px;
  82. }
  83. .brand-image-xl {
  84. margin-top: -.225rem;
  85. max-height: 38px;
  86. }
  87. }
  88. }