File tree Expand file tree Collapse file tree 3 files changed +39
-12
lines changed
assets/stylesheets/application Expand file tree Collapse file tree 3 files changed +39
-12
lines changed Original file line number Diff line number Diff line change
1
+ .to-member-cards {
2
+ display : flex ;
3
+ flex-wrap : wrap ;
4
+ justify-content : space-between ;
5
+ align-items : stretch ;
6
+ gap : 20px ;
7
+
8
+ @media (max-width : $screen-lg-min ) {
9
+ display : block ;
10
+ }
11
+ }
12
+
13
+ .to-member-card__wrapper {
14
+ width : 48% ;
15
+
16
+ @media (max-width : $screen-lg-min ) {
17
+ width : 100% ;
18
+ }
19
+ }
20
+
1
21
.to-member-card {
2
22
& {
3
- margin : 16px 0 ;
4
23
width : 100% ;
5
24
max-width : 600px ;
6
- height : 178px ;
25
+ min- height : 178px ;
7
26
background-color : white ;
8
27
box-shadow : 0 0 3px $palette-grey ;
9
- display : inline-block ;
28
+ display : flex ;
29
+ flex-direction : column ;
30
+ height : 100% ;
31
+ border-radius : 4px ;
10
32
11
- @media (max-width : $screen-sm -min ) {
33
+ @media (max-width : $screen-lg -min ) {
12
34
height : auto ;
13
35
margin : 10px 0 ;
14
36
}
19
41
display : flex ;
20
42
background-color : $palette-dark-turkey ;
21
43
padding : 10px 20px ;
44
+ border-radius : 4px 4px 0 0 ;
22
45
}
23
46
24
47
& __avatar {
48
71
& __body {
49
72
& {
50
73
padding : 16px 20px ;
74
+ display : flex ;
75
+ flex-direction : column ;
76
+ justify-content : space-between ;
77
+ height : 100% ;
51
78
}
52
79
53
80
& __description {
54
81
margin-bottom : 10px ;
55
82
color : #666 ;
56
83
font-size : 15px ;
57
- height : 44px ;
58
84
59
85
@media (max-width : $screen-sm-min ) {
60
86
height : auto ;
63
89
64
90
& __items {
65
91
display : flex ;
92
+ flex-wrap : wrap ;
66
93
67
94
@media (max-width : $screen-sm-min ) {
68
95
display : block ;
71
98
}
72
99
73
100
& __item {
74
- & {
75
- margin-right : 20 px ;
76
- font-size : 14 px ;
77
- color : grey ;
78
- }
101
+ margin-right : 20 px ;
102
+ font-size : 14 px ;
103
+ color : gray ;
104
+ overflow-wrap : break-word ;
105
+ white-space : normal ;
79
106
80
107
a {
81
108
color : grey ;
Original file line number Diff line number Diff line change 1
- < div class ="col-lg-6 col-sm-12 ">
1
+ < div class ="to-member-card__wrapper ">
2
2
< div class ="to-member-card ">
3
3
< div class ="to-member-card__header ">
4
4
< div class ="to-member-card__header__avatar "> <%= image_tag avatar_url ( member . user , 48 ) %> </ div >
Original file line number Diff line number Diff line change 20
20
</ div >
21
21
</ div >
22
22
23
- < div class ="row to-member-cards ">
23
+ < div class ="to-member-cards ">
24
24
<%= render partial : 'member_card' , collection : @member_view_models , as : :member %>
25
25
</ div >
26
26
You can’t perform that action at this time.
0 commit comments