-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
accounts-grid-list.component.scss
98 lines (85 loc) · 1.64 KB
/
accounts-grid-list.component.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
:host {
display: block;
padding: 1.5%;
position: relative;
}
.fix-height {
position: relative;
top: 0;
max-height: 52vh;
margin: auto;
padding: 0;
overflow: auto;
}
@import '~@angular/material/theming';
/* Toolbar
-------------------------------------------------- */
mat-toolbar {
padding: 8px 24px 0;
}
mat-form-field {
font-size: 16px;
}
/* Card
-------------------------------------------------- */
mat-grid-tile {
mat-card {
width: calc(100% - 70px);
height: calc(100% - 70px);
@include mat-elevation(2);
//@include mat-elevation-transition;
transition: transform 0.25s ease;
&:hover {
cursor: pointer;
@include mat-elevation(6);
//box-shadow: 0 15px 37px 0 #dbe2eb;
transform: translateY(-1rem);
}
&.active {
@include mat-elevation(8);
}
.mat-card-title,
.mat-card-subtitle {
white-space: nowrap;
width: 30em;
overflow: hidden;
text-overflow: ellipsis;
}
&.mat-bg-primary {
background: #3f51b5 !important;
color: #fff !important;
}
&.mat-bg-accent {
background-color: #ffc107;
color: #000;
}
&.mat-bg-warn {
background-color: #f44336;
color: #fff;
}
}
}
/* List
-------------------------------------------------- */
mat-list-item {
//position: relative; // For mdRipple
&:hover {
cursor: pointer;
background: #f5f5f5;
}
&.active {
background: #eaeaea;
}
.subline {
color: #999999;
}
}
//@mixin md-icon-size($size: 24px) {
// font-size: $size;
// height: $size;
// width: $size;
//}
//
//.mat-icon {
// @include md-icon-size(16px);
//}