update panel styles, fixes Retrospring/bugs#51

This commit is contained in:
pixeldesu 2015-05-11 06:17:12 +02:00
parent b1f6e5e681
commit 884dab5988
2 changed files with 27 additions and 7 deletions

View File

@ -138,12 +138,32 @@ body {
}
.panel {
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25);
-webkit-background-clip: padding-box;
background-clip: padding-box;
box-shadow: 0px 0px 20px rgba(0,0,0,0.1);
}
.panel-default {
border-color: transparent;
.panel-default > .panel-heading {
box-shadow: inset 0 -10px 10px -10px rgba(0,0,0,0.1);
}
.panel-default > .panel-footer {
box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.1);
}
#profile {
border-color: transparent;
border-width: 0px;
}
.panel {
border-radius: 2px;
}
.panel > .panel-heading {
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
.panel > .panel-footer {
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}

View File

@ -1,4 +1,4 @@
.panel.panel-default
.panel.panel-default#profile
%img.profile--avatar{src: @user.profile_picture.url(:large)}
- if @user.admin?
.profile--panel-badge.panel-badge-danger