forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.scss
116 lines (97 loc) · 2.69 KB
/
card.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.Card {
border: 1px solid rgba(var(--center-channel-color-rgb), 0.08);
background-color: var(--center-channel-bg);
border-radius: 4px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
transition: box-shadow 0.3s ease-in-out;
& + .Card {
margin-top: 16px;
}
&.expanded {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
&:not(.expanded):hover {
border-color: rgba(var(--center-channel-color-rgb), 0.16);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
transition-duration: 0.15s;
}
&.console {
width: 100%;
border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
margin-bottom: 20px;
background-color: var(--sys-center-channel-bg);
border-radius: 2px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
color: var(--sys-center-channel-color);
.Card__header {
display: flex;
align-items: center;
padding: 28px 32px 24px 32px;
border-bottom: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
.text-top {
font-size: 16px;
font-weight: 600;
line-height: 24px;
}
.text-bottom {
margin-right: 24px;
font-size: 14px;
line-height: 20px;
}
.content-button {
height: 32px;
padding: 10px 16px;
border: none;
margin-left: auto;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
line-height: 9.5px;
white-space: nowrap;
&.primary {
background: var(--sys-button-bg);
color: var(--sys-button-color);
}
}
.Card__hr {
display: none;
}
}
.Card__body {
overflow: visible;
&.expanding {
transition: none;
}
&.expanded {
margin: 28px 32px;
}
}
}
}
.Card__header {
hr.Card__hr {
border-color: rgba(var(--center-channel-color-rgb), 0.08);
margin: 0 12px;
}
}
.Card__body {
overflow: hidden;
height: 0;
margin: 0 12px;
&.expanding {
transition-duration: 0.3s;
transition-property: height, margin;
transition-timing-function: ease-in-out;
}
&.expanded {
margin: 12px;
}
&.expanded:not(.expanding) {
height: auto;
}
}
@media screen and (max-width: 768px) {
.Card + .Card {
margin-top: 12px;
}
}