Skip to content

Commit ec6efd2

Browse files
authored
Merge pull request element-hq#4608 from vector-im/dbkr/groupview_edit
CSS for group edit UI
2 parents bcedc20 + d2f02e8 commit ec6efd2

1 file changed

Lines changed: 106 additions & 1 deletion

File tree

‎src/skins/vector/css/matrix-react-sdk/structures/_GroupView.scss‎

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,115 @@ limitations under the License.
1717
.mx_GroupView {
1818
max-width: 960px;
1919
width: 100%;
20-
margin: 20px auto;
2120
}
2221

2322
.mx_GroupView_error {
2423
margin: auto;
2524
}
2625

26+
.mx_GroupView_header {
27+
max-width: 960px;
28+
margin: auto;
29+
height: 70px;
30+
align-items: center;
31+
display: flex;
32+
margin-bottom: 20px;
33+
}
34+
35+
.mx_GroupView_header_view {
36+
border-bottom: 1px solid #e5e5e5;
37+
}
38+
39+
.mx_GroupView_header_avatar, .mx_GroupView_header_info {
40+
display: table-cell;
41+
vertical-align: middle;
42+
}
43+
44+
.mx_GroupHeader_button {
45+
margin-left: 12px;
46+
cursor: pointer;
47+
}
48+
49+
.mx_GroupHeader_button object {
50+
// prevents clicks from being swallowed by svg in 'object' tag
51+
pointer-events: none;
52+
}
53+
54+
.mx_GroupView_avatarPicker {
55+
position: relative;
56+
}
57+
58+
.mx_GroupView_avatarPicker_edit {
59+
position: absolute;
60+
top: 50px;
61+
left: 15px;
62+
}
63+
64+
.mx_GroupView_avatarPicker .mx_Spinner {
65+
width: 48px;
66+
height: 48px ! important;
67+
}
68+
69+
.mx_GroupView_header_leftCol {
70+
flex: 1;
71+
}
72+
73+
.mx_GroupView_saveButton, .mx_GroupView_cancelButton {
74+
display: table-cell;
75+
}
76+
2777
.mx_GroupView_header_groupid {
2878
font-weight: normal;
2979
font-size: initial;
3080
padding-left: 10px;
3181
}
3282

83+
.mx_GroupView_header_name {
84+
vertical-align: middle;
85+
width: 100%;
86+
height: 31px;
87+
overflow: hidden;
88+
color: $primary-fg-color;
89+
font-weight: bold;
90+
font-size: 22px;
91+
padding-left: 19px;
92+
padding-right: 16px;
93+
/* why isn't text-overflow working? */
94+
text-overflow: ellipsis;
95+
border-bottom: 1px solid transparent;
96+
}
97+
98+
.mx_GroupView_header_name input, .mx_GroupView_header_shortDesc input {
99+
width: 400px;
100+
}
101+
102+
.mx_GroupView_header_shortDesc {
103+
vertical-align: bottom;
104+
float: left;
105+
max-height: 42px;
106+
color: $settings-grey-fg-color;
107+
font-weight: 300;
108+
font-size: 13px;
109+
padding-left: 19px;
110+
margin-right: 16px;
111+
overflow: hidden;
112+
text-overflow: ellipsis;
113+
border-bottom: 1px solid transparent;
114+
}
115+
116+
.mx_GroupView_avatarPicker_label {
117+
cursor: pointer;
118+
}
119+
120+
.mx_GroupView_cancelButton {
121+
padding-left: 8px;
122+
}
123+
124+
.mx_GroupView_cancelButton img {
125+
position: relative;
126+
top: 5px;
127+
}
128+
33129
.mx_GroupView_featuredThings {
34130
margin-top: 20px;
35131
}
@@ -50,3 +146,12 @@ limitations under the License.
50146
cursor: pointer;
51147
display: table-cell;
52148
}
149+
150+
.mx_GroupView_uploadInput {
151+
display: none;
152+
}
153+
154+
.mx_GroupView_editLongDesc {
155+
width: 100%;
156+
height: 150px;
157+
}

0 commit comments

Comments
 (0)