panels.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. //
  2. // Panels
  3. // --------------------------------------------------
  4. // Shared styles
  5. //
  6. //==
  7. .panel {
  8. box-shadow: none;
  9. &.panel-shadow {
  10. box-shadow: 0px 0px 0px 3px @panel-shadow;
  11. }
  12. }
  13. // Bodies
  14. //
  15. //==
  16. .panel-body {
  17. &.thin {
  18. padding-top: @line-height-computed / 6;
  19. padding-bottom: 0px;
  20. }
  21. &.large {
  22. padding-top: 0px;
  23. padding-bottom: 0px;
  24. font-size: @font-size-large;
  25. }
  26. }
  27. // Footers
  28. //
  29. //==
  30. .panel-footer {
  31. overflow: auto;
  32. &>ul {
  33. overflow: auto;
  34. margin: 0px;
  35. padding: 0px;
  36. &>li {
  37. float: left;
  38. }
  39. &.pull-left {
  40. &>li {
  41. margin-right: @line-height-computed;
  42. }
  43. }
  44. &.pull-right {
  45. &>li {
  46. margin-left: @line-height-computed;
  47. }
  48. }
  49. &.stats {
  50. &>li {
  51. img {
  52. border-radius: @border-radius-small;
  53. height: 20px;
  54. }
  55. a {
  56. color: @state-hover;
  57. font-weight: bold;
  58. }
  59. a:hover {
  60. color: @state-hover;
  61. text-decoration: underline;
  62. }
  63. a:active {
  64. color: @state-clicked;
  65. text-decoration: underline;
  66. }
  67. }
  68. }
  69. &.actions {
  70. margin: -6px 0px;
  71. &>li {
  72. &>form {
  73. margin: 0px;
  74. padding: 0px;
  75. }
  76. &>form>.btn, &>.btn {
  77. border-color: transparent;
  78. background: transparent;
  79. .box-shadow(none);
  80. position: static;
  81. margin: 0px;
  82. padding: 5px 7px;
  83. color: @state-default;
  84. &:hover {
  85. background-color: darken(@panel-footer-bg, 5%);
  86. transition-timing-function: ease;
  87. color: @state-hover;
  88. }
  89. &:active {
  90. background-color: darken(@panel-footer-bg, 5%);
  91. outline: none;
  92. color: @state-clicked;
  93. }
  94. .fa {
  95. position: relative;
  96. bottom: 1px;
  97. }
  98. &.btn-primary {
  99. background: transparent;
  100. color: @state-info-text;
  101. &:hover {
  102. background: fadeOut(@state-info-bg, 90%);
  103. color: @state-info-text;
  104. }
  105. &:active {
  106. background: @state-info-bg;
  107. color: @state-info-text-contrast;
  108. }
  109. }
  110. &.btn-success {
  111. background: transparent;
  112. color: @state-success-text;
  113. &:hover {
  114. background: fadeOut(@state-success-bg, 90%);
  115. color: @state-success-text;
  116. }
  117. &:active {
  118. background: @state-success-bg;
  119. color: @state-success-text-contrast;
  120. }
  121. }
  122. &.btn-warning {
  123. background: transparent;
  124. color: @state-warning-text;
  125. &:hover {
  126. background: fadeOut(@state-warning-bg, 90%);
  127. color: @state-warning-text;
  128. }
  129. &:active {
  130. background: @state-warning-bg;
  131. color: @state-warning-text-contrast;
  132. }
  133. }
  134. &.btn-danger {
  135. background: transparent;
  136. color: @state-danger-text;
  137. &:hover {
  138. background: fadeOut(@state-danger-bg, 90%);
  139. color: @state-danger-text;
  140. }
  141. &:active {
  142. background: @state-danger-bg;
  143. color: @state-danger-text-contrast;
  144. }
  145. }
  146. }
  147. }
  148. &.pull-left {
  149. &>li {
  150. margin-right: @line-height-computed / 2;
  151. }
  152. }
  153. &.pull-right {
  154. &>li {
  155. margin-left: @line-height-computed / 2;
  156. }
  157. }
  158. }
  159. }
  160. }
  161. // Opacity
  162. .panel {
  163. .opaque {
  164. .opacity(0.5);
  165. transition-property: opacity;
  166. transition-timing-function: ease;
  167. transition-duration: 0.3s;
  168. }
  169. &:hover, &:focus {
  170. .opaque {
  171. .opacity(1);
  172. transition-property: opacity;
  173. transition-timing-function: ease;
  174. transition-duration: 0.7s;
  175. }
  176. }
  177. }