Skip to content

Commit 176f7f1

Browse files
authored
Merge pull request element-hq#4447 from vector-im/rxl881/apps
Styling for apps / widgets
2 parents c614bc2 + 83353e9 commit 176f7f1

6 files changed

Lines changed: 215 additions & 2 deletions

File tree

‎src/skins/vector/css/_components.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
@import "./matrix-react-sdk/views/rooms/_SearchableEntityList.scss";
5656
@import "./matrix-react-sdk/views/rooms/_TabCompleteBar.scss";
5757
@import "./matrix-react-sdk/views/rooms/_TopUnreadMessagesBar.scss";
58+
@import "./matrix-react-sdk/views/rooms/_AppsDrawer.scss";
5859
@import "./matrix-react-sdk/views/settings/_DevicesPanel.scss";
5960
@import "./matrix-react-sdk/views/settings/_IntegrationsManager.scss";
6061
@import "./matrix-react-sdk/views/voip/_CallView.scss";
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
/*
2+
Copyright 2015, 2016 OpenMarket Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_AppsDrawer {
18+
}
19+
20+
.mx_AppsContainer {
21+
display: flex;
22+
flex-direction: row;
23+
align-items: center;
24+
}
25+
26+
.mx_AddWidget_button {
27+
order: 2;
28+
cursor: pointer;
29+
padding-right: 12px;
30+
padding: 0;
31+
margin: 0 0 5px 0;
32+
color: $accent-color;
33+
font-size: 12px;
34+
}
35+
36+
.mx_SetAppURLDialog_input {
37+
border-radius: 3px;
38+
border: 1px solid $input-border-color;
39+
padding: 9px;
40+
color: $primary-hairline-color;
41+
background-color: $primary-bg-color;
42+
font-size: 15px;
43+
}
44+
45+
.mx_AppTile {
46+
width: 50%;
47+
margin: 0 5px 2px 0;
48+
border: 1px solid $primary-hairline-color;
49+
border-radius: 2px;
50+
// height: 350px;
51+
// display: inline-block;
52+
}
53+
54+
.mx_AppTileFullWidth {
55+
width: 100%;
56+
margin: 0;
57+
padding: 0;
58+
border: 1px solid $primary-hairline-color;
59+
border-radius: 2px;
60+
// height: 350px;
61+
// display: inline-block;
62+
}
63+
64+
.mx_AppTileMenuBar {
65+
// height: 15px;
66+
margin: 0;
67+
padding: 2px 10px;
68+
// background-color: $e2e-verified-color;
69+
border-bottom: 1px solid $primary-hairline-color;
70+
font-size: 10px;
71+
}
72+
73+
.mx_AppTileMenuBarWidgets {
74+
float: right;
75+
}
76+
.mx_AppTileMenuBarWidget {
77+
// pointer-events: none;
78+
cursor: pointer;
79+
}
80+
81+
.mx_AppTileBody iframe {
82+
width: 100%;
83+
height: 350px;
84+
overflow: hidden;
85+
border: none;
86+
padding: 0;
87+
margin: 0;
88+
display: block;
89+
}
90+
91+
.mx_CloseAppWidget {
92+
}
93+
94+
.mx_AppTileMenuBarWidgetPadding {
95+
margin-right: 5px;
96+
}
97+
98+
.mx_AppIconTile {
99+
background-color: $lightbox-bg-color;
100+
border: 1px solid rgba(0, 0, 0, 0);
101+
width: 200px;
102+
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
103+
transition: 0.3s;
104+
border-radius: 3px;
105+
margin: 5px;
106+
display: inline-block;
107+
}
108+
109+
.mx_AppIconTile.mx_AppIconTile_active {
110+
color: $accent-color;
111+
border-color: $accent-color;
112+
}
113+
114+
.mx_AppIconTile:hover {
115+
border: 1px solid $accent-color;
116+
box-shadow: 0 0 10px 5px rgba(200,200,200,0.5);
117+
}
118+
119+
.mx_AppIconTile_content {
120+
padding: 2px 16px;
121+
height: 60px;
122+
overflow: hidden;
123+
}
124+
125+
.mx_AppIconTile_content h4 {
126+
margin-top: 5px;
127+
margin-bottom: 2px;
128+
}
129+
130+
.mx_AppIconTile_content p {
131+
margin-top: 0;
132+
margin-bottom: 5px;
133+
font-size: smaller;
134+
}
135+
136+
.mx_AppIconTile_image {
137+
padding: 10px;
138+
width: 75%;
139+
max-width:100px;
140+
max-height:100px;
141+
width: auto;
142+
height: auto;
143+
}
144+
145+
.mx_AppIconTile_imageContainer {
146+
text-align: center;
147+
width: 100%;
148+
background-color: white;
149+
border-radius: 3px 3px 0 0;
150+
height: 155px;
151+
display: flex;
152+
justify-content: center;
153+
align-items: center;
154+
}
155+
156+
form.mx_Custom_Widget_Form div {
157+
margin-top: 10px;
158+
margin-bottom: 10px;
159+
}

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_MessageComposer.scss‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ limitations under the License.
128128
.mx_MessageComposer_upload,
129129
.mx_MessageComposer_hangup,
130130
.mx_MessageComposer_voicecall,
131-
.mx_MessageComposer_videocall {
131+
.mx_MessageComposer_videocall,
132+
.mx_MessageComposer_apps {
132133
/*display: table-cell;*/
133134
/*vertical-align: middle;*/
134135
/*padding-left: 10px;*/
@@ -140,7 +141,8 @@ limitations under the License.
140141
.mx_MessageComposer_upload object,
141142
.mx_MessageComposer_hangup object,
142143
.mx_MessageComposer_voicecall object,
143-
.mx_MessageComposer_videocall object {
144+
.mx_MessageComposer_videocall object,
145+
.mx_MessageComposer_apps object {
144146
pointer-events: none;
145147
}
146148

‎src/skins/vector/img/edit.svg‎

Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 24 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)