Skip to content

Commit b770503

Browse files
dotansimhadarkbasic
authored andcommitted
Step 12.7: Added styles for messages attachment
1 parent 17531da commit b770503

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
.messages-attachments-page-content {
2+
$icon-background-size: 60px;
3+
$icon-font-size: 20pt;
4+
5+
.attachments {
6+
width: 100%;
7+
margin: 0;
8+
display: inline-flex;
9+
}
10+
11+
.attachment {
12+
text-align: center;
13+
margin: 0;
14+
padding: 0;
15+
16+
.item-inner {
17+
padding: 0
18+
}
19+
20+
.attachment-icon {
21+
width: $icon-background-size;
22+
height: $icon-background-size;
23+
line-height: $icon-background-size;
24+
font-size: $icon-font-size;
25+
border-radius: 50%;
26+
color: white;
27+
margin-bottom: 10px
28+
}
29+
30+
.attachment-name {
31+
color: gray;
32+
}
33+
}
34+
35+
.attachment-gallery .attachment-icon {
36+
background: linear-gradient(#e13838 50%, #f53d3d 50%);
37+
}
38+
39+
.attachment-camera .attachment-icon {
40+
background: linear-gradient(#3474e1 50%, #387ef5 50%);
41+
}
42+
43+
.attachment-location .attachment-icon {
44+
background: linear-gradient(#2ec95c 50%, #32db64 50%);
45+
}
46+
}

0 commit comments

Comments
 (0)