/
grid.component.scss
81 lines (71 loc) · 1.46 KB
/
grid.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
@import "../../../assets/style/config";
@import "../../../assets/style/responsive";
.app-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 1fr;
gap: 24px 12px;
justify-items: stretch;
align-items: stretch;
align-content: space-evenly;
margin: 48px -15px 0 0;
padding: 0;
list-style: none;
.app-grid-item {
margin: 0 0 24px 0;
box-sizing: border-box;
border: 1px solid $primary_100;
border-radius: $border-radius;
padding: 0 30px 25px 30px;
text-align: center;
min-height: 200px;
position: relative;
.mat-icon.topic {
background: white;
margin: -28px auto 0;
padding: 10px;
border-radius: 50px;
height: 36px;
width: 60px;
font-size: 36px;
color: $primary_900;
}
p {
// white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
hyphens: auto;
}
.action {
margin-top: 24px;
bottom: 16px;
position: absolute;
height: 24px;
width: calc(100% - 60px);
button,
a {
margin: 0 auto;
.mat-icon {
margin-left: 16px;
}
}
}
.description {
&.short {
height: 86px;
overflow: hidden;
}
}
}
}
// phone devices
@media (max-width: map-get($grid-breakpoints, phone)) {
.app-grid {
margin: 50px -15px 0 0;
width: 100%;
.app-grid-item {
margin: 12px 0;
}
}
}