| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411 |
- // PANEL
- // -----------------------------------------------------------------------------
- .panel {
- background: transparent;
- -webkit-box-shadow: none;
- box-shadow: none;
- border: none;
- /* WHY?
- + .panel {
- margin-top: 35px;
- }*/
- }
- // PANEL HEADING
- // -----------------------------------------------------------------------------
- .panel-heading {
- background: $panel-heading-background;
- border-radius: $border-radius $border-radius 0 0;
- border-bottom: 1px solid #DADADA;
- padding: $panel-heading-padding;
- position: relative;
- }
- // PANEL HEADING BGS
- // -----------------------------------------------------------------------------
- .panel-heading {
- @each $color in $colors-list {
- &.bg-#{nth($color,1)} {
- background: #{nth($color,2)};
- color: #{nth($color,3)};
- border-bottom: 0 none;
- border-right: 0 none;
- }
- }
- }
- .panel-heading.bg-white {
- background: #fff;
- border-bottom: 0 none;
- border-right: 0 none;
- }
- // PANEL ACTIONS
- // -----------------------------------------------------------------------------
- .panel-actions {
- right: 15px;
- position: absolute;
- top: 15px;
- a {
- background-color: $panel-action-background;
- border-radius: $panel-action-border-radius;
- color: $panel-action-color;
- font-size: $panel-action-size;
- height: $panel-action-height;
- line-height: $panel-action-height;
- text-align: center;
- width: $panel-action-width;
- &:hover {
- background-color: $panel-action-background-hover;
- color: $panel-action-color-hover;
- text-decoration: none
- }
- &,
- &:focus,
- &:hover,
- &:active,
- &:visited {
- outline: none !important;
- text-decoration: none !important;
- }
- }
- }
- // PANEL TITLE AND SUBTITLE
- // -----------------------------------------------------------------------------
- .panel-title {
- color: $panel-title-color;
- font-size: $panel-title-size;
- font-weight: $font-weight-normal;
- line-height: $panel-title-size;
- padding: 0;
- text-transform: none;
- }
- .panel-subtitle {
- color: $panel-subtitle-color;
- font-size: $panel-subtitle-size;
- line-height: 1.2em;
- margin: 7px 0 0;
- padding: 0;
- }
- // PANEL BODY
- // -----------------------------------------------------------------------------
- .panel-body {
- background: #fdfdfd;
- -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
- border-radius: $border-radius;
- }
- .panel-body-nopadding {
- padding: 0;
- }
- .panel-heading + .panel-body {
- border-radius: 0 0 $border-radius $border-radius;
- }
- // PANEL FOOTER
- // -----------------------------------------------------------------------------
- .panel-footer {
- border-radius: 0 0 $border-radius $border-radius;
- margin-top: -$border-radius;
- }
- .panel-footer-btn-group {
- display: table;
- width: 100%;
- padding: 0;
- a {
- background-color: #f5f5f5;
- display: table-cell;
- width: 1%;
- border-left: 1px solid #ddd;
- padding: 10px 15px;
- text-decoration: none;
- &:hover {
- background-color: darken(#f5f5f5, 2%);
- box-shadow: 0 0 7px rgba(0, 0, 0, 0.1) inset;
- }
- &:first-child {
- border-left: none;
- }
- }
- }
- // PANEL BODY BGS
- // -----------------------------------------------------------------------------
- .panel-body {
- @each $color in $colors-list {
- &.bg-#{nth($color,1)} {
- background: #{nth($color,2)};
- color: #{nth($color,3)};
- }
- }
- }
- // PANEL FEATURED
- // -----------------------------------------------------------------------------
- .panel-featured {
- border-top: $panel-featured-border-width solid $panel-title-color;
- .panel-heading {
- border-radius: 0;
- }
- }
- @each $side in top, right, bottom, left {
- .panel-featured-#{nth($side,1)} {
- border-#{nth($side,1)}: $panel-featured-border-width solid $panel-title-color;
- }
- }
- @each $color in $colors-list {
- .panel-featured-#{nth($color,1)} {
- border-color: #{nth($color,2)};
- .panel-title {
- color: #{nth($color,2)};
- }
- }
- }
- // PANEL HIGHLIGHT
- // -----------------------------------------------------------------------------
- .panel-highlight {
- .panel-heading {
- background-color: $color-primary;
- border-color: $color-primary;
- color: #fff;
- }
- .panel-title {
- color: #fff;
- }
- .panel-subtitle {
- color: #fff;
- color: rgba(255, 255, 255, 0.7);
- }
- .panel-actions a {
- background-color: rgba(0, 0, 0, 0.1);
- color: #fff;
- }
- .panel-body {
- background-color: $color-primary;
- color: #fff;
- }
- }
- .panel-highlight-title {
- .panel-heading {
- background-color: #2BAAB1;
- }
- .panel-title {
- color: #fff;
- }
- .panel-subtitle {
- color: #fff;
- color: rgba(255, 255, 255, 0.7);
- }
- .panel-actions a {
- background-color: rgba(0, 0, 0, 0.1);
- color: #fff;
- }
- }
- // PANEL HEADING ICON
- // -----------------------------------------------------------------------------
- .panel-heading-icon {
- margin: 0 auto;
- @include font-size(42);
- width: 90px;
- height: 90px;
- line-height: 90px;
- text-align: center;
- color: #fff;
- background-color: rgba(0, 0, 0, 0.1);
- -webkit-border-radius: 55px;
- border-radius: 55px;
- }
- .panel-heading-icon {
- @each $color in $colors-list {
- &.bg-#{nth($color,1)} {
- background: #{nth($color,2)};
- color: #{nth($color,3)};
- }
- }
- }
- // PANEL HEADING PROFILE PICTURE
- // -----------------------------------------------------------------------------
- .panel-heading-profile-picture {
- img {
- display: block;
- margin: 0 auto;
- width: 100px;
- height: 100px;
- border: 4px solid #fff;
- -webkit-border-radius: 50px;
- border-radius: 50px;
- }
- }
- // PANEL ICON
- // -----------------------------------------------------------------------------
- .panel-icon {
- color: #fff;
- font-size: 42px;
- float: left;
- & ~ .panel-title,
- & ~ .panel-subtitle {
- margin-left: 64px;
- }
- }
- // PANELS
- // -----------------------------------------------------------------------------
- /* Dark - Panels */
- html.dark {
- .panel-heading {
- background: $dark-color-3;
- border-bottom-color: darken( $dark-color-3, 5% );
- }
- .panel-actions {
- a {
- &:hover {
- background-color: darken( $dark-color-3, 2% );
- }
- }
- }
- .panel-body {
- background: $dark-color-4;
- }
- .panel-footer {
- background: $dark-color-5;
- border-top-color: darken( $dark-color-3, 7% );
- }
- }
- // CONTEXTUAL ALTERNATIVE
- // -----------------------------------------------------------------------------
- @each $color in $colors-list {
- html {
- .panel-#{nth($color,1)} {
- .panel-heading {
- background: #{nth($color,2)};
- }
- .panel-subtitle {
- opacity: 0.8;
- color: #{nth($color,3)};
- }
- .panel-title {
- color: #{nth($color,3)};
- }
- .panel-actions a {
- background-color: transparent !important;
- color: #{nth($color,3)};
- }
- }
- }
- }
- // PANEL TRANSPARENT
- // -----------------------------------------------------------------------------
- @mixin panel-heading-transparent() {
- background: none;
- border: 0;
- padding-left: 0;
- padding-right: 0;
- .panel-actions {
- right: 0;
- }
- + .panel-body {
- border-radius: $border-radius;
- }
- }
- html .panel-transparent {
- > .panel-heading {
- @include panel-heading-transparent();
- }
- > .panel-body {
- padding: 0;
- border-radius: 0;
- background: transparent;
- -webkit-box-shadow: none;
- box-shadow: none;
- }
- }
- html .panel .panel-heading-transparent {
- @include panel-heading-transparent();
- }
- // PANEL HORIZONTAL
- // -----------------------------------------------------------------------------
- .panel-horizontal {
- display: table;
- width: 100%;
- .panel-heading,
- .panel-body,
- .panel-footer {
- display: table-cell;
- vertical-align: middle;
- }
- .panel-heading {
- border-radius: $border-radius 0 0 $border-radius;
- }
- .panel-heading + .panel-body {
- border-radius: 0 $border-radius $border-radius 0;
- }
- .panel-footer {
- border-radius: 0 $border-radius $border-radius 0;
- margin-top: 0;
- }
- }
- // RESPONSIVE
- // -----------------------------------------------------------------------------
- @media only screen and (max-width: 767px) {
- .panel-actions {
- float: none;
- margin-bottom: 15px;
- position: static;
- text-align: right;
- a {
- vertical-align: top;
- }
- }
- }
|