2015-05-20 15:31:53 +02:00
|
|
|
/// card.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
|
2015-02-03 16:17:15 +01:00
|
|
|
@import 'extends';
|
|
|
|
|
2015-01-16 13:52:29 +01:00
|
|
|
md-card {
|
|
|
|
|
|
|
|
md-card-content {
|
2015-07-15 22:30:19 +02:00
|
|
|
overflow-y: auto;
|
2015-03-31 16:50:05 +02:00
|
|
|
transition: $swift-ease-in-out;
|
2015-01-16 13:52:29 +01:00
|
|
|
}
|
2015-04-02 04:12:07 +02:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
md-card-actions:not(.layout-column) {
|
|
|
|
.md-button {
|
|
|
|
// "last-of-type" doesn't work well when we have multiple types so we overwrite md's directive
|
|
|
|
&.md-icon-button,
|
|
|
|
&.md-icon-button:last-of-type,
|
|
|
|
&.sg-icon-button,
|
|
|
|
&.sg-icon-button:last-of-type {
|
|
|
|
margin: 0 $baseline-grid * .5;
|
|
|
|
}
|
2015-12-21 18:03:23 +01:00
|
|
|
&:hover {
|
|
|
|
// When using ui-sref from ui-router, buttons become links and the background becomes grey
|
|
|
|
// when the cursor is over the button. We force the normal behaviour of buttons.
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2015-12-04 21:00:58 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-14 22:36:13 +01:00
|
|
|
.md-secondary {
|
|
|
|
@extend .md-secondary;
|
|
|
|
}
|
|
|
|
|
2016-05-17 22:35:47 +02:00
|
|
|
// Collapsed/expanded states for cards in ACL editor and user folders (subscriptions)
|
2015-06-23 17:21:50 +02:00
|
|
|
&.sg-collapsed, &.sg-expanded {
|
2016-05-17 22:35:47 +02:00
|
|
|
background-color: transparent;
|
2015-06-23 17:21:50 +02:00
|
|
|
transition: $swift-ease-in-out;
|
|
|
|
transition-delay: 0s;
|
|
|
|
> .md-button {
|
|
|
|
margin: 0;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
2015-10-09 22:10:39 +02:00
|
|
|
.md-icon-button {
|
|
|
|
transition: $swift-linear;
|
2015-10-13 20:30:09 +02:00
|
|
|
transition-duration: 0.2s;
|
2015-10-09 22:10:39 +02:00
|
|
|
transition-delay: 0.2s;
|
|
|
|
opacity: 1;
|
|
|
|
&.ng-hide {
|
|
|
|
transition: $swift-linear;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-06-23 17:21:50 +02:00
|
|
|
md-card-content {
|
|
|
|
order: 1;
|
|
|
|
transition: $swift-ease-in-out;
|
|
|
|
transition-delay: 0.1s;
|
|
|
|
max-height: 500px;
|
|
|
|
&.ng-hide {
|
|
|
|
max-height: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
}
|
2016-06-20 22:10:52 +02:00
|
|
|
// Animate item removal
|
|
|
|
&.ng-leave {
|
|
|
|
transform: translateX(0%);
|
|
|
|
transition-duration: 500ms;
|
|
|
|
&.ng-leave-active {
|
|
|
|
.md-button:not([disabled]):hover {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
transform: translateX(-70%);
|
|
|
|
}
|
|
|
|
}
|
2015-06-23 17:21:50 +02:00
|
|
|
}
|
|
|
|
|
2015-05-28 20:20:25 +02:00
|
|
|
&.sg-collapsed {
|
2015-06-02 17:14:03 +02:00
|
|
|
border-radius: 0;
|
2015-06-25 17:31:53 +02:00
|
|
|
box-shadow: none;
|
2015-05-28 20:20:25 +02:00
|
|
|
margin-top: 0;
|
2015-06-02 17:14:03 +02:00
|
|
|
margin-bottom: 0;
|
2015-05-28 20:20:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.sg-expanded {
|
2015-06-15 17:35:20 +02:00
|
|
|
@extend .md-whiteframe-z2;
|
|
|
|
margin: 0 0 1px 0;
|
2015-10-13 20:30:09 +02:00
|
|
|
&-remove { // ngAnimate with ngClass
|
2015-10-09 22:10:39 +02:00
|
|
|
transition-delay: 0.5s;
|
|
|
|
}
|
2015-05-28 20:20:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.md-button {
|
|
|
|
.sg-tile-content {
|
|
|
|
text-align: left;
|
|
|
|
text-transform: none;
|
|
|
|
}
|
|
|
|
}
|
2015-01-16 13:52:29 +01:00
|
|
|
}
|