page-header.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. //
  2. // Page Header
  3. // --------------------------------------------------
  4. // Common styles
  5. .page-header {
  6. margin: 0px;
  7. margin-bottom: @line-height-computed;
  8. .btn-aligned {
  9. float: right;
  10. margin-top: @line-height-computed + 3px;
  11. margin-left: 8px;
  12. &.pull-left {
  13. margin-left: 0px;
  14. margin-right: 8px;
  15. }
  16. }
  17. }
  18. // Small displays
  19. @media screen and (max-width: @screen-sm-max) {
  20. .container {
  21. h1 {
  22. font-size: @font-size-large * 1.25;
  23. }
  24. .btn-aligned {
  25. float: right;
  26. margin-top: @line-height-computed - 7px;
  27. }
  28. .btn-icon {
  29. .material-icon {
  30. width: 24px;
  31. height: 24px;
  32. font-size: 24px;
  33. line-height: 24px;
  34. }
  35. }
  36. }
  37. }
  38. // Breadcrumbs
  39. .page-breadcrumbs .breadcrumb {
  40. background: none;
  41. padding-left: 0px;
  42. padding-right: 0px;
  43. margin-bottom: @line-height-computed * -1;
  44. overflow: auto;
  45. }
  46. .page-breadcrumbs .breadcrumb li {
  47. &, &:before {
  48. display: block;
  49. float: left;
  50. }
  51. &:before {
  52. margin-left: 4px;
  53. }
  54. }
  55. // Stats
  56. .header-stats .list-inline li {
  57. margin-right: 8px;
  58. overflow: auto;
  59. .status-icon {
  60. width: 18px;
  61. height: 18px;
  62. margin-right: 4px;
  63. position: relative;
  64. bottom: 1px;
  65. font-size: 18px;
  66. line-height: 18px;
  67. }
  68. &>.material-icon, &>.icon-legend {
  69. float: left;
  70. }
  71. &>.material-icon {
  72. margin-right: 4px;
  73. position: relative;
  74. top: 3px;
  75. }
  76. }
  77. @media screen and (max-width: @screen-sm-max) {
  78. .header-stats .list-inline {
  79. margin-top: @line-height-computed / 2;
  80. margin-bottom: 0px;
  81. font-size: @font-size-small;
  82. }
  83. }
  84. // Tabs
  85. .page-header .page-tabs .nav {
  86. &>li {
  87. margin: 0px;
  88. &>a {
  89. border-radius: 0px;
  90. }
  91. }
  92. }
  93. @media screen and (max-width: @screen-sm-max) {
  94. .page-header .page-tabs {
  95. margin-top: ((@line-height-computed / 2) - 1);
  96. margin-bottom: ((@line-height-computed / 2) - 1) * -1;
  97. }
  98. .page-header .page-tabs .container {
  99. padding: 0px;
  100. width: 100%;
  101. .nav-pills {
  102. li {
  103. display: block;
  104. float: inherit;
  105. width: auto;
  106. }
  107. }
  108. }
  109. }
  110. @media screen and (min-width: @screen-md-min) {
  111. .page-header.tabbed {
  112. padding-bottom: 0px;
  113. }
  114. }