_panels.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. // PANEL
  2. // -----------------------------------------------------------------------------
  3. .panel {
  4. background: transparent;
  5. -webkit-box-shadow: none;
  6. box-shadow: none;
  7. border: none;
  8. /* WHY?
  9. + .panel {
  10. margin-top: 35px;
  11. }*/
  12. }
  13. // PANEL HEADING
  14. // -----------------------------------------------------------------------------
  15. .panel-heading {
  16. background: $panel-heading-background;
  17. border-radius: $border-radius $border-radius 0 0;
  18. border-bottom: 1px solid #DADADA;
  19. padding: $panel-heading-padding;
  20. position: relative;
  21. }
  22. // PANEL HEADING BGS
  23. // -----------------------------------------------------------------------------
  24. .panel-heading {
  25. @each $color in $colors-list {
  26. &.bg-#{nth($color,1)} {
  27. background: #{nth($color,2)};
  28. color: #{nth($color,3)};
  29. border-bottom: 0 none;
  30. border-right: 0 none;
  31. }
  32. }
  33. }
  34. .panel-heading.bg-white {
  35. background: #fff;
  36. border-bottom: 0 none;
  37. border-right: 0 none;
  38. }
  39. // PANEL ACTIONS
  40. // -----------------------------------------------------------------------------
  41. .panel-actions {
  42. right: 15px;
  43. position: absolute;
  44. top: 15px;
  45. a {
  46. background-color: $panel-action-background;
  47. border-radius: $panel-action-border-radius;
  48. color: $panel-action-color;
  49. font-size: $panel-action-size;
  50. height: $panel-action-height;
  51. line-height: $panel-action-height;
  52. text-align: center;
  53. width: $panel-action-width;
  54. &:hover {
  55. background-color: $panel-action-background-hover;
  56. color: $panel-action-color-hover;
  57. text-decoration: none
  58. }
  59. &,
  60. &:focus,
  61. &:hover,
  62. &:active,
  63. &:visited {
  64. outline: none !important;
  65. text-decoration: none !important;
  66. }
  67. }
  68. }
  69. // PANEL TITLE AND SUBTITLE
  70. // -----------------------------------------------------------------------------
  71. .panel-title {
  72. color: $panel-title-color;
  73. font-size: $panel-title-size;
  74. font-weight: $font-weight-normal;
  75. line-height: $panel-title-size;
  76. padding: 0;
  77. text-transform: none;
  78. }
  79. .panel-subtitle {
  80. color: $panel-subtitle-color;
  81. font-size: $panel-subtitle-size;
  82. line-height: 1.2em;
  83. margin: 7px 0 0;
  84. padding: 0;
  85. }
  86. // PANEL BODY
  87. // -----------------------------------------------------------------------------
  88. .panel-body {
  89. background: #fdfdfd;
  90. -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  91. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  92. border-radius: $border-radius;
  93. }
  94. .panel-body-nopadding {
  95. padding: 0;
  96. }
  97. .panel-heading + .panel-body {
  98. border-radius: 0 0 $border-radius $border-radius;
  99. }
  100. // PANEL FOOTER
  101. // -----------------------------------------------------------------------------
  102. .panel-footer {
  103. border-radius: 0 0 $border-radius $border-radius;
  104. margin-top: -$border-radius;
  105. }
  106. .panel-footer-btn-group {
  107. display: table;
  108. width: 100%;
  109. padding: 0;
  110. a {
  111. background-color: #f5f5f5;
  112. display: table-cell;
  113. width: 1%;
  114. border-left: 1px solid #ddd;
  115. padding: 10px 15px;
  116. text-decoration: none;
  117. &:hover {
  118. background-color: darken(#f5f5f5, 2%);
  119. box-shadow: 0 0 7px rgba(0, 0, 0, 0.1) inset;
  120. }
  121. &:first-child {
  122. border-left: none;
  123. }
  124. }
  125. }
  126. // PANEL BODY BGS
  127. // -----------------------------------------------------------------------------
  128. .panel-body {
  129. @each $color in $colors-list {
  130. &.bg-#{nth($color,1)} {
  131. background: #{nth($color,2)};
  132. color: #{nth($color,3)};
  133. }
  134. }
  135. }
  136. // PANEL FEATURED
  137. // -----------------------------------------------------------------------------
  138. .panel-featured {
  139. border-top: $panel-featured-border-width solid $panel-title-color;
  140. .panel-heading {
  141. border-radius: 0;
  142. }
  143. }
  144. @each $side in top, right, bottom, left {
  145. .panel-featured-#{nth($side,1)} {
  146. border-#{nth($side,1)}: $panel-featured-border-width solid $panel-title-color;
  147. }
  148. }
  149. @each $color in $colors-list {
  150. .panel-featured-#{nth($color,1)} {
  151. border-color: #{nth($color,2)};
  152. .panel-title {
  153. color: #{nth($color,2)};
  154. }
  155. }
  156. }
  157. // PANEL HIGHLIGHT
  158. // -----------------------------------------------------------------------------
  159. .panel-highlight {
  160. .panel-heading {
  161. background-color: $color-primary;
  162. border-color: $color-primary;
  163. color: #fff;
  164. }
  165. .panel-title {
  166. color: #fff;
  167. }
  168. .panel-subtitle {
  169. color: #fff;
  170. color: rgba(255, 255, 255, 0.7);
  171. }
  172. .panel-actions a {
  173. background-color: rgba(0, 0, 0, 0.1);
  174. color: #fff;
  175. }
  176. .panel-body {
  177. background-color: $color-primary;
  178. color: #fff;
  179. }
  180. }
  181. .panel-highlight-title {
  182. .panel-heading {
  183. background-color: #2BAAB1;
  184. }
  185. .panel-title {
  186. color: #fff;
  187. }
  188. .panel-subtitle {
  189. color: #fff;
  190. color: rgba(255, 255, 255, 0.7);
  191. }
  192. .panel-actions a {
  193. background-color: rgba(0, 0, 0, 0.1);
  194. color: #fff;
  195. }
  196. }
  197. // PANEL HEADING ICON
  198. // -----------------------------------------------------------------------------
  199. .panel-heading-icon {
  200. margin: 0 auto;
  201. @include font-size(42);
  202. width: 90px;
  203. height: 90px;
  204. line-height: 90px;
  205. text-align: center;
  206. color: #fff;
  207. background-color: rgba(0, 0, 0, 0.1);
  208. -webkit-border-radius: 55px;
  209. border-radius: 55px;
  210. }
  211. .panel-heading-icon {
  212. @each $color in $colors-list {
  213. &.bg-#{nth($color,1)} {
  214. background: #{nth($color,2)};
  215. color: #{nth($color,3)};
  216. }
  217. }
  218. }
  219. // PANEL HEADING PROFILE PICTURE
  220. // -----------------------------------------------------------------------------
  221. .panel-heading-profile-picture {
  222. img {
  223. display: block;
  224. margin: 0 auto;
  225. width: 100px;
  226. height: 100px;
  227. border: 4px solid #fff;
  228. -webkit-border-radius: 50px;
  229. border-radius: 50px;
  230. }
  231. }
  232. // PANEL ICON
  233. // -----------------------------------------------------------------------------
  234. .panel-icon {
  235. color: #fff;
  236. font-size: 42px;
  237. float: left;
  238. & ~ .panel-title,
  239. & ~ .panel-subtitle {
  240. margin-left: 64px;
  241. }
  242. }
  243. // PANELS
  244. // -----------------------------------------------------------------------------
  245. /* Dark - Panels */
  246. html.dark {
  247. .panel-heading {
  248. background: $dark-color-3;
  249. border-bottom-color: darken( $dark-color-3, 5% );
  250. }
  251. .panel-actions {
  252. a {
  253. &:hover {
  254. background-color: darken( $dark-color-3, 2% );
  255. }
  256. }
  257. }
  258. .panel-body {
  259. background: $dark-color-4;
  260. }
  261. .panel-footer {
  262. background: $dark-color-5;
  263. border-top-color: darken( $dark-color-3, 7% );
  264. }
  265. }
  266. // CONTEXTUAL ALTERNATIVE
  267. // -----------------------------------------------------------------------------
  268. @each $color in $colors-list {
  269. html {
  270. .panel-#{nth($color,1)} {
  271. .panel-heading {
  272. background: #{nth($color,2)};
  273. }
  274. .panel-subtitle {
  275. opacity: 0.8;
  276. color: #{nth($color,3)};
  277. }
  278. .panel-title {
  279. color: #{nth($color,3)};
  280. }
  281. .panel-actions a {
  282. background-color: transparent !important;
  283. color: #{nth($color,3)};
  284. }
  285. }
  286. }
  287. }
  288. // PANEL TRANSPARENT
  289. // -----------------------------------------------------------------------------
  290. @mixin panel-heading-transparent() {
  291. background: none;
  292. border: 0;
  293. padding-left: 0;
  294. padding-right: 0;
  295. .panel-actions {
  296. right: 0;
  297. }
  298. + .panel-body {
  299. border-radius: $border-radius;
  300. }
  301. }
  302. html .panel-transparent {
  303. > .panel-heading {
  304. @include panel-heading-transparent();
  305. }
  306. > .panel-body {
  307. padding: 0;
  308. border-radius: 0;
  309. background: transparent;
  310. -webkit-box-shadow: none;
  311. box-shadow: none;
  312. }
  313. }
  314. html .panel .panel-heading-transparent {
  315. @include panel-heading-transparent();
  316. }
  317. // PANEL HORIZONTAL
  318. // -----------------------------------------------------------------------------
  319. .panel-horizontal {
  320. display: table;
  321. width: 100%;
  322. .panel-heading,
  323. .panel-body,
  324. .panel-footer {
  325. display: table-cell;
  326. vertical-align: middle;
  327. }
  328. .panel-heading {
  329. border-radius: $border-radius 0 0 $border-radius;
  330. }
  331. .panel-heading + .panel-body {
  332. border-radius: 0 $border-radius $border-radius 0;
  333. }
  334. .panel-footer {
  335. border-radius: 0 $border-radius $border-radius 0;
  336. margin-top: 0;
  337. }
  338. }
  339. // RESPONSIVE
  340. // -----------------------------------------------------------------------------
  341. @media only screen and (max-width: 767px) {
  342. .panel-actions {
  343. float: none;
  344. margin-bottom: 15px;
  345. position: static;
  346. text-align: right;
  347. a {
  348. vertical-align: top;
  349. }
  350. }
  351. }